
@utility scrollbar-thin { scrollbar-width: thin; }
@utility scrollbar-none { scrollbar-width: none; &::-webkit-scrollbar { display: none; } }
@utility scrollbar-gutter-stable { scrollbar-gutter: stable; }

:root {
  --background: #f3efe6;
  --foreground: #171816;
  --paper: #fffdf8;
  --paper-2: #ebe5d8;
  --ink: #171816;
  --muted-copy: #565a55;
  --rule: #bbb3a5;
  --rule-strong: #171816;
  --cyan: #087b98;
  --cyan-soft: #d6edf2;
  --gold: #a67400;
  --gold-soft: #f2e5bd;
  --card: #fffdf8;
  --card-foreground: #171816;
  --popover: #fffdf8;
  --popover-foreground: #171816;
  --primary: #0a718a;
  --primary-foreground: #ffffff;
  --secondary: #e7e0d4;
  --secondary-foreground: #171816;
  --muted: #e7e0d4;
  --muted-foreground: #666a65;
  --accent: #d6edf2;
  --accent-foreground: #123f4b;
  --destructive: #b42318;
  --border: #ccc4b6;
  --input: #c7c0b3;
  --ring: #168da9;
  --chart-1: #087b98;
  --chart-2: #a67400;
  --chart-3: #365f4c;
  --chart-4: #8d493b;
  --chart-5: #5f5f89;
  --radius: .75rem;
  --sidebar: #fbfaf6;
  --sidebar-foreground: #1b1d1b;
  --sidebar-primary: #0a718a;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #e3eff1;
  --sidebar-accent-foreground: #123f4b;
  --sidebar-border: #ded8ce;
  --sidebar-ring: #168da9;
}

/* PHP/MySQL application additions. Palette stays navy, white and turquoise. */
.brand img { width: 42px; height: 42px; }
.brand span { display: grid; gap: 2px; }
.brand small { font-size: 10px; letter-spacing: .11em; color: var(--muted-foreground); }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.menu-toggle { display: none; }
.hero-author-image { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.hero-author-image img,
.case-portal-cover img,
.listing-cover img,
.content-cover img,
.prose figure img { width: 100%; height: 100%; object-fit: contain; display: block; }
.trust-strip > div { display: grid; gap: 6px; }
.trust-strip span { color: var(--muted-foreground); font-size: 14px; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.listing-page { padding-block: 72px 96px; }
.page-intro { max-width: 880px; margin-bottom: 48px; }
.page-intro h1 { font-family: "Literata Variable", Georgia, serif; font-size: clamp(42px, 7vw, 78px); line-height: 1; margin: 14px 0 20px; }
.page-intro p { font-size: 20px; color: var(--muted-foreground); max-width: 720px; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.listing-card { display: grid; grid-template-columns: minmax(170px, 36%) 1fr; border: 1px solid var(--rule-strong); background: var(--card); min-height: 290px; }
.listing-card > div { padding: 28px; }
.listing-card h2 { font-family: "Literata Variable", Georgia, serif; font-size: clamp(22px, 2.25vw, 30px); line-height: 1.17; margin: 10px 0 14px; font-weight: 580; }
.listing-card p { color: var(--muted-foreground); }
.listing-cover { display: grid; place-items: center; min-height: 250px; padding: 14px; background: var(--cyan-soft); border-right: 1px solid var(--rule-strong); }
.content-page { max-width: 980px; padding-block: 54px 100px; }
.breadcrumbs { margin-bottom: 40px; font-size: 13px; color: var(--muted-foreground); }
.content-head { max-width: 900px; }
.content-head h1 { font-family: "Literata Variable", Georgia, serif; font-size: clamp(39px, 6vw, 68px); line-height: 1.06; letter-spacing: -.035em; font-weight: 580; margin: 16px 0 24px; }
.content-head > p { font-size: 21px; line-height: 1.55; color: var(--muted-foreground); }
.content-cover { margin: 44px 0; border: 1px solid var(--rule-strong); background: var(--card); padding: 16px; }
.content-cover img { max-height: 680px; }
.content-cover figcaption, .prose figcaption { color: var(--muted-foreground); font-size: 13px; margin-top: 12px; }
.prose { max-width: 790px; font-size: 18px; line-height: 1.75; }
.prose h2 { font-family: "Literata Variable", Georgia, serif; font-size: clamp(30px, 4vw, 43px); line-height: 1.16; font-weight: 590; margin: 64px 0 22px; }
.prose h3 { font-size: 25px; line-height: 1.25; margin: 44px 0 16px; }
.prose p, .prose ul, .prose ol { margin: 0 0 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 4px solid var(--cyan); margin: 34px 0; padding: 20px 26px; background: var(--cyan-soft); font-family: "Literata Variable", Georgia, serif; font-size: 22px; }
.prose figure { margin: 36px 0; }
.table-scroll { overflow-x: auto; margin: 30px 0; }
.prose table { width: 100%; border-collapse: collapse; min-width: 620px; }
.prose th, .prose td { padding: 13px 14px; border: 1px solid var(--rule-strong); text-align: left; }
.prose th { background: var(--navy); color: white; }
.preview-banner { position: sticky; top: 0; z-index: 50; padding: 12px 18px; text-align: center; color: white; background: #075d68; font-weight: 700; }
.error-page { min-height: 62vh; padding-block: 96px; }
.error-page h1 { font-family: "Literata Variable", Georgia, serif; font-size: clamp(42px, 7vw, 72px); margin: 14px 0; }

.admin-body { background: #f4f6f8; color: #101a2d; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 28px; color: white; background: #101a2d; }
.admin-header a { color: white; }
.admin-header nav { display: flex; gap: 20px; }
.admin-main { width: min(1240px, calc(100% - 32px)); margin: 36px auto 80px; }
.admin-main > h1 { font-family: "Literata Variable", Georgia, serif; font-weight: 580; font-size: 42px; }
.admin-login { width: min(460px, calc(100% - 32px)); margin: 10vh auto; padding: 34px; background: white; border: 1px solid #cbd5df; }
.admin-login form, .admin-form { display: grid; gap: 18px; }
.admin-form, .admin-table-wrap { background: white; border: 1px solid #cbd5df; padding: 26px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-form label, .admin-login label { display: grid; gap: 7px; font-weight: 650; }
.admin-form input, .admin-form textarea, .admin-form select, .admin-login input { width: 100%; padding: 11px 12px; border: 1px solid #aebccc; border-radius: 3px; font: inherit; background: white; color: #101a2d; }
.admin-form fieldset { display: grid; gap: 18px; border: 1px solid #cbd5df; padding: 20px; }
.admin-actions, .admin-submit { display: flex; gap: 20px; align-items: center; margin: 20px 0; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.admin-table th, .admin-table td { padding: 13px; border-bottom: 1px solid #dbe3e9; text-align: left; vertical-align: top; }
.admin-table small { display: block; color: #667384; margin-top: 4px; }
.status { display: inline-flex; border-radius: 999px; padding: 5px 10px; font-size: 12px; background: #e6edf3; }
.status-published { color: #075d68; background: #d9f3f5; }
.status-scheduled { color: #244d8b; background: #e4efff; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px; border: 1px solid #aebccc; border-bottom: 0; }
.editor-toolbar button { border: 1px solid #aebccc; background: white; padding: 7px 10px; cursor: pointer; }
.visual-editor { min-height: 420px; border: 1px solid #aebccc; padding: 24px; font-size: 17px; line-height: 1.65; overflow: auto; }

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: 1fr; }
  .listing-card { grid-template-columns: minmax(150px, 32%) 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; border: 0; background: transparent; color: inherit; font: inherit; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 22px; background: var(--background); border-bottom: 1px solid var(--rule-strong); align-items: stretch; flex-direction: column; }
  .site-header nav.open { display: flex; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-cover { border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .content-head h1 { font-size: clamp(34px, 10.5vw, 46px); }
  .content-head > p { font-size: 18px; }
  .prose { font-size: 17px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-form, .admin-table-wrap { padding: 16px; }
}

.dark {
  --background: #070b0e;
  --foreground: #f6f7f3;
  --paper: #0c1418;
  --paper-2: #111d22;
  --ink: #f6f7f3;
  --muted-copy: #bdc9cd;
  --rule: #304148;
  --rule-strong: #dbe6e8;
  --cyan: #58ddff;
  --cyan-soft: #102b34;
  --gold: #efc75e;
  --gold-soft: #2d2718;
  --card: #0e171b;
  --card-foreground: #f6f7f3;
  --popover: #0e171b;
  --popover-foreground: #f6f7f3;
  --primary: #58ddff;
  --primary-foreground: #061014;
  --secondary: #172329;
  --secondary-foreground: #f6f7f3;
  --muted: #172329;
  --muted-foreground: #aab9be;
  --accent: #17333d;
  --accent-foreground: #eafaff;
  --destructive: #ff6b68;
  --border: #2b3a40;
  --input: #34464e;
  --ring: #58ddff;
  --chart-1: #58ddff;
  --chart-2: #efc75e;
  --chart-3: #71d6a5;
  --chart-4: #ff9c82;
  --chart-5: #a8a3ff;
  --sidebar: #0a1114;
  --sidebar-foreground: #f4f7f8;
  --sidebar-primary: #58ddff;
  --sidebar-primary-foreground: #061014;
  --sidebar-accent: #152a32;
  --sidebar-accent-foreground: #f4fbfd;
  --sidebar-border: #24363d;
  --sidebar-ring: #58ddff;
}

@theme inline {
  --color-background: var(--background); --color-foreground: var(--foreground);
  --color-card: var(--card); --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover); --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary); --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary); --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted); --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent); --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive); --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring);
  --color-chart-1: var(--chart-1); --color-chart-2: var(--chart-2); --color-chart-3: var(--chart-3); --color-chart-4: var(--chart-4); --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar); --color-sidebar-foreground: var(--sidebar-foreground); --color-sidebar-primary: var(--sidebar-primary); --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); --color-sidebar-accent: var(--sidebar-accent); --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --color-sidebar-border: var(--sidebar-border); --color-sidebar-ring: var(--sidebar-ring);
  --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px);
  --font-sans: "Golos Text Variable", Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.page-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--background) 92%, transparent); backdrop-filter: blur(18px); }
.header-row { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { border-radius: 13px; }
.brand span { display: grid; line-height: 1; }
.brand b { font-size: 18px; letter-spacing: -.03em; }
.brand small { margin-top: 5px; color: var(--muted-copy); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 25px; font-size: 14px; font-weight: 750; }
.desktop-nav a:hover { color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); background: var(--paper); cursor: pointer; }
.theme-toggle svg, .menu-button svg { width: 17px; height: 17px; }
.theme-toggle span { font-size: 12px; font-weight: 800; }
.menu-button { display: none; width: 42px; padding: 0; }
.mobile-nav { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 20px; border: 1px solid var(--cyan); border-radius: 3px; color: var(--primary-foreground); background: var(--primary); font-size: 14px; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease; }
.button svg, .text-link svg { width: 17px; height: 17px; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--cyan) 20%, transparent); }
.button-small { min-height: 40px; padding: 10px 16px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }

.masthead { padding: 24px 0 15px; border-bottom: 4px double var(--rule-strong); text-align: center; }
.masthead > div:first-child { color: var(--muted-copy); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.masthead-logo { margin: 8px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(68px, 10vw, 132px); line-height: .84; letter-spacing: -.065em; }
.brand-decoding { max-width: 800px; margin: 13px auto 15px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(16px, 1.8vw, 21px); font-weight: 700; line-height: 1.35; word-spacing: .09em; }
.masthead-meta { display: flex; justify-content: center; gap: 25px; color: var(--muted-copy); font-size: 12px; font-weight: 700; text-transform: uppercase; }

.hero-news { display: grid; grid-template-columns: 1.72fr .78fr; gap: 0; padding-block: 38px 52px; border-bottom: 2px solid var(--rule-strong); }
.hero-story { padding-right: clamp(35px, 6vw, 78px); }
.eyebrow, .edition-label, .story-index { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero-story h2, .archive-head h1, .article-page h1, .legal-page h1 { margin: 18px 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 7.2vw, 94px); line-height: .99; letter-spacing: -.025em; word-spacing: .08em; text-wrap: balance; }
.hero-story h2 em { color: var(--gold); font-style: italic; font-weight: 500; }
.hero-lead { max-width: 760px; margin: 0; color: var(--muted-copy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.hero-note { margin: 22px 0 0; color: var(--muted-copy); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.front-column { padding-left: 32px; border-left: 1px solid var(--rule); }
.front-column h3 { margin: 17px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 43px); line-height: 1.08; letter-spacing: -.015em; word-spacing: .07em; }
.front-column > p { color: var(--muted-copy); font-size: 15px; }
.front-metrics { margin: 28px 0 0; }
.front-metrics div { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); }
.front-metrics dt { color: var(--gold); font-weight: 900; }
.front-metrics dd { margin: 0; font-size: 14px; font-weight: 750; }

.paper-section { padding-block: 88px; border-bottom: 1px solid var(--rule); }
.section-rule { display: grid; grid-template-columns: .38fr 1.22fr .6fr; gap: 28px; align-items: start; padding-top: 16px; border-top: 4px double var(--rule-strong); }
.section-rule > span { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-rule h2, .about-grid h2, .contact-edition h2, .article-section h2, .article-cta h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4.7vw, 62px); line-height: 1.04; letter-spacing: -.02em; word-spacing: .075em; text-wrap: balance; }
.section-rule > p { margin: 0; color: var(--muted-copy); font-size: 16px; }
.section-rule .text-link { justify-self: end; }

.service-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.service-story { min-height: 330px; display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); transition: background .18s ease; }
.service-story:hover { background: var(--cyan-soft); }
.service-story h3, .case-story h3, .journal-card h3, .archive-card h2, .journal-archive h2 { margin: 28px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; line-height: 1.08; letter-spacing: -.01em; word-spacing: .07em; }
.service-story p, .case-story p, .journal-card p, .archive-card p, .journal-archive p { margin: 0; color: var(--muted-copy); font-size: 15px; }
.service-story > span:last-child { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; color: var(--cyan); font-size: 13px; font-weight: 850; }
.service-story > span svg { width: 15px; }

.case-news-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 30px; margin-top: 43px; }
.case-story { padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.case-story-lead { grid-row: span 2; padding-right: 30px; border-right: 1px solid var(--rule); border-bottom: 0; }
.case-cover { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; margin-bottom: 21px; background: var(--paper-2); }
.case-cover img, .archive-cover img, .article-cover img { object-fit: contain; object-position: center; }
.case-story h3 { margin-top: 13px; font-size: clamp(27px, 3vw, 44px); }
.case-story:not(.case-story-lead) h3 { font-size: 28px; }
.case-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.case-facts div { min-width: 145px; padding-top: 11px; border-top: 1px solid var(--rule); }
.case-facts b { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 29px; }
.case-facts span { color: var(--muted-copy); font-size: 11px; text-transform: uppercase; }

.about-edition { padding-block: 86px; color: #f6f7f3; background: #10191d; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; }
.about-grid .edition-label { color: #58ddff; }
.about-grid p { margin: 0; color: #d2dcdf; font-size: 19px; }
.about-grid blockquote { margin: 38px 0 0; padding: 19px 0 0 25px; border-top: 1px solid #41535a; border-left: 5px solid #efc75e; font-family: Georgia, serif; font-size: 28px; font-style: italic; }

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.journal-card { min-height: 270px; display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); }
.journal-card > span { color: var(--cyan); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.journal-card h3 { margin-top: 30px; }
.journal-more { color: #061014; background: #58ddff; }
.journal-more > span, .journal-more p { color: #12323b; }
.journal-more svg { margin-top: auto; width: 30px; height: 30px; }

.contact-edition { display: grid; grid-template-columns: 1.08fr .92fr; gap: 65px; padding-block: 90px; }
.contact-edition > div > p { max-width: 600px; color: var(--muted-copy); font-size: 18px; }
.contact-form { display: grid; gap: 15px; padding: 28px; border: 1px solid var(--rule); background: var(--paper); }
.contact-form label { display: grid; gap: 7px; color: var(--muted-copy); font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); background: var(--background); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 18%, transparent); }
.contact-form small { color: var(--muted-copy); font-size: 11px; }
.contact-form small a { text-decoration: underline; }
.form-status { margin: 0; color: #a63f32; font-weight: 750; }
.form-status.success { color: #2b825d; }
.site-footer { padding: 31px 0 48px; border-top: 4px double var(--rule-strong); }
.site-footer > div { display: flex; align-items: center; gap: 26px; color: var(--muted-copy); font-size: 13px; }
.site-footer b { color: var(--gold); font-size: 18px; }
.site-footer div > div { display: flex; gap: 17px; margin-left: auto; }

.archive, .article-page, .legal-page { padding-block: 54px 100px; }
.archive-head { max-width: 930px; padding-bottom: 35px; border-bottom: 4px double var(--rule-strong); }
.archive-head p, .article-page header > p { max-width: 790px; color: var(--muted-copy); font-family: Georgia, serif; font-size: 21px; }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 30px; margin-top: 42px; }
.archive-card { padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.archive-card-lead { grid-column: 1/-1; }
.archive-cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 20px; background: var(--paper-2); }
.archive-card > span, .journal-archive article > span { color: var(--cyan); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.archive-card h2 { margin-top: 14px; font-size: 36px; }
.archive-card-lead h2 { font-size: clamp(38px, 5vw, 62px); }
.back-link { display: inline-flex; margin-bottom: 34px; color: var(--cyan); font-size: 14px; font-weight: 850; }
.article-page header { max-width: 980px; }
.article-cover { position: relative; aspect-ratio: 16/9; margin: 42px 0 0; overflow: hidden; background: var(--paper-2); }
.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-bottom: 1px solid var(--rule); }
.case-meta div { padding: 23px; border-right: 1px solid var(--rule); }
.case-meta dt { color: var(--cyan); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.case-meta dd { margin: 8px 0 0; font-weight: 700; }
.article-section { display: grid; grid-template-columns: .32fr 1.18fr; gap: 50px; padding-block: 75px; border-bottom: 1px solid var(--rule); }
.article-section > span { color: var(--cyan); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.article-section p { max-width: 790px; color: var(--muted-copy); font-family: Georgia, serif; font-size: 21px; line-height: 1.65; }
.large-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 35px; }
.large-facts div { padding: 22px 0; border-top: 4px double var(--rule-strong); }
.large-facts b { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 53px; }
.large-facts span { color: var(--muted-copy); font-size: 12px; text-transform: uppercase; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 65px; padding: 35px; color: #061014; background: #58ddff; }
.article-cta h2 { max-width: 700px; }
.article-cta .button { color: #f6f7f3; background: #10191d; border-color: #10191d; }
.journal-archive { display: grid; grid-template-columns: 1fr 1fr; margin-top: 42px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.journal-archive article { min-height: 310px; display: flex; flex-direction: column; padding: 27px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); }
.journal-archive .text-link { margin-top: auto; padding-top: 24px; }
.journal-article > article { max-width: 790px; margin: 55px auto; }
.journal-article > article p, .legal-page > p { color: var(--muted-copy); font-family: Georgia, serif; font-size: 21px; line-height: 1.75; }
.legal-page { max-width: 900px; }
.legal-page > a { display: inline-block; margin-bottom: 35px; color: var(--cyan); font-weight: 800; }
.legal-page .edition-label { display: block; }
.legal-page h2 { margin: 48px 0 14px; font-family: Georgia, serif; font-size: 34px; letter-spacing: -.01em; word-spacing: .07em; }
.legal-page small { display: block; margin-top: 45px; padding: 20px; border: 1px solid var(--rule); color: var(--muted-copy); }

/* Admin */
.admin-topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--border); background: var(--card); }
.admin-topbar > div { display: flex; align-items: center; gap: 7px; color: var(--muted-foreground); font-size: 13px; font-weight: 750; }
.admin-main { min-height: calc(100vh - 64px); padding: 32px; background: color-mix(in srgb, var(--background) 85%, var(--card)); }
.admin-stack { display: grid; gap: 24px; width: min(1180px, 100%); margin: 0 auto; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.admin-heading span, .admin-kicker { color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.admin-heading h1 { margin: 7px 0 5px; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.025em; word-spacing: .06em; }
.admin-heading p { margin: 0; color: var(--muted-foreground); }
.admin-outline-button { display: inline-flex; align-items: center; gap: 8px; min-height: 41px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-size: 13px; font-weight: 800; }
.admin-outline-button svg { width: 16px; }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-stat { display: grid; min-height: 180px; padding: 21px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.admin-stat svg { color: var(--primary); }
.admin-stat span { margin-top: 22px; color: var(--muted-foreground); font-size: 13px; }
.admin-stat b { font-size: 42px; line-height: 1; }
.admin-stat small { align-self: end; color: var(--primary); font-weight: 750; }
.admin-panel, .admin-form-section { padding: 25px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: 0 12px 40px rgb(0 0 0 / 4%); }
.admin-panel h2 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.02em; word-spacing: .05em; }
.admin-checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.admin-checklist p { margin: 0; padding: 13px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted-foreground); font-size: 13px; }
.admin-checklist b { margin-right: 8px; color: var(--primary); }
.admin-editor { display: grid; gap: 18px; }
.admin-form-section { display: grid; grid-template-columns: .36fr 1.14fr; gap: 32px; }
.admin-form-section > header { display: flex; gap: 14px; }
.admin-form-section > header > span { color: var(--primary); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.admin-form-section h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; word-spacing: .06em; }
.admin-form-section header p { margin: 0; color: var(--muted-foreground); font-size: 13px; }
.admin-fields { display: grid; gap: 16px; }
.admin-field { display: grid; gap: 7px; }
.admin-field > span { color: var(--muted-foreground); font-size: 12px; font-weight: 800; }
.admin-two, .admin-three, .admin-four { display: grid; gap: 13px; }
.admin-two { grid-template-columns: 1fr 1fr; }
.admin-three { grid-template-columns: repeat(3, 1fr); }
.admin-four { grid-template-columns: repeat(4, 1fr); }
.admin-check { display: flex; align-items: center; gap: 9px; align-self: end; min-height: 37px; color: var(--muted-foreground); font-size: 13px; font-weight: 750; }
.admin-savebar { position: sticky; bottom: 14px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--card) 92%, transparent); box-shadow: 0 18px 45px rgb(0 0 0 / 12%); backdrop-filter: blur(16px); }
.admin-savebar span { color: var(--muted-foreground); font-size: 12px; }
.admin-table-link { color: var(--primary); font-weight: 750; }
.admin-menu-editor { display: grid; gap: 9px; }
.admin-menu-row { display: grid; grid-template-columns: 35px .65fr 1fr 110px; gap: 10px; align-items: center; }
.admin-menu-row > span { color: var(--primary); font-size: 12px; font-weight: 900; }
.admin-menu-row label { display: flex; align-items: center; gap: 7px; color: var(--muted-foreground); font-size: 12px; }
.admin-empty { padding: 60px 20px; text-align: center; }
.admin-empty b { font-size: 21px; }
.admin-empty p { color: var(--muted-foreground); }

/* Branded admin login */
.admin-login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; color: #f6f7f3; background: #071014; }
.admin-login-brand { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 6vw, 82px); overflow: hidden; border-right: 1px solid #24363d; background: radial-gradient(circle at 90% 10%, rgba(88,221,255,.16), transparent 36%), linear-gradient(145deg,#10232a,#071014 68%); }
.admin-login-logo { display: flex; align-items: center; gap: 13px; width: fit-content; }
.admin-login-logo span { display: grid; line-height: 1; }
.admin-login-logo b { font-size: 22px; }
.admin-login-logo small { margin-top: 6px; color: #9fb2b8; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-login-brand > div { max-width: 690px; }
.admin-login-brand > div > p { color: #58ddff; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.admin-login-brand h1 { margin: 20px 0 22px; font-family: Georgia, serif; font-size: clamp(52px, 6.5vw, 90px); line-height: .98; letter-spacing: -.02em; word-spacing: .085em; }
.admin-login-brand > div > span { max-width: 620px; color: #bdcbd0; font-size: 18px; }
.admin-login-brand > small { color: #84979e; }
.admin-login-form { display: grid; place-items: center; padding: 30px; background: #0a1216; }
.login-card { width: min(460px,100%); padding: 38px; border: 1px solid #30454d; border-radius: 24px; background: #0f1b20; box-shadow: 0 35px 90px rgba(0,0,0,.34); }
.login-lock { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 26px; border: 1px solid #35626f; border-radius: 17px; color: #58ddff; background: #122a33; }
.login-card h2 { margin: 10px 0 12px; font-size: 37px; letter-spacing: -.02em; word-spacing: .07em; }
.login-card > p { color: #b5c4c9; }
.login-button { width: 100%; margin-top: 18px; color: #061014; background: #58ddff; }
.login-card > small { display: block; margin-top: 17px; color: #80939a; text-align: center; }

@media (max-width: 1000px) {
  .desktop-nav, .desktop-cta { display: none; }
  .menu-button { display: inline-flex; }
  .mobile-nav { display: grid; gap: 18px; padding: 22px 24px 26px; border-top: 1px solid var(--rule); background: var(--background); }
  .mobile-nav a:not(.button) { font-weight: 800; }
  .hero-news, .contact-edition { grid-template-columns: 1fr; }
  .front-column { margin-top: 42px; padding: 35px 0 0; border-top: 1px solid var(--rule); border-left: 0; }
  .section-rule { grid-template-columns: .35fr 1.15fr; }
  .section-rule > p, .section-rule .text-link { grid-column: 2; justify-self: start; }
  .service-news-grid { grid-template-columns: 1fr 1fr; }
  .case-news-grid { grid-template-columns: 1fr; }
  .case-story-lead { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .admin-dashboard-grid { grid-template-columns: 1fr 1fr; }
  .admin-form-section { grid-template-columns: 1fr; }
  .admin-login-page { grid-template-columns: 1fr; }
  .admin-login-brand { min-height: 48vh; border-right: 0; border-bottom: 1px solid #24363d; }
}

@media (max-width: 680px) {
  .page-shell { width: min(1240px, calc(100% - 30px)); }
  .header-row { min-height: 66px; }
  .brand small, .theme-toggle span { display: none; }
  .masthead { padding-top: 18px; }
  .masthead-logo { font-size: 66px; }
  .masthead-meta { gap: 11px; font-size: 9px; }
  .hero-news { padding-block: 30px 42px; }
  .hero-story { padding-right: 0; }
  .hero-story h2, .archive-head h1, .article-page h1, .legal-page h1 { font-size: clamp(42px, 13.4vw, 62px); line-height: 1.03; letter-spacing: -.012em; word-spacing: .12em; }
  .section-rule { grid-template-columns: 1fr; gap: 14px; }
  .section-rule > p, .section-rule .text-link { grid-column: 1; }
  .paper-section { padding-block: 66px; }
  .section-rule h2, .about-grid h2, .contact-edition h2, .article-section h2, .article-cta h2 { font-size: 38px; line-height: 1.08; letter-spacing: -.01em; word-spacing: .12em; }
  .service-news-grid, .journal-grid, .archive-grid, .journal-archive { grid-template-columns: 1fr; }
  .service-story { min-height: 250px; }
  .about-edition { padding-block: 65px; }
  .contact-edition { gap: 32px; padding-block: 66px; }
  .contact-form { padding: 20px; }
  .site-footer > div { align-items: flex-start; flex-direction: column; }
  .site-footer div > div { margin-left: 0; }
  .archive-card-lead { grid-column: auto; }
  .archive-card h2, .archive-card-lead h2 { font-size: 34px; word-spacing: .1em; }
  .case-meta, .large-facts { grid-template-columns: 1fr; }
  .case-meta div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .article-section { grid-template-columns: 1fr; gap: 18px; padding-block: 55px; }
  .article-cta { align-items: flex-start; flex-direction: column; padding: 25px; }
  .admin-main { padding: 20px 14px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-dashboard-grid, .admin-checklist, .admin-two, .admin-three, .admin-four { grid-template-columns: 1fr; }
  .admin-menu-row { grid-template-columns: 28px 1fr; }
  .admin-menu-row input:nth-of-type(2), .admin-menu-row label { grid-column: 2; }
  .admin-savebar { align-items: stretch; flex-direction: column; }
  .admin-login-brand { min-height: 55vh; padding: 30px 24px; }
  .admin-login-brand h1 { font-size: 48px; word-spacing: .12em; }
  .admin-login-form { padding: 24px 15px; }
  .login-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; } }

/* Public site base */
:root {
  --background: #f7f8f6;
  --foreground: #0a3048;
  --paper: #ffffff;
  --paper-2: #edf3f2;
  --ink: #0a3048;
  --muted-copy: #496272;
  --rule: #dce5e4;
  --rule-strong: #183e55;
  --cyan: #168f93;
  --cyan-soft: #e5f4f3;
  --gold: #ad7f3f;
  --gold-soft: #f5ead8;
  --card: #ffffff;
  --card-foreground: #0a3048;
  --popover: #ffffff;
  --popover-foreground: #0a3048;
  --primary: #168f93;
  --primary-foreground: #ffffff;
  --secondary: #edf3f2;
  --secondary-foreground: #0a3048;
  --muted: #edf3f2;
  --muted-foreground: #587080;
  --accent: #e5f4f3;
  --accent-foreground: #0a5d61;
  --border: #dce5e4;
  --input: #cbd8d7;
  --ring: #168f93;
  --radius: 1rem;
  --sidebar: #f4f8f7;
  --sidebar-foreground: #0a3048;
  --sidebar-primary: #168f93;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #e5f4f3;
  --sidebar-accent-foreground: #0a5d61;
  --sidebar-border: #dce5e4;
  --sidebar-ring: #168f93;
}

.dark {
  --background: #07141c;
  --foreground: #f2f7f7;
  --paper: #0d202a;
  --paper-2: #122b36;
  --ink: #f2f7f7;
  --muted-copy: #b7c8cd;
  --rule: #29444e;
  --rule-strong: #d5e5e8;
  --cyan: #54d2cf;
  --cyan-soft: #12363d;
  --gold: #e7bd78;
  --gold-soft: #3b2f1d;
  --card: #0d202a;
  --card-foreground: #f2f7f7;
  --popover: #0d202a;
  --popover-foreground: #f2f7f7;
  --primary: #35b7b6;
  --primary-foreground: #041319;
  --secondary: #15303b;
  --secondary-foreground: #f2f7f7;
  --muted: #15303b;
  --muted-foreground: #aec0c6;
  --accent: #173e45;
  --accent-foreground: #eafafa;
  --border: #29444e;
  --input: #36535d;
  --ring: #54d2cf;
  --sidebar: #091a22;
  --sidebar-foreground: #f2f7f7;
  --sidebar-primary: #54d2cf;
  --sidebar-primary-foreground: #041319;
  --sidebar-accent: #15343e;
  --sidebar-accent-foreground: #f2f7f7;
  --sidebar-border: #29444e;
  --sidebar-ring: #54d2cf;
}

body { color: var(--ink); background: var(--background); font-family: "Golos Text Variable", Arial, Helvetica, sans-serif; font-optical-sizing: auto; }
h1, h2, h3, blockquote {
  font-family: "Golos Text Variable", Arial, Helvetica, sans-serif !important;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -.018em;
  word-spacing: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: pretty;
}

.site-header { border-color: var(--rule); background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 8px 30px rgb(19 55 69 / 5%); }
.header-row { min-height: 78px; }
.brand { padding-right: 24px; border-right: 1px solid var(--rule); }
.brand img { border-radius: 12px; box-shadow: 0 8px 22px rgb(18 126 130 / 12%); }
.brand b { color: var(--ink); font-size: 20px; letter-spacing: -.02em; }
.brand small { color: var(--muted-copy); letter-spacing: .08em; }
.desktop-nav { color: var(--ink); gap: clamp(17px, 2vw, 28px); font-size: 13px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 750; white-space: nowrap; }
.header-phone:hover { color: var(--cyan); }
.header-phone svg, .mobile-phone svg { width: 16px; height: 16px; color: var(--cyan); }
.mobile-phone { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); font-weight: 800; }
.theme-toggle, .menu-button { min-height: 42px; border-color: var(--rule); border-radius: 12px; background: var(--paper); }
.button { min-height: 50px; padding: 13px 21px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #13878c, #1aa5a6); box-shadow: 0 12px 26px rgb(18 133 138 / 20%); }
.button:hover { box-shadow: 0 16px 34px rgb(18 133 138 / 28%); }
.button-small { min-height: 44px; padding: 10px 17px; }
.text-link { color: var(--cyan); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent); }

.editorial-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 92px;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--cyan) 21%, transparent), transparent 28%),
    radial-gradient(circle at 63% 105%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 32%),
    linear-gradient(115deg, var(--paper) 0%, var(--background) 58%, var(--cyan-soft) 100%);
}
.editorial-hero::before { content: ""; position: absolute; inset: 0; opacity: .34; pointer-events: none; background-image: linear-gradient(color-mix(in srgb, var(--rule) 45%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--rule) 45%, transparent) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 65%, #000); }
.hero-portal-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .72fr); gap: clamp(55px, 7vw, 105px); align-items: start; }
.hero-portal-copy { max-width: 780px; }
.eyebrow, .edition-label { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-portal-copy > .eyebrow { font-size: 14px; font-weight: 650; letter-spacing: .035em; text-transform: none; }
.hero-portal-copy h1 { margin: 18px 0 24px; font-size: clamp(36px, 3.25vw, 46px); font-weight: 500; line-height: 1.2; letter-spacing: -.022em; text-wrap: pretty; }
.hero-portal-copy h1 em { color: var(--cyan); font-style: normal; }
.hero-portal-lead { max-width: 720px; margin: 0; color: var(--muted-copy); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; }
.hero-checks { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); font-size: 16px; font-weight: 650; }
.hero-checks svg { flex: 0 0 23px; width: 23px; height: 23px; padding: 4px; border-radius: 50%; color: #fff; background: var(--cyan); }
.hero-actions { margin-top: 32px; }
.hero-note { margin-top: 24px; letter-spacing: .06em; }

.hero-diagnostic-card { padding: 34px; border: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); border-radius: 24px; background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 30px 80px rgb(24 55 69 / 16%); backdrop-filter: blur(18px); }
.hero-diagnostic-card h2 { margin: 13px 0 12px; font-size: clamp(25px, 2vw, 30px); font-weight: 500; line-height: 1.25; }
.hero-diagnostic-card > p { margin: 0; color: var(--muted-copy); font-size: 16px; }
.diagnostic-list { display: grid; gap: 12px; margin: 26px 0; }
.diagnostic-list > div { display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--background); }
.diagnostic-list > div > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; color: var(--cyan); background: var(--cyan-soft); }
.diagnostic-list svg { width: 24px; }
.diagnostic-list p { display: grid; margin: 0; color: var(--muted-copy); font-size: 13px; line-height: 1.35; }
.diagnostic-list b { color: var(--ink); font-size: 15px; }
.diagnostic-button { width: 100%; }
.hero-diagnostic-card > small { display: block; margin-top: 13px; color: var(--muted-copy); text-align: center; }

.brand-meaning { position: relative; z-index: 3; margin-top: -34px; padding: 20px 28px; border: 1px solid color-mix(in srgb, var(--cyan) 25%, var(--rule)); border-radius: 18px; color: var(--ink); background: linear-gradient(135deg, var(--cyan-soft), var(--paper) 58%, var(--gold-soft)); box-shadow: 0 20px 45px rgb(12 79 83 / 12%); font-size: clamp(16px, 1.45vw, 19px); font-weight: 500; line-height: 1.5; text-align: center; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); box-shadow: 0 16px 45px rgb(19 55 69 / 6%); }
.trust-strip > div { display: grid; grid-template-columns: 45px 1fr; gap: 14px; align-items: center; min-height: 118px; padding: 23px; border-right: 1px solid var(--rule); }
.trust-strip > div:last-child { border-right: 0; }
.trust-strip svg { width: 34px; height: 34px; color: var(--cyan); }
.trust-strip p { display: grid; gap: 3px; margin: 0; }
.trust-strip b { font-size: 18px; font-weight: 600; }
.trust-strip span { color: var(--muted-copy); font-size: 13px; }

.business-section { padding-block: 104px; }
.portal-section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(35px, 7vw, 90px); align-items: end; margin-bottom: 42px; }
.portal-section-head h2, .about-portal h2, .contact-portal h2 { max-width: 820px; margin: 11px 0 0; font-size: clamp(29px, 2.75vw, 38px); font-weight: 500; line-height: 1.24; text-wrap: pretty; }
.portal-section-head > p { margin: 0; color: var(--muted-copy); font-size: 17px; }
.portal-section-head > .text-link { justify-self: end; align-self: center; }

.service-portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-portal-card { min-height: 320px; display: flex; flex-direction: column; padding: 27px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); box-shadow: 0 10px 34px rgb(18 54 68 / 5%); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-portal-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--cyan) 55%, var(--rule)); box-shadow: 0 22px 46px rgb(18 126 130 / 12%); }
.service-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border-radius: 15px; color: var(--cyan); background: var(--cyan-soft); }
.service-icon svg { width: 28px; height: 28px; }
.service-portal-card small { color: var(--gold); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.service-portal-card h3 { margin: 14px 0 12px; font-size: 23px; font-weight: 500; line-height: 1.3; }
.service-portal-card p { margin: 0; color: var(--muted-copy); font-size: 15px; }
.service-portal-card strong, .material-card strong { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 20px; color: var(--cyan); font-size: 13px; }
.service-portal-card strong svg, .material-card strong svg { width: 16px; }

.cases-portal-section { padding-block: 100px; background: color-mix(in srgb, var(--cyan-soft) 58%, var(--background)); }
.case-portal-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.case-portal-card { overflow: hidden; border: 1px solid var(--rule); border-radius: 20px; background: var(--paper); box-shadow: 0 18px 45px rgb(17 58 72 / 7%); }
.case-portal-featured { grid-row: span 2; }
.case-portal-cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--paper-2); }
.case-portal-card:not(.case-portal-featured) .case-portal-cover { aspect-ratio: 16/8; }
.case-portal-cover img { object-fit: contain; object-position: center; }
.case-portal-body { padding: 27px; }
.case-portal-body > span { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.case-portal-body h3 { margin: 13px 0; font-size: clamp(25px, 2.15vw, 31px); font-weight: 500; line-height: 1.27; }
.case-portal-card:not(.case-portal-featured) .case-portal-body h3 { font-size: 23px; }
.case-portal-body > p { margin: 0; color: var(--muted-copy); }
.case-facts { gap: 18px; }
.case-facts div { min-width: 135px; border-color: var(--rule); }
.case-facts b { color: var(--cyan); font-family: "Golos Text Variable", Arial, sans-serif; font-size: 27px; }
.case-facts span { color: var(--muted-copy); }
.case-portal-body > .text-link { margin-top: 22px; }

.about-portal { padding-block: 100px; color: var(--ink); border-block: 1px solid var(--rule); background: radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 30%), linear-gradient(135deg, var(--paper), var(--cyan-soft)); }
.about-portal-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(45px, 8vw, 110px); }
.about-portal .eyebrow { color: var(--gold); }
.about-portal p { margin: 0; color: var(--muted-copy); font-size: 19px; line-height: 1.7; }
.about-portal blockquote { margin: 34px 0 0; padding: 22px 0 0 24px; border-top: 1px solid var(--rule); border-left: 4px solid var(--gold); font-size: 22px; font-style: italic; font-weight: 450; line-height: 1.5; }

.material-portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.material-card { min-height: 300px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.material-card > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 25px; border-radius: 13px; color: var(--cyan); background: var(--cyan-soft); }
.material-card > span svg { width: 22px; }
.material-card small { color: var(--gold); font-weight: 850; text-transform: uppercase; }
.material-card h3 { margin: 12px 0; font-size: 21px; font-weight: 500; line-height: 1.32; }
.material-card p { margin: 0; color: var(--muted-copy); font-size: 14px; }
.material-card-all { color: var(--ink); border-color: color-mix(in srgb, var(--cyan) 32%, var(--rule)); background: linear-gradient(145deg, var(--cyan-soft), var(--paper)); }
.material-card-all > span { color: #ffffff; background: var(--cyan); }
.material-card-all small { color: var(--gold); }

.contact-portal { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(45px, 7vw, 90px); padding-block: 105px; }
.contact-portal > div > p { max-width: 620px; color: var(--muted-copy); font-size: 18px; }
.contact-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 23px; color: var(--cyan); font-size: 20px; font-weight: 800; }
.contact-phone svg { width: 21px; height: 21px; }
.contact-phone:hover { color: var(--ink); }
.contact-promise { display: flex; gap: 10px; align-items: center; margin-top: 28px; color: var(--ink); font-weight: 750; }
.contact-promise svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; color: #fff; background: var(--cyan); }
.contact-form { padding: 30px; border-color: var(--rule); border-radius: 20px; box-shadow: 0 18px 50px rgb(18 54 68 / 8%); }
.contact-form input, .contact-form textarea { border-color: var(--input); border-radius: 10px; background: var(--background); }
.site-footer { border-top: 1px solid var(--rule); background: var(--paper); }
.site-footer b { color: var(--cyan); }
.site-footer div > div { flex-wrap: wrap; }

/* Supporting pages */
.archive, .article-page, .legal-page { padding-block: 70px 110px; }
.archive-head { max-width: 900px; padding: 0; border: 0; }
.archive-head h1, .article-page h1, .legal-page h1 { margin: 14px 0 22px; color: var(--ink); font-size: clamp(33px, 3vw, 40px); font-weight: 500; line-height: 1.25; }
.archive-head p, .article-page header > p { color: var(--muted-copy); font-family: "Golos Text Variable", Arial, sans-serif; font-size: 19px; line-height: 1.6; }
.archive-grid { gap: 22px; margin-top: 46px; }
.archive-card { overflow: hidden; padding: 0 0 28px; border: 1px solid var(--rule); border-radius: 20px; background: var(--paper); box-shadow: 0 14px 40px rgb(18 54 68 / 6%); }
.archive-cover { margin: 0 0 25px; }
.archive-card > span, .archive-card > h2, .archive-card > p, .archive-card > .text-link { margin-left: 26px; margin-right: 26px; }
.archive-card h2, .archive-card-lead h2 { font-size: clamp(25px, 2.35vw, 32px); font-weight: 500; line-height: 1.28; }
.journal-archive { gap: 16px; border: 0; }
.journal-archive article { min-height: 320px; border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 12px 34px rgb(18 54 68 / 5%); }
.article-section { border-color: var(--rule); }
.article-section h2, .article-cta h2 { font-size: clamp(25px, 2.25vw, 31px); font-weight: 500; line-height: 1.3; }
.article-section p, .journal-article > article p, .legal-page > p { color: var(--muted-copy); font-family: "Golos Text Variable", Arial, sans-serif; font-size: 18px; }
.article-cta { border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--rule)); border-radius: 20px; color: var(--ink); background: linear-gradient(135deg, var(--cyan-soft), var(--paper)); }
.article-cta .button { color: #ffffff; background: linear-gradient(135deg, #13878c, #1aa5a6); }

/* Detailed case */
.case-study { padding: 58px 0 110px; }
.case-study-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .55fr); gap: 55px; align-items: end; padding: 25px 0 48px; }
.case-study-hero h1 { margin: 16px 0 22px; font-size: clamp(33px, 3vw, 40px); font-weight: 500; line-height: 1.25; text-wrap: pretty; }
.case-study-hero > div:first-child > p { max-width: 820px; margin: 0; color: var(--muted-copy); font-size: 20px; line-height: 1.55; }
.case-study-facts { display: grid; gap: 10px; }
.case-study-facts div { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); }
.case-study-facts b { display: block; color: var(--cyan); font-size: 31px; line-height: 1; }
.case-study-facts span { display: block; margin-top: 6px; color: var(--muted-copy); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.case-study-cover { position: relative; aspect-ratio: 16/7.5; overflow: hidden; border-radius: 24px; background: var(--paper-2); box-shadow: 0 28px 65px rgb(18 54 68 / 12%); }
.case-study-cover img { object-fit: contain; object-position: center; }
.case-cover-dark { display: none; }
.dark .case-cover-light { display: none; }
.dark .case-cover-dark { display: block; }
.case-study-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 0; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.case-study-meta div { padding: 22px; border-right: 1px solid var(--rule); }
.case-study-meta div:last-child { border-right: 0; }
.case-study-meta dt { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.case-study-meta dd { margin: 7px 0 0; font-weight: 750; }
.case-study-section { display: grid; grid-template-columns: .34fr 1fr; gap: 60px; padding: 78px 0; border-bottom: 1px solid var(--rule); }
.case-study-section > span { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.case-study-section h2, .case-result-panel h2 { margin: 0 0 20px; font-size: clamp(25px, 2.25vw, 31px); font-weight: 500; line-height: 1.3; }
.case-study-section p { max-width: 840px; color: var(--muted-copy); font-size: 18px; line-height: 1.75; }
.case-task-list { display: grid; gap: 11px; max-width: 850px; margin: 28px 0 0; padding: 0; list-style: none; }
.case-task-list li { display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.case-task-list svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; background: var(--cyan); }
.research-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 30px; }
.research-facts div { min-height: 135px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); }
.research-facts b { color: var(--cyan); font-size: 31px; line-height: 1; }
.research-facts span { margin-top: 8px; color: var(--muted-copy); font-size: 11px; font-weight: 800; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; }
.case-result-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; margin-top: 78px; padding: clamp(28px, 5vw, 58px); border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--rule)); border-radius: 24px; color: var(--ink); background: radial-gradient(circle at 95% 5%, color-mix(in srgb, var(--cyan) 20%, transparent), transparent 35%), linear-gradient(135deg, var(--paper), var(--cyan-soft)); }
.case-result-panel p { color: var(--muted-copy); font-size: 18px; line-height: 1.65; }
.case-result-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.case-result-numbers div { padding: 20px; border: 1px solid var(--rule); border-radius: 15px; background: var(--paper); }
.case-result-numbers b { display: block; color: var(--cyan); font-size: 34px; }
.case-result-numbers span { color: var(--muted-copy); font-size: 11px; text-transform: uppercase; }
.admin-save-actions { display: flex; align-items: center; gap: 10px; }
.admin-subheading { margin: 10px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 18px; }

.dark .brand-meaning { color: #e9f5f5; border-color: #29444e; background: linear-gradient(135deg, #123640, #0d202a); box-shadow: 0 20px 45px rgb(0 0 0 / 24%); }
.dark .about-portal { color: #eff8f8; border-color: #29444e; background: radial-gradient(circle at 92% 10%, rgb(46 165 166 / 22%), transparent 30%), #0a2f41; }
.dark .about-portal p { color: #c5d9de; }
.dark .about-portal blockquote { border-top-color: rgb(255 255 255 / 18%); border-left-color: #e7bd78; }
.dark .material-card-all { color: #eff8f8; border-color: #29444e; background: linear-gradient(145deg, #123640, #0d202a); }
.dark .article-cta, .dark .case-result-panel { color: #eff8f8; border-color: #29444e; background: radial-gradient(circle at 95% 5%, rgb(56 190 188 / 24%), transparent 35%), #0b3445; }
.dark .case-result-panel p, .dark .case-result-numbers span { color: #c7dcdf; }
.dark .case-result-numbers div { border-color: rgb(255 255 255 / 15%); background: rgb(255 255 255 / 5%); }
.dark .case-result-numbers b { color: #54d2cf; }

@media (max-width: 1180px) {
  .header-phone { width: 42px; justify-content: center; }
  .header-phone span { display: none; }
}

@media (max-width: 1050px) {
  .hero-portal-grid { grid-template-columns: 1fr; }
  .hero-portal-copy { max-width: 850px; }
  .hero-diagnostic-card { max-width: 760px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .service-portal-grid { grid-template-columns: 1fr 1fr; }
  .material-portal-grid { grid-template-columns: 1fr 1fr; }
  .case-study-hero { grid-template-columns: 1fr; }
  .case-study-facts { grid-template-columns: repeat(3, 1fr); }
  .case-study-meta { grid-template-columns: 1fr 1fr; }
  .case-study-meta div:nth-child(2) { border-right: 0; }
  .case-study-meta div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

@media (max-width: 760px) {
  .brand { padding-right: 0; border-right: 0; }
  .editorial-hero { padding: 38px 0 72px; }
  .hero-portal-copy h1 { font-size: clamp(30px, 8.2vw, 34px); line-height: 1.24; }
  .hero-diagnostic-card { padding: 25px 20px; border-radius: 18px; }
  .brand-meaning { margin-top: -25px; padding: 17px 18px; border-radius: 15px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .business-section, .cases-portal-section, .about-portal { padding-block: 72px; }
  .portal-section-head, .about-portal-grid, .contact-portal { grid-template-columns: 1fr; gap: 25px; }
  .portal-section-head h2, .about-portal h2, .contact-portal h2 { font-size: 27px; line-height: 1.3; }
  .portal-section-head > .text-link { justify-self: start; }
  .service-portal-grid, .case-portal-grid, .material-portal-grid { grid-template-columns: 1fr; }
  .service-portal-card { min-height: 280px; }
  .case-portal-featured { grid-row: auto; }
  .case-portal-card:not(.case-portal-featured) .case-portal-cover { aspect-ratio: 16/9; }
  .contact-portal { padding-block: 72px; }
  .archive-head h1, .article-page h1, .legal-page h1, .case-study-hero h1 { font-size: 29px; line-height: 1.3; }
  .archive-card > span, .archive-card > h2, .archive-card > p, .archive-card > .text-link { margin-left: 20px; margin-right: 20px; }
  .case-study { padding-top: 38px; }
  .case-study-hero { gap: 30px; }
  .case-study-facts { grid-template-columns: 1fr; }
  .case-study-cover { aspect-ratio: 4/3; border-radius: 17px; }
  .case-study-meta { grid-template-columns: 1fr; }
  .case-study-meta div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .case-study-meta div:last-child { border-bottom: 0; }
  .case-study-section { grid-template-columns: 1fr; gap: 17px; padding: 58px 0; }
  .case-study-section h2, .case-result-panel h2 { font-size: 25px; line-height: 1.34; }
  .research-facts { grid-template-columns: 1fr 1fr; }
  .case-result-panel { grid-template-columns: 1fr; gap: 30px; margin-top: 58px; }
  .case-result-numbers { grid-template-columns: 1fr; }
  .admin-save-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 460px) {
  .research-facts { grid-template-columns: 1fr; }
}

/* Materials and long-form articles */
.journal-library { padding-block: 72px 110px; }
.journal-library-head { max-width: 970px; }
.journal-feature { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); min-height: 520px; margin-top: 48px; overflow: hidden; border: 1px solid var(--rule); border-radius: 22px; background: var(--paper); box-shadow: 0 18px 48px rgb(18 54 68 / 7%); }
.journal-feature-cover { position: relative; min-height: 100%; background: linear-gradient(145deg, var(--cyan-soft), var(--paper-2)); }
.journal-feature-cover img { object-fit: contain; object-position: center; }
.journal-feature-body { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 52px); }
.journal-feature-body > span, .journal-list-grid article > span, .other-materials-grid article > span { color: var(--gold); font-size: 12px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.journal-feature-body h2 { margin: 18px 0 16px; font-size: clamp(25px, 2.3vw, 31px); font-weight: 500; line-height: 1.3; }
.journal-feature-body > p { margin: 0; color: var(--muted-copy); font-size: 17px; line-height: 1.65; }
.journal-card-meta { display: flex; gap: 8px; align-items: center; margin: 24px 0; color: var(--muted-copy); font-size: 13px; font-weight: 750; }
.journal-card-meta svg { width: 17px; height: 17px; color: var(--cyan); }
.journal-feature-body .button { margin-top: auto; }
.journal-list-section { padding-top: 92px; }
.journal-list-section > header h2, .other-materials > header h2 { margin: 10px 0 0; font-size: clamp(27px, 2.5vw, 34px); font-weight: 500; line-height: 1.27; }
.journal-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 35px; }
.journal-list-grid article { min-height: 310px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.journal-list-grid h3, .other-materials-grid h3 { margin: 20px 0 12px; font-size: 23px; font-weight: 500; line-height: 1.32; }
.journal-list-grid p, .other-materials-grid p { margin: 0; color: var(--muted-copy); }
.journal-list-grid .text-link, .other-materials-grid .text-link { margin-top: auto; padding-top: 25px; }

.journal-story { padding-block: 56px 110px; }
.journal-story-header { max-width: 1040px; padding-top: 42px; }
.journal-story-header h1 { margin: 16px 0 24px; font-size: clamp(33px, 3vw, 40px); font-weight: 500; line-height: 1.25; text-wrap: pretty; }
.journal-story-header > p { max-width: 850px; margin: 0; color: var(--muted-copy); font-size: clamp(19px, 2vw, 23px); line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted-copy); font-size: 14px; }
.article-meta > span { display: flex; gap: 9px; align-items: center; }
.article-meta svg { width: 18px; height: 18px; color: var(--cyan); }
.article-meta b { color: var(--ink); }
.article-meta small { color: var(--muted-copy); font-size: 13px; }
.journal-story-cover { margin: 46px 0 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 22px; background: var(--paper); box-shadow: 0 22px 55px rgb(18 54 68 / 9%); }
.article-cover-link { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.journal-story-cover img { display: block; width: auto; max-width: 100%; height: auto; }
.journal-story-cover figcaption, .article-inline-figure figcaption { padding: 14px 20px 16px; border-top: 1px solid var(--rule); color: var(--muted-copy); font-size: 13px; line-height: 1.55; }

.article-share { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; max-width: 920px; margin: 25px auto 0; }
.article-share > span { margin-right: 4px; color: var(--muted-copy); font-size: 13px; font-weight: 850; text-transform: uppercase; }
.article-share button, .helpful-button { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 40px; padding: 8px 13px; border: 1px solid var(--rule); border-radius: 11px; color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 800; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.article-share button:hover, .helpful-button:hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-soft); }
.article-share button svg, .helpful-button svg { width: 17px; height: 17px; }
.article-share button b { color: var(--cyan); font-size: 12px; }

.journal-story-body { max-width: 820px; margin: 62px auto 0; }
.journal-story-body > p, .journal-story-body li { color: var(--muted-copy); font-size: 18px; line-height: 1.8; }
.journal-story-body > p:first-child { color: var(--ink); font-size: 20px; line-height: 1.72; }
.journal-story-body h2 { margin: 68px 0 22px; color: var(--ink); font-size: clamp(25px, 2.25vw, 31px); font-weight: 500; line-height: 1.32; text-wrap: pretty; }
.journal-story-body h3 { margin: 42px 0 18px; font-size: 24px; font-weight: 500; line-height: 1.35; }
.journal-story-body ul { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.journal-story-body ol { display: grid; gap: 12px; margin: 28px 0; padding-left: 27px; }
.journal-story-body ol li { padding-left: 8px; }
.journal-story-body li { position: relative; padding: 16px 18px 16px 46px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); }
.journal-story-body ol li { padding: 13px 16px; }
.journal-story-body li::before { content: "✓"; position: absolute; top: 17px; left: 18px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #ffffff; background: var(--cyan); font-size: 12px; font-weight: 900; }
.journal-story-body ol li::before { content: none; }
.journal-story-body blockquote { margin: 40px 0; padding: 25px 28px; border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--rule)); border-left: 4px solid var(--cyan); border-radius: 0 16px 16px 0; color: var(--ink); background: var(--cyan-soft); font-size: 22px; font-weight: 500; line-height: 1.62; }
.journal-story-body a { color: var(--cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.journal-story-body strong { color: var(--ink); font-weight: 650; }
.article-inline-figure { margin: 46px 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); box-shadow: 0 16px 42px rgb(18 54 68 / 7%); }
.article-inline-figure > a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.article-inline-figure img { display: block; width: auto; max-width: 100%; height: auto; }
.article-table-scroll { max-width: 100%; margin: 34px 0 42px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); box-shadow: 0 12px 30px rgb(18 54 68 / 5%); scrollbar-width: thin; }
.article-table-scroll:focus-visible { outline: 3px solid color-mix(in srgb, var(--cyan) 25%, transparent); outline-offset: 3px; }
.article-data-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.article-data-table th, .article-data-table td { padding: 14px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.article-data-table th { color: var(--ink); background: var(--cyan-soft); font-size: 13px; font-weight: 700; }
.article-data-table td { color: var(--muted-copy); }
.article-data-table th:last-child, .article-data-table td:last-child { border-right: 0; }
.article-data-table tbody tr:last-child td { border-bottom: 0; }
.article-data-table strong { white-space: nowrap; }
.article-source { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--rule); }
.article-source > span { display: block; margin-bottom: 8px; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.article-source a { display: inline-flex; gap: 7px; align-items: center; color: var(--cyan); font-size: 15px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.article-source a svg { width: 16px; height: 16px; }
.article-helpful { display: flex; gap: 30px; align-items: center; justify-content: space-between; margin-top: 55px; padding: 28px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.article-helpful > div { display: grid; gap: 4px; }
.article-helpful b { font-size: 20px; font-weight: 600; line-height: 1.35; }
.article-helpful span { color: var(--muted-copy); font-size: 14px; }
.helpful-button { flex: none; min-height: 48px; padding-inline: 18px; color: #ffffff; border-color: var(--cyan); background: var(--cyan); }
.helpful-button:disabled { opacity: .82; cursor: default; }

.other-materials { margin-top: 100px; padding-top: 72px; border-top: 1px solid var(--rule); }
.other-materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 35px; }
.other-materials-grid > article { min-height: 310px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.other-material-cover { position: relative; aspect-ratio: 3 / 2; margin: -25px -25px 24px; overflow: hidden; border-bottom: 1px solid var(--rule); border-radius: 18px 18px 0 0; background: var(--paper-2); }
.other-material-cover img { object-fit: contain; object-position: center; }
.admin-field-hint { margin: -8px 0 0; color: var(--muted-copy); font-size: 13px; }
.admin-field-hint code { padding: 2px 5px; border-radius: 5px; background: var(--muted); }

@media (max-width: 980px) {
  .journal-feature { grid-template-columns: 1fr; }
  .journal-feature-cover { min-height: auto; aspect-ratio: 3 / 2; }
  .journal-feature-body { min-height: 420px; }
  .other-materials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .journal-library { padding-block: 54px 76px; }
  .journal-library-head h1, .journal-story-header h1 { font-size: 29px; line-height: 1.3; }
  .journal-feature { min-height: 0; margin-top: 34px; border-radius: 17px; }
  .journal-feature-body { min-height: 0; padding: 25px 21px; }
  .journal-feature-body h2 { font-size: 25px; line-height: 1.34; }
  .journal-feature-body .button { margin-top: 25px; }
  .journal-list-section { padding-top: 65px; }
  .journal-list-grid, .other-materials-grid { grid-template-columns: 1fr; }
  .journal-story { padding-block: 38px 78px; }
  .journal-story-header { padding-top: 30px; }
  .journal-story-header > p { font-size: 18px; }
  .article-meta { align-items: flex-start; flex-direction: column; gap: 11px; }
  .article-meta > span:first-child { align-items: flex-start; flex-wrap: wrap; }
  .article-meta small { width: 100%; margin-left: 27px; }
  .journal-story-cover { margin-top: 34px; border-radius: 14px; }
  .journal-story-cover figcaption, .article-inline-figure figcaption { padding: 12px 14px 14px; }
  .article-share { align-items: stretch; }
  .article-share > span { width: 100%; }
  .article-share button { flex: 1 1 calc(50% - 9px); }
  .journal-story-body { margin-top: 45px; }
  .journal-story-body > p, .journal-story-body li { font-size: 17px; line-height: 1.72; }
  .journal-story-body > p:first-child { font-size: 21px; }
  .journal-story-body h2 { margin-top: 54px; font-size: 25px; line-height: 1.36; }
  .journal-story-body blockquote { padding: 20px 18px; font-size: 20px; line-height: 1.6; }
  .journal-story-body li { padding-left: 43px; }
  .journal-story-body ol li { padding: 12px 14px; }
  .article-inline-figure { margin-block: 36px; border-radius: 14px; }
  .article-data-table { min-width: 650px; font-size: 14px; }
  .article-data-table th, .article-data-table td { padding: 12px 13px; }
  .article-helpful { align-items: stretch; flex-direction: column; padding: 23px 20px; }
  .helpful-button { width: 100%; }
  .other-materials { margin-top: 76px; padding-top: 55px; }
}

/* НЕ KPI editorial system — analytical publication, not a card-based portal */
:root {
  --background: #f4f6f7;
  --foreground: #11181c;
  --paper: #ffffff;
  --paper-2: #e8edf0;
  --ink: #11181c;
  --muted-copy: #4d5b63;
  --rule: #cbd4d9;
  --rule-strong: #11181c;
  --cyan: #087f9f;
  --cyan-soft: #dcf4fa;
  --gold: #d84f35;
  --gold-soft: #ffe8e1;
  --marker: #ff8a52;
  --card: #ffffff;
  --card-foreground: #11181c;
  --popover: #ffffff;
  --popover-foreground: #11181c;
  --primary: #087f9f;
  --primary-foreground: #ffffff;
  --secondary: #e8edf0;
  --secondary-foreground: #11181c;
  --muted: #e8edf0;
  --muted-foreground: #58666d;
  --accent: #dcf4fa;
  --accent-foreground: #075b73;
  --border: #cbd4d9;
  --input: #aebbc1;
  --ring: #0b9fc5;
  --radius: .25rem;
  --sidebar: #f4f6f7;
  --sidebar-foreground: #11181c;
  --sidebar-primary: #087f9f;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #dcf4fa;
  --sidebar-accent-foreground: #075b73;
  --sidebar-border: #cbd4d9;
  --sidebar-ring: #0b9fc5;
}

.dark {
  --background: #070b0e;
  --foreground: #f6f7f3;
  --paper: #0c1418;
  --paper-2: #111d22;
  --ink: #f6f7f3;
  --muted-copy: #bdc9cd;
  --rule: #304148;
  --rule-strong: #dbe6e8;
  --cyan: #58ddff;
  --cyan-soft: #102b34;
  --gold: #ff795c;
  --gold-soft: #352018;
  --marker: #ff9b69;
  --card: #0c1418;
  --card-foreground: #f6f7f3;
  --popover: #0c1418;
  --popover-foreground: #f6f7f3;
  --primary: #58ddff;
  --primary-foreground: #061014;
  --secondary: #172329;
  --secondary-foreground: #f6f7f3;
  --muted: #172329;
  --muted-foreground: #aab9be;
  --accent: #17333d;
  --accent-foreground: #eafaff;
  --border: #2b3a40;
  --input: #34464e;
  --ring: #58ddff;
  --sidebar: #0a1114;
  --sidebar-foreground: #f4f7f8;
  --sidebar-primary: #58ddff;
  --sidebar-primary-foreground: #061014;
  --sidebar-accent: #152a32;
  --sidebar-accent-foreground: #f4fbfd;
  --sidebar-border: #24363d;
  --sidebar-ring: #58ddff;
}

body {
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), color-mix(in srgb, var(--rule) 22%, transparent) 50%, transparent calc(50% + .5px)),
    var(--background);
  background-size: min(1240px, calc(100% - 48px)) 100%;
  background-position: center;
  background-repeat: no-repeat;
}

h1, h2, blockquote {
  font-family: "Literata Variable", Georgia, "Times New Roman", serif !important;
  font-weight: 560;
  letter-spacing: -.035em;
  word-spacing: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: pretty;
}

h3 {
  font-family: "Golos Text Variable", Arial, Helvetica, sans-serif !important;
  font-weight: 650;
  letter-spacing: -.018em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.site-header {
  border-top: 4px solid var(--cyan);
  border-bottom: 1px solid var(--rule-strong);
  background: color-mix(in srgb, var(--background) 96%, transparent);
  box-shadow: none;
}
.header-row { min-height: 72px; }
.brand { padding-right: 24px; border-right: 1px solid var(--rule-strong); }
.brand img { border-radius: 0; box-shadow: none; }
.brand b { font-size: 21px; font-weight: 900; letter-spacing: -.045em; }
.brand small { color: var(--cyan); font-size: 9px; letter-spacing: .14em; }
.desktop-nav { font-size: 13px; font-weight: 800; letter-spacing: .015em; }
.header-phone svg, .mobile-phone svg { color: var(--cyan); }
.theme-toggle, .menu-button { border-color: var(--rule-strong); border-radius: 0; box-shadow: none; }

.button {
  min-height: 48px;
  border: 1px solid var(--cyan);
  border-radius: 0;
  color: var(--primary-foreground);
  background: var(--cyan);
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.button:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 color-mix(in srgb, var(--cyan) 22%, transparent); }
.text-link { color: var(--ink); border: 0; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.editorial-hero {
  padding: 72px 0 76px;
  border-bottom: 4px double var(--rule-strong);
  background: var(--paper);
}
.editorial-hero::before {
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--cyan) 16%, transparent) 1px, transparent 1px);
  background-size: 25% 100%;
  mask-image: linear-gradient(90deg, transparent 8%, #000 50%, transparent 100%);
  opacity: .55;
}
.hero-portal-grid { grid-template-columns: minmax(0, 1.55fr) minmax(310px, .55fr); gap: clamp(44px, 6vw, 92px); }
.hero-portal-copy { max-width: 860px; }
.eyebrow, .edition-label { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.hero-portal-copy > .eyebrow { color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero-portal-copy h1 { max-width: 850px; margin: 20px 0 28px; font-size: clamp(49px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
.hero-portal-copy h1 em { color: var(--cyan); font-family: "Literata Variable", Georgia, serif; font-style: italic; }
.hero-portal-lead { max-width: 760px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; }
.hero-checks { gap: 0; max-width: 760px; margin-top: 33px; border-top: 1px solid var(--rule-strong); }
.hero-checks li { gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 700; }
.hero-checks svg {
  flex-basis: 21px;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  padding: 0;
  border-radius: 0;
  color: var(--cyan);
  background: transparent;
  stroke-width: 2.4;
}
.hero-note { color: var(--muted-copy); }

.hero-diagnostic-card {
  padding: 5px 0 0 28px;
  border: 0;
  border-left: 3px solid var(--cyan);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.hero-diagnostic-card h2 { margin: 13px 0 14px; font-size: clamp(27px, 2.5vw, 35px); line-height: 1.12; }
.diagnostic-list { gap: 0; margin: 27px 0; border-top: 1px solid var(--rule-strong); }
.diagnostic-list > div { grid-template-columns: 34px 1fr; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; }
.diagnostic-list > div > span { width: 30px; height: 30px; border-radius: 0; color: var(--cyan); background: transparent; }
.diagnostic-list svg { width: 21px; }
.hero-diagnostic-card > small { text-align: left; }

.hero-author { align-self: start; }
.hero-author-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: #071624;
  box-shadow: 12px 12px 0 var(--cyan-soft);
}
.hero-author-image img { object-fit: cover; object-position: center 20%; }
.hero-author-caption { margin: 24px 0 0 28px; padding-left: 19px; border-left: 3px solid var(--cyan); }
.hero-author-caption > span { display: block; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.hero-author-caption blockquote { margin: 13px 0 12px; font-size: clamp(19px, 1.7vw, 23px); font-style: normal; font-weight: 570; line-height: 1.35; letter-spacing: -.025em; }
.hero-author-caption small { display: block; color: var(--muted-copy); font-size: 12px; line-height: 1.55; }

.brand-meaning {
  margin-top: 0;
  padding: 24px 30px;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  color: #ffffff;
  background: #11181c;
  box-shadow: none;
  font-family: "Literata Variable", Georgia, serif;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 560;
  line-height: 1.45;
  text-align: left;
}
.dark .brand-meaning { color: #061014; background: var(--cyan); box-shadow: none; }

.trust-strip {
  margin-top: 0;
  border: 0;
  border-bottom: 4px double var(--rule-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.trust-strip > div { min-height: 132px; padding: 26px 22px; border-right-color: var(--rule-strong); }
.trust-strip svg { width: 28px; height: 28px; color: var(--cyan); stroke-width: 1.6; }
.trust-strip b { font-family: "Literata Variable", Georgia, serif; font-size: 19px; font-weight: 620; }

.business-section { padding-block: 96px; }
.portal-section-head { grid-template-columns: .95fr .55fr; align-items: start; margin-bottom: 38px; padding-top: 16px; border-top: 4px double var(--rule-strong); }
.portal-section-head h2, .about-portal h2, .contact-portal h2 { margin-top: 13px; font-size: clamp(35px, 4.2vw, 56px); line-height: 1.06; }
.portal-section-head > p { padding-top: 4px; font-size: 16px; line-height: 1.65; }

.service-portal-grid { gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.service-portal-card {
  min-height: 340px;
  padding: 26px;
  border: 0;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  box-shadow: none;
  transition: background .18s ease, color .18s ease;
}
.service-portal-card:hover { transform: none; border-color: var(--rule-strong); background: var(--cyan-soft); box-shadow: none; }
.service-icon { display: block; width: auto; height: auto; margin: 0 0 42px; border-radius: 0; color: var(--cyan); background: transparent; }
.service-icon svg { width: 31px; height: 31px; stroke-width: 1.45; }
.service-portal-card small { color: var(--gold); }
.service-portal-card h3 { margin: 16px 0 14px; font-size: 21px; line-height: 1.18; }

.cases-portal-section { padding-block: 96px; border-block: 1px solid var(--rule-strong); background: var(--paper); }
.case-portal-grid { gap: 0; border-top: 1px solid var(--rule-strong); }
.case-portal-card { overflow: hidden; border: 0; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: transparent; box-shadow: none; }
.case-portal-card:last-child { border-right: 0; }
.case-portal-cover { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.case-portal-body { padding: 29px; }
.case-portal-body > span { color: var(--gold); }
.case-portal-body h3 { font-family: "Literata Variable", Georgia, serif !important; font-size: clamp(25px, 2vw, 31px); font-weight: 590; line-height: 1.14; }
.case-portal-card:not(.case-portal-featured) .case-portal-body h3 { font-size: 21px; line-height: 1.18; }
.case-facts b { color: var(--cyan); font-family: "Literata Variable", Georgia, serif; }

.about-portal { padding-block: 96px; color: #f6f7f3; border: 0; background: #11181c; }
.about-portal .eyebrow { color: var(--marker); }
.about-portal h2 { color: #ffffff; }
.about-portal p { color: #c7d0d4; }
.about-portal blockquote { border-top-color: #39454b; border-left-color: #58ddff; color: #ffffff; font-size: 27px; font-style: normal; }
.about-links { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; }
.about-links .text-link { color: #ffffff; }
.dark .about-portal { color: #f6f7f3; background: #10191d; }
.dark .about-portal p { color: #c7d0d4; }
.dark .about-portal blockquote { border-top-color: #39454b; border-left-color: #58ddff; }

.material-portal-grid { gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.material-card { min-height: 310px; padding: 25px; border: 0; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper); }
.material-card > span { display: block; width: auto; height: auto; margin-bottom: 42px; border-radius: 0; color: var(--cyan); background: transparent; }
.material-card > span svg { width: 28px; height: 28px; stroke-width: 1.5; }
.material-card h3 { font-family: "Literata Variable", Georgia, serif !important; font-size: 18px; font-weight: 590; line-height: 1.2; }
.material-card-all { color: #ffffff; border-color: var(--rule-strong); background: #0b2433; }
.material-card-all > span { color: #58ddff; background: transparent; }
.material-card-all small { color: #8eeaff; }
.material-card-all h3 { color: #ffffff; }
.dark .material-card-all { color: #ffffff; border-color: var(--rule-strong); background: #071924; }

.contact-portal { padding-block: 96px; }
.contact-form { padding: 30px; border: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper); box-shadow: 10px 10px 0 var(--cyan-soft); }
.contact-form input, .contact-form textarea { border-color: var(--rule-strong); border-radius: 0; background: var(--background); }
.contact-promise svg { border-radius: 0; color: var(--ink); background: var(--marker); }
.site-footer { border-top: 4px double var(--rule-strong); background: transparent; }
.site-footer b { color: var(--cyan); }

/* Archives and case studies */
.archive-head { max-width: 980px; padding-top: 22px; padding-bottom: 34px; border-top: 4px double var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.archive-head h1, .article-page h1, .legal-page h1 { font-size: clamp(43px, 5.4vw, 72px); line-height: 1.04; }
.archive-grid { gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.archive-card { padding-bottom: 28px; border: 0; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper); box-shadow: none; }
.archive-card h2, .archive-card-lead h2 { font-size: clamp(23px, 2vw, 29px); line-height: 1.2; }
.journal-archive { gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.journal-archive article { border: 0; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper); box-shadow: none; }
.article-cta { border: 1px solid var(--rule-strong); border-radius: 0; background: var(--marker); box-shadow: 10px 10px 0 var(--cyan-soft); }
.dark .article-cta { color: #061014; border-color: #dbe6e8; background: var(--marker); }
.article-cta .button, .dark .article-cta .button { color: #061014; background: #58ddff; }

.case-study-hero { padding-top: 34px; border-top: 4px double var(--rule-strong); }
.case-study-hero h1 { font-size: clamp(41px, 4.8vw, 64px); line-height: 1.06; }
.case-study-facts { border-top: 1px solid var(--rule-strong); }
.case-study-facts div { padding: 16px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; }
.case-study-cover { border: 1px solid var(--rule-strong); border-radius: 0; box-shadow: none; }
.case-study-meta { border-color: var(--rule-strong); border-radius: 0; }
.case-study-section { border-bottom-color: var(--rule-strong); }
.case-task-list { border-top: 1px solid var(--rule-strong); }
.case-task-list li { padding: 14px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; }
.case-task-list svg { border-radius: 0; color: var(--ink); background: var(--marker); }
.research-facts { gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.research-facts div { border: 0; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper); }
.case-result-panel { border: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper); box-shadow: 12px 12px 0 var(--cyan-soft); }
.case-result-numbers { gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.case-result-numbers div { border: 0; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: var(--background); }
.dark .case-result-panel { color: var(--ink); border-color: var(--rule-strong); background: var(--paper); }
.dark .case-result-numbers div { border-color: var(--rule-strong); background: var(--background); }

/* Journal: an analytical publication */
.journal-library { padding-block: 72px 110px; }
.journal-library-head { max-width: 1030px; }
.journal-feature { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); min-height: 520px; margin-top: 52px; border: 0; border-block: 4px double var(--rule-strong); border-radius: 0; background: transparent; box-shadow: none; }
.journal-feature-cover { order: 2; border-left: 1px solid var(--rule-strong); background: #07161e; }
.journal-feature-cover img { object-fit: contain !important; }
.journal-feature-body { order: 1; padding: clamp(32px, 4.5vw, 58px) clamp(28px, 4vw, 50px) clamp(32px, 4.5vw, 58px) 0; }
.journal-feature-body h2 { margin: 22px 0 18px; font-family: "Literata Variable", Georgia, serif !important; font-size: clamp(30px, 3vw, 42px); font-weight: 590; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.journal-card-meta { margin-top: 30px; }
.journal-list-section { padding-top: 84px; }
.journal-list-section > header, .other-materials > header { padding-top: 15px; border-top: 4px double var(--rule-strong); }
.journal-list-section > header h2, .other-materials > header h2 { font-family: "Literata Variable", Georgia, serif !important; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; }
.journal-list-grid { gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.journal-list-grid article { min-height: 300px; border: 0; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper); }
.journal-list-grid h3, .other-materials-grid h3 { font-family: "Literata Variable", Georgia, serif !important; font-size: 21px; font-weight: 590; line-height: 1.18; }

.journal-story { padding-block: 56px 110px; }
.article-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; max-width: 1080px; margin-bottom: 28px; color: var(--muted-copy); font-size: 13px; line-height: 1.5; }
.article-breadcrumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.article-breadcrumbs > span[aria-hidden="true"] { color: var(--cyan); font-weight: 800; }
.article-breadcrumbs > span[aria-current="page"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journal-story-header { max-width: 1080px; padding-top: 28px; border-top: 4px double var(--rule-strong); }
.journal-story-header h1 { max-width: 1050px; margin: 21px 0 27px; font-size: clamp(36px, 4vw, 52px); font-weight: 590; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.journal-story-header > p { max-width: 790px; font-family: "Literata Variable", Georgia, serif; font-size: clamp(20px, 2vw, 25px); line-height: 1.55; }
.article-meta { max-width: 920px; border-top-color: var(--rule-strong); }
.article-meta b a { color: inherit; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.journal-story-cover { height: auto; margin-top: 46px; overflow: visible; border-color: var(--rule-strong); border-radius: 0; background: var(--paper); box-shadow: none; aspect-ratio: auto; }
.article-cover-link, .article-inline-figure > a { display: block; width: 100%; max-width: 100%; margin-inline: auto; }
.journal-story-cover img, .article-inline-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}
.journal-story-cover figcaption, .article-inline-figure figcaption { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.article-share button, .helpful-button { border-color: var(--rule-strong); border-radius: 0; }
.journal-story-body { max-width: 800px; }
.journal-story-body > p, .journal-story-body li { color: var(--muted-copy); font-size: 18px; line-height: 1.82; }
.journal-story-body > p:first-child { padding: 22px 24px; border-left: 6px solid var(--cyan); color: var(--ink); background: var(--cyan-soft); font-family: "Literata Variable", Georgia, serif; font-size: 21px; }
.journal-story-body.journal-story-body-attribution > p:first-child { padding: 0; border-left: 0; color: var(--muted-copy); background: transparent; font-family: inherit; font-size: 18px; line-height: 1.82; }
.journal-story-body h2 { margin-top: 72px; padding-top: 17px; border-top: 1px solid var(--rule-strong); font-size: clamp(29px, 3vw, 38px); font-weight: 590; line-height: 1.18; }
.journal-story-body h3 { font-size: 25px; }
.journal-story-body ul, .journal-story-body ol { gap: 0; border-top: 1px solid var(--rule-strong); }
.journal-story-body li { padding: 14px 0 14px 38px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; }
.journal-story-body ol li { padding: 14px 0; }
.journal-story-body li::before { top: 17px; left: 0; width: 18px; height: 18px; border-radius: 0; color: var(--ink); background: var(--marker); }
.journal-story-body blockquote { margin: 46px 0; padding: 29px 30px; border: 0; border-left: 7px solid var(--cyan); border-radius: 0; color: var(--ink); background: var(--cyan-soft); font-size: 25px; font-weight: 590; line-height: 1.5; }
.article-inline-figure { height: auto; overflow: visible; border-color: var(--rule-strong); border-radius: 0; background: var(--paper); box-shadow: none; aspect-ratio: auto; }
.journal-story-body-evidence .article-inline-figure { width: min(1120px, calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.article-table-scroll { border-color: var(--rule-strong); border-radius: 0; box-shadow: none; }
.article-data-table th { color: #061014; background: #58ddff; }
.article-data-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--cyan-soft) 34%, transparent); }
.article-helpful { border-color: var(--rule-strong); border-radius: 0; box-shadow: 8px 8px 0 var(--cyan-soft); }
.article-related-service { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: 52px; padding: 20px 0; border-block: 1px solid var(--rule-strong); }
.article-related-service > span { color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.article-related-service > a { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-family: "Literata Variable", Georgia, serif; font-size: 19px; font-weight: 590; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 5px; }
.article-related-service svg { width: 18px; height: 18px; color: var(--cyan); }
.article-cta .text-link { margin-top: 20px; }
.other-materials { border-top-color: var(--rule-strong); }
.other-materials-grid { gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.other-materials-grid > article { border: 0; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper); }
.other-material-cover { border-radius: 0; }

@media (max-width: 1050px) {
  .hero-portal-grid { grid-template-columns: 1fr; }
  .hero-diagnostic-card { max-width: none; padding: 27px 0 0; border-top: 3px solid var(--cyan); border-left: 0; }
  .hero-author { display: grid; grid-template-columns: minmax(250px, 390px) minmax(0, 1fr); gap: 35px; align-items: end; max-width: 850px; }
  .hero-author-caption { margin: 0; }
}

@media (max-width: 980px) {
  .journal-feature { grid-template-columns: 1fr; }
  .journal-feature-cover { order: 1; border-bottom: 1px solid var(--rule-strong); border-left: 0; }
  .journal-feature-body { order: 2; padding: 32px 26px; }
}

@media (max-width: 760px) {
  body { background: var(--background); }
  .site-header { border-top-width: 3px; }
  .brand { border-right: 0; }
  .editorial-hero { padding: 50px 0 54px; }
  .hero-portal-copy h1 { font-size: clamp(39px, 11.4vw, 52px); line-height: 1.04; }
  .hero-diagnostic-card { padding: 24px 0 0; border-radius: 0; }
  .hero-author { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
  .hero-author-image { box-shadow: 8px 8px 0 var(--cyan-soft); }
  .hero-author-caption { margin: 25px 0 0 8px; }
  .brand-meaning { padding: 21px 18px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .business-section, .cases-portal-section, .about-portal { padding-block: 68px; }
  .portal-section-head, .about-portal-grid, .contact-portal { grid-template-columns: 1fr; gap: 24px; }
  .portal-section-head h2, .about-portal h2, .contact-portal h2 { font-size: 36px; line-height: 1.08; }
  .service-portal-grid, .case-portal-grid, .material-portal-grid { grid-template-columns: 1fr; }
  .service-portal-card { min-height: 280px; }
  .service-portal-card h3 { font-size: 21px; line-height: 1.2; }
  .material-card h3 { font-size: 19px; line-height: 1.22; }
  .journal-list-grid h3, .other-materials-grid h3 { font-size: 21px; line-height: 1.2; }
  .case-portal-card { border-right: 1px solid var(--rule-strong); }
  .contact-portal { padding-block: 68px; }
  .archive-head h1, .article-page h1, .legal-page h1, .case-study-hero h1 { font-size: 39px; line-height: 1.08; }
  .journal-library-head h1, .journal-story-header h1 { font-size: clamp(31px, 8vw, 39px); line-height: 1.12; letter-spacing: -.025em; }
  .journal-feature { border-radius: 0; }
  .journal-feature-body h2 { font-size: 32px; line-height: 1.12; }
  .journal-story-cover, .article-inline-figure { border-radius: 0; }
  .article-breadcrumbs { display: grid; grid-template-columns: auto auto 1fr; gap: 5px 8px; margin-bottom: 22px; font-size: 12px; }
  .journal-story-body > p:first-child { padding: 19px 18px; font-size: 20px; }
  .journal-story-body h2 { font-size: 29px; line-height: 1.2; }
  .journal-story-body blockquote { padding: 23px 20px; font-size: 22px; }
  .article-related-service { align-items: flex-start; flex-direction: column; }
  .article-helpful { border-radius: 0; }
}

/* Staging launch stabilization: public layout isolated from admin */
body:not(.admin-body) .site-header > .page-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
body:not(.admin-body) .site-header nav { margin-left: auto; }
body:not(.admin-body) .trust-strip > div {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: 8px;
}
body:not(.admin-body) .trust-strip b,
body:not(.admin-body) .trust-strip span { display: block; min-width: 0; }
body:not(.admin-body) .hero-author-image img { object-fit: cover; object-position: center 20%; }
.consent-check { display: grid !important; grid-template-columns: 20px minmax(0, 1fr); gap: 10px !important; align-items: start; font-size: 13px; line-height: 1.45; }
.consent-check input { width: 18px !important; height: 18px; margin: 2px 0 0; accent-color: var(--cyan); }
.consent-check a { text-decoration: underline; text-underline-offset: 2px; }
.legal-copy h2 { margin-top: 2.1em; font-size: clamp(22px, 2.4vw, 30px); }
.legal-revision { color: var(--muted-foreground); font-size: 14px; }
.legal-details { margin: 22px 0 34px; border-top: 1px solid var(--rule-strong); }
.legal-details > div { display: grid; grid-template-columns: minmax(130px, .35fr) 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.legal-details dt { font-weight: 750; }
.legal-details dd { margin: 0; }
@media (max-width: 1050px) {
  body:not(.admin-body) .editorial-hero { padding-block: 48px 56px; }
  body:not(.admin-body) .hero-author { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body:not(.admin-body) .site-header > .page-shell { min-height: 66px; gap: 12px; }
  body:not(.admin-body) .site-header nav { margin-left: 0; }
  body:not(.admin-body) .hero-author { grid-template-columns: 1fr; }
  .legal-details > div { grid-template-columns: 1fr; gap: 4px; }
}
/* 2026-10-08: restore the approved live reference visual on staging only */
body:not(.admin-body) .site-header > .header-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 32px;
}
body:not(.admin-body) .site-header .brand { flex: none; }
body:not(.admin-body) .desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 0;
}
body:not(.admin-body) .header-actions { display: flex; align-items: center; gap: 14px; }
body:not(.admin-body) .header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}
body:not(.admin-body) .header-phone svg { width: 20px; height: 20px; color: var(--cyan); }
body:not(.admin-body) .theme-toggle {
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--paper);
  white-space: nowrap;
}
body:not(.admin-body) .theme-toggle span { display: inline; font-size: 13px; font-weight: 800; }
body:not(.admin-body) .theme-label-light { display: none; }
.dark body:not(.admin-body) .theme-label-dark { display: none; }
.dark body:not(.admin-body) .theme-label-light { display: inline; }
body:not(.admin-body) .header-cta {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
body:not(.admin-body) .editorial-hero { padding: 72px 0 76px; }
body:not(.admin-body) .hero-portal-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .55fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: start;
}
body:not(.admin-body) .hero-portal-copy h1 {
  max-width: 850px;
  margin: 20px 0 28px;
  font-family: "Literata Variable", Georgia, "Times New Roman", serif !important;
  font-size: clamp(49px, 5.6vw, 78px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -.055em;
}
body:not(.admin-body) .hero-author { display: block; align-self: start; }
body:not(.admin-body) .hero-author-image { aspect-ratio: 1; }
body:not(.admin-body) .hero-author-image img { object-fit: cover; object-position: center 20%; }
body:not(.admin-body) .hero-checks svg { color: var(--cyan); background: transparent; }
body:not(.admin-body) .trust-strip > div {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: 8px;
}
body:not(.admin-body) .menu-button { display: none; }

@media (max-width: 1180px) {
  body:not(.admin-body) .site-header > .header-row { gap: 20px; }
  body:not(.admin-body) .desktop-nav { gap: 20px; }
  body:not(.admin-body) .header-phone span { display: none; }
}
@media (max-width: 1050px) {
  body:not(.admin-body) .site-header > .header-row { grid-template-columns: auto 1fr auto; }
  body:not(.admin-body) .desktop-nav { justify-content: flex-end; }
  body:not(.admin-body) .hero-portal-grid { grid-template-columns: 1fr; }
  body:not(.admin-body) .hero-author {
    display: grid;
    grid-template-columns: minmax(250px, 390px) minmax(0, 1fr);
    gap: 35px;
    align-items: end;
    max-width: 850px;
  }
}
@media (max-width: 860px) {
  body:not(.admin-body) .site-header > .header-row {
    min-height: 70px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  body:not(.admin-body) .desktop-nav,
  body:not(.admin-body) .header-phone,
  body:not(.admin-body) .header-cta { display: none; }
  body:not(.admin-body) .header-actions { gap: 8px; }
  body:not(.admin-body) .menu-button { display: inline-flex; min-height: 44px; }
  body:not(.admin-body) .theme-toggle { min-height: 44px; padding-inline: 13px; }
  body:not(.admin-body) .theme-toggle span { display: none !important; }
}
@media (max-width: 760px) {
  body:not(.admin-body) .editorial-hero { padding: 50px 0 54px; }
  body:not(.admin-body) .hero-portal-copy h1 { font-size: clamp(39px, 11.4vw, 52px); line-height: 1.04; }
  body:not(.admin-body) .hero-author { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 520px; }
}
/* Production font restoration and legal footer, 2026-10-09. */
@font-face { font-family: "Golos Text Variable"; src: url("/assets/fonts/golos-text-variable.ttf") format("truetype"); font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Literata Variable"; src: url("/assets/fonts/literata-variable.ttf") format("truetype"); font-style: normal; font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Literata Variable"; src: url("/assets/fonts/literata-italic-variable.ttf") format("truetype"); font-style: italic; font-weight: 200 900; font-display: swap; }
body:not(.admin-body) { font-family: "Golos Text Variable", Arial, Helvetica, sans-serif; }
.site-footer .page-shell { display: flex; flex-wrap: wrap; align-items: start; gap: 16px 28px; }
.site-footer .footer-legal { display: grid; gap: 6px; flex: 1 1 340px; color: var(--muted-copy); font-size: 13px; line-height: 1.6; }
.site-footer .footer-legal small { font-size: inherit; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
@media(max-width: 640px) { .site-footer .footer-legal, .site-footer .footer-links { flex-basis: 100%; } }

/* Text-only contrast corrections; component backgrounds and accent tokens stay unchanged. */
.dark body:not(.admin-body) .header-cta { color: #061014; }
html:not(.dark) body:not(.admin-body) .brand small,
html:not(.dark) body:not(.admin-body) .contact-phone { color: #087894; }
html:not(.dark) body:not(.admin-body) .eyebrow:not(.hero-portal-copy > .eyebrow):not(.about-portal .eyebrow),
html:not(.dark) body:not(.admin-body) .edition-label,
html:not(.dark) body:not(.admin-body) .service-portal-card small,
html:not(.dark) body:not(.admin-body) .case-portal-body > span,
html:not(.dark) body:not(.admin-body) .material-card:not(.material-card-all) small { color: #bc412a; }
body:not(.admin-body) main th { color: var(--ink); }

html:not(.dark) body:not(.admin-body) .theme-label-light { display: none; }

/* Reference components restored for the PHP renderer. Header and footer styles stay intact. */
body:not(.admin-body) main .journal-feature-cover img,
body:not(.admin-body) main .archive-cover img,
body:not(.admin-body) main .case-study-cover img,
body:not(.admin-body) main .case-portal-cover img,
body:not(.admin-body) main .other-material-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
body:not(.admin-body) main .other-material-cover { display: block; }
body:not(.admin-body) main .hero-author-image img { position: absolute; inset: 0; }
body:not(.admin-body) main .trust-strip > div {
  grid-template-columns: 45px minmax(0, 1fr); align-content: normal; align-items: center; gap: 14px;
}
body:not(.admin-body) main .journal-story .article-share > a {
  display: inline-flex; gap: 7px; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 13px; border: 1px solid var(--rule-strong);
  color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 800;
}
body:not(.admin-body) main .article-share > a svg { width: 17px; height: 17px; }
body:not(.admin-body) main .article-share > a b { color: var(--cyan); font-size: 12px; }
body:not(.admin-body) main .article-data-table th { color: #061014; }
html:not(.dark) body:not(.admin-body) main .journal-feature-body > span,
html:not(.dark) body:not(.admin-body) main .journal-list-grid article > span,
html:not(.dark) body:not(.admin-body) main .other-materials-grid article > span { color: #bc412a; }
@media (max-width: 760px) {
  body:not(.admin-body) main .journal-story .article-share > a { flex: 1 1 calc(50% - 9px); }
}
/* Match the reference paragraph reset and keep text readable on existing surfaces. */
body:not(.admin-body) main .archive-head > p { margin: 0; }
html:not(.dark) body:not(.admin-body) main .back-link,
html:not(.dark) body:not(.admin-body) main .article-section > span,
html:not(.dark) body:not(.admin-body) main .article-breadcrumbs > span[aria-hidden],
html:not(.dark) body:not(.admin-body) main .article-share a,
html:not(.dark) body:not(.admin-body) main .journal-story-body a,
html:not(.dark) body:not(.admin-body) main .article-related-service > span { color: #087894; }
html:not(.dark) body:not(.admin-body) main .case-study-section > span,
html:not(.dark) body:not(.admin-body) main .article-source > span { color: #bc412a; }
html:not(.dark) body:not(.admin-body) main .service-portal-card:not(:hover) p { color: #4d5b63; }
html:not(.dark) body:not(.admin-body) main .service-portal-card:not(:hover) small { color: #bc412a; }
html:not(.dark) body:not(.admin-body) main .service-portal-card:not(:hover) strong { color: #087894; }
html:not(.dark) body:not(.admin-body) main .service-portal-card:hover h3 { color: var(--ink); }
body:not(.admin-body) main .article-cta .text-link { color: #061014; }
body:not(.admin-body) main .helpful-button, body:not(.admin-body) main .helpful-button span { color: #061014; }
html:not(.dark) body:not(.admin-body) main .helpful-button, html:not(.dark) body:not(.admin-body) main .helpful-button span { color: #fff; }

html:not(.dark) body:not(.admin-body) main .article-share > a b {color:#087894;}
html:not(.dark) body:not(.admin-body) main .helpful-button:hover,html:not(.dark) body:not(.admin-body) main .helpful-button:hover span {color:#061014;}

html:not(.dark) body:not(.admin-body) main .service-portal-card p {color:#4d5b63;}
html:not(.dark) body:not(.admin-body) main .service-portal-card small {color:#bc412a;}
html:not(.dark) body:not(.admin-body) main .service-portal-card strong {color:#087894;}
