/*
Theme Name: dds_protectivebadges.com
Author: Ananya Sharma
Description: Brass-and-enamel theme for a resource hub that helps pet parents in India find homes where pets are welcome.
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: pbadge
*/

/* ---------- Hidden-state rules (must precede component styles) ---------- */
.cookie-banner[hidden] { display: none !important; }
.dot-list[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
    --ink: #1E1B2E;
    --ink-deep: #18162A;
    --night: #12101C;
    --terra: #B5482A;
    --forest: #24382E;
    --forest-card: #1E2F26;
    --cream: #F3E6D0;
    --dust: #B9A79A;
    --brass: #C9A227;
    --brass-light: #EDD27A;
    --brass-dark: #7A5A12;
    --saffron: #E8912D;
    --copper: #7A4A2B;
    --panel: #262339;
    --tile: #211E33;
    --paper: #F5EBDA;
    --paper-tab: #DDCDB2;
    --paper-ink: #2A2433;
    --navy-enamel: #2A2C50;
    --head-font: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --body-font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    --brass-fill: linear-gradient(180deg, #EDD27A 0%, #C9A227 48%, #A9851C 100%);
    --rivets: radial-gradient(circle at 9px 50%, #6E5110 0 2.2px, rgba(255, 240, 190, .55) 2.6px, transparent 3.4px),
              radial-gradient(circle at calc(100% - 9px) 50%, #6E5110 0 2.2px, rgba(255, 240, 190, .55) 2.6px, transparent 3.4px);
    --arches: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='200'%3E%3Cg fill='none' stroke='%23C9A227' stroke-opacity='.11' stroke-width='1'%3E%3Cpath d='M25 200V95a45 45 0 0 1 90 0v105'/%3E%3Cpath d='M34 200V97a36 36 0 0 1 72 0v103'/%3E%3C/g%3E%3Cg fill='%23C9A227' fill-opacity='.18'%3E%3Ccircle cx='70' cy='26' r='1.6'/%3E%3Ccircle cx='4' cy='130' r='1.6'/%3E%3Ccircle cx='136' cy='130' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--ink);
    background-image: var(--arches);
    background-size: 140px 200px;
    color: var(--cream);
    font-family: var(--body-font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

p, li, h1, h2, h3, h4, h5, h6, a, td, th, figcaption, blockquote {
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    margin: 1.6em 0 .6em;
    line-height: 1.2;
    color: var(--cream);
}

a {
    color: var(--cream);
    text-decoration: underline;
    text-decoration-color: var(--brass);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover { color: var(--brass-light); text-decoration-color: var(--saffron); }

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }

.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-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--brass);
    color: var(--ink);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ---------- Buttons: brass plates with rivets ---------- */
.pb-btn {
    display: inline-block;
    padding: .6em 2em;
    border: 0;
    border-radius: 0;
    background: var(--rivets), var(--brass-fill);
    color: var(--ink);
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(122, 90, 18, .7), 0 2px 0 var(--brass-dark);
    transition: transform .15s ease, box-shadow .15s ease;
}
.pb-btn:hover {
    color: var(--ink);
    transform: translate(-2px, -2px);
    box-shadow: inset 0 0 0 1px rgba(122, 90, 18, .7), 3px 3px 0 var(--copper);
}
.pb-btn:active { transform: translate(0, 0); box-shadow: inset 0 0 0 1px rgba(122, 90, 18, .7); }
.pb-btn--sm { padding: .42em 1.5em; font-size: .92rem; }

/* ---------- Header ---------- */
.masthead {
    background: var(--ink-deep);
    border-bottom: 1px solid rgba(201, 162, 39, .55);
    padding: 1.1rem 0;
}
.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 420px;
    min-width: 0;
    max-width: 660px;
}
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo {
    width: 76px;
    height: 76px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45));
}
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    color: var(--cream);
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.3;
    text-decoration: none;
    hyphens: manual;
}
.brand-name:hover { color: var(--brass-light); }
.brand-desc {
    margin: .3rem 0 0;
    color: var(--dust);
    font-size: .88rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .5rem .9rem;
    background: transparent;
    border: 1px solid var(--brass);
    color: var(--cream);
    font-family: var(--body-font);
    font-size: 1rem;
    cursor: pointer;
}
.nav-toggle-bars {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--brass);
    box-shadow: 0 -6px 0 var(--brass), 0 6px 0 var(--brass);
}

.site-nav .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a {
    color: var(--cream);
    font-size: 1.12rem;
    text-decoration: none;
    padding: .3rem 0;
    border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--brass-light); border-bottom-color: var(--brass); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--brass); }

/* ---------- Front page sections ---------- */
.fs { padding: 4.5rem 0; }
.fs-inner {
    width: min(85%, 1180px);
    margin-inline: auto;
}

.fs-eyebrow {
    margin: 0 0 .8rem;
    text-align: center;
    color: var(--saffron);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.fs-heading {
    margin: 0 0 2.6rem;
    text-align: center;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    letter-spacing: .04em;
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--cream);
    hyphens: manual;
}
.fs-heading span {
    position: relative;
    display: inline-block;
    padding-bottom: .22em;
    background: linear-gradient(var(--brass), var(--brass)) left bottom / calc(100% - 6px) 2px no-repeat;
}
.fs-heading span::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brass);
}
.fs-heading--hero { font-size: clamp(2.1rem, 4.9vw, 3.9rem); margin-bottom: 3rem; }
.fs-heading--left { text-align: left; }

.fs-lead {
    max-width: 44rem;
    margin: -1.2rem auto 2.6rem;
    text-align: center;
    color: var(--dust);
    font-size: 1.1rem;
}
.fs-lead--left { margin: 0; text-align: left; }
.fs-more { margin: 2.6rem 0 0; text-align: center; }
.empty-note { color: var(--dust); text-align: center; }

/* Block 1: badge you can trust */
.fs-trust { padding: 3.5rem 0 0; }
.trust-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr) minmax(0, 150px);
    align-items: center;
    column-gap: 1.5rem;
}
.trust-arch {
    position: relative;
    width: 380px;
    height: 430px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 70px;
    border-radius: 190px 190px 0 0;
    background: linear-gradient(180deg, #2A263E 0%, #201D30 60%, #1C1A2B 100%);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .16), inset 0 18px 40px rgba(0, 0, 0, .35);
}
.trust-arch::before {
    content: "";
    position: absolute;
    inset: -22px -22px 0;
    border: 1px solid rgba(201, 162, 39, .14);
    border-bottom: 0;
    border-radius: 212px 212px 0 0;
    pointer-events: none;
}
.emblem {
    position: relative;
    flex: 0 0 auto;
    width: 270px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
}
.emblem-ring { display: block; width: 100%; height: 100%; }
.emblem-text {
    fill: #E4C565;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 7px;
}
.emblem-core {
    position: absolute;
    left: 18%;
    top: 18%;
    width: 64%;
    height: 64%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}
.trust-notes {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1.32rem;
    line-height: 1.25;
    color: var(--cream);
}
.trust-notes li { position: relative; }
.trust-notes--left li { text-align: right; padding-right: 96px; }
.trust-notes--right li { text-align: left; padding-left: 96px; }
.trust-notes li::before,
.trust-notes li::after {
    content: "";
    position: absolute;
    top: 50%;
    background: var(--brass);
}
.trust-notes li::before { width: 78px; height: 1px; }
.trust-notes li::after { width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; }
.trust-notes--left li::before { right: 10px; }
.trust-notes--left li::after { right: 4px; }
.trust-notes--right li::before { left: 10px; }
.trust-notes--right li::after { left: 4px; }

.trust-gauge {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
    align-self: start;
    margin-top: 20px;
}
.trust-gauge-scale {
    width: 24px;
    height: 330px;
    flex: 0 0 auto;
    border-left: 2px solid var(--brass);
    border-top: 2px solid var(--brass);
    border-bottom: 2px solid var(--brass);
    background:
        repeating-linear-gradient(180deg, var(--brass) 0 2px, transparent 2px 16px) left top / 12px 100% no-repeat,
        repeating-linear-gradient(180deg, var(--brass) 0 2px, transparent 2px 80px) left top / 22px 100% no-repeat;
}
.trust-gauge-label { font-size: 1.32rem; line-height: 1.25; color: var(--cream); }

/* Block 2: steps */
.fs-steps {
    background-color: var(--terra);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 190, 120, .12), transparent 60%);
}
.plates {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.plates-item { position: relative; min-width: 0; text-align: center; }
.plates-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    left: calc(100% + 4px);
    width: calc(2.4rem - 14px);
    border-top: 2px dashed var(--saffron);
}
.plates-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(100% + 2.4rem - 12px);
    border: 5px solid transparent;
    border-left: 7px solid var(--saffron);
}
.plate {
    display: block;
    padding: .7em 1.6em;
    background: var(--rivets), var(--brass-fill);
    color: var(--ink);
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1.22rem;
    line-height: 1.3;
    box-shadow: inset 0 0 0 1px rgba(122, 90, 18, .7), 0 3px 0 var(--brass-dark), 0 8px 18px rgba(0, 0, 0, .25);
}
.plate-num { font-family: var(--head-font); }
.plates-item p {
    margin: 1rem 0 0;
    color: #FBE9D7;
    font-size: .98rem;
    line-height: 1.5;
}
.plates-note {
    margin: 2.6rem 0 0;
    text-align: center;
    color: #F6C9A1;
    font-size: 1.45rem;
}

/* Block: latest posts */
.fs-latest { background: var(--forest); }
.fs-latest .fs-heading { margin-bottom: 3.2rem; }

.card-grid { display: grid; gap: 2.6rem 1.8rem; padding-top: 14px; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .75rem;
    border: 2px solid var(--brass);
    background: var(--forest-card);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--copper); }
.card-thumb { position: relative; }
.card-thumb a { display: block; overflow: hidden; }
.card-thumb img:not(.card-pin) {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .4s ease;
}
.card:hover .card-thumb img:not(.card-pin) { transform: scale(1.04); }
.card-thumb-blank {
    display: block;
    aspect-ratio: 16 / 10;
    background-color: #2B2740;
    background-image: var(--arches), linear-gradient(160deg, #343050, #1E1B2E);
    background-size: 70px 100px, auto;
}
.card-pin {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    display: block;
    padding: 3px;
    border-radius: 50%;
    border: 3px solid var(--brass);
    background: var(--navy-enamel);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem .3rem .2rem;
}
.card-flag {
    align-self: flex-start;
    margin-bottom: .5rem;
    padding: .1rem .6rem;
    background: var(--saffron);
    color: var(--ink);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.card-title {
    margin: 0 0 .55rem;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1.32rem;
    line-height: 1.25;
}
.card-title a { color: var(--cream); text-decoration: none; }
.card-title a:hover { color: var(--brass-light); }
.card-excerpt { flex: 1; color: var(--dust); font-size: .98rem; line-height: 1.5; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    margin-top: .9rem;
}
.card-foot time { color: var(--dust); font-size: .95rem; }

/* Block 3: directory wall */
.fs-directory { padding-bottom: 3rem; }
.dir-wall {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .95fr);
    grid-auto-rows: minmax(380px, auto);
    gap: 1.4rem;
}
.dir-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    border: 2px solid var(--brass);
    background: var(--tile);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.dir-tile-img {
    position: relative;
    flex: 1;
    min-height: 280px;
    overflow: hidden;
}
.dir-tile-img img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.dir-tile:hover .dir-tile-img img { transform: scale(1.04); }
.dir-tile figcaption {
    padding: .9rem 1rem 1rem;
    color: var(--cream);
    font-weight: 700;
    font-size: 1.18rem;
    line-height: 1.25;
}
.dir-stack {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1.4rem;
    min-width: 0;
}
.dir-tile--badge .dir-tile-img { min-height: 170px; }
.dir-tile--link {
    justify-content: flex-end;
    min-height: 150px;
    padding: 1.2rem 1.2rem 1.1rem;
    color: var(--cream);
    font-weight: 700;
    font-size: 1.28rem;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color .2s ease;
}
.dir-tile--link span { color: var(--brass); }
.dir-tile--link:hover { background: #2D2945; color: var(--brass-light); }

/* Block 4: moving guide brochure */
.fs-moving { padding: 3rem 0 5rem; }
.moving-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: center;
}
.moving-intro .fs-heading { margin-bottom: 1.4rem; font-size: clamp(2rem, 4vw, 3.3rem); }
.brochure { position: relative; transform: rotate(-.6deg); }
.brochure-tabs { display: flex; gap: .25rem; padding-left: 1.2rem; }
.brochure-tab {
    padding: .5rem 1.2rem;
    border: 0;
    border-radius: 7px 7px 0 0;
    background: var(--paper-tab);
    color: #5E5262;
    font-family: var(--body-font);
    font-weight: 500;
    font-size: .95rem;
    line-height: 1.3;
    cursor: pointer;
}
.brochure-tab:hover { color: var(--paper-ink); }
.brochure-tab.is-active { background: var(--paper); color: var(--paper-ink); font-weight: 700; }
.brochure-pages {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.6rem;
    padding: 1.6rem 1.6rem 1.8rem;
    background: var(--paper);
    color: var(--paper-ink);
    box-shadow: 8px 8px 0 #E7D8BE, 14px 14px 0 #CDBB9C, 0 20px 40px rgba(0, 0, 0, .45);
}
.brochure-page--text { border-right: 1px dashed rgba(42, 36, 51, .2); padding-right: 1.4rem; min-width: 0; }
.brochure-page--photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border: 6px solid #FFFBF2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.dot-list { margin: 0; padding: 0; list-style: none; }
.dot-list li {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 1.6rem;
    color: var(--paper-ink);
    font-size: 1rem;
    line-height: 1.45;
}
.dot-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: inset 0 -2px 0 var(--brass-dark);
}

/* ---------- Inner pages ---------- */
.page-wrap { padding: 2rem 0 4.5rem; }

.crumbs {
    margin-bottom: 2rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(201, 162, 39, .3);
    color: var(--dust);
    font-size: .95rem;
}
.crumbs a { color: var(--cream); text-decoration: none; }
.crumbs a:hover { color: var(--brass-light); }
.crumbs .sep { margin: 0 .35rem; color: var(--brass); }

.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; }

.page-head { margin-bottom: 2rem; }
.page-title {
    position: relative;
    margin: 0 0 .9rem;
    padding-bottom: .7rem;
    font-family: var(--head-font);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--cream);
    hyphens: manual;
}
.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 2px;
    background: var(--brass);
}
.page-title::after {
    content: "";
    position: absolute;
    left: 86px;
    bottom: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brass);
}
.page-intro { color: var(--dust); }
.entry-meta { margin: 0; color: var(--dust); font-size: .98rem; }
.entry-meta a { color: var(--cream); }
.entry-meta-sep { margin: 0 .5rem; color: var(--brass); }
.entry-cover { margin: 0 0 2rem; padding: .6rem; border: 2px solid var(--brass); }
.entry-cover img { display: block; width: 100%; height: auto; }

.entry { font-size: 1.1rem; line-height: 1.72; }
.entry h2, .entry h3, .entry h4 { font-family: var(--head-font); font-weight: 600; letter-spacing: .02em; }
.entry h2 { font-size: 1.85rem; }
.entry h3 { font-size: 1.45rem; }
.entry h4 { font-size: 1.2rem; }
.entry ul, .entry ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--brass); }
.entry ol li::marker { color: var(--saffron); font-weight: 700; }
.entry blockquote {
    margin: 1.8em 0;
    padding: 1.3rem 1.6rem;
    border-left: 4px solid var(--saffron);
    background: rgba(201, 162, 39, .08);
    font-style: italic;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry figure { margin: 1.8em 0; }
.entry figcaption { color: var(--dust); font-size: .92rem; margin-top: .4rem; }
.entry table { width: 100%; margin: 1.6em 0; border-collapse: collapse; border: 1px solid var(--brass); }
.entry th, .entry td { padding: .65rem .8rem; border: 1px solid rgba(201, 162, 39, .6); text-align: left; vertical-align: top; }
.entry th { background: #2B2740; color: var(--brass-light); }
.entry pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--night); border: 1px solid rgba(201, 162, 39, .35); }
.entry code { font-size: .92em; }
.entry hr { border: 0; border-top: 1px solid rgba(201, 162, 39, .45); margin: 2.4em 0; }
.entry .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }

.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.entry-tags a {
    padding: .2rem .7rem;
    border: 1px solid var(--brass);
    color: var(--cream);
    font-size: .92rem;
    text-decoration: none;
}
.entry-tags a:hover { background: var(--brass); color: var(--ink); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.6rem;
}
.post-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(201, 162, 39, .6);
    background: var(--panel);
    color: var(--cream);
    font-weight: 700;
    text-decoration: none;
}
.post-nav-link span { display: block; color: var(--brass); font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.post-nav-link--next { grid-column: 2; text-align: right; }
.post-nav-link:hover { border-color: var(--brass); color: var(--brass-light); }

/* Sidebar */
.sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--panel);
    border: 1px solid rgba(201, 162, 39, .55);
    color: var(--cream);
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--brass);
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 1.22rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cream);
}
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed rgba(201, 162, 39, .3); color: var(--cream); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--cream); text-decoration: none; }
.sidebar a:hover { color: var(--brass-light); }
.sidebar .post-date, .sidebar .rss-date { display: block; color: var(--dust); font-size: .88rem; }
.sidebar p, .sidebar .textwidget { color: var(--cream); }

/* Pagination */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 .9rem;
    border: 1px solid var(--brass);
    color: var(--cream);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.pager a.page-numbers:hover { background: rgba(201, 162, 39, .18); color: var(--brass-light); }
.pager .page-numbers.current { background: var(--rivets), var(--brass-fill); color: var(--ink); }
.pager .page-numbers.dots { border-color: transparent; color: var(--dust); }

/* Search form */
.find { display: flex; gap: .6rem; margin: 1.5rem 0; max-width: 560px; }
.find-input {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--brass);
    border-radius: 0;
    background: #15131F;
    color: var(--cream);
    font-family: var(--body-font);
    font-size: 1rem;
}
.find-input::placeholder { color: var(--dust); }
.find-btn { padding-left: 1.6em; padding-right: 1.6em; }
.empty-block .empty-note { text-align: left; }

/* 404 */
.lost { text-align: center; }
.lost .page-title { display: inline-block; }
.lost .find { margin-left: auto; margin-right: auto; }
.lost-code {
    margin: 0;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: clamp(5rem, 16vw, 9rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--brass);
}

/* Comments */
.talk { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(201, 162, 39, .4); }
.talk-title, .comment-reply-title {
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 1.2rem;
}
.comment-reply-title small { margin-left: .8rem; font-size: .9rem; text-transform: none; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { margin-left: 2rem; }
.note-body {
    margin-bottom: 1.2rem;
    padding: 1.1rem 1.3rem;
    background: var(--panel);
    border: 1px solid rgba(201, 162, 39, .4);
}
.note-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.note-head img { border-radius: 50%; border: 2px solid var(--brass); }
.note-author { display: block; font-weight: 700; }
.note-date { color: var(--dust); font-size: .88rem; }
.note-wait { color: var(--saffron); font-style: italic; }
.note-reply a { color: var(--brass); font-weight: 700; font-size: .92rem; }
.talk-nav { display: flex; justify-content: space-between; margin: 1rem 0 2rem; }
.talk-hint, .talk-closed { color: var(--dust); font-size: .95rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; color: var(--cream); font-weight: 500; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--brass);
    border-radius: 0;
    background: #15131F;
    color: var(--cream);
    font-family: var(--body-font);
    font-size: 1rem;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; color: var(--dust); }
.comment-form .submit {
    padding: .65em 2.2em;
    border: 0;
    background: var(--rivets), var(--brass-fill);
    color: var(--ink);
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(122, 90, 18, .7), 0 2px 0 var(--brass-dark);
}
.comment-form .submit:hover { box-shadow: inset 0 0 0 1px rgba(122, 90, 18, .7), 3px 3px 0 var(--copper); }

/* ---------- Footer ---------- */
.colophon {
    background: var(--night);
    border-top: 1px solid rgba(201, 162, 39, .55);
    color: var(--cream);
}
.colophon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.colophon-col { min-width: 0; padding: 2.6rem 2rem; }
.colophon-col--mid {
    border-left: 1px solid rgba(201, 162, 39, .55);
    border-right: 1px solid rgba(201, 162, 39, .55);
    text-align: center;
}
.colophon .widget + .widget { margin-top: 1.6rem; }
.colophon .widget-title {
    margin: 0 0 .7rem;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1.32rem;
    color: var(--cream);
}
.colophon .textwidget, .colophon p { color: var(--dust); }
.colophon ul { margin: 0; padding: 0; list-style: none; }
.colophon li { padding: .18rem 0; color: var(--cream); }
.colophon a { color: var(--cream); text-decoration: none; }
.colophon a:hover { color: var(--brass-light); text-decoration: underline; text-decoration-color: var(--brass); }
.colophon .post-date { display: block; color: var(--dust); font-size: .85rem; }
.colophon-bottom { border-top: 1px solid rgba(201, 162, 39, .55); }
.colophon-bottom p { margin-top: 0; margin-bottom: 0; padding: 1.1rem 0; text-align: center; color: var(--dust); font-size: .98rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.3rem;
    background: var(--night);
    border: 1px solid var(--brass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.cookie-text { margin: 0; flex: 1; min-width: 0; color: var(--cream); font-size: .95rem; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .trust-stage { grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); }
    .trust-gauge { display: none; }
    .trust-notes li { font-size: 1.15rem; }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; flex-basis: 100%; }
    .site-nav.is-open { display: block; }
    .site-nav .nav-list { flex-direction: column; gap: 0; padding-top: .6rem; border-top: 1px solid rgba(201, 162, 39, .35); }
    .site-nav .nav-list a { display: block; padding: .7rem 0; border-bottom: 1px dashed rgba(201, 162, 39, .25); }
    .brand { flex-basis: 0; flex-grow: 1; }

    .fs { padding: 3.5rem 0; }
    .fs-trust { padding-top: 2.8rem; }
    .trust-stage { display: flex; flex-direction: column; align-items: center; }
    .trust-arch { order: -1; width: min(340px, 100%); height: 380px; padding-top: 55px; }
    .emblem { width: 240px; }
    .trust-notes {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: .8rem;
        margin-top: 1rem;
        font-size: 1.05rem;
    }
    .trust-notes--left li, .trust-notes--right li {
        padding: .45rem 1rem;
        text-align: center;
        border: 1px solid var(--brass);
        background: rgba(30, 27, 46, .85);
    }
    .trust-notes li::before, .trust-notes li::after { display: none; }
    .fs-trust { padding-bottom: 3rem; }
    .trust-notes--right { margin-top: .8rem; }

    .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plates-item::before, .plates-item::after { display: none; }

    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .dir-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
    .dir-tile--wide { grid-column: 1 / -1; }
    .dir-stack { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .dir-tile-img { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
    .dir-tile--wide .dir-tile-img { aspect-ratio: 16 / 9; }
    .dir-tile--badge .dir-tile-img { min-height: 0; }

    .moving-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .brochure { transform: none; }

    .layout-with-sidebar { display: block; }
    .layout-single .content-area { width: auto; }
    .sidebar { margin-top: 3rem; }

    .colophon-grid { grid-template-columns: minmax(0, 1fr); }
    .colophon-col { padding: 2rem 0; text-align: center; }
    .colophon-col--mid { border-left: 0; border-right: 0; border-top: 1px solid rgba(201, 162, 39, .4); border-bottom: 1px solid rgba(201, 162, 39, .4); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .masthead { padding: .9rem 0; }
    .brand-logo { width: 56px; height: 56px; }
    .brand-name { font-size: .95rem; }
    .brand-desc { display: none; }
    .masthead-row { gap: .8rem; }

    .fs-inner { width: 92%; }
    .fs { padding: 3rem 0; }
    .fs-trust { padding-top: 2.4rem; }
    .fs-heading { margin-bottom: 2rem; }
    .trust-arch { height: 330px; padding-top: 45px; }
    .emblem { width: 210px; }

    .plates { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .plates-note { font-size: 1.2rem; margin-top: 2rem; }

    .card-grid--three, .card-grid--two { grid-template-columns: minmax(0, 1fr); }
    .card-pin { top: -22px; right: -14px; width: 50px; height: 50px; }

    .dir-wall { grid-template-columns: minmax(0, 1fr); }
    .dir-stack { grid-template-columns: minmax(0, 1fr); }
    .dir-tile-img, .dir-tile--wide .dir-tile-img { aspect-ratio: 4 / 3; }

    .brochure-tabs { padding-left: 0; overflow-x: auto; }
    .brochure-tab { padding: .45rem .8rem; font-size: .88rem; flex: 0 0 auto; }
    .brochure-pages { grid-template-columns: minmax(0, 1fr); padding: 1.3rem 1.2rem 1.4rem; box-shadow: 6px 6px 0 #E7D8BE, 0 14px 28px rgba(0, 0, 0, .45); }
    .brochure-page--text { border-right: 0; padding-right: 0; }

    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-link--next { grid-column: auto; }

    .find { flex-direction: column; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem; }
    .talk-list .children { margin-left: 1rem; }
}

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