:root {
    --paper: #f5efe2;
    --paper-strong: #fbf7ef;
    --paper-deep: #efe4cf;
    --ink: #1f1a16;
    --ink-soft: #51473f;
    --line: rgba(56, 42, 31, 0.22);
    --line-soft: rgba(56, 42, 31, 0.1);
    --accent: #7f2f20;
    --accent-strong: #6a2418;
    --accent-soft: rgba(127, 47, 32, 0.1);
    --accent-paper: rgba(127, 47, 32, 0.08);
    --olive: #52604d;
    --olive-soft: rgba(82, 96, 77, 0.1);
    --gold: #b0864b;
    --gold-soft: rgba(176, 134, 75, 0.12);
    --shadow: 0 18px 40px rgba(52, 39, 28, 0.08);
    --font-body: "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
    --font-heading: "Zen Old Mincho", "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(127, 47, 32, 0.08), transparent 22%),
        radial-gradient(circle at top right, rgba(82, 96, 77, 0.08), transparent 18%),
        repeating-linear-gradient(
            to bottom,
            rgba(90, 72, 51, 0.03) 0,
            rgba(90, 72, 51, 0.03) 1px,
            transparent 1px,
            transparent 9px
        ),
        linear-gradient(180deg, #f7f1e4 0%, #efe6d6 100%);
    font-family: var(--font-body);
    line-height: 1.75;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 35%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12), transparent 20%);
}

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

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

.site-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.site-header {
    position: relative;
    margin-bottom: 28px;
    padding: 16px 22px 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(243, 236, 224, 0.96));
    box-shadow: var(--shadow);
}

.site-header::before,
.site-header::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    height: 1px;
    background: var(--line-soft);
}

.site-header::before {
    top: 10px;
}

.site-header::after {
    bottom: 10px;
}

.site-header-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line-soft);
    color: rgba(81, 71, 63, 0.82);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-header-top p:nth-child(2) {
    color: var(--accent);
}

.site-header-top p,
.site-footer p {
    margin: 0;
}

.site-header-main {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding-top: 16px;
}

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

.site-brand img {
    width: 60px;
    height: 60px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    padding: 6px;
}

.site-brand-copy {
    display: grid;
    gap: 2px;
}

.site-brand-copy strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.site-brand-copy span {
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}

.site-nav a {
    position: relative;
    color: var(--ink-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
    background: rgba(127, 47, 32, 0.08);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    background: var(--accent);
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-left: 4px solid var(--olive);
    border-top: 1px solid var(--line-soft);
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: rgba(82, 96, 77, 0.08);
    color: #2f3b2d;
}

.breadcrumbs {
    margin: 12px 0 18px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: rgba(81, 71, 63, 0.55);
}

.breadcrumbs a {
    border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.section {
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.section-title,
.hero-title,
.article-title,
.feature-lead-title {
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: -0.035em;
}

.section-title {
    font-size: clamp(1.8rem, 3.3vw, 2.85rem);
    line-height: 1.12;
    color: #2a2019;
}

.section-copy,
.hero-copy,
.meta-copy,
.article-card p,
.coverage-body p,
.feature-mini p,
.feature-lead-copy,
.editorial-points p,
.form-help {
    color: var(--ink-soft);
}

.section-copy,
.hero-copy,
.meta-copy,
.article-card p,
.coverage-body p,
.feature-mini p,
.feature-lead-copy,
.editorial-points p {
    line-height: 1.9;
}

.pill,
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(127, 47, 32, 0.04));
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pill::before,
.hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 999px;
}

.button-row,
.chip-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(127, 47, 32, 0.35);
}

.button-primary {
    background: var(--ink);
    color: var(--paper-strong);
    border-color: var(--ink);
}

.button-secondary {
    color: var(--accent);
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(127, 47, 32, 0.04));
    color: var(--ink);
    font-size: 0.88rem;
}

.tag-link:hover {
    color: var(--accent);
    border-color: rgba(127, 47, 32, 0.22);
}

.glossary-inline-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(127, 47, 32, 0.35);
    text-underline-offset: 0.16em;
}

.glossary-inline-link:hover {
    color: var(--accent-strong);
    text-decoration-color: rgba(127, 47, 32, 0.55);
}

.category-link,
.category-pill {
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.category-link:hover,
.category-pill:hover {
    color: #fff;
    border-color: transparent;
    filter: brightness(1.03);
}

.category-link--programming,
.category-pill--programming {
    background: linear-gradient(180deg, #4a5872, #334055);
}

.category-link--server,
.category-pill--server {
    background: linear-gradient(180deg, #465f6f, #2f4656);
}

.category-link--network,
.category-pill--network {
    background: linear-gradient(180deg, #3f6f69, #2d5550);
}

.category-link--framework,
.category-pill--framework {
    background: linear-gradient(180deg, #6d5263, #523b49);
}

.category-link--software,
.category-pill--software {
    background: linear-gradient(180deg, #8a6a3c, #6c532f);
}

.category-link--security,
.category-pill--security {
    background: linear-gradient(180deg, #9b5237, #7f2f20);
}

.category-link--ai,
.category-pill--ai {
    background: linear-gradient(180deg, #53684a, #3f5238);
}

.masthead {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 22px;
    align-items: stretch;
}

.masthead-copy,
.masthead-note,
.editorial-strip,
.feature-lead,
.feature-stack,
.coverage-card,
.article-card,
.article-panel,
.meta-box,
.form-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.97), rgba(244, 236, 222, 0.97));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.masthead-copy,
.masthead-note,
.editorial-strip,
.feature-lead,
.feature-stack,
.article-panel,
.form-panel {
    overflow: hidden;
}

.masthead-copy::before,
.masthead-note::before,
.editorial-strip::before,
.feature-lead::before,
.feature-stack::before,
.article-panel::before,
.form-panel::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    height: 1px;
    background: var(--line-soft);
}

.masthead-copy {
    padding: 42px 40px 34px;
    background:
        radial-gradient(circle at top right, rgba(176, 134, 75, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(244, 236, 222, 0.97));
}

.masthead-copy::after {
    content: "VOL. 01";
    position: absolute;
    top: 18px;
    right: 18px;
    color: rgba(81, 71, 63, 0.45);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
}

.hero-title {
    margin-top: 18px;
    font-size: clamp(2.6rem, 4.8vw, 4.5rem);
    line-height: 1.02;
    color: #241a15;
}

.hero-copy {
    margin: 24px 0 0;
    max-width: 720px;
    font-size: 1.03rem;
}

.article-lead-copy p {
    margin: 0;
}

.button-row {
    margin-top: 26px;
}

.masthead-note {
    padding: 28px 24px;
    background:
        linear-gradient(180deg, rgba(52, 36, 28, 0.98), rgba(31, 23, 19, 0.98));
    color: #f5ebdd;
}

.masthead-note::before {
    background: rgba(255, 235, 209, 0.18);
}

.note-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: rgba(245, 235, 221, 0.8);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.note-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #d4a679;
    border-radius: 999px;
}

.masthead-note p {
    margin: 0;
    color: rgba(245, 235, 221, 0.84);
    line-height: 1.95;
}

.note-rule {
    width: 100%;
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, rgba(212, 166, 121, 0.62), transparent);
}

.note-quote {
    font-family: var(--font-heading);
    font-size: 1.16rem;
    line-height: 1.7;
}

.editorial-strip {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 248, 239, 0.96), rgba(240, 232, 220, 0.96));
}

.editorial-kicker {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.editorial-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.editorial-points article {
    padding-left: 18px;
    border-left: 1px solid var(--line-soft);
}

.editorial-points strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 1.12rem;
    color: var(--accent-strong);
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: 18px;
}

.feature-layout-single {
    grid-template-columns: 1fr;
}

.feature-lead {
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
}

.feature-lead--text-only {
    grid-template-columns: 1fr;
}

.feature-lead-media {
    min-height: 100%;
    background:
        linear-gradient(135deg, rgba(127, 47, 32, 0.18), transparent 34%),
        linear-gradient(315deg, rgba(176, 134, 75, 0.16), transparent 36%),
        linear-gradient(180deg, #f1e4cf, #eadcc5);
    border-right: 1px solid var(--line-soft);
}

.feature-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-lead-media img.is-svg {
    object-fit: contain;
    padding: 18px;
    background: rgba(255, 255, 255, 0.32);
}

.feature-lead-body {
    padding: 26px 24px 24px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.54), rgba(127, 47, 32, 0.03));
}

.feature-lead--text-only .feature-lead-body {
    padding: 32px 30px 28px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.meta-row span:last-child {
    color: var(--accent);
}

.feature-lead-title {
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    line-height: 1.2;
    color: #291e17;
}

.feature-lead-copy {
    margin: 14px 0 0;
}

.feature-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 700;
}

.feature-readmore::after {
    content: "→";
}

.feature-stack {
    display: grid;
    gap: 12px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 249, 240, 0.96), rgba(241, 233, 220, 0.96));
}

.feature-stack-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
}

.feature-stack-head strong {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    color: var(--accent-strong);
}

.feature-stack-head span {
    color: var(--ink-soft);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.feature-mini {
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.feature-mini:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.feature-mini h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.55;
}

.feature-mini p {
    margin: 10px 0 0;
    font-size: 0.94rem;
}

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

.coverage-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 20px 20px 18px;
    border-top: 3px solid rgba(127, 47, 32, 0.22);
}

.coverage-index {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(176, 134, 75, 0.08));
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent);
}

.coverage-body strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.4;
    color: var(--accent-strong);
}

.coverage-body p {
    margin: 10px 0 0;
}

.coverage-count {
    align-self: center;
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(127, 47, 32, 0.1), rgba(176, 134, 75, 0.08));
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.coverage-card--programming {
    border-top-color: rgba(74, 88, 114, 0.34);
}

.coverage-card--server {
    border-top-color: rgba(70, 95, 111, 0.34);
}

.coverage-card--network {
    border-top-color: rgba(63, 111, 105, 0.34);
}

.coverage-card--framework {
    border-top-color: rgba(109, 82, 99, 0.34);
}

.coverage-card--software {
    border-top-color: rgba(138, 106, 60, 0.34);
}

.coverage-card--security {
    border-top-color: rgba(127, 47, 32, 0.42);
}

.coverage-card--ai {
    border-top-color: rgba(83, 104, 74, 0.36);
}

.coverage-index--programming {
    color: #3d4b61;
    border-color: rgba(74, 88, 114, 0.22);
    background: linear-gradient(180deg, rgba(74, 88, 114, 0.12), rgba(255, 255, 255, 0.58));
}

.coverage-index--server {
    color: #334b5a;
    border-color: rgba(70, 95, 111, 0.22);
    background: linear-gradient(180deg, rgba(70, 95, 111, 0.12), rgba(255, 255, 255, 0.58));
}

.coverage-index--network {
    color: #2f5b55;
    border-color: rgba(63, 111, 105, 0.22);
    background: linear-gradient(180deg, rgba(63, 111, 105, 0.12), rgba(255, 255, 255, 0.58));
}

.coverage-index--framework {
    color: #5b4453;
    border-color: rgba(109, 82, 99, 0.22);
    background: linear-gradient(180deg, rgba(109, 82, 99, 0.12), rgba(255, 255, 255, 0.58));
}

.coverage-index--software {
    color: #74562f;
    border-color: rgba(138, 106, 60, 0.22);
    background: linear-gradient(180deg, rgba(138, 106, 60, 0.12), rgba(255, 255, 255, 0.58));
}

.coverage-index--security {
    color: var(--accent);
    border-color: rgba(127, 47, 32, 0.26);
    background: linear-gradient(180deg, rgba(127, 47, 32, 0.14), rgba(255, 255, 255, 0.58));
}

.coverage-index--ai {
    color: #465a3f;
    border-color: rgba(83, 104, 74, 0.22);
    background: linear-gradient(180deg, rgba(83, 104, 74, 0.12), rgba(255, 255, 255, 0.58));
}

.tag-cloud {
    padding-top: 8px;
}

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

.glossary-card {
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-top: 3px solid rgba(127, 47, 32, 0.24);
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(242, 234, 221, 0.94));
    box-shadow: var(--shadow);
}

.glossary-card-head {
    display: grid;
    gap: 6px;
}

.glossary-card-kicker {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.glossary-card strong {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.2;
}

.glossary-card p {
    margin: 14px 0 0;
    color: var(--ink-soft);
}

.glossary-title {
    font-size: clamp(2.6rem, 5vw, 5.1rem);
}

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-top: 3px solid rgba(127, 47, 32, 0.22);
}

.article-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(127, 47, 32, 0.18), transparent 35%),
        linear-gradient(315deg, rgba(82, 96, 77, 0.16), transparent 35%),
        linear-gradient(180deg, #f1e6d5, #ebe0cb);
    border-bottom: 1px solid var(--line-soft);
}

.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-media img.is-svg {
    object-fit: contain;
    padding: 14px;
    background: rgba(255, 255, 255, 0.28);
}

.article-card-body,
.taxonomy-card-body {
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.74), rgba(127, 47, 32, 0.02));
}

.article-card h3,
.taxonomy-card strong {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.24rem;
    line-height: 1.48;
    color: #2a2019;
}

.article-card p,
.taxonomy-card p {
    margin: 12px 0 0;
}

.chip-row {
    margin-top: 16px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
}

.article-panel {
    padding: 28px;
    border-top: 4px solid rgba(127, 47, 32, 0.28);
    background:
        radial-gradient(circle at top right, rgba(176, 134, 75, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(244, 236, 222, 0.97));
}

.article-title {
    font-size: clamp(2.15rem, 4vw, 3.95rem);
    line-height: 1.08;
    color: #241a15;
    max-width: 15ch;
}

.article-content {
    font-size: 1.02rem;
    line-height: 1.95;
}

.article-content > p:first-of-type::first-letter {
    float: left;
    margin: 0.06em 0.1em 0 0;
    font-family: var(--font-heading);
    font-size: 3.3em;
    line-height: 0.82;
    color: var(--accent);
}

.article-content h2,
.article-content h3 {
    margin: 2.3em 0 0.8em;
    font-family: var(--font-heading);
    line-height: 1.25;
}

.article-content h2 {
    padding: 0 0 10px 14px;
    border-bottom: 1px solid rgba(127, 47, 32, 0.18);
    border-left: 4px solid var(--accent);
    font-size: 1.96rem;
    color: var(--accent-strong);
}

.article-content h3 {
    font-size: 1.42rem;
    color: var(--olive);
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content pre,
.article-content blockquote {
    margin: 0 0 1.2em;
}

.article-content ul,
.article-content ol {
    padding-left: 1.3em;
}

.article-content li + li {
    margin-top: 0.35em;
}

.article-content pre,
.form-field textarea.code {
    overflow-x: auto;
    padding: 16px;
    background: #1f1a16;
    color: #f8f2e9;
}

.article-content code {
    font-family: Consolas, "Courier New", monospace;
}

.article-content :not(pre) > code {
    padding: 0.15em 0.4em;
    background: rgba(56, 42, 31, 0.08);
    color: var(--accent);
}

.article-content blockquote {
    padding: 16px 18px;
    border-left: 4px solid var(--accent);
    background: linear-gradient(180deg, rgba(127, 47, 32, 0.1), rgba(176, 134, 75, 0.08));
    color: #613227;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.97rem;
    background: rgba(255, 255, 255, 0.48);
}

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

.article-content thead th {
    background: linear-gradient(180deg, rgba(127, 47, 32, 0.12), rgba(176, 134, 75, 0.1));
    color: var(--ink);
    font-weight: 700;
}

.article-table-wrap {
    margin: 1.6em 0;
    overflow-x: auto;
}

.article-summary-box,
.article-callout,
.article-callout--warning {
    margin: 0 0 1.6em;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
}

.article-summary-box {
    border-left: 4px solid var(--accent);
    background: linear-gradient(180deg, rgba(127, 47, 32, 0.1), rgba(255, 255, 255, 0.72));
}

.article-summary-label {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.article-key-list {
    margin: 0;
    padding-left: 1.2em;
}

.article-callout strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 1.06rem;
    color: var(--olive);
}

.article-callout--warning {
    border-left: 4px solid #9f231b;
    background: linear-gradient(180deg, rgba(159, 35, 27, 0.1), rgba(255, 255, 255, 0.76));
}

.article-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 1.6em 0;
}

.article-note-card {
    padding: 18px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(82, 96, 77, 0.08), rgba(255, 255, 255, 0.72));
}

.article-note-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    line-height: 1.45;
    color: var(--accent-strong);
}

.article-note-card p {
    margin: 0;
    color: var(--ink-soft);
}

.meta-box {
    padding: 18px 20px;
    border-top: 3px solid rgba(82, 96, 77, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(239, 231, 217, 0.94));
}

.meta-box + .meta-box {
    margin-top: 16px;
}

.meta-box h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--olive);
}

.meta-box p {
    margin: 0;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-panel {
    padding: 28px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.56);
    color: var(--ink);
    font: inherit;
}

.form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.field-error {
    margin-top: 8px;
    color: #9f231b;
    font-size: 0.9rem;
}

.empty-state {
    padding: 24px;
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, 0.36);
    color: var(--ink-soft);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
}

.pagination .active {
    background: var(--ink);
    color: var(--paper-strong);
    border-color: var(--ink);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.92rem;
}

@media (max-width: 1080px) {
    .masthead,
    .feature-layout,
    .two-column {
        grid-template-columns: 1fr;
    }

    .feature-lead {
        grid-template-columns: 1fr;
    }

    .feature-lead-media {
        min-height: 240px;
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .coverage-grid,
    .grid-articles,
    .taxonomy-grid,
    .glossary-grid,
    .article-note-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    .site-header-main,
    .section-header,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .editorial-strip {
        grid-template-columns: 1fr;
    }

    .editorial-points {
        grid-template-columns: 1fr;
    }

    .editorial-points article {
        padding-left: 0;
        padding-top: 12px;
        border-left: 0;
        border-top: 1px solid var(--line-soft);
    }

    .editorial-points article:first-child {
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 18px, 1180px);
        padding-top: 18px;
    }

    .site-header {
        padding: 14px 16px 16px;
    }

    .site-header-top {
        flex-direction: column;
        gap: 6px;
        letter-spacing: 0.12em;
    }

    .site-brand {
        align-items: flex-start;
    }

    .site-brand img {
        width: 52px;
        height: 52px;
    }

    .masthead-copy,
    .masthead-note,
    .editorial-strip,
    .feature-stack,
    .article-panel,
    .form-panel {
        padding: 22px 20px;
    }

    .coverage-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .coverage-count {
        grid-column: 2;
        justify-self: start;
    }
}
