:root {
    --ink: #17120f;
    --ink-soft: #4e443d;
    --paper: #f7f1e7;
    --paper-deep: #eee3d3;
    --white: #fffdf8;
    --red: #701a27;
    --red-dark: #3d0d16;
    --red-bright: #a62836;
    --gold: #c8a35f;
    --gold-light: #e3ca96;
    --line: rgba(73, 46, 30, .18);
    --shadow: 0 22px 50px rgba(43, 25, 17, .11);
    --radius: 4px;
    --shell: min(1180px, calc(100vw - 48px));
    --reading: 760px;
    --gh-font-heading: Georgia, "Times New Roman", serif;
    --gh-font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: var(--gh-font-heading);
    --sans: var(--gh-font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 8%, rgba(200, 163, 95, .08), transparent 28%),
        var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--red-bright); }

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

.kg-width-wide {
    width: min(960px, calc(100vw - 48px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

button, input { font: inherit; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
    position: fixed;
    z-index: 1000;
    left: 18px;
    top: 14px;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--white);
    border-radius: 2px;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}
.eyebrow.light { color: var(--gold-light); }

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    color: var(--white);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--red-bright); color: var(--white); }
.button.primary:hover { background: #bb3442; color: var(--white); }
.button.ghost { border-color: rgba(255, 255, 255, .42); color: var(--white); background: rgba(255, 255, 255, .03); }
.button.ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* Header */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    color: var(--white);
    background: rgba(22, 13, 12, .96);
    border-bottom: 1px solid rgba(200, 163, 95, .28);
    backdrop-filter: blur(18px);
}
.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--white);
    text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand-mark { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; }
.brand-copy { display: grid; gap: 2px; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.05; letter-spacing: .01em; }
.brand-kicker { color: var(--gold-light); font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
    position: relative;
    padding: 30px 0 28px;
    color: #f4ece1;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}
.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* Home */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 630px;
    color: var(--white);
    background:
        linear-gradient(118deg, rgba(35, 8, 14, .98) 0%, rgba(83, 13, 25, .95) 52%, rgba(15, 12, 10, .98) 100%);
}
.home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: .2;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.06) 24px),
        repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.04) 24px);
    mask-image: linear-gradient(to right, transparent 0, black 55%, black 100%);
}
.hero-pattern {
    position: absolute;
    z-index: -1;
    right: -120px;
    top: 50%;
    width: 620px;
    aspect-ratio: 1;
    border: 1px solid rgba(227, 202, 150, .2);
    border-radius: 50%;
    transform: translateY(-50%);
}
.hero-pattern::before,
.hero-pattern::after {
    position: absolute;
    inset: 12%;
    content: "";
    border: 1px solid rgba(227, 202, 150, .16);
    border-radius: 50%;
}
.hero-pattern::after { inset: 24%; }
.hero-inner {
    min-height: 630px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    align-items: center;
    gap: 80px;
    padding-block: 90px;
}
.hero-copy { max-width: 760px; }
.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.6rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .9;
}
.hero-deck {
    max-width: 650px;
    margin: 30px 0 0;
    color: #eadfd4;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.45;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-emblem { position: relative; display: grid; place-items: center; }
.hero-emblem img { position: relative; z-index: 1; width: min(300px, 78%); border-radius: 50%; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.hero-emblem-ring {
    position: absolute;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(227, 202, 150, .42);
    border-radius: 50%;
}
.home-content { padding: 90px 0 110px; }

.archive-intro {
    display: grid;
    grid-template-columns: .55fr 1.45fr;
    gap: 70px;
    margin: 0 0 100px;
    padding: 0 0 80px;
    border-bottom: 1px solid var(--line);
}
.archive-intro h2,
.section-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.05;
}
.archive-intro-copy { max-width: 760px; }
.archive-intro-copy p { margin-top: 0; color: var(--ink-soft); font-size: 1.08rem; }
.archive-intro-copy p:first-child { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; line-height: 1.55; }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading.compact h2 { font-size: clamp(2rem, 3.2vw, 3rem); }

.cluster-section { scroll-margin-top: 110px; margin-bottom: 100px; }
.cluster-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.cluster-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
    padding: 28px;
    color: var(--ink);
    background: rgba(255, 253, 248, .76);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(43, 25, 17, .04);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cluster-card:hover { color: var(--ink); border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.cluster-card.is-muted { opacity: .82; cursor: default; }
.cluster-card.is-muted:hover { border-color: var(--line); box-shadow: none; transform: none; }
.cluster-index { color: var(--red); font-family: var(--serif); font-size: 1rem; }
.cluster-card strong { display: block; font-family: var(--serif); font-size: 1.42rem; font-weight: 400; line-height: 1.2; }
.cluster-card small { color: var(--ink-soft); font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.cluster-note { max-width: 850px; margin: 28px 0 0; color: var(--ink-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 90px 0; }
.feature-card { padding: 34px; color: var(--white); background: var(--red-dark); }
.feature-card:nth-child(2) { color: var(--ink); background: var(--paper-deep); }
.feature-card:nth-child(3) { background: #26201c; }
.feature-card h2 { margin: 12px 0 18px; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.1; }
.feature-card p { color: inherit; opacity: .88; }
.feature-card .text-link { color: var(--gold-light); }
.feature-card:nth-child(2) .text-link { color: var(--red); }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }

.kara-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); gap: 52px; align-items: center; margin-block: 90px; padding: 54px; color: var(--white); background: linear-gradient(125deg, #211916, #54131e); border: 1px solid rgba(227, 202, 150, .28); }
.kara-home-copy { display: grid; justify-items: start; }
.kara-home h2 { max-width: 680px; margin: 8px 0 16px; font-family: var(--serif); font-size: clamp(2.35rem, 4.2vw, 4.3rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.03; }
.kara-home p:not(.eyebrow) { max-width: 680px; margin: 0 0 14px; color: #e7ddd3; }
.kara-home-copy > strong { margin: 6px 0 24px; color: var(--gold-light); font-size: .77rem; letter-spacing: .09em; text-transform: uppercase; }
.kara-seal { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-family: var(--serif); font-size: 2.15rem; }
.kara-seal img { width: 100%; height: 100%; object-fit: contain; }
.status-pill { display: inline-flex; margin-top: 14px; padding: 8px 12px; color: var(--gold-light); border: 1px solid rgba(227, 202, 150, .42); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.kara-demo { padding: 28px; color: var(--ink); background: #f6efe4; border: 1px solid rgba(227, 202, 150, .65); box-shadow: 0 24px 70px rgba(15, 5, 5, .24); }
.kara-demo > span { color: var(--red); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kara-demo p { padding: 13px 15px; border: 1px solid #d8cbbd; font-size: .93rem; }
.kara-demo-user { margin-left: 12%; background: #fffdfa; }
.kara-demo-answer { margin-right: 8%; background: var(--white); }
.kara-demo-answer strong { display: block; margin-bottom: 4px; color: var(--red); font-family: var(--serif); font-size: 1.12rem; }
.kara-open-link { padding: 0; color: var(--red); background: none; border: 0; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.kara-primary { padding: 12px 17px; color: #2b1714; background: var(--gold-light); border: 0; font-size: .73rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.kara-primary:hover { background: #fff2d6; }
.kara-context-call { padding-block: 30px; color: var(--white); background: #2b1714; border-block: 1px solid rgba(227, 202, 150, .25); }
.kara-context-call-inner { display: flex; gap: 28px; align-items: center; justify-content: space-between; }
.kara-context-call p { margin: 0; color: #e7ddd3; }
.kara-context-call .eyebrow { margin-bottom: 7px; color: var(--gold-light); }
.kara-launcher { position: fixed; z-index: 90; right: 24px; bottom: 22px; display: flex; gap: 10px; align-items: center; padding: 9px 14px 9px 9px; color: var(--white); background: #351019; border: 1px solid rgba(227, 202, 150, .72); box-shadow: 0 10px 34px rgba(22, 8, 8, .28); cursor: pointer; }
.kara-launcher-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-family: var(--serif); font-size: 1.25rem; }
.kara-launcher-mark img { width: 100%; height: 100%; object-fit: contain; }
.kara-launcher strong, .kara-launcher small { display: block; text-align: left; }
.kara-launcher strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.kara-launcher small { color: #d8cbbd; font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }
.kara-backdrop { position: fixed; z-index: 94; inset: 0; background: rgba(20, 9, 8, .38); backdrop-filter: blur(2px); }
.kara-panel { position: fixed; z-index: 95; inset: 0 0 0 auto; width: min(430px, 100%); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; color: var(--ink); background: #fbf7ef; border-left: 1px solid var(--gold); box-shadow: -24px 0 75px rgba(20, 8, 8, .24); transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
.kara-panel.is-open { transform: translateX(0); visibility: visible; }
.kara-panel.is-expanded { width: min(720px, 100%); }
.kara-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; color: var(--white); background: #3b1118; border-bottom: 1px solid rgba(227, 202, 150, .35); }
.kara-panel-identity { display: flex; min-width: 0; gap: 12px; align-items: center; }
.kara-panel-avatar { flex: none; width: 44px; height: 44px; object-fit: contain; }
.kara-panel-head h2 { max-width: 280px; margin: 3px 0 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.15; }
.kara-panel-head .eyebrow { color: var(--gold-light); }
.kara-panel-actions { display: flex; gap: 7px; }
.kara-panel-actions button { width: 38px; height: 38px; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.28); font-size: 1.25rem; cursor: pointer; }
.kara-page-context { padding: 10px 22px; color: #5e5149; background: #efe5d8; border-bottom: 1px solid #ddd0c1; font-size: .76rem; }
.kara-messages { min-height: 180px; overflow-y: auto; padding: 20px 20px 8px; background: #fbf7ef; }
.kara-message { width: fit-content; max-width: 88%; margin: 0 0 13px; padding: 13px 15px; border: 1px solid var(--line); }
.kara-message p { margin: 0; color: inherit; white-space: pre-line; }
.kara-message, .kara-sources a { overflow-wrap: anywhere; }
.kara-message-assistant { color: var(--ink); background: var(--white); }
.kara-message-user { margin-left: auto; color: var(--white); background: var(--red-dark); border-color: var(--red-dark); }
.kara-sources { margin: 12px 0 0; padding: 11px 0 0; border-top: 1px solid var(--line); list-style: none; }
.kara-sources::before { display: block; margin-bottom: 7px; color: var(--ink-soft); content: "Fontes e aprofundamento"; font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.kara-sources li + li { margin-top: 5px; }
.kara-sources a { color: var(--red); font-weight: 700; }
.kara-action-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kara-action-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; color: var(--white); background: var(--red-dark); font-weight: 700; text-decoration: none; }
.kara-action-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.kara-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 8px 20px 0; background: #fbf7ef; }
.kara-suggestions button { padding: 9px 10px; color: var(--red-dark); background: transparent; border: 1px solid #cdbfae; text-align: left; cursor: pointer; }
.kara-suggestions strong, .kara-suggestions span { display: block; }
.kara-suggestions strong { font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; }
.kara-suggestions span { margin-top: 2px; color: var(--ink-soft); font-size: .66rem; }
.kara-form { max-height: 42dvh; overflow-y: auto; padding: 16px 20px 19px; background: var(--white); border-top: 1px solid var(--line); }
.kara-options { margin-top: 9px; font-size: .72rem; }
.kara-options summary { width: fit-content; color: var(--red); text-decoration: underline; cursor: pointer; }
.kara-options[open] summary { margin-bottom: 10px; }
.kara-form-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.kara-form textarea { width: 100%; min-height: 58px; resize: vertical; padding: 11px; color: var(--ink); background: #fffdfa; border: 1px solid #baa999; font: inherit; }
.kara-form-row > button { padding: 0 17px; color: var(--white); background: var(--red-dark); border: 0; font-weight: 800; cursor: pointer; }
.kara-form button:disabled { opacity: .6; cursor: wait; }
.kara-form-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--ink-soft); font-size: .67rem; }
.kara-form-meta button { padding: 0; color: var(--red); background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.kara-privacy { margin: 7px 0 0; color: var(--ink-soft); font-size: .66rem; }
.kara-reporting { display: grid; gap: 7px; margin-top: 11px; font-size: .78rem; color: var(--ink); }
.kara-reporting-consent { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; cursor: pointer; }
.kara-reporting-consent input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--red-dark); }
.kara-reporting-name { display: grid; gap: 5px; }
.kara-reporting-name input { min-height: 40px; padding: 8px 10px; color: var(--ink); background: #fffdfa; border: 1px solid #baa999; font: inherit; }
.kara-reporting-delete { justify-self: start; padding: 0; color: var(--red); background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.kara-reporting-status { color: var(--ink-soft); font-size: .73rem; }
.kara-reporting [hidden] { display: none !important; }
.kara-reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.kara-reactions button { min-height: 34px; padding: 5px 8px; color: var(--red-dark); background: #fbf7ef; border: 1px solid var(--line); font-size: .73rem; cursor: pointer; }
.kara-reactions button:disabled { opacity: .6; cursor: default; }
.kara-selection-action { position: fixed; z-index: 98; padding: 8px 11px; color: var(--white); background: #3b1118; border: 1px solid var(--gold); box-shadow: 0 8px 24px rgba(20, 8, 8, .22); font-size: .68rem; font-weight: 800; cursor: pointer; }
.kara-no-scroll { overflow: hidden; }

/* Internal pages */
.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, #260d11 0%, #621420 70%, #301014 100%);
}
.page-hero::after {
    position: absolute;
    right: -120px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    content: "";
    border: 1px solid rgba(227, 202, 150, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(227, 202, 150, .035), 0 0 0 120px rgba(227, 202, 150, .02);
}
.page-hero-inner { position: relative; z-index: 1; padding: 58px 0 70px; }
.breadcrumbs { margin: 0 0 42px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { color: #d5c7bb; font-size: .75rem; font-weight: 700; }
.breadcrumbs li + li::before { margin-right: 8px; color: var(--gold); content: "/"; }
.breadcrumbs a { color: var(--gold-light); text-decoration: none; }
.page-hero h1 { max-width: 940px; margin: 0; font-family: var(--serif); font-size: clamp(2.65rem, 6vw, 5.6rem); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.page-deck { max-width: 760px; margin: 25px 0 0; color: #eadfd4; font-family: var(--serif); font-size: clamp(1.13rem, 2vw, 1.4rem); line-height: 1.5; }
.reviewed { margin: 28px 0 0; color: #cdbfb4; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reviewed span { color: var(--gold); }
.listing-section { padding-block: 100px; }
.dog-card { color: inherit; text-decoration: none; }
.dog-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.correction-open { margin: 0 0 40px; padding: 28px; border: 1px solid #c8a35d; border-left: 6px solid var(--red); background: #fff8e8; }
.correction-open h2 { margin-top: 6px; }
.article-layout { padding: 80px 0 110px; }
.article-main { max-width: var(--reading); margin-inline: auto; }

.gh-content p,
.gh-content li { color: var(--ink-soft); }
.gh-content > p:first-child { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; line-height: 1.55; }
.gh-content h2 { margin: 2.5em 0 .65em; color: var(--ink); font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.14; }
.gh-content h3 { margin: 2em 0 .55em; color: var(--red); font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.25; }
.gh-content strong { color: var(--ink); }
.gh-content blockquote { margin: 2.2em 0; padding: 24px 28px; color: var(--ink); background: var(--paper-deep); border-left: 4px solid var(--red); }
.gh-content blockquote p { margin: 0; color: inherit; font-family: var(--serif); font-size: 1.12rem; }
.gh-content ul,
.gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .45em; }

.archive-box {
    margin: 34px 0;
    padding: 28px 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    box-shadow: 0 12px 34px rgba(43, 25, 17, .05);
}
.archive-box h2,
.archive-box h3 { margin-top: 0; }
.archive-box > :last-child { margin-bottom: 0; }
.archive-box.status-documented { border-left-color: #557356; }
.archive-box.status-owner { border-left-color: var(--gold); }
.archive-box.status-check { border-left-color: #9a6b35; }
.archive-box.status-review { border-left-color: var(--red); }
.box-label { display: block; margin-bottom: 10px; color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.archive-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0; }
.status-card { padding: 22px; background: var(--white); border: 1px solid var(--line); }
.status-card strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.2rem; }
.status-card p { margin: 0; font-size: .92rem; }

.archive-timeline { position: relative; display: grid; gap: 0; margin: 44px 0; }
.archive-timeline::before { position: absolute; left: 80px; top: 8px; bottom: 8px; width: 1px; content: ""; background: var(--gold); }
.timeline-entry { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 45px; padding: 0 0 38px; }
.timeline-entry:last-child { padding-bottom: 0; }
.timeline-year { position: relative; z-index: 1; align-self: start; padding: 6px 0; color: var(--red); background: var(--paper); font-family: var(--serif); font-size: 1.12rem; font-weight: 700; }
.timeline-copy { padding: 0 0 0 0; }
.timeline-copy h2 { margin: 0 0 8px; font-size: 1.65rem; }
.timeline-copy p { margin: 0 0 10px; }

.archive-table-wrap { overflow-x: auto; margin: 30px 0 44px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 14px 36px rgba(43, 25, 17, .06); }
.archive-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .88rem; }
.archive-table caption { padding: 22px 20px; color: var(--ink); font-family: var(--serif); font-size: 1.45rem; text-align: left; }
.archive-table th,
.archive-table td { padding: 15px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.archive-table th { color: var(--red); background: #f4ebde; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.archive-table td strong { white-space: nowrap; }
.table-note { color: var(--ink-soft); font-size: .84rem; }

.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.topic-card { padding: 22px; color: var(--ink); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
a.topic-card:hover { color: var(--ink); border-color: var(--gold); }
.topic-card strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.topic-card small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.related { max-width: 1040px; margin: 100px auto 0; padding-top: 50px; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { min-height: 145px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; color: var(--white); background: var(--red-dark); text-decoration: none; }
.related-card:nth-child(2) { background: #342923; }
.related-card:nth-child(3) { background: var(--red); }
.related-card:hover { color: var(--gold-light); transform: translateY(-2px); }
.related-card span { color: var(--gold-light); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.related-card strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 400; line-height: 1.25; }

/* Listing and error */
.listing-hero { padding: 80px 0; color: var(--white); background: var(--red-dark); }
.listing-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); font-weight: 400; }
.listing-hero p:last-child { max-width: 700px; color: #ddcfc4; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 70px 0 100px; }
.listing-card { padding: 28px; background: var(--white); border: 1px solid var(--line); }
.listing-card h2 { margin: 8px 0 12px; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.listing-card h2 a { color: var(--ink); text-decoration: none; }
.listing-card p:not(.eyebrow) { color: var(--ink-soft); }
.error-page { min-height: 65vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 80px; }
.error-code { margin: 0; color: var(--gold); font-family: var(--serif); font-size: 6rem; line-height: 1; }
.error-page h1 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
.error-page p { max-width: 620px; }
.empty-state { padding: 100px 0; }

/* Footer */
.site-footer { color: #e5d9ce; background: #17110f; border-top: 1px solid rgba(200, 163, 95, .25); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 60px; padding: 70px 0 55px; }
.footer-intro img { width: 80px; height: 80px; border-radius: 50%; }
.footer-intro p { max-width: 330px; color: #bfb0a4; }
.pilot-label { display: inline-block; padding: 6px 9px; color: var(--gold-light); border: 1px solid rgba(200, 163, 95, .38); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid h2 { margin: 0 0 8px; color: var(--gold-light); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.footer-grid a { color: #e5d9ce; font-size: .85rem; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom p { margin: 0; color: #8f8177; font-size: .72rem; }

.dog-inventory-intro { max-width: 860px; padding-block: 2.5rem; }
.dog-inventory-list { display: grid; gap: 2rem; padding-bottom: 5rem; }
.dog-inventory-entry { scroll-margin-top: 6rem; border-top: 1px solid var(--line, #d9d0c0); padding-top: 2.5rem; }
.dog-inventory-entry-header { max-width: 860px; margin-bottom: 1.5rem; }
.dog-inventory-entry .gh-content { max-width: 860px; }

@media (max-width: 980px) {
    :root { --shell: min(100% - 36px, 900px); }
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: auto;
        padding: 10px 0;
        color: var(--white);
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        border: 0 !important;
        box-shadow: none;
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }
    .menu-toggle-bars { width: 23px; display: grid; gap: 4px; }
    .menu-toggle-bars i { height: 1px; display: block; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
    .site-nav {
        position: fixed;
        inset: 84px 0 auto;
        max-height: calc(100vh - 84px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px 24px 36px;
        overflow-y: auto;
        background: #18110f;
        border-bottom: 1px solid rgba(200, 163, 95, .28);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
    .site-nav a::after { display: none; }
    .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 90px; }
    .hero-emblem { display: none; }
    .archive-intro { grid-template-columns: 1fr; gap: 24px; }
    .cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 280px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid nav:last-child { grid-column: 2; }
}

@media (max-width: 700px) {
    :root { --shell: calc(100vw - 28px); }
    body { font-size: 16px; }
    .header-inner { min-height: 72px; }
    .brand-mark { width: 46px; height: 46px; }
    .brand-name { font-size: 1rem; }
    .brand-kicker { display: none; }
    .site-nav { inset-block-start: 72px; max-height: calc(100vh - 72px); }
    .home-hero,
    .hero-inner { min-height: 590px; }
    .hero-inner { padding-block: 70px; }
    .hero-copy h1 { font-size: clamp(3.3rem, 18vw, 5.5rem); }
    .hero-deck { font-size: 1.18rem; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .home-content { padding: 65px 0 80px; }
    .archive-intro { margin-bottom: 70px; padding-bottom: 55px; }
    .cluster-section { margin-bottom: 70px; }
    .cluster-grid,
    .topic-grid,
    .archive-status-grid,
    .related-grid,
    .listing-grid { grid-template-columns: 1fr; }
    .cluster-card { min-height: 145px; }
    .feature-grid { margin: 70px 0; }
    .feature-card { min-height: 0; padding: 28px; }
    .kara-home { grid-template-columns: 1fr; gap: 28px; margin-block: 65px; padding: 28px; }
    .kara-home h2 { font-size: clamp(2.35rem, 11vw, 3.5rem); }
    .kara-seal { width: 58px; height: 58px; }
    .kara-context-call-inner { align-items: flex-start; flex-direction: column; }
    .kara-launcher { right: 12px; bottom: 12px; }
    .kara-panel { inset: 0; width: 100%; height: 100dvh; grid-template-rows: auto minmax(0, 1fr) auto auto; border: 0; transform: translateY(105%); }
    .kara-panel.is-open { transform: translateY(0); }
    .kara-panel.is-expanded { width: 100%; height: 100dvh; }
    .kara-panel-head { min-height: 68px; padding: 9px 14px; }
    .kara-panel-head h2 { font-family: inherit; font-size: .98rem; font-weight: 700; line-height: 1.2; }
    .kara-panel-head .eyebrow { font-size: .6rem; }
    .kara-panel-avatar { width: 42px; height: 42px; }
    .kara-panel-actions [data-kara-expand] { display: none; }
    .kara-panel-actions button { width: 42px; height: 42px; }
    .kara-page-context { display: none; }
    .kara-messages { min-height: 0; padding: 16px 14px 8px; overscroll-behavior: contain; }
    .kara-message { max-width: 94%; padding: 11px 12px; font-size: .92rem; line-height: 1.45; }
    .kara-suggestions { display: flex; overflow-x: auto; gap: 7px; padding: 6px 14px 9px; white-space: nowrap; }
    .kara-suggestions button { flex: none; min-height: 38px; padding: 7px 10px; }
    .kara-suggestions span { display: none; }
    .kara-form { max-height: min(45dvh, 330px); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
    .kara-form textarea { min-height: 48px; max-height: 120px; font-size: 16px; }
    .kara-form-row { grid-template-columns: 1fr auto; }
    .kara-form-row > button { min-height: 44px; padding-inline: 13px; }
    .page-hero-inner { padding: 34px 0 54px; }
    .breadcrumbs { margin-bottom: 34px; }
    .page-hero h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
    .article-layout { padding: 58px 0 80px; }
    .archive-timeline::before { left: 28px; }
    .timeline-entry { grid-template-columns: 58px 1fr; gap: 18px; }
    .timeline-year { font-size: .86rem; }
    .timeline-copy h2 { font-size: 1.4rem; }
    .archive-box { padding: 23px 21px; }
    .related { margin-top: 70px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 24px; padding: 55px 0 40px; }
    .footer-intro { grid-column: 1 / -1; }
    .footer-grid nav:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 5px; }
}

@media (max-width: 430px) {
    .brand-copy { max-width: 170px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid nav:last-child { grid-column: auto; }
}

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

/* Kara conversation workspace: unified service UI, October 2026. */
.kara-panel {width:min(680px,100vw);height:calc(100dvh - 32px);max-height:none;right:16px;bottom:16px;top:auto;border:1px solid #ddcdd1;border-radius:22px;overflow:hidden;padding:0;display:flex;flex-direction:column;}
.kara-panel iframe {display:block;min-height:0;flex:1;width:100%;height:100%;}
@media(max-width:700px){.kara-panel{width:100vw;height:100dvh;max-height:100dvh;inset:0;border:0;border-radius:0;}}
