/*
Theme Name: dds_f1nalone.com
Theme URI: https://f1nalone.com/
Author: Arjun Mehta
Description: Closing-file theme for an Indian home-buying guide: indigo ledger paper, kraft folders, hang tags, ink stamps and paper-sheet cards.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fnlone
*/

/* ---------- Fonts (bundled, SIL OFL) ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
    --indigo: #1B2A4A;
    --indigo-deep: #15223D;
    --night: #10182B;
    --paper: #F2EBDD;
    --sheet: #FBF7EE;
    --tagpaper: #F6F0E4;
    --ink: #1B2A4A;
    --ink-strong: #111A2E;
    --muted: #8A93A6;
    --muted-light: #A3ACBE;
    --muted-dark: #5A6479;
    --red: #D64530;
    --red-text: #B5381F;
    --mustard: #C97B2E;
    --rule: #4A5A7A;
    --folder: #EAC986;
    --folder-back: #D6AF68;
    --kraft: #D9BE92;
    --kraft-edge: #B89A6C;
    --btn-kraft: #D9B98A;
    --sticky-yellow: #F9E1A1;
    --line-paper: #CDBFA5;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
    --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
    --clip-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 60'%3E%3Cpath d='M6 44 V10 a4 4 0 0 1 8 0 V48 a6 6 0 0 1 -12 0 V14' fill='none' stroke='%23A9ADB4' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M6.6 44 V10.5' fill='none' stroke='%23E4E6EA' stroke-width='0.8'/%3E%3C/svg%3E");
}

/* ---------- Hidden-attribute guard (before component styles) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--paper);
    background-color: var(--indigo);
    background-image:
        linear-gradient(rgba(74, 90, 122, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 90, 122, 0.24) 1px, transparent 1px),
        radial-gradient(rgba(242, 235, 221, 0.04) 1px, transparent 1.3px);
    background-size: 48px 48px, 48px 48px, 5px 5px;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6em; line-height: 1.15; font-family: var(--f-head); font-weight: 600; }
p { margin: 0 0 1em; }
p, li, h1, h2, h3, h4, dd, dt, blockquote, td, th, figcaption, .brand-text, .card-title, .crumbs {
    overflow-wrap: break-word;
    hyphens: auto;
}
a { color: inherit; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--red); color: #fff; padding: 0.6rem 1rem;
    font-family: var(--f-head); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* short decorative labels: no automatic hyphenation */
.hang-tag, .ledger-col, .sticky, .brand-text, .brand-name, .brand-desc, .copyline, .first48-copy, .card-excerpt, .check-note, .dossier-lead, .costs-lead, .block-title, .first48-quote p, .colophon p, .crumbs { hyphens: manual; }

/* single width container */
.shell { width: min(85%, 1240px); margin-inline: auto; }

/* framed ledger page */
.ledger {
    margin: 16px;
    border: 1px solid var(--rule);
    outline: 1px solid rgba(74, 90, 122, 0.45);
    outline-offset: 6px;
    padding-bottom: 1px;
}

/* ---------- Header ---------- */
.masthead { padding: 2.2rem 0 1.6rem; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem 2.4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; color: var(--paper); flex: 1 1 420px; min-width: 0; }
.brand-seal { flex: 0 0 104px; width: 104px; height: 104px; display: block; }
.brand-svg, .brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.brand-name {
    font-family: var(--f-head); font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: 0.01em;
}
.brand-name.is-long {
    font-size: clamp(1.02rem, 1.4vw, 1.22rem); line-height: 1.3; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    max-width: 46rem;
}
.brand-desc { font-size: 1.12rem; line-height: 1.3; color: #D3D8E2; max-width: 30rem; }
.brand-desc.is-long {
    font-size: 0.9rem; line-height: 1.4; color: var(--muted-light); max-width: 46rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.nav-toggle { display: none; }
.primary-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 2.2rem; }
.primary-nav a {
    display: inline-block; padding: 0.3rem 0 0.35rem;
    font-family: var(--f-head); font-weight: 600; font-size: 1.05rem;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--paper); text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.primary-nav a:hover { border-bottom-color: var(--paper); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: #F5B6A9; border-bottom-color: var(--red); }

/* ---------- Section titles ---------- */
.block-title {
    font-family: var(--f-head); font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 3.3rem);
    text-transform: uppercase; letter-spacing: 0.035em; line-height: 1.05;
    color: var(--paper); margin: 0 0 1.4rem;
}
.block-title::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 0.75rem; background: var(--red); }
.block-title--ink { color: var(--ink-strong); }

/* ---------- Front ---------- */
.front { padding-bottom: 0.5rem; }
.front-block { position: relative; }

/* Block 1: dossier */
.dossier { padding-top: 2.6rem; padding-bottom: 3.4rem; }
.dossier-folder {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head seal" "tags seal";
    gap: 0 2rem;
    padding: 2rem 2.6rem 0;
    color: var(--ink-strong);
    background-color: var(--folder);
    background-image:
        radial-gradient(rgba(120, 82, 30, 0.10) 1px, transparent 1.4px),
        radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.6px),
        linear-gradient(180deg, transparent 0 64%, rgba(27, 42, 74, 0.07) 64% 64.4%, transparent 64.4%);
    background-size: 6px 6px, 9px 9px, 100% 100%;
    border-radius: 12px 12px 0 0;
}
.dossier-folder::before {
    content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 40px; z-index: -1;
    background: var(--folder-back); border-radius: 16px 16px 0 0;
}
.dossier { isolation: isolate; }
.dossier-clip {
    position: absolute; top: -30px; right: 3.2rem; width: 22px; height: 66px; z-index: 2;
    background: var(--clip-svg) center / contain no-repeat;
}
.dossier-head { grid-area: head; min-width: 0; }
.dossier-head .block-title { margin-bottom: 0.9rem; }
.dossier-lead { max-width: 40rem; font-size: 1.02rem; color: #2C2414; margin-bottom: 1.6rem; }
.dossier-seal { grid-area: seal; align-self: center; display: flex; flex-direction: column; align-items: flex-end; padding-bottom: 2rem; }
.seal-received {
    display: inline-block; transform: rotate(-7deg);
    font-family: var(--f-head); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.7rem);
    text-transform: uppercase; letter-spacing: 0.04em; line-height: 1;
    color: var(--red); border: 4px solid var(--red); border-radius: 6px; padding: 0.15em 0.4em 0.12em;
    opacity: 0.9; mix-blend-mode: multiply;
}
.seal-round { display: block; width: 138px; height: auto; margin: -6px 6px 0 0; mix-blend-mode: multiply; opacity: 0.94; }

.tag-row {
    grid-area: tags;
    list-style: none; margin: 0 0 -3.4rem; padding: 0;
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.85rem;
    position: relative;
}
.tag-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(17, 26, 46, 0.35); }
.hang-tag {
    position: relative; min-width: 0;
    padding: 2.6rem 0.55rem 1.1rem;
    text-align: center;
    filter: drop-shadow(0 2px 0 rgba(17, 26, 46, 0.22));
    display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    transition: transform 0.15s;
}
.hang-tag::before {
    content: ""; position: absolute; left: 0; right: 0; top: 18px; bottom: 0; z-index: 0;
    background:
        radial-gradient(circle at 50% 14px, var(--folder) 0 5px, #A88B57 5px 7px, transparent 7.5px),
        var(--tagpaper);
    clip-path: polygon(20% 0, 80% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
}
.hang-tag::after { content: ""; position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 33px; background: #8C6C3A; z-index: 1; }
.hang-tag > span { position: relative; z-index: 1; }
.hang-tag:hover { transform: translateY(3px) rotate(-1.5deg); }
.hang-tag-num { font-family: var(--f-head); font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.hang-tag-name { font-family: var(--f-head); font-weight: 600; font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
.hang-tag-line { font-size: 0.8rem; line-height: 1.3; color: #3E4559; margin-top: 0.25rem; }

/* Block 2: verify */
.verify { padding-top: 2.6rem; }
.verify .block-title { margin-left: 2.6rem; }
.verify-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 2.6rem; align-items: end; }
.verify-art { position: relative; margin: 0; }
.verify-art img { display: block; width: 100%; aspect-ratio: 1212 / 742; object-fit: cover; }
.ink-stamp {
    display: inline-block;
    font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1;
    color: var(--red); border: 3px solid currentColor; border-radius: 7px;
    outline: 2px solid currentColor; outline-offset: 3px;
    padding: 0.14em 0.42em 0.1em; opacity: 0.88; mix-blend-mode: multiply;
}
.verify-stamp { position: absolute; left: 43%; top: 66%; font-size: clamp(1.3rem, 3.1vw, 2.7rem); transform: rotate(-9deg); }
.check-list { list-style: none; margin: 0; padding: 0 0 3rem; align-self: center; }
.check-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.62rem 0; border-bottom: 1px solid var(--rule); }
.check-item:first-child { border-top: 1px solid var(--rule); }
.check-box { flex: 0 0 28px; width: 28px; height: 28px; margin-top: 0.15rem; color: var(--paper); }
.check-text { display: flex; flex-direction: column; min-width: 0; }
.check-name { font-family: var(--f-mono); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.3; color: var(--paper); }
.check-note { font-size: 0.95rem; color: var(--muted-light); line-height: 1.4; }

/* Block: latest */
.latest {
    z-index: 1;
    padding: 2.6rem 2.6rem 3.4rem;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(rgba(27, 42, 74, 0.09) 1px, transparent 1.4px),
        radial-gradient(rgba(201, 123, 46, 0.10) 1px, transparent 1.4px);
    background-size: 7px 7px, 11px 11px;
    background-position: 0 0, 3px 5px;
    border-radius: 4px 4px 0 0;
}
.latest-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 2rem; }
.dot-link {
    position: relative; padding-left: 1rem; margin-bottom: 1.6rem;
    font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.dot-link::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--red); }
.dot-link:hover { color: var(--red-text); }
.empty-note { font-family: var(--f-mono); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 2.2rem; padding: 0.8rem 0.6rem 0; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    --cut: var(--indigo);
    position: relative;
    display: flex; flex-direction: column;
    min-width: 0;
    padding: 14px 14px 20px;
    color: var(--ink);
    background-color: var(--sheet);
    border: 1px solid var(--line-paper);
    box-shadow: -7px 7px 0 -1px var(--kraft), -7px 7px 0 0 var(--kraft-edge);
    transition: transform 0.15s;
}
.latest .card { --cut: var(--paper); }
.card::after {
    content: ""; position: absolute; right: -1px; bottom: -1px; width: 34px; height: 34px;
    background: linear-gradient(to top left, var(--cut) 0 50%, #DCCDB0 50% 100%);
    box-shadow: -1px -1px 0 rgba(27, 42, 74, 0.12);
}
.card:hover { transform: translate(-3px, -3px); }
.card-clip { position: absolute; top: -22px; right: 24px; width: 20px; height: 60px; z-index: 2; background: var(--clip-svg) center / contain no-repeat; }
.card-thumb { display: block; border: 1px solid rgba(27, 42, 74, 0.35); overflow: hidden; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 300 / 172; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: 0.9rem; }
.card-title { font-family: var(--f-head); font-weight: 600; font-size: 1.38rem; line-height: 1.15; margin: 0 0 0.3rem; color: var(--ink-strong); }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--red-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-date { font-family: var(--f-mono); font-size: 0.82rem; color: var(--muted-dark); margin-bottom: 0.5rem; }
.card-excerpt { font-size: 0.98rem; line-height: 1.45; color: #2A3450; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--red-text); }
.card .tab-btn { margin-top: auto; align-self: flex-start; }

/* ---------- Buttons ---------- */
.tab-btn {
    --cut: var(--sheet);
    display: inline-block; position: relative;
    padding: 0.5rem 2.3rem 0.5rem 1rem;
    font-family: var(--f-head); font-weight: 600; font-size: 1rem; letter-spacing: 0.03em;
    color: var(--ink-strong); text-decoration: none; border: 0; cursor: pointer;
    background-color: var(--btn-kraft);
    background-image: linear-gradient(315deg, var(--cut) 0 12px, #8C6C3A 12px 13px, #B8955F 13px 22px, transparent 22px);
    border-radius: 0;
    transition: transform 0.12s, background-color 0.12s, color 0.12s;
}
.tab-btn:hover, .tab-btn:focus-visible { transform: translate(-2px, -2px); background-color: var(--red); color: #fff; }
.tab-btn--red, .comment-form .submit { background-color: var(--red); color: #fff; }
.tab-btn--red:hover, .comment-form .submit:hover { background-color: var(--ink-strong); color: #fff; }
.paper-sheet .tab-btn { --cut: var(--paper); }

/* Block 3: costs */
.costs {
    padding: 2.6rem 2.6rem 3rem;
    color: var(--ink-strong);
    background-color: var(--mustard);
    background-image:
        radial-gradient(rgba(17, 26, 46, 0.08) 1px, transparent 1.4px),
        radial-gradient(rgba(255, 236, 200, 0.10) 1px, transparent 1.5px);
    background-size: 6px 6px, 10px 10px;
    border-radius: 0 0 4px 4px;
}
.costs-lead { max-width: 46rem; font-size: 1.02rem; margin-bottom: 1.6rem; }
.ledger-sheet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink-strong); border-bottom: 2px solid var(--ink-strong); }
.ledger-col {
    min-width: 0;
    padding: 0.7rem 64px 0.9rem 0.8rem;
    border-left: 1px solid rgba(17, 26, 46, 0.55);
    background-image:
        repeating-linear-gradient(90deg, transparent 0 15px, rgba(17, 26, 46, 0.4) 15px 16px),
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(17, 26, 46, 0.16) 27px 28px);
    background-size: 56px 100%, 100% 100%;
    background-position: right 0 top 0, 0 0;
    background-repeat: no-repeat, repeat;
}
.ledger-col:first-child { border-left: 0; }
.ledger-name { font-family: var(--f-head); font-weight: 600; font-size: 1.3rem; margin: 0 -56px 0.6rem 0; padding-bottom: 0.45rem; border-bottom: 1px solid rgba(17, 26, 46, 0.6); }
.ledger-note { font-size: 0.92rem; line-height: 1.4; margin-bottom: 0.7rem; }
.ledger-when {
    margin: 0; font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em;
    display: inline-block; padding: 0.15rem 0.45rem; border: 1px solid var(--ink-strong);
}

/* Block 4: first 48 hours */
.first48 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 4.4rem 0 4.6rem; }
.first48-text { min-width: 0; padding-left: 2.6rem; }
.first48-quote { margin: 0 0 1.2rem; padding: 0; }
.first48-quote p {
    margin: 0; font-family: var(--f-head); font-weight: 700; text-transform: uppercase;
    font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.12; letter-spacing: 0.02em; color: var(--paper);
}
.first48-copy { font-family: var(--f-mono); font-size: 1.08rem; line-height: 1.55; color: #E3DDD0; margin: 0; max-width: 34rem; }
.sticky-board { list-style: none; margin: 0; padding: 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.8rem; }
.sticky {
    position: relative; min-width: 0; min-height: 150px;
    padding: 1.4rem 1.3rem 1.4rem;
    color: var(--ink-strong); background: var(--tagpaper);
    background-image: linear-gradient(transparent 0 calc(100% - 1px), rgba(27, 42, 74, 0.08) 0);
    transition: transform 0.15s;
}
.sticky::before { content: ""; position: absolute; top: -9px; left: calc(50% - 36px); width: 72px; height: 18px; background: rgba(242, 235, 221, 0.55); transform: rotate(-4deg); }
.sticky.note-a { transform: rotate(-3deg) translateY(28px); }
.sticky.note-b { transform: rotate(2deg) translateY(-12px); }
.sticky.note-c { transform: rotate(2.5deg) translate(-8px, 12px); background-color: var(--sticky-yellow); }
.sticky.note-d { transform: rotate(-2deg) translateY(-6px); }
.sticky:hover { transform: rotate(0) translateY(-4px); }
.sticky-step { display: block; font-family: var(--f-hand); font-weight: 600; font-size: 2rem; line-height: 1; margin-bottom: 0.4rem; }
.sticky-text { display: block; font-family: var(--f-hand); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: #263560; }

/* ---------- Inner pages ---------- */
.inner { padding-bottom: 4.5rem; }
.crumbs { padding: 1.4rem 0 1.6rem; font-family: var(--f-mono); font-size: 0.86rem; color: #D3D8E2; }
.crumbs a { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crumbs a:hover { color: #F5B6A9; }
.crumbs-sep { color: var(--red); margin: 0 0.3rem; }
.crumbs-current { color: var(--muted-light); }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.list-head { margin-bottom: 1.6rem; }
.list-lead { color: #D3D8E2; max-width: 44rem; }
.list-lead p { margin: 0; }

.paper-sheet {
    position: relative;
    padding: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 2.2rem;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(rgba(27, 42, 74, 0.08) 1px, transparent 1.4px),
        radial-gradient(rgba(201, 123, 46, 0.09) 1px, transparent 1.4px);
    background-size: 7px 7px, 11px 11px;
    background-position: 0 0, 3px 5px;
    border: 1px solid var(--line-paper);
}
.paper-clip { position: absolute; top: -24px; right: 2.4rem; width: 22px; height: 64px; background: var(--clip-svg) center / contain no-repeat; }

.entry-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; color: var(--ink-strong); margin-bottom: 0.6rem; }
.entry-meta { font-family: var(--f-mono); font-size: 0.86rem; color: var(--muted-dark); display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 1.6rem; }
.entry-cat a { color: var(--red-text); }
.entry-cover { margin: 0 0 1.8rem; border: 1px solid rgba(27, 42, 74, 0.35); }
.entry-cover img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.08rem; line-height: 1.7; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 { font-size: 1.75rem; margin: 1.8em 0 0.6em; color: var(--ink-strong); }
.entry-content h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 0.4rem; background: var(--red); }
.entry-content h3 { font-size: 1.4rem; margin: 1.6em 0 0.5em; color: var(--ink-strong); }
.entry-content h4 { font-size: 1.15rem; margin: 1.4em 0 0.5em; }
.entry-content a { color: var(--red-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ink-strong); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.5rem; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content li::marker { color: var(--red-text); font-weight: 700; }
.entry-content blockquote {
    margin: 1.6em 0; padding: 1.1rem 1.4rem 1.1rem 1.5rem;
    background: #E8DDC8; border-left: 5px solid var(--red);
    font-family: var(--f-mono); font-size: 1rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-family: var(--f-mono); font-size: 0.82rem; color: var(--muted-dark); margin-top: 0.4rem; }
.entry-content img { display: block; max-width: 100%; height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.98rem; border: 1px solid #8C7F66; }
.entry-content th, .entry-content td { border: 1px solid #8C7F66; padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.entry-content th { background: #E3D6BC; font-family: var(--f-head); font-weight: 600; }
.entry-content pre { background: var(--ink-strong); color: var(--paper); padding: 1rem 1.2rem; overflow-x: auto; font-family: var(--f-mono); font-size: 0.9rem; }
.entry-content code { font-family: var(--f-mono); font-size: 0.92em; background: #E8DDC8; padding: 0.05em 0.3em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; border-top: 2px dashed var(--line-paper); margin: 2em 0; }
.entry-pages { margin-top: 1.4rem; font-family: var(--f-mono); }
.entry-tags { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-tags a { font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink); text-decoration: none; border: 1px solid var(--ink); padding: 0.15rem 0.6rem; }
.entry-tags a:hover { background: var(--ink); color: var(--paper); }

.entry-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 2.2rem; }
.entry-nav-link {
    display: block; min-width: 0; padding: 1rem 1.2rem;
    background: var(--tagpaper); color: var(--ink-strong); text-decoration: none;
    font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; line-height: 1.25;
    border-left: 5px solid var(--mustard); transition: transform 0.12s;
}
.entry-nav-link span { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 0.78rem; color: var(--muted-dark); text-transform: uppercase; margin-bottom: 0.3rem; }
.entry-nav-next { grid-column: 2; text-align: right; border-left: 0; border-right: 5px solid var(--mustard); }
.entry-nav-link:hover { transform: translate(-2px, -2px); }

/* ---------- Sidebar ---------- */
.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--indigo-deep);
    border: 1px solid var(--rule);
    color: #D3D8E2;
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--paper); margin-bottom: 1rem; }
.sidebar .widget-title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 0.45rem; background: var(--red); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); line-height: 1.35; }
.sidebar a { color: var(--paper); text-decoration: none; }
.sidebar a:hover { color: #F5B6A9; text-decoration: underline; }
.sidebar .post-date { display: block; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted-light); }
.sidebar p { color: #D3D8E2; }

/* ---------- Search form ---------- */
.search-slip { display: flex; gap: 0; margin: 1rem 0; max-width: 32rem; }
.search-slip-input {
    flex: 1; min-width: 0; padding: 0.65rem 0.8rem;
    border: 2px solid var(--ink-strong); border-right: 0; border-radius: 0;
    background: var(--sheet); color: var(--ink-strong);
}
.search-slip-btn {
    padding: 0.6rem 1.1rem; border: 2px solid var(--red); border-radius: 0; cursor: pointer;
    background: var(--red); color: #fff;
    font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.search-slip-btn:hover { background: var(--ink-strong); border-color: var(--ink-strong); }
.sidebar .search-slip-input { border-color: var(--paper); }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 2.8rem 0 0; }
.pager .page-numbers {
    display: inline-block; min-width: 2.7rem; padding: 0.45rem 0.8rem; text-align: center;
    font-family: var(--f-head); font-weight: 600; font-size: 1rem;
    color: var(--ink-strong); background: var(--tagpaper); border: 1px solid var(--line-paper);
    text-decoration: none; transition: transform 0.12s, background-color 0.12s;
}
.pager a.page-numbers:hover { transform: translate(-2px, -2px); background: var(--mustard); }
.pager .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pager .page-numbers.dots { background: transparent; border: 0; color: var(--paper); min-width: 0; }

/* ---------- Comments ---------- */
.notes-title { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.5rem; color: var(--ink-strong); }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { margin-left: 1.6rem; }
.note-body { padding: 1rem 0; border-bottom: 1px dashed #B7A988; }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-bottom: 0.5rem; }
.note-avatar { display: block; border: 1px solid var(--line-paper); }
.note-author { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; }
.note-date { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted-dark); }
.note-wait { font-family: var(--f-mono); font-size: 0.85rem; color: var(--red-text); }
.note-text p { margin-bottom: 0.6em; }
.note-reply a { font-family: var(--f-head); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red-text); }
.notes-closed { font-family: var(--f-mono); }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.4rem; color: var(--ink-strong); }
.comment-reply-title small a { font-size: 0.9rem; color: var(--red-text); margin-left: 0.6rem; }
.comment-notes, .logged-in-as, .must-log-in { font-size: 0.92rem; color: var(--muted-dark); }
.comment-notes a, .logged-in-as a, .must-log-in a { color: var(--red-text); }
.comment-form label { display: block; font-family: var(--f-head); font-weight: 600; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 0.6rem 0.7rem; border: 1px solid #8C7F66; border-radius: 0; background: var(--sheet); color: var(--ink-strong);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-family: var(--f-body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.92rem; }
.comment-form .submit { padding: 0.65rem 1.4rem; font-family: var(--f-head); font-weight: 600; letter-spacing: 0.04em; border: 0; cursor: pointer; background-image: none; }
.comments-pagination, .comment-navigation { margin: 1rem 0; font-family: var(--f-mono); }
.comment-navigation a { color: var(--red-text); }

/* ---------- 404 ---------- */
.lost { text-align: center; }
.lost-stamp { font-size: clamp(3rem, 8vw, 5rem); transform: rotate(-6deg); margin: 0.5rem 0 1.4rem; }
.lost .search-slip { margin: 1.4rem auto; }

/* ---------- Footer ---------- */
.colophon { background: var(--night); color: #C8CEDA; padding: 3.4rem 0 1.4rem; margin-top: 0; }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.6rem; }
.colophon .widget-title { font-family: var(--f-head); font-weight: 600; font-size: 1.7rem; color: var(--paper); margin-bottom: 0.8rem; }
.colophon p, .colophon .textwidget { font-family: var(--f-mono); font-size: 0.93rem; line-height: 1.6; color: #C8CEDA; }
.colophon a { color: var(--paper); }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.55rem; }
.colophon .widget_nav_menu a, .colophon .menu a {
    font-family: var(--f-head); font-weight: 600; font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.06em;
    text-decoration: none; color: var(--paper); position: relative; padding-left: 0.95rem;
}
.colophon .widget_nav_menu a::before, .colophon .menu a::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--red);
}
.colophon .widget_nav_menu a:hover, .colophon .menu a:hover { color: #F5B6A9; text-decoration: underline; text-underline-offset: 4px; }
.colophon .post-date { display: block; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }
.colophon-base { border-top: 1px solid #263452; margin-top: 1.6rem; padding-top: 1.2rem; text-align: center; }
.colophon .copyline { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--muted); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0 1rem 1rem; }
.cookie-sheet {
    display: flex; align-items: center; gap: 1rem 1.6rem;
    max-width: 980px; margin: 0 auto; padding: 1rem 1.4rem;
    color: var(--ink-strong); background: var(--paper);
    border-top: 5px solid var(--red); border-left: 1px solid var(--line-paper); border-right: 1px solid var(--line-paper);
}
.cookie-text { margin: 0; flex: 1; min-width: 0; font-size: 0.95rem; line-height: 1.45; }
.cookie-accept {
    flex: 0 0 auto; padding: 0.6rem 1.5rem; border: 0; border-radius: 0; cursor: pointer;
    background: var(--red); color: #fff;
    font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    transition: transform 0.12s, background-color 0.12s;
}
.cookie-accept:hover { transform: translate(-2px, -2px); background: var(--ink-strong); }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-family: var(--f-mono); font-size: 0.82rem; }
.sticky-post-label, .bypostauthor { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .tag-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem 0.85rem; margin-bottom: 0; padding-bottom: 1.6rem; }
    .tag-row::before { display: none; }
    .dossier { padding-bottom: 2.4rem; }
    .ledger-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ledger-col:nth-child(4) { border-left: 0; }
    .ledger-col:nth-child(n+4) { border-top: 1px solid rgba(17, 26, 46, 0.55); }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex; align-items: center; gap: 0.6rem;
        padding: 0.55rem 0.9rem; cursor: pointer;
        background: transparent; color: var(--paper); border: 1px solid var(--rule); border-radius: 0;
        font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }
    .primary-nav { display: none; flex-basis: 100%; }
    .primary-nav.is-open { display: block; }
    .primary-nav .nav-list { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
    .primary-nav li { border-bottom: 1px solid var(--rule); }
    .primary-nav a { display: block; padding: 0.75rem 0; border-bottom: 0; }
    .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { border-bottom: 0; box-shadow: inset 4px 0 0 var(--red); padding-left: 0.9rem; }

    .dossier-folder { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "seal" "tags"; padding: 1.8rem 1.8rem 0; }
    .dossier-seal { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.2rem; padding-bottom: 1.8rem; }
    .seal-round { width: 96px; margin: 0; }
    .verify .block-title { margin-left: 0; }
    .verify-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .verify-art { order: 2; }
    .check-list { padding-bottom: 0.6rem; }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .first48 { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    .first48-text { padding-left: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.6rem; }
    .layout-single > .content-area { width: 100%; }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .ledger { margin: 6px; outline-offset: 3px; }
    .shell { width: 92%; }
    .masthead { padding: 1.4rem 0 1.2rem; }
    .brand { flex-basis: 100%; gap: 0.8rem; align-items: flex-start; }
    .brand-seal { flex: 0 0 68px; width: 68px; height: 68px; }
    .masthead-row { gap: 1rem; }
    .dossier { padding-top: 1.8rem; }
    .dossier-folder { padding: 1.5rem 1.1rem 0; }
    .dossier-clip { right: 1.4rem; }
    .tag-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .latest { padding: 2rem 1.1rem 2.6rem; }
    .card-grid, .card-grid--three { grid-template-columns: minmax(0, 1fr); padding: 0.8rem 0.4rem 0; gap: 2.4rem; }
    .costs { padding: 2rem 1.1rem 2.4rem; }
    .ledger-sheet { grid-template-columns: minmax(0, 1fr); }
    .ledger-col { border-left: 0; border-top: 1px solid rgba(17, 26, 46, 0.55); }
    .ledger-col:first-child { border-top: 0; }
    .first48 { padding: 3rem 0 3.4rem; }
    .sticky-board { padding: 0 0.4rem; gap: 1.6rem 1.1rem; }
    .sticky { min-height: 130px; padding: 1.2rem 1rem; }
    .sticky-step { font-size: 1.7rem; }
    .sticky-text { font-size: 1.2rem; }
    .paper-sheet { padding: 1.5rem 1.1rem; }
    .entry-content table { display: block; overflow-x: auto; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { grid-column: 1; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); }
    .cookie-sheet { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}

@media (max-width: 400px) {
    .sticky-board { grid-template-columns: minmax(0, 1fr); }
    .sticky.note-a, .sticky.note-b, .sticky.note-c, .sticky.note-d { transform: rotate(-1deg); }
}
