/*
Theme Name: RyogDesk Liquid Glass
Theme URI: https://ryogdesk.com/
Author: Codex
Author URI: https://openai.com/
Description: RyogDesk 向けのカスタム WordPress テーマ。Liquid Glass の見た目とブログ運用向けの情報設計を両立します。
Version: 0.2.7
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: ryogdesk-liquid-glass
*/

:root {
  --bg-top: #f4f7ff;
  --bg-bottom: #dbe6f8;
  --ink-strong: #10233f;
  --ink-body: rgba(16, 35, 63, 0.8);
  --ink-soft: rgba(16, 35, 63, 0.58);
  --line: rgba(255, 255, 255, 0.6);
  --glass-fill: rgba(255, 255, 255, 0.44);
  --glass-fill-strong: rgba(255, 255, 255, 0.74);
  --glass-fill-soft: rgba(231, 239, 255, 0.26);
  --glass-edge: rgba(255, 255, 255, 0.84);
  --glass-reflect: rgba(255, 255, 255, 0.56);
  --glass-shadow: 0 30px 72px rgba(85, 116, 160, 0.22);
  --shadow: 0 24px 60px rgba(85, 116, 160, 0.18);
  --shadow-soft: 0 14px 34px rgba(94, 122, 173, 0.14);
  --accent: #3f82ff;
  --accent-soft: rgba(63, 130, 255, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: min(1180px, calc(100vw - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-body);
  font-family: "Avenir Next", "Segoe UI", "Hiragino Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(177, 214, 255, 0.4), transparent 22%),
    radial-gradient(circle at 20% 100%, rgba(255, 255, 255, 0.46), transparent 26%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body.admin-bar .page-shell {
  padding-top: 56px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  width: var(--content-width);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.8;
}

.ambient-one {
  top: -120px;
  right: -40px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(145, 205, 255, 0.88), rgba(145, 205, 255, 0));
}

.ambient-two {
  left: -90px;
  bottom: 10vh;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--glass-fill-strong), rgba(255, 255, 255, 0.38)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(210, 228, 255, 0.18)),
    var(--glass-fill-soft);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    var(--glass-shadow);
  backdrop-filter: blur(32px) saturate(185%);
  -webkit-backdrop-filter: blur(32px) saturate(185%);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08) 26%, rgba(255, 255, 255, 0) 54%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 30%);
  opacity: 0.62;
  pointer-events: none;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: auto 10% -24% 10%;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 201, 255, 0.18), rgba(165, 201, 255, 0));
  filter: blur(24px);
  pointer-events: none;
}

.site-header,
.topline-bar,
.hero-card,
.hero-mini-card,
.headline-panel,
.filter-strip,
.lead-story,
.post-row,
.collection-card,
.archive-chip,
.profile-card,
.stack-card,
.newsletter-card,
.article-panel,
.site-footer,
.archive-header,
.pagination-wrap,
.comment-panel {
  border-radius: var(--radius-xl);
}

.site-header,
.topline-bar,
.filter-strip,
.site-footer {
  display: flex;
  align-items: center;
}

.site-header {
  position: relative;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  margin-bottom: 22px;
  overflow: visible;
  z-index: 40;
  isolation: isolate;
}

.topline-bar {
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border-radius: 999px;
}

.topline-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #5f9cff, #4d68ff);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topline-links,
.hero-article-meta,
.primary-nav,
.primary-nav .menu,
.header-actions,
.hero-actions,
.tag-row,
.story-meta,
.footer-links,
.footer-links .menu,
.entry-meta,
.entry-footer-links,
.archive-meta {
  display: flex;
  align-items: center;
}

.primary-nav ul,
.footer-links ul {
  margin: 0;
  padding: 0;
}

.primary-nav li,
.footer-links li,
.tag-row li {
  list-style: none;
}

.topline-links {
  gap: 18px;
  flex-wrap: wrap;
}

.topline-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #72a8ff, #5c67ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.hero-card h1,
.filter-strip h2,
.section-heading h2,
.lead-story h3,
.post-body h3,
.collection-card h3,
.profile-card h2,
.newsletter-card h2,
.archive-header h1,
.article-panel h1,
.article-panel h2,
.article-panel h3,
.headline-item strong,
.stack-list strong,
.archive-chip strong,
.site-footer strong,
.ranked-list span,
.widget-title {
  color: var(--ink-strong);
}

.brand-copy strong {
  font-size: 1.05rem;
  line-height: 1;
}

.brand-copy small {
  color: var(--ink-soft);
}

.primary-nav {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav .menu,
.footer-links .menu {
  gap: 18px;
  flex-wrap: wrap;
}

.brand-logo .custom-logo-link,
.brand-logo img {
  display: block;
}

.brand-logo img {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  object-fit: cover;
}

.header-actions {
  gap: 12px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow-soft);
  color: var(--ink-strong);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.primary-nav a,
.ghost-link,
.section-heading a,
.collection-card a,
.footer-links a,
.headline-item small,
.entry-meta a,
.widget a,
.widget_archive a,
.widget_categories a,
.widget_recent_entries a {
  color: var(--ink-soft);
  transition: color 180ms ease, opacity 180ms ease;
}

.primary-nav a:hover,
.ghost-link:hover,
.section-heading a:hover,
.collection-card a:hover,
.footer-links a:hover,
.widget a:hover,
.widget_archive a:hover,
.widget_categories a:hover,
.widget_recent_entries a:hover,
.entry-meta a:hover {
  color: var(--ink-strong);
}

.pill-button,
.secondary-button,
.search-submit,
.wp-block-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.pill-button,
.search-submit,
.wp-block-search__button {
  color: #fff;
  background: linear-gradient(135deg, #5598ff, #4169ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 26px rgba(65, 105, 255, 0.22);
}

.secondary-button {
  color: var(--ink-strong);
  border-color: rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pill-button:hover,
.secondary-button:hover,
.search-submit:hover,
.wp-block-search__button:hover {
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.72fr);
  gap: 22px;
  margin-bottom: 22px;
}

.hero-feature-column,
.hero-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-card,
.headline-panel,
.lead-story,
.post-row,
.collection-card,
.archive-chip,
.profile-card,
.stack-card,
.newsletter-card,
.article-panel,
.archive-header,
.pagination-wrap,
.comment-panel {
  padding: 26px;
}

.hero-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.hero-card-copy {
  display: flex;
  flex-direction: column;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.hero-mini-thumb {
  min-height: 132px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 56%),
    linear-gradient(135deg, rgba(93, 153, 255, 0.7), rgba(151, 214, 255, 0.3));
}

.hero-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mini-body {
  display: grid;
  align-content: start;
  gap: 8px;
}

.hero-mini-body h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink-strong);
}

.hero-mini-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(16, 35, 63, 0.66);
}

.hero-card h1,
.archive-header h1,
.article-panel h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.hero-card h1 span {
  display: inline-block;
  color: var(--accent);
}

.hero-copy,
.archive-header p {
  max-width: 42rem;
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.72;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-article-meta,
.entry-meta,
.story-meta,
.archive-meta {
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-article-meta {
  margin-top: 18px;
  padding-top: 0;
}

.hero-article-meta span,
.entry-meta span,
.archive-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
}

.story-tag,
.mini-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline-panel {
  height: 100%;
  padding: 22px;
}

.compact-heading h2 {
  font-size: 1.35rem;
}

.headline-list,
.post-list,
.collection-grid,
.archive-strip,
.ranked-list,
.main-column,
.side-column,
.section-block,
.comment-list {
  display: grid;
  gap: 18px;
}

.headline-list {
  margin-top: 14px;
}

.headline-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.headline-item strong {
  font-size: 0.96rem;
  line-height: 1.4;
}

.hero-card-thumb {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.hero-card-thumb a,
.hero-card-thumb img {
  width: 100%;
  height: 100%;
}

.hero-card-thumb img {
  object-fit: cover;
}

.filter-strip {
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  margin-bottom: 22px;
}

.filter-strip h2 {
  margin: 0;
  font-size: 1.7rem;
}

.tag-row {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tag-row a,
.tag-row .cat-item a {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--ink-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.content-grid,
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.74fr);
  gap: 22px;
}

.single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 22px;
}

.section-block + .section-block {
  margin-top: 8px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.profile-card h2,
.newsletter-card h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: stretch;
  gap: 18px;
}

.lead-story h3 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.08;
}

.lead-story p,
.post-body p,
.collection-card p,
.profile-card p,
.newsletter-card p,
.archive-header p,
.entry-content,
.entry-content p,
.entry-summary {
  margin: 0;
  line-height: 1.75;
}

.story-visual,
.lead-story-thumb {
  position: relative;
  min-height: 240px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.lead-story-thumb img,
.post-thumb img,
.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.glass-orb {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.08) 60%),
    linear-gradient(135deg, rgba(98, 170, 255, 0.76), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.36);
}

.visual-line {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  bottom: 62px;
}

.visual-line.short {
  right: 86px;
  bottom: 34px;
}

.post-row,
.search-result {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  box-shadow: var(--shadow-soft);
}

.post-thumb {
  position: relative;
  min-height: 144px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 56%),
    linear-gradient(135deg, rgba(93, 153, 255, 0.7), rgba(151, 214, 255, 0.3));
  overflow: hidden;
}

.post-thumb img {
  transform: scale(1.06);
  transform-origin: center;
}

.post-thumb.printer {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 56%),
    linear-gradient(135deg, rgba(127, 182, 255, 0.65), rgba(114, 120, 255, 0.28));
}

.post-thumb.repair {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 56%),
    linear-gradient(135deg, rgba(145, 205, 255, 0.58), rgba(189, 218, 255, 0.24));
}

.post-thumb.compare {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 56%),
    linear-gradient(135deg, rgba(124, 146, 255, 0.58), rgba(167, 205, 255, 0.26));
}

.post-body h3,
.collection-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.story-meta {
  margin-top: 16px;
}

.archive-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-chip,
.collection-card,
.profile-card,
.stack-card,
.newsletter-card,
.article-panel,
.pagination-wrap,
.comment-panel,
.archive-header {
  box-shadow: var(--shadow-soft);
}

.archive-chip {
  display: grid;
  gap: 8px;
}

.archive-chip span,
.stack-list span {
  color: var(--ink-soft);
  line-height: 1.6;
}

.collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card a {
  margin-top: 18px;
  font-weight: 700;
}

.profile-card .author-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-card .author-box img {
  width: 72px;
  height: 72px;
  border-radius: 24px;
}

.profile-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-list a {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.ranked-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.ranked-list a:last-child {
  border-bottom: 0;
}

.ranked-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--ink-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.newsletter-card form,
.search-form,
.wp-block-search {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.newsletter-card input,
.search-field,
.wp-block-search__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  color: var(--ink-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 10px 24px rgba(94, 122, 173, 0.08);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  outline: none;
}

.newsletter-card input:focus,
.search-field:focus,
.wp-block-search__input:focus {
  border-color: rgba(63, 130, 255, 0.48);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.archive-header {
  margin-bottom: 18px;
}

.archive-header p {
  margin-top: 14px;
}

.article-panel .entry-header {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.entry-thumb {
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 56%),
    linear-gradient(135deg, rgba(93, 153, 255, 0.7), rgba(151, 214, 255, 0.3));
}

.article-trust-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.article-trust-item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(175%);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
}

.article-trust-item span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-trust-item strong,
.article-trust-item strong a {
  color: var(--ink-strong);
  font-size: 0.96rem;
  line-height: 1.55;
}

.entry-content > * + * {
  margin-top: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.3;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid rgba(63, 130, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.18);
  border-radius: 0 18px 18px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
}

.entry-content pre,
.entry-content code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.entry-content pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(16, 35, 63, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border-bottom: 1px solid rgba(16, 35, 63, 0.12);
}

.entry-footer-links {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.entry-footer-links a,
.tagcloud a,
.post-navigation a,
.page-links .post-page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--ink-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
}

.widget {
  display: grid;
  gap: 12px;
}

.widget-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.widget ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.widget_recent_entries li,
.widget_categories li,
.widget_archive li {
  margin-bottom: 8px;
}

.pagination-wrap {
  margin-top: 18px;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-numbers.current {
  color: #fff;
  background: linear-gradient(135deg, #5f9cff, #4d68ff);
}

.comment-panel .comment-list,
.comment-panel .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-panel .comment-body {
  padding: 16px 0;
  border-bottom: 1px solid rgba(16, 35, 63, 0.12);
}

.comment-panel .comment-meta,
.comment-panel .reply {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.comment-panel .comments-title,
.comment-panel .comment-reply-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.comment-panel .comment-reply-title small {
  margin-left: 10px;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.comment-panel .comment-reply-title a,
.comment-panel .logged-in-as a,
.comment-panel .comment-notes a,
.comment-panel .comment-metadata a,
.comment-panel .reply a {
  color: var(--accent);
}

.comment-panel .comment-notes,
.comment-panel .logged-in-as,
.comment-panel .comment-awaiting-moderation,
.comment-panel .form-allowed-tags {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.comment-panel .comment-respond {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.comment-panel .comment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.comment-panel .comment-form p {
  margin: 0;
}

.comment-panel .comment-form-comment,
.comment-panel .comment-notes,
.comment-panel .logged-in-as,
.comment-panel .comment-form-cookies-consent,
.comment-panel .form-submit,
.comment-panel .comment-reply-title {
  grid-column: 1 / -1;
}

.comment-panel .comment-form label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.comment-panel .comment-form input[type="text"],
.comment-panel .comment-form input[type="email"],
.comment-panel .comment-form input[type="url"],
.comment-panel .comment-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  color: var(--ink-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px rgba(94, 122, 173, 0.08);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.comment-panel .comment-form input[type="text"],
.comment-panel .comment-form input[type="email"],
.comment-panel .comment-form input[type="url"] {
  min-height: 54px;
  padding: 0 16px;
}

.comment-panel .comment-form textarea {
  min-height: 220px;
  padding: 16px 18px;
  resize: vertical;
}

.comment-panel .comment-form input:focus,
.comment-panel .comment-form textarea:focus {
  border-color: rgba(63, 130, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 0 0 4px var(--accent-soft);
}

.comment-panel .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.comment-panel .comment-form-cookies-consent input[type="checkbox"] {
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.comment-panel .comment-form-cookies-consent label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.65;
}

.comment-panel .form-submit {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.comment-panel .form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #5598ff, #4169ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 26px rgba(65, 105, 255, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.comment-panel .form-submit .submit:hover {
  transform: translateY(-1px);
}

.comment-panel .comment-list + .comment-respond {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 24px;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  gap: 16px;
  flex-wrap: wrap;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.alignwide,
.alignfull {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  :root {
    --content-width: min(1260px, calc(100vw - 64px));
  }

  .page-shell {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(240px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 20px 28px;
  }

  .header-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-width: 0;
  }

  .primary-nav {
    min-width: 0;
    justify-content: flex-start;
  }

  .primary-nav .menu {
    gap: 12px 14px;
  }

  .primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18)),
      rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
  }

  .header-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .topline-bar {
    gap: 20px;
    padding: 16px 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.82fr) minmax(310px, 0.78fr);
    gap: 24px;
    align-items: start;
  }

  .hero-card,
  .headline-panel,
  .lead-story,
  .post-row,
  .collection-card,
  .archive-chip,
  .profile-card,
  .stack-card,
  .newsletter-card {
    padding: 30px;
  }

  .hero-card-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
    gap: 24px;
  }

  .hero-mini-grid {
    gap: 20px;
  }

  .hero-mini-card {
    grid-template-columns: 132px minmax(0, 1fr);
    padding: 20px;
  }

  .hero-mini-thumb {
    min-height: 144px;
  }

  .hero-card-thumb {
    min-height: 280px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.72fr);
    gap: 24px;
    align-items: start;
  }

  .main-column,
  .side-column {
    gap: 20px;
  }

  .section-block + .section-block {
    margin-top: 14px;
  }

  .section-heading {
    margin-bottom: 2px;
  }

  .lead-story {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 20px;
  }

  .lead-story-thumb {
    min-height: 280px;
  }

  .post-row,
  .search-result {
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 20px;
  }

  .post-thumb {
    min-height: 168px;
  }

  .archive-strip,
  .collection-grid {
    gap: 16px;
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .content-grid,
  .page-grid,
  .single-grid,
  .hero-mini-grid,
  .hero-card-layout,
  .lead-story,
  .collection-grid,
  .archive-strip {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 0;
  }

  .filter-strip,
  .topline-bar,
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tag-row {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  :root {
    --content-width: min(100vw - 24px, 100%);
  }

  .page-shell {
    padding-top: 12px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .site-header,
  .topline-bar,
  .hero-card,
  .headline-panel,
  .hero-mini-card,
  .lead-story,
  .post-row,
  .collection-card,
  .archive-chip,
  .profile-card,
  .stack-card,
  .newsletter-card,
  .article-panel,
  .site-footer,
  .archive-header,
  .pagination-wrap,
  .comment-panel {
    border-radius: 24px;
  }

  .hero-card,
  .headline-panel,
  .hero-mini-card,
  .lead-story,
  .post-row,
  .collection-card,
  .archive-chip,
  .profile-card,
  .stack-card,
  .newsletter-card,
  .article-panel,
  .archive-header,
  .pagination-wrap,
  .comment-panel {
    padding: 22px;
  }

  .primary-nav,
  .post-row,
  .search-result {
    grid-template-columns: 1fr;
  }

  .hero-card-thumb {
    min-height: 200px;
  }

  .hero-mini-card {
    grid-template-columns: 1fr;
  }

  .hero-mini-thumb {
    min-height: 180px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo img,
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    width: 100%;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 249, 255, 0.68)),
      rgba(255, 255, 255, 0.46);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.76),
      0 28px 56px rgba(85, 116, 160, 0.28);
    backdrop-filter: blur(40px) saturate(190%);
    -webkit-backdrop-filter: blur(40px) saturate(190%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    z-index: 120;
  }

  .site-header.is-menu-open .header-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .primary-nav,
  .header-actions,
  .hero-actions {
    width: 100%;
  }

  .primary-nav {
    display: grid;
    gap: 0;
    justify-content: stretch;
  }

  .primary-nav .menu {
    display: grid;
    gap: 0;
    flex-direction: column;
  }

  .primary-nav li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.26);
  }

  .primary-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-actions a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
  }

  .header-actions .ghost-link {
    color: var(--ink-strong);
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-content: flex-start;
  }

  .header-actions .pill-button {
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #5598ff, #4169ff);
  }

  .header-actions {
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

  .header-actions .ghost-link {
    flex: 0.9 1 0;
    justify-content: center;
  }

  .header-actions .pill-button {
    flex: 1.6 1 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .profile-card h2,
  .newsletter-card h2,
  .lead-story h3,
  .archive-header h1,
  .article-panel h1 {
    font-size: 1.7rem;
  }

  .post-thumb,
  .entry-thumb {
    min-height: 180px;
  }

  .article-trust-panel {
    grid-template-columns: 1fr;
  }

  .hero-card .hero-copy {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-card .hero-article-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 14px;
  }

  .hero-card .hero-article-meta span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topline-links {
    display: grid;
    width: 100%;
  }

  .comment-panel .comment-form {
    grid-template-columns: 1fr;
  }

  .comment-panel .comment-form textarea {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .glass-panel,
  .pill-button,
  .secondary-button,
  .tag-row a,
  .stack-list a {
    animation: settle 720ms ease both;
  }

  .glass-panel:nth-of-type(2n) {
    animation-delay: 70ms;
  }

  .glass-panel:nth-of-type(3n) {
    animation-delay: 110ms;
  }

  .glass-panel:hover {
    transform: translateY(-2px);
    transition: transform 200ms ease;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-card-copy h1 {
	font-size: clamp(2.7rem, 4.4vw, 4.2rem);
}

.hero-mini-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.hero-mini-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	padding: 16px;
}

.hero-mini-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 22px;
}

.hero-mini-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-mini-body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	gap: 8px;
}

.hero-mini-body h3 {
	margin: 0;
	line-height: 1.3;
	font-size: 1.16rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-mini-body p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.65;
}

.hero-mini-body .post-meta {
	margin-top: 2px;
}

@media (max-width: 767px) {
	.hero-card-copy h1 {
		font-size: clamp(1.9rem, 7.2vw, 2.45rem);
	}

	.hero-mini-grid {
		grid-template-columns: 1fr;
	}

	.hero-mini-card {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hero-mini-thumb {
		aspect-ratio: 16 / 9;
	}
}

.hero-mini-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 14px !important;
}

.hero-mini-thumb {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: 16 / 9 !important;
}

.hero-mini-body {
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
	gap: 8px !important;
}

.hero-mini-body h3 {
	margin: 0 !important;
	font-size: 1.16rem !important;
}

.hero-mini-body p {
	margin: 0 !important;
}

@media (max-width: 767px) {
	.hero-mini-card {
		gap: 12px !important;
	}
}

:root {
  --content-width: min(1520px, calc(100vw - 56px));
}

body.admin-bar .page-shell {
  padding-top: 60px;
}

.page-shell {
  padding: 26px 0 52px;
}

.site-header {
  margin-bottom: 28px;
}

.content-grid,
.page-grid,
.single-grid {
  align-items: start;
}

.page-grid,
.single-grid {
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.62fr);
  gap: 26px;
}

.side-column {
  align-self: start;
  align-content: start;
  gap: 16px;
}

.profile-card,
.stack-card,
.newsletter-card {
  padding: 22px 22px 24px;
}

.home .hero-grid {
  grid-template-columns: minmax(0, 1.96fr) minmax(320px, 0.76fr);
  gap: 30px;
  margin-bottom: 0;
}

.home .hero-feature-column {
  gap: 22px;
}

.home .hero-card {
  min-height: clamp(520px, 68vh, 760px);
}

.home .hero-card-layout {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 32px;
}

.home .hero-card-copy h1 {
  font-size: clamp(2.7rem, 4.2vw, 4.8rem);
}

.home .hero-copy {
  max-width: 58rem;
  font-size: 1.04rem;
}

.home .headline-panel {
  height: auto;
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
}

.home .headline-list {
  margin-top: 0;
  gap: 16px;
}

.home .hero-mini-grid {
  gap: 22px;
}

.home .hero-mini-body h3 {
  font-size: 1.28rem !important;
}

.home .hero-mini-body p {
  color: var(--ink-body);
}

.sitemap-layout {
  display: block;
}

.sitemap-panel {
  padding: 32px;
}

.trust-layout {
  display: block;
}

.trust-panel {
  padding: 32px;
}

.trust-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.trust-hero-copy {
  display: grid;
  gap: 14px;
}

.trust-hero-copy h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.trust-stats {
  display: grid;
  gap: 14px;
}

.trust-stat,
.trust-card,
.trust-form-panel {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
}

.trust-stat {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.trust-stat span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-stat strong {
  color: var(--ink-strong);
  font-size: 1.08rem;
  line-height: 1.45;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.trust-card,
.trust-form-panel {
  padding: 22px;
}

.trust-card h2,
.trust-form-panel h2 {
  margin: 0 0 14px;
  color: var(--ink-strong);
  font-size: 1.38rem;
  line-height: 1.12;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-body);
  line-height: 1.8;
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.trust-form-panel {
  margin-top: 22px;
}

.trust-form-panel .wpcf7-form {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}

.trust-form-panel .wpcf7-form p {
  margin: 0;
}

.trust-form-panel .wpcf7-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-form-panel .wpcf7-form input[type="text"],
.trust-form-panel .wpcf7-form input[type="email"],
.trust-form-panel .wpcf7-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  color: var(--ink-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px rgba(94, 122, 173, 0.08);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.trust-form-panel .wpcf7-form input[type="text"],
.trust-form-panel .wpcf7-form input[type="email"] {
  min-height: 54px;
  padding: 0 16px;
}

.trust-form-panel .wpcf7-form textarea {
  min-height: 220px;
  padding: 16px 18px;
  resize: vertical;
}

.trust-form-panel .wpcf7-form input:focus,
.trust-form-panel .wpcf7-form textarea:focus {
  border-color: rgba(63, 130, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 0 0 4px var(--accent-soft);
}

.trust-form-panel .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #5598ff, #4169ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 26px rgba(65, 105, 255, 0.22);
  cursor: pointer;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.sitemap-group {
  display: grid;
  gap: 16px;
}

.sitemap-group h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.5rem;
  line-height: 1.1;
}

.sitemap-posts {
  margin-top: 24px;
}

.sitemap-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.sitemap-list a {
  color: var(--ink-strong);
  line-height: 1.45;
}

.sitemap-list span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  :root {
    --content-width: min(1720px, calc(100vw - 80px));
  }

  .page-shell {
    padding-top: 30px;
    padding-bottom: 60px;
  }

  .site-header {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 34px;
    padding: 22px 30px;
  }

  .header-menu {
    gap: 28px;
  }

  .primary-nav .menu {
    gap: 14px 16px;
  }

  .page-grid,
  .single-grid {
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .sitemap-panel {
    padding: 22px;
  }

  .trust-panel {
    padding: 22px;
  }

  .trust-hero,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-list li {
    grid-template-columns: 1fr;
  }

  .sitemap-list span {
    white-space: normal;
  }
}

@media (max-width: 820px) {
  .content-grid,
  .page-grid,
  .single-grid,
  .hero-grid,
  .home .hero-grid,
  .hero-card-layout,
  .home .hero-card-layout,
  .hero-mini-grid,
  .trust-hero,
  .trust-grid {
    grid-template-columns: 1fr !important;
  }

  .page-grid,
  .single-grid,
  .hero-grid,
  .home .hero-grid {
    gap: 18px;
  }

  .main-column,
  .side-column,
  .hero-feature-column,
  .hero-stack {
    min-width: 0;
    width: 100%;
  }

  .home .hero-card,
  .home .headline-panel {
    min-height: 0;
  }

  .home .hero-card-copy h1 {
    font-size: clamp(1.8rem, 7.6vw, 2.5rem);
  }

  .home .hero-card-thumb,
  .home .hero-mini-thumb,
  .entry-thumb,
  .post-thumb {
    min-height: 180px;
  }

  .side-column {
    order: 2;
  }
}
