:root {
    --ink: #0f1720;
    --muted: #5c6a74;
    --muted-light: #8a96a0;
    --line: #e2e8ef;
    --line-strong: #c9d4de;
    --paper: #ffffff;
    --soft: #f1f5f3;
    --soft-warm: #f8f6f1;
    --green: #0d6b56;
    --green-bright: #12a382;
    --green-dark: #064a3c;
    --green-tint: #e4f5ef;
    --blue: #2563b8;
    --yellow: #e8b93a;
    --coral: #c94a2d;
    --shadow-sm: 0 1px 2px rgba(15, 23, 32, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 32, 0.07);
    --shadow-lg: 0 20px 50px rgba(15, 23, 32, 0.1);
    --radius: 8px;
    --radius-sm: 8px;
    --content-max: 1120px;
    --content-wide: 1220px;
    --header-h: 72px;
    --focus-ring: 0 0 0 3px rgba(13, 107, 86, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fbfcfc 0%, #f4f7f5 48%, #f0f4f2 100%);
    background-attachment: fixed;
    font-family: "Noto Sans JP", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    color: #fff;
    background: var(--green-dark);
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 14px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
    outline: none;
    box-shadow: var(--focus-ring);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    min-height: var(--header-h);
    padding: 12px min(5vw, 56px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(226, 232, 239, 0.95);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.brand:hover {
    color: var(--green-dark);
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: #081524;
    border-radius: var(--radius-sm);
    place-items: center;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(13, 107, 86, 0.24);
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-nav {
    gap: 4px 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
    color: var(--green-dark);
    background: var(--green-tint);
}

.site-search {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex: 0 1 auto;
}

.site-search input {
    width: min(200px, 36vw);
    min-height: 42px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input::placeholder {
    color: var(--muted-light);
}

.site-search input:hover {
    border-color: var(--line-strong);
}

.site-search input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(13, 107, 86, 0.15);
}

.site-search button {
    min-height: 42px;
    padding: 0 16px;
    color: #ffffff;
    background: linear-gradient(180deg, var(--green-bright), var(--green));
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.site-search button:hover {
    filter: brightness(1.05);
}

.site-search button:active {
    transform: scale(0.98);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-main {
    min-height: 50vh;
}

.hero {
    display: flex;
    align-items: center;
    min-height: min(78vh, 900px);
    padding: 56px min(5vw, 72px) 64px;
    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(248, 251, 249, 0.88) 42%,
            rgba(232, 245, 239, 0.75) 100%
        ),
        url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80") center/cover;
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.78fr);
    gap: clamp(28px, 5vw, 52px);
    width: 100%;
    max-width: var(--content-wide);
    margin: 0 auto;
    align-items: center;
}

.hero-copy {
    align-self: center;
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 10px;
    color: var(--green-dark);
    background: var(--green-tint);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1,
.page-hero h1 {
    max-width: 900px;
    margin-bottom: 20px;
    font-size: clamp(34px, 5.2vw, 64px);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-text,
.page-hero p {
    max-width: 640px;
    color: #2d3a44;
    font-size: 17px;
    line-height: 1.75;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button.primary {
    color: #ffffff;
    background: linear-gradient(180deg, var(--green-bright), var(--green));
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(13, 107, 86, 0.22);
}

.button.primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 28px rgba(13, 107, 86, 0.28);
}

.button.secondary {
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
    border-color: rgba(13, 107, 86, 0.35);
    background: #fff;
}

.button:active {
    transform: translateY(1px);
}

.hero-panel {
    align-self: stretch;
    display: grid;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.roadmap-item {
    padding: 16px 16px 16px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roadmap-item:hover {
    border-color: rgba(13, 107, 86, 0.22);
    box-shadow: var(--shadow-sm);
}

.roadmap-item.active {
    border-color: rgba(13, 107, 86, 0.45);
    box-shadow: inset 4px 0 0 var(--green);
    background: linear-gradient(90deg, rgba(228, 245, 239, 0.5) 0%, #fff 32%);
}

.roadmap-item span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.roadmap-item strong {
    display: block;
    margin: 4px 0;
    font-size: 16px;
    letter-spacing: 0;
}

.roadmap-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.home-hero {
    position: relative;
    min-height: min(82vh, 880px);
    overflow: hidden;
    color: #f8fbff;
    background:
        linear-gradient(110deg, rgba(8, 16, 28, 0.96) 0%, rgba(11, 28, 43, 0.9) 44%, rgba(14, 74, 77, 0.78) 100%),
        url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=82") center/cover;
    border-bottom: 1px solid rgba(35, 60, 80, 0.7);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(123, 218, 203, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 218, 203, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 82%);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(7, 15, 25, 0.82));
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.78fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    width: 100%;
    max-width: var(--content-wide);
    margin: 0 auto;
}

.home-hero .hero-copy {
    max-width: 760px;
}

.home-hero .eyebrow {
    color: #bdf7e8;
    background: rgba(18, 163, 130, 0.16);
    border: 1px solid rgba(163, 244, 224, 0.22);
    box-shadow: inset 0 0 18px rgba(18, 163, 130, 0.08);
}

.home-hero h1 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 68px);
    text-wrap: balance;
}

.home-hero .hero-text {
    color: rgba(231, 241, 246, 0.86);
    font-size: 17px;
}

.home-hero .button.primary {
    color: #06130f;
    background: linear-gradient(180deg, #78f2d7, #22c7a5);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(18, 163, 130, 0.24);
}

.home-hero .button.secondary {
    color: #ecf8ff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 520px;
    margin: 30px 0 0;
}

.hero-stats div {
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-stats dt {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.hero-stats dd {
    margin: 6px 0 0;
    color: rgba(222, 236, 242, 0.7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intelligence-panel {
    position: relative;
    display: grid;
    gap: 16px;
    min-height: 480px;
    padding: 18px;
    color: #ecf8ff;
    background:
        linear-gradient(180deg, rgba(13, 28, 43, 0.88), rgba(10, 18, 31, 0.9)),
        linear-gradient(135deg, rgba(18, 163, 130, 0.24), rgba(37, 99, 184, 0.15));
    border: 1px solid rgba(186, 231, 225, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.intelligence-panel::before {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-header strong {
    margin-left: auto;
    color: rgba(236, 248, 255, 0.78);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #78f2d7;
    box-shadow: 0 0 18px rgba(120, 242, 215, 0.42);
}

.panel-dot.accent {
    background: #77a7ff;
    box-shadow: 0 0 18px rgba(119, 167, 255, 0.42);
}

.panel-dot.warm {
    background: #f0d060;
    box-shadow: 0 0 18px rgba(240, 208, 96, 0.36);
}

.signal-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
}

.signal-card span,
.dashboard-grid span {
    display: block;
    color: #78f2d7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signal-card strong {
    display: block;
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.35;
}

.signal-card p {
    margin: 0;
    color: rgba(231, 241, 246, 0.72);
    font-size: 14px;
}

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

.dashboard-grid div {
    min-height: 108px;
    padding: 18px;
    background: rgba(6, 16, 28, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius);
}

.dashboard-grid strong {
    display: block;
    margin-top: 18px;
    color: #f8fbff;
    font-size: 15px;
}

.flow-lines {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: rgba(6, 16, 28, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.flow-lines span {
    display: block;
    width: var(--w);
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #78f2d7, #77a7ff);
}

.quick-access {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    max-width: var(--content-wide);
    margin: -34px auto 0;
    padding: 0 min(5vw, 72px);
    position: relative;
    z-index: 2;
}

.quick-access a {
    min-height: 104px;
    padding: 22px 24px;
    color: #f8fbff;
    background: linear-gradient(180deg, rgba(19, 36, 54, 0.96), rgba(13, 26, 40, 0.96));
    border: 1px solid rgba(175, 217, 225, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.quick-access a:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.quick-access a:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quick-access a:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(21, 52, 68, 0.98), rgba(11, 35, 50, 0.98));
    border-color: rgba(120, 242, 215, 0.34);
}

.quick-access span {
    display: block;
    color: #78f2d7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-access strong {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.45;
}

.home-section .section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

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

.learning-grid .category-card {
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.learning-grid .category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-bright), var(--blue), var(--yellow));
}

.track-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: rgba(37, 99, 184, 0.18);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.card-meta {
    display: inline-flex;
    margin: 4px 0 16px;
    color: var(--muted-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.purpose-section {
    background:
        linear-gradient(180deg, rgba(240, 245, 246, 0.95), rgba(232, 239, 238, 0.95)),
        linear-gradient(90deg, rgba(37, 99, 184, 0.08) 1px, transparent 1px);
}

.purpose-card {
    position: relative;
}

.purpose-index {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.insight-section {
    position: relative;
}

.insight-section > div {
    padding: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(201, 212, 222, 0.74);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.section {
    --section-y: clamp(3.5rem, 8vw, 5rem);
    padding: var(--section-y) min(5vw, 72px);
}

.section > * {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.section > .section-heading {
    width: 100%;
    max-width: var(--content-max);
}

.section.term-grid,
.section.template-grid {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.section.term-grid > *,
.section.template-grid > * {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.section.article-body-layout,
.section.article-layout {
    width: 100%;
    max-width: var(--content-wide);
    margin-left: auto;
    margin-right: auto;
}

.section.article-body-layout > *,
.section.article-layout > * {
    min-width: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.section.two-column {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.section.two-column > * {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.section.tools-band {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: min(5vw, 72px);
    padding-right: min(5vw, 72px);
}

.section.tools-band > * {
    max-width: none;
}

.section.muted {
    background: linear-gradient(180deg, var(--soft) 0%, #eef3f0 100%);
    border-top: 1px solid rgba(226, 232, 239, 0.75);
    border-bottom: 1px solid rgba(226, 232, 239, 0.75);
}

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

.section-heading > * {
    max-width: 760px;
}

.section-heading h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 3.6vw, 40px);
    line-height: 1.22;
    letter-spacing: 0;
}

.section-heading.compact h2 {
    font-size: 26px;
}

.category-grid,
.purpose-grid,
.template-grid,
.term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.category-card,
.purpose-card,
.template-card,
.term-card,
.step-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 26px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .category-card:hover,
    .purpose-card:hover,
    .template-card:hover,
    .term-card:hover,
    .step-card:hover {
        transform: translateY(-3px);
    }
}

.category-card:hover,
.purpose-card:hover,
.template-card:hover,
.term-card:hover,
.step-card:hover {
    border-color: rgba(13, 107, 86, 0.35);
    box-shadow: var(--shadow-md);
}

.badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 12px;
    color: var(--green-dark);
    background: var(--green-tint);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.category-card h3,
.purpose-card h3,
.template-card h2,
.term-card h2,
.step-card h2 {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: 0;
}

.category-card p,
.purpose-card p,
.template-card p,
.term-card p,
.step-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.card-link,
.template-card a,
.text-link {
    color: var(--green);
    font-weight: 800;
}

.category-card .card-link,
.template-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 14px;
}

.category-card .card-link::after,
.template-card .card-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.category-card:hover .card-link::after,
.template-card:hover .card-link::after {
    transform: translateX(3px);
}

.status-label {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 10px;
    color: var(--coral);
    background: #fceee8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 48px);
    align-items: start;
}

.link-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.link-list li {
    border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    display: block;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}

.link-list a:hover {
    background: var(--soft);
    color: var(--green-dark);
}

.term-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.term-cloud a {
    padding: 10px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.term-cloud a:hover {
    border-color: rgba(13, 107, 86, 0.4);
    background: var(--green-tint);
    box-shadow: var(--shadow-sm);
}

.tools-band {
    color: #f8fafb;
    background: linear-gradient(125deg, #063d32 0%, var(--green-dark) 45%, #0a5c4a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tools-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    flex-wrap: wrap;
}

.tools-band .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #d4f5ea;
}

.tools-band p,
.tools-band .section-heading p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.65;
    max-width: 520px;
}

.tools-band h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.2vw, 36px);
    letter-spacing: 0;
    line-height: 1.2;
}

.tools-band .button.primary {
    background: linear-gradient(180deg, #f0d060, var(--yellow));
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a241f;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.tools-band .button.primary:hover {
    filter: brightness(1.05);
}

.page-hero {
    padding: 64px min(5vw, 72px) 52px;
    background: linear-gradient(135deg, var(--green-tint) 0%, #f5faf8 38%, var(--soft-warm) 100%);
    border-bottom: 1px solid var(--line);
}

.page-hero-inner {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.page-hero p:not(.eyebrow) {
    font-size: 17px;
    color: #2d3a44;
    max-width: 640px;
    margin-bottom: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 6px;
    padding: 14px min(5vw, 72px) 0;
    max-width: var(--content-wide);
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.breadcrumbs a {
    color: var(--green-dark);
    text-decoration: underline;
    text-decoration-color: rgba(6, 74, 60, 0.25);
    text-underline-offset: 3px;
}

.breadcrumbs a:hover {
    text-decoration-color: var(--green-dark);
}

.breadcrumbs span:last-child {
    color: var(--ink);
    font-weight: 700;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) 1fr;
    gap: 40px;
}

.side-menu {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    align-self: start;
    display: grid;
    gap: 6px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.side-menu strong {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.side-menu a {
    padding: 10px 12px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.side-menu a:hover {
    color: var(--green-dark);
    background: var(--soft);
}

.side-menu a.current {
    color: var(--green-dark);
    background: var(--green-tint);
    border-color: rgba(13, 107, 86, 0.22);
    font-weight: 800;
}

.article-list,
.step-list {
    display: grid;
    gap: 14px;
}

.article-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 22px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-row:hover {
    border-color: rgba(13, 107, 86, 0.2);
    box-shadow: var(--shadow-md);
}

.article-row span,
.step-card span {
    color: var(--coral);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.article-row h2 {
    margin-bottom: 6px;
    font-size: 20px;
    letter-spacing: 0;
}

.article-row h2 a {
    transition: color 0.2s ease;
}

.article-row h2 a:hover {
    color: var(--green-dark);
}

.article-row p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    margin-top: 10px;
    font-size: 14px;
    gap: 4px;
}

.text-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.text-link:hover::after {
    transform: translateX(3px);
}

.article-hero {
    padding: 42px min(5vw, 72px) 44px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 248, 0.94) 48%, rgba(250, 247, 240, 0.9) 100%),
        url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1800&q=80") center/cover;
    border-bottom: 1px solid var(--line);
}

.article-hero > * {
    max-width: var(--content-wide);
    margin-left: auto;
    margin-right: auto;
}

.article-hero h1 {
    max-width: 820px;
    margin-bottom: 16px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.25;
    letter-spacing: 0;
}

.article-hero p:not(.eyebrow) {
    max-width: 760px;
    color: #2d3a44;
    font-size: 16px;
    line-height: 1.85;
}

.article-body-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 820px);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.article-toc {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    display: grid;
    gap: 12px;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.article-toc strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--ink);
    line-height: 1.4;
}

.article-toc a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    margin-left: -10px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.article-toc a:hover {
    color: var(--green-dark);
    border-left-color: rgba(13, 107, 86, 0.35);
}

.article-body {
    display: grid;
    gap: 28px;
    min-width: 0;
    padding: 34px 38px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.takeaway-box,
.checklist-box,
.faq-box,
.table-box,
.chart-box,
.related-box {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 28px 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.takeaway-box {
    border-color: rgba(13, 107, 86, 0.22);
    background: linear-gradient(180deg, #fbfffd 0%, #ffffff 40%);
    box-shadow: inset 4px 0 0 var(--green), var(--shadow-sm);
}

.article-body h2 {
    margin-bottom: 14px;
    font-size: 26px;
    line-height: 1.35;
    letter-spacing: 0;
}

.article-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: 0;
}

.article-body p {
    color: #394854;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 1.25em;
}

.article-body li {
    color: #394854;
    padding-left: 0.15em;
}

.article-section {
    display: grid;
    gap: 18px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.article-section:last-of-type {
    border-bottom: none;
}

.source-line a,
.source-note a {
    color: var(--green-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.table-scroll {
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.table-scroll table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px;
}

.table-scroll th,
.table-scroll td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table-scroll th {
    color: var(--green-dark);
    background: var(--green-tint);
    font-weight: 800;
}

.table-scroll tr:last-child td {
    border-bottom: none;
}

.chart-box {
    display: grid;
    gap: 18px;
}

.chart-card h2 {
    margin-bottom: 10px;
}

.article-section .table-box,
.article-section .chart-box {
    margin-top: 8px;
}

.source-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    margin-top: 2px;
    padding: 12px 14px;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.source-note strong {
    color: var(--green-dark);
    font-weight: 800;
}

.bar-chart {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.bar-row {
    display: grid;
    gap: 6px;
}

.bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.bar-meta strong {
    color: var(--green-dark);
    white-space: nowrap;
}

.bar-track {
    height: 12px;
    overflow: hidden;
    background: var(--soft);
    border-radius: 999px;
}

.bar-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--green-bright));
    border-radius: inherit;
}

.bar-row p,
.source-line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.faq-box details {
    border-top: 1px solid var(--line);
}

.faq-box details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-box summary {
    cursor: pointer;
    padding: 16px 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.5;
}

.faq-box summary::marker {
    color: var(--green);
}

.faq-box p {
    margin: 0 0 18px;
    color: var(--muted);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.related-card {
    display: block;
    padding: 18px 20px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    border-color: rgba(13, 107, 86, 0.3);
    background: #fff;
}

@media (prefers-reduced-motion: no-preference) {
    .related-card:hover {
        transform: translateY(-2px);
    }
}

.related-card span {
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.related-card strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.35;
}

.related-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 36px 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-state h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.sitemap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 24px;
    align-items: start;
}

.sitemap-layout > * {
    min-width: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.sitemap-primary,
.sitemap-secondary {
    display: grid;
    gap: 18px;
}

.sitemap-secondary {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.sitemap-block,
.sitemap-category {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.sitemap-block {
    padding: 24px;
}

.sitemap-block-heading {
    margin-bottom: 18px;
}

.sitemap-block-heading h2,
.sitemap-category h3 {
    margin-bottom: 8px;
    line-height: 1.35;
    letter-spacing: 0;
}

.sitemap-block-heading h2 {
    font-size: 22px;
}

.sitemap-category h3 {
    font-size: 19px;
}

.sitemap-block-heading a,
.sitemap-category h3 a {
    transition: color 0.2s ease;
}

.sitemap-block-heading a:hover,
.sitemap-category h3 a:hover {
    color: var(--green-dark);
}

.sitemap-category-list {
    display: grid;
    gap: 14px;
}

.sitemap-category {
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
    gap: 22px;
    padding: 22px;
}

.sitemap-category-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

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

.sitemap-link-list.compact {
    gap: 9px;
}

.sitemap-link-list a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: #2d3a44;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
    transition: color 0.2s ease;
}

.sitemap-link-list a::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(13, 107, 86, 0.35);
    transform: translateY(-1px);
}

.sitemap-link-list a:hover {
    color: var(--green-dark);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 32px 24px;
    align-items: start;
    padding: 48px min(5vw, 72px) 40px;
    color: var(--muted);
    background: #fff;
    border-top: 1px solid var(--line);
}

.site-footer .footer-brand p {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
}

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

.footer-nav a {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--green-dark);
}

.site-footer .footer-copy {
    margin: 0;
    font-size: 12px;
    color: var(--muted-light);
    white-space: nowrap;
}

.brand--footer .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 15px;
}

.admin-shell {
    width: min(var(--content-wide), calc(100% - min(10vw, 96px)));
    margin: 0 auto;
    padding: 44px 0 72px;
}

.admin-header,
.admin-preview-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.18;
}

.admin-header p:not(.eyebrow) {
    max-width: 680px;
    color: var(--muted);
    margin-bottom: 0;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    gap: 22px;
    align-items: start;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px 20px;
    color: #dcecf2;
    background: linear-gradient(135deg, #0b1b2b, #102b38);
    border: 1px solid rgba(120, 242, 215, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.admin-toolbar strong {
    display: block;
    color: #78f2d7;
    font-size: 28px;
    line-height: 1;
}

.admin-toolbar span {
    color: rgba(220, 236, 242, 0.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-toolbar p {
    margin: 0;
    color: rgba(220, 236, 242, 0.8);
    font-size: 14px;
}

.admin-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.admin-article-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 107, 86, 0.28);
    box-shadow: var(--shadow-md);
}

.admin-article-card h2 {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.45;
}

.admin-article-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.admin-article-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: auto 0 18px;
    padding-top: 14px;
}

.admin-article-card dl div {
    min-width: 0;
    padding: 10px 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.admin-article-card dt {
    color: var(--muted-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-article-card dd {
    overflow: hidden;
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.admin-card-actions .button {
    flex: 1;
    min-height: 42px;
    padding-inline: 14px;
}

.admin-card {
    padding: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.admin-form {
    display: grid;
    gap: 12px;
}

.admin-form label {
    color: #24313a;
    font-size: 13px;
    font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 14px;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form button {
    justify-self: start;
    margin-top: 8px;
}

.auto-rewrite-form {
    align-content: start;
}

.auto-rewrite-plan {
    margin: 8px 0 4px;
    padding: 18px;
    background: linear-gradient(135deg, #eef9f6, #f8fbfb);
    border: 1px solid rgba(13, 107, 86, 0.14);
    border-radius: var(--radius-sm);
}

.auto-rewrite-plan h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.auto-rewrite-plan ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.current-article h2 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.35;
}

.current-article p {
    color: var(--muted);
}

.current-article dl {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
}

.current-article dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.current-article dt {
    color: var(--muted-light);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.current-article dd {
    margin: 0;
    font-weight: 800;
}

.admin-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 700;
}

.admin-alert p {
    margin: 0;
}

.admin-alert.success {
    color: var(--green-dark);
    background: var(--green-tint);
    border: 1px solid rgba(13, 107, 86, 0.22);
}

.admin-alert.danger {
    color: #8f2d18;
    background: #fff0ea;
    border: 1px solid #f2c8bc;
}

.admin-preview {
    margin-top: 36px;
}

.admin-preview-heading h2 {
    margin: 0;
    font-size: 30px;
}

.admin-preview-heading.compact {
    align-items: center;
    margin-bottom: 18px;
}

.admin-preview-heading.compact h3 {
    margin: 0;
    font-size: 22px;
}

.hidden-json {
    display: none;
}

.rewrite-result h3,
.rewrite-result h4 {
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 1.35;
}

.rewrite-result > p {
    color: var(--muted);
}

.admin-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 22px 0;
}

.admin-columns h4,
.admin-columns h5,
.rewrite-result h4,
.rewrite-result h5 {
    margin-bottom: 10px;
    font-size: 16px;
}

.admin-columns ul {
    margin: 0;
    padding-left: 18px;
    color: #2d3a44;
}

.admin-section-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.admin-section-list li {
    padding: 12px 14px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.admin-section-list strong,
.admin-section-list span {
    display: block;
}

.admin-section-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.prompt-box {
    margin-top: 16px;
}

.prompt-box summary {
    cursor: pointer;
    font-weight: 800;
}

.prompt-box pre {
    overflow: auto;
    max-height: 420px;
    margin: 18px 0 0;
    padding: 18px;
    color: #e6f6f3;
    background: #091723;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
}

body.modal-open {
    overflow: hidden;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

.admin-modal.is-open {
    display: block;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 24, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-modal-panel {
    position: relative;
    display: grid;
    gap: 18px;
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    overflow: auto;
    padding: 26px;
    background: linear-gradient(180deg, #f9fbfb, #eef4f3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.admin-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.admin-modal-header h2 {
    max-width: 760px;
    margin-bottom: 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.32;
}

.admin-modal-header p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.admin-modal-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: #dcecf2;
    background: #0b1b2b;
    border: 1px solid rgba(120, 242, 215, 0.2);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.admin-modal-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.modal-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.modal-article-meta span {
    padding: 5px 9px;
    color: var(--green-dark);
    background: var(--green-tint);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.modal-help h3 {
    margin-bottom: 12px;
}

.modal-help ol {
    margin: 0 0 18px;
    padding-left: 20px;
}

.modal-help p {
    color: var(--muted);
}

@media (max-width: 900px) {
    .home-hero-grid,
    .learning-grid,
    .quick-access {
        grid-template-columns: 1fr 1fr;
    }

    .quick-access a:nth-child(2) {
        border-radius: 0 var(--radius) 0 0;
    }

    .quick-access a:nth-child(3) {
        border-radius: 0 0 0 var(--radius);
    }

    .quick-access a:first-child {
        border-radius: var(--radius) 0 0 0;
    }

    .quick-access a:last-child {
        border-radius: 0 0 var(--radius) 0;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .admin-header,
    .admin-preview-heading,
    .admin-layout,
    .admin-columns,
    .admin-modal-layout {
        grid-template-columns: 1fr;
    }

    .admin-header,
    .admin-preview-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-toolbar,
    .admin-modal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer .footer-copy {
        white-space: normal;
    }
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
    }

    .site-nav {
        order: 3;
        width: 100%;
        gap: 6px;
        padding: 4px 0 2px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
    }

    .site-search {
        margin-left: auto;
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    .site-search input {
        width: min(160px, 100%);
        flex: 1;
    }

    .hero,
    .hero-inner,
    .home-hero-grid,
    .two-column,
    .article-layout,
    .article-body-layout,
    .sitemap-layout,
    .sitemap-category {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 40px;
    }

    .hero-copy {
        order: -1;
    }

    .side-menu,
    .article-toc,
    .sitemap-secondary {
        position: static;
    }

    .article-body {
        padding: 24px 20px;
    }

    .tools-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding-top: 42px;
        padding-bottom: 76px;
    }

    .home-hero h1 {
        font-size: clamp(32px, 10vw, 44px);
    }

    .hero-stats,
    .dashboard-grid,
    .quick-access,
    .learning-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        max-width: none;
    }

    .intelligence-panel {
        min-height: auto;
        padding: 14px;
    }

    .signal-card strong {
        font-size: 20px;
    }

    .quick-access {
        margin-top: -48px;
    }

    .quick-access a,
    .quick-access a:first-child,
    .quick-access a:nth-child(2),
    .quick-access a:nth-child(3),
    .quick-access a:last-child {
        border-radius: var(--radius);
    }

    .insight-section > div {
        padding: 20px;
    }

    .admin-shell {
        width: min(100% - 32px, var(--content-wide));
    }

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

    .admin-modal-panel {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px);
        margin: 9px auto;
        padding: 18px;
    }

    .admin-card-actions {
        flex-direction: column;
    }
}
