/*
Theme Name: dds_freesaweria.com
Theme URI: https://freesaweria.com/
Author: Ananya Rao
Description: Blueprint-style theme for an Indian real estate visual hosting platform: 360° tours, floor plan galleries and listing portfolios on a technical drawing grid.
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: frsvw
*/

/* ---------- Fonts ---------- */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
    --bg: #0E2A47;
    --grid: #2E5C86;
    --paper: #EAF4FF;
    --muted: #8FB3D9;
    --fire: #FF6A3D;
    --sun: #FFD25A;
    --sheet: #123A5E;
    --base: #07182B;
    --strip: #0A2139;
    --trace: #DCEAF8;
    --trace-line: #9DBCDB;
    --ink: #0E2A47;
    --field: #0B2340;
    --f-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --gridbg:
        linear-gradient(rgba(46, 92, 134, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 92, 134, .55) 1px, transparent 1px),
        linear-gradient(rgba(46, 92, 134, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 92, 134, .22) 1px, transparent 1px);
}

/* ---------- Hidden-state guards (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%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--paper);
    background-color: var(--bg);
    background-image: var(--gridbg);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
    background-position: -1px -1px;
}
img { max-width: 100%; height: auto; }
a { color: var(--sun); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--sun); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.1;
    margin: 1.4em 0 .55em;
    color: var(--paper);
    overflow-wrap: break-word;
    hyphens: auto;
}
p { margin: 0 0 1.05em; }
p, li, dd, td, th, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
.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: 12px; top: -60px; z-index: 100;
    background: var(--sun); color: var(--ink); padding: .5rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Shared bits ---------- */
.tag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sun);
    border: 1px solid currentColor;
    padding: .18rem .55rem;
    line-height: 1.4;
}
.tag--ghost { color: var(--muted); }

.stamp-title {
    font-family: var(--f-head);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .01em;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: .95;
    margin: 0;
    transform: skewX(-4deg);
    transform-origin: left bottom;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: .03em;
    color: var(--base);
    text-decoration: none;
    padding: .55rem 1.1rem;
    border: 2px solid var(--paper);
    border-radius: 0;
    line-height: 1.2;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn--sun { background: var(--sun); }
.btn--fire { background: var(--fire); }
.btn--sm { font-size: .95rem; padding: .35rem .75rem; }
.btn__arrow { font-family: var(--f-body); font-weight: 600; }
.btn:hover, .btn:focus-visible {
    color: var(--base);
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 var(--paper);
}
.card .btn { border-color: var(--ink); }
.card .btn:hover, .card .btn:focus-visible { box-shadow: 3px 3px 0 var(--ink); }

.dimlink {
    position: relative;
    display: inline-block;
    color: var(--paper);
    text-decoration: none;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .04em;
    padding: 0 .35rem .35rem;
    border-bottom: 1px dashed var(--muted);
}
.dimlink::before, .dimlink::after {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 1px;
    height: 9px;
    background: var(--muted);
}
.dimlink::before { left: 0; }
.dimlink::after { right: 0; }
.dimlink:hover { color: var(--sun); border-bottom-color: var(--sun); }
.dimlink:hover::before, .dimlink:hover::after { background: var(--sun); }

.empty-note { color: var(--muted); font-style: italic; }

/* ---------- Header ---------- */
.masthead { padding: 1.6rem 0 1.4rem; position: relative; }
.masthead__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: var(--paper);
    min-width: 0;
    flex: 1 1 auto;
}
.brand:hover { color: var(--paper); }
.brand__mark { flex: 0 0 auto; display: block; color: var(--paper); }
.brand__svg { display: block; width: 64px; height: 64px; }
.brand-logo { display: block; max-height: 72px; width: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; max-width: 60ch; }
.brand__name {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(1.02rem, 1.45vw, 1.28rem);
    line-height: 1.15;
    letter-spacing: .01em;
}
.brand__desc {
    margin-top: .3rem;
    font-size: .76rem;
    line-height: 1.4;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topnav { flex: 0 0 auto; }
.topnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.6rem;
}
.topnav__list a {
    position: relative;
    display: block;
    color: var(--paper);
    text-decoration: none;
    font-family: var(--f-body);
    font-size: 1.02rem;
    padding: .2rem .35rem .5rem;
    border-bottom: 1px dashed var(--muted);
    white-space: nowrap;
}
.topnav__list a::before, .topnav__list a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 1px;
    height: 9px;
    background: var(--muted);
}
.topnav__list a::before { left: 0; }
.topnav__list a::after { right: 0; }
.topnav__list a:hover,
.topnav__list .current-menu-item > a,
.topnav__list .current_page_item > a { color: var(--fire); border-bottom-color: var(--fire); }
.topnav__list a:hover::before, .topnav__list a:hover::after,
.topnav__list .current-menu-item > a::before, .topnav__list .current-menu-item > a::after,
.topnav__list .current_page_item > a::before, .topnav__list .current_page_item > a::after { background: var(--fire); }

.topnav__toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--paper);
    border: 2px solid var(--paper);
    padding: .45rem .8rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}
.topnav__bars, .topnav__bars::before, .topnav__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.topnav__bars::before, .topnav__bars::after { content: ""; position: absolute; left: 0; }
.topnav__bars::before { top: -6px; }
.topnav__bars::after { top: 6px; }

/* ---------- Front page ---------- */
.frontwrap { width: 85%; margin-inline: auto; padding-bottom: 3.5rem; }

/* Block 1: tour frame */
.tourframe { margin: .4rem 0 0; }
.tourframe__plate {
    position: relative;
    border: 1px solid rgba(234, 244, 255, .75);
    background: var(--sheet);
}
.tourframe__plate::before, .tourframe__plate::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 3;
}
.tourframe__plate::before { inset: -1px -18px; border-top: 1px solid rgba(234, 244, 255, .6); border-bottom: 1px solid rgba(234, 244, 255, .6); }
.tourframe__plate::after {
    inset: 0;
    background:
        radial-gradient(ellipse 48% 46% at 50% 74%, rgba(9, 28, 48, .72), rgba(9, 28, 48, 0) 70%),
        linear-gradient(to top, rgba(9, 28, 48, .7), rgba(9, 28, 48, 0) 55%);
    z-index: 1;
}
.tourframe__img {
    display: block;
    width: 100%;
    aspect-ratio: 2540 / 1114;
    object-fit: cover;
}
.tourframe__orbit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.cross { position: absolute; width: 30px; height: 30px; z-index: 3; pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--paper); }
.cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.cross--tl { top: 22px; left: 22px; }
.cross--tr { top: 22px; right: 22px; }
.cross--bl { bottom: 22px; left: 22px; }
.cross--br { bottom: 22px; right: 22px; }
.cross--ml { top: calc(50% - 15px); left: 10px; }
.cross--mr { top: calc(50% - 15px); right: 10px; }
.tourframe__caption {
    position: absolute;
    left: 50%;
    bottom: 7%;
    transform: translateX(-50%);
    width: min(62%, 640px);
    text-align: center;
    z-index: 4;
}
.tourframe__badge { display: block; margin: 0 auto .4rem; width: 96px; height: auto; }
.tourframe__title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.8rem);
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: .95;
    text-shadow: 0 2px 12px rgba(7, 24, 43, .55);
}
.tourframe__sub {
    margin: .25rem 0 .6rem;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: clamp(1.25rem, 2.9vw, 2.3rem);
    line-height: 1.12;
    color: var(--fire);
    text-shadow: 0 2px 10px rgba(7, 24, 43, .6);
}
.tourframe__note { font-size: .92rem; color: var(--paper); max-width: 46ch; margin: 0 auto 1rem; text-shadow: 0 1px 6px rgba(7, 24, 43, .8); }

/* Block 2: plan sheet */
.plansheet {
    display: grid;
    grid-template-columns: minmax(0, 21%) minmax(0, 1fr);
    margin-top: 1.6rem;
    border: 1px solid rgba(234, 244, 255, .35);
    background-color: var(--sheet);
    background-image: var(--gridbg);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.plansheet__rail {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 1.8rem 1.4rem;
    border-right: 1px solid rgba(234, 244, 255, .35);
    background: rgba(14, 42, 71, .35);
    min-width: 0;
}
.miniplan { margin: 0; text-align: center; }
.miniplan__frame {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 190px;
    padding: 12px 6px 6px 14px;
}
.miniplan__frame::before {
    content: "";
    position: absolute;
    top: 0; left: 14px; right: 6px; height: 6px;
    border-left: 1px solid var(--sun);
    border-right: 1px solid var(--sun);
    border-bottom: 1px solid var(--sun);
}
.miniplan__frame::after {
    content: "";
    position: absolute;
    left: 0; top: 12px; bottom: 6px; width: 6px;
    border-top: 1px solid var(--sun);
    border-bottom: 1px solid var(--sun);
    border-right: 1px solid var(--sun);
}
.miniplan img { display: block; width: 100%; height: auto; }
.miniplan figcaption {
    margin-top: .45rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: .04em;
    color: var(--paper);
}
.plansheet__main { padding: 1.8rem 2rem 2rem; min-width: 0; }
.plansheet__head { max-width: 640px; }
.plansheet__title {
    margin: .6rem 0 .4rem;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.plansheet__lead { color: var(--muted); margin: 0; font-size: .95rem; }

.bigplan {
    position: relative;
    margin: 1.4rem 0 0;
    aspect-ratio: 1000 / 640;
}
.bigplan__img {
    position: absolute;
    left: 22%;
    top: 8.6%;
    width: 56%;
    height: auto;
    display: block;
}
.bigplan__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.dim, .callout { position: absolute; line-height: 1.2; }
.dim {
    font-family: var(--f-mono);
    font-size: clamp(.62rem, 1vw, .8rem);
    color: var(--sun);
    background: var(--sheet);
    padding: 0 .3rem;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}
.dim--t1 { left: 36.55%; top: 4.4%; }
.dim--t2 { left: 64.55%; top: 4.4%; }
.dim--l { left: 19.6%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.dim--b { left: 36.55%; top: 95.9%; }
.callout {
    font-size: clamp(.64rem, 1.05vw, .82rem);
    color: var(--muted);
    font-family: var(--f-body);
}
.callout b {
    display: block;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: clamp(.86rem, 1.55vw, 1.2rem);
    color: var(--fire);
}
.callout--living { left: 0; top: 42%; width: 14.5%; text-align: right; }
.callout--kitchen { left: 85%; top: 18.5%; }
.callout--pooja { left: 85%; top: 58%; }
.callout--balcony { left: 85%; top: 82%; }
.plansheet__legend {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: .8rem 0 0;
    border-top: 1px dashed rgba(143, 179, 217, .6);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    font-family: var(--f-mono);
    font-size: .8rem;
    color: var(--sun);
}
.plansheet__legend span { color: var(--muted); margin-right: .35rem; }

/* Latest posts */
.listings { margin-top: 3rem; }
.listings__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

/* Cards */
.cardgrid { display: grid; gap: 1.6rem; }
.cardgrid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cardgrid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--trace);
    color: var(--ink);
    border: 2px solid #fff;
    padding: 14px 14px 12px;
}
.card::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid var(--trace-line);
    pointer-events: none;
}
.card__stamp {
    position: absolute;
    top: 0;
    right: 12px;
    font-family: var(--f-mono);
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #3A6A97;
    background: var(--trace);
    border: 1px solid var(--trace-line);
    border-top: 0;
    padding: .05rem .45rem;
    z-index: 2;
}
.card-thumb { position: relative; z-index: 1; margin-top: 8px; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .8rem .2rem 0;
    position: relative;
    z-index: 1;
}
.card-title {
    margin: 0 0 .4rem;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1.22rem;
    line-height: 1.25;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: #C24A22; }
.card-excerpt { font-size: .9rem; color: #2B4A69; line-height: 1.5; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: #C24A22; }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: .6rem;
}
.card-date { font-family: var(--f-mono); font-size: .78rem; color: #3A6A97; }
.sticky .card__stamp { color: #C24A22; border-color: #C24A22; }

/* Block 3: build line */
.buildline {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
    margin-top: 3.4rem;
}
.buildline__steps { position: relative; min-width: 0; }
.buildline__track { position: relative; height: 430px; margin-top: 1rem; }
.buildline__rule {
    position: absolute;
    left: 0;
    top: 0;
    height: 360px;
    width: 100%;
    pointer-events: none;
}
.buildline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
}
.step {
    position: absolute;
    width: 23%;
    left: calc(2% + var(--i) * 25%);
    bottom: calc(88.6px + var(--i) * 82.9px);
    color: var(--paper);
}
.step--1 { --i: 0; }
.step--2 { --i: 1; }
.step--3 { --i: 2; }
.step--4 { --i: 3; }
.step::before {
    content: "";
    position: absolute;
    left: -6px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 0 0 3px var(--bg);
}
.step__icon { display: block; width: 52px; height: 34px; color: var(--paper); margin: 0 0 .25rem 1.8rem; }
.step__num {
    display: block;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--paper);
    padding-left: .3rem;
    padding-bottom: .4rem;
}
.step__name {
    position: absolute;
    top: calc(100% + .7rem);
    left: 0;
    margin: 0;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1.08rem;
    width: 100%;
}
.step__text {
    position: absolute;
    top: calc(100% + 2.3rem);
    left: 0;
    margin: 0;
    width: 100%;
    font-size: .82rem;
    line-height: 1.4;
    color: var(--muted);
}
.buildline__fact { padding-bottom: 2.4rem; min-width: 0; }
.bignum {
    margin: 0;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: clamp(3.4rem, 7.4vw, 6rem);
    line-height: 1;
    color: var(--sun);
    letter-spacing: -.01em;
}
.bignum__label {
    margin: .3rem 0 .6rem;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    color: var(--sun);
    line-height: 1.2;
}
.bignum__note { color: var(--muted); font-size: .9rem; margin: 0; max-width: 34ch; }

/* Block 4: showcase */
.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.6rem;
    align-items: center;
    margin-top: 3rem;
    padding: 2.6rem 2.4rem;
    background: rgba(10, 33, 57, .88);
    border-top: 1px solid rgba(234, 244, 255, .25);
    border-bottom: 1px solid rgba(234, 244, 255, .25);
}
.showcase__quote { min-width: 0; }
.showcase__text {
    margin: .9rem 0 1.1rem;
    padding: 0;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    line-height: 1.04;
    letter-spacing: -.015em;
    color: #CFE4FA;
}
.showcase__lead { color: var(--muted); max-width: 44ch; font-size: .95rem; }
.showcase__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    min-width: 0;
}
.frame {
    position: relative;
    padding: 7px;
    border: 1px solid rgba(234, 244, 255, .85);
    min-width: 0;
}
.frame::before, .frame::after { content: ""; position: absolute; pointer-events: none; }
.frame::before { top: -1px; bottom: -1px; left: -10px; right: -10px; border-top: 1px solid rgba(234, 244, 255, .5); border-bottom: 1px solid rgba(234, 244, 255, .5); }
.frame::after { left: -1px; right: -1px; top: -10px; bottom: -10px; border-left: 1px solid rgba(234, 244, 255, .5); border-right: 1px solid rgba(234, 244, 255, .5); }
.frame img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Inner pages ---------- */
.inner { padding: .6rem 0 3.5rem; }
.trail {
    font-family: var(--f-mono);
    font-size: .76rem;
    letter-spacing: .04em;
    color: var(--muted);
    padding: .55rem 0;
    margin-bottom: 1.4rem;
    border-top: 1px dashed rgba(143, 179, 217, .5);
    border-bottom: 1px dashed rgba(143, 179, 217, .5);
    overflow-wrap: break-word;
}
.trail a { color: var(--paper); text-decoration: none; }
.trail a:hover { color: var(--sun); }
.trail__sep { color: var(--fire); margin: 0 .2rem; }

.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: 1.8rem; }
.page-head__title {
    margin: .6rem 0 .3rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    text-transform: uppercase;
    font-style: italic;
    line-height: .98;
}
.page-head__intro { color: var(--muted); }

.sheet {
    background: rgba(18, 58, 94, .78);
    border: 1px solid rgba(234, 244, 255, .4);
    padding: 2rem 2.2rem 2.2rem;
}
.sheet__head { border-bottom: 1px dashed rgba(143, 179, 217, .6); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.sheet__title { margin: 0 0 .5rem; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.02; }
.sheet__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.sheet__cat a { color: var(--sun); text-decoration: none; }
.sheet__cover { margin: 0 0 1.6rem; border: 1px solid rgba(234, 244, 255, .7); padding: 6px; }
.sheet__cover img { display: block; width: 100%; height: auto; }
.sheet__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 0 0; margin: 1.6rem 0 0; border-top: 1px dashed rgba(143, 179, 217, .6); }
.sheet__tags a { font-family: var(--f-mono); font-size: .78rem; color: var(--paper); text-decoration: none; border: 1px solid var(--grid); padding: .15rem .55rem; }
.sheet__tags a:hover { border-color: var(--sun); color: var(--sun); }

/* Entry content */
.entry { font-size: 1.02rem; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.9rem; }
.entry h3 { font-size: 1.5rem; }
.entry h4 { font-size: 1.25rem; }
.entry a { color: var(--sun); text-decoration: underline dashed; }
.entry a:hover { color: var(--paper); }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--fire); }
.entry ol li::marker { color: var(--sun); font-family: var(--f-mono); }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem;
    border-left: 4px solid var(--fire);
    background: rgba(7, 24, 43, .45);
    font-size: 1.12rem;
    color: #D5E7FA;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: .82rem; color: var(--muted); margin-top: .45rem; font-family: var(--f-mono); }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92rem; border: 1px solid var(--muted); }
.entry th, .entry td { border: 1px solid var(--muted); padding: .55rem .75rem; text-align: left; }
.entry th { background: rgba(255, 210, 90, .12); color: var(--sun); font-family: var(--f-head); font-size: 1.02rem; letter-spacing: .03em; }
.entry code, .entry pre { font-family: var(--f-mono); font-size: .88rem; }
.entry code { background: rgba(7, 24, 43, .6); padding: .1rem .35rem; }
.entry pre { background: var(--base); padding: 1rem 1.2rem; overflow-x: auto; border: 1px solid var(--grid); }
.entry hr { border: 0; border-top: 1px dashed var(--muted); margin: 2em 0; }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }

.sibling-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.6rem;
}
.sibling-nav__link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(234, 244, 255, .4);
    color: var(--paper);
    text-decoration: none;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
    background: rgba(18, 58, 94, .6);
}
.sibling-nav__link span { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--sun); margin-bottom: .3rem; letter-spacing: .08em; }
.sibling-nav__link--next { text-align: right; grid-column: 2; }
.sibling-nav__link:hover { border-color: var(--sun); color: var(--sun); }

/* Pagination (type => plain) */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    margin-top: 2.2rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .75rem;
    border: 1px solid var(--paper);
    color: var(--paper);
    text-decoration: none;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.05rem;
    background: rgba(14, 42, 71, .8);
}
.pager a.page-numbers:hover { background: var(--fire); color: var(--base); border-color: var(--fire); }
.pager .page-numbers.current { background: var(--sun); color: var(--base); border-color: var(--sun); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .2rem; }

/* Sidebar & widgets */
.sidebar {
    min-width: 0;
    background: var(--sheet);
    border: 1px solid rgba(234, 244, 255, .4);
    padding: 1.5rem 1.4rem;
    color: var(--paper);
}
.dock-widget { margin-bottom: 1.8rem; }
.dock-widget:last-child { margin-bottom: 0; }
.dock-widget__title {
    margin: 0 0 .8rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding-bottom: .45rem;
    border-bottom: 1px dashed currentColor;
}
.dock-widget ul { list-style: none; margin: 0; padding: 0; }
.dock-widget li { padding: .45rem 0; border-bottom: 1px solid rgba(143, 179, 217, .2); }
.dock-widget li:last-child { border-bottom: 0; }
.sidebar .dock-widget__title { color: var(--sun); }
.sidebar .dock-widget, .sidebar .dock-widget p { color: var(--paper); }
.sidebar .dock-widget a { color: var(--paper); text-decoration: none; }
.sidebar .dock-widget a:hover { color: var(--sun); }
.sidebar .post-date { display: block; font-size: .76rem; color: var(--muted); }
.sidebar .seek { margin: 0; }

/* Search form */
.seek { display: flex; gap: 0; max-width: 520px; margin: 1.2rem 0; }
.seek__field {
    flex: 1;
    min-width: 0;
    background: var(--field);
    color: var(--paper);
    border: 1px solid var(--muted);
    border-right: 0;
    padding: .65rem .85rem;
    font: inherit;
    font-size: .95rem;
    border-radius: 0;
}
.seek__field::placeholder { color: var(--muted); }
.seek__btn {
    background: var(--sun);
    color: var(--base);
    border: 1px solid var(--sun);
    padding: .6rem 1.1rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}
.seek__btn:hover { background: var(--fire); border-color: var(--fire); }

/* 404 */
.lost { width: 85%; margin: 1rem auto 0; padding: 2.4rem 2.2rem; border: 1px solid rgba(234, 244, 255, .4); background: rgba(18, 58, 94, .78); }
.lost__code { font-family: var(--f-head); font-weight: 700; font-style: italic; font-size: clamp(5rem, 16vw, 10rem); line-height: .85; color: var(--sun); margin: 0; }
.lost__title { margin: .6rem 0 .5rem; font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; }
.lost__text { color: var(--muted); max-width: 52ch; }
.empty-box { padding: 1.6rem 1.8rem; border: 1px dashed var(--muted); }

/* Comments */
.notes { margin-top: 2.4rem; padding: 1.8rem 2rem; border: 1px solid rgba(234, 244, 255, .4); background: rgba(18, 58, 94, .6); }
.notes__title, .comment-reply-title { font-size: 1.7rem; margin: 0 0 1rem; text-transform: uppercase; }
.notes__list, .notes__list .children { list-style: none; margin: 0; padding: 0; }
.notes__list .children { padding-left: 1.6rem; border-left: 1px dashed var(--grid); }
.note__body { padding: 1rem 0; border-bottom: 1px solid rgba(143, 179, 217, .25); }
.note__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.note__avatar { display: block; border: 1px solid var(--muted); }
.note__author { display: block; font-weight: 600; }
.note__date { display: block; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.note__pending { color: var(--sun); font-size: .85rem; }
.note__text p:last-child { margin-bottom: 0; }
.note__reply a { font-family: var(--f-mono); font-size: .76rem; color: var(--fire); text-decoration: none; }
.comment-respond { margin-top: 1.4rem; }
.comment-form p { margin-bottom: .9rem; }
.comment-form label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    background: var(--field);
    color: var(--paper);
    border: 1px solid var(--muted);
    padding: .6rem .75rem;
    font: inherit;
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-form .submit {
    background: var(--sun);
    color: var(--base);
    border: 2px solid var(--paper);
    padding: .6rem 1.3rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .04em;
    cursor: pointer;
    border-radius: 0;
}
.comment-form .submit:hover { background: var(--fire); }
.comment-notes, .logged-in-as, .must-log-in, .notes__closed { color: var(--muted); font-size: .88rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }

/* ---------- Footer ---------- */
.baseplate {
    background: var(--base);
    color: #C3D7EC;
    padding: 2.8rem 0 1.4rem;
    border-top: 1px solid rgba(143, 179, 217, .3);
}
.baseplate__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.baseplate__col { min-width: 0; }
.baseplate .dock-widget__title { color: var(--paper); border-bottom-color: rgba(143, 179, 217, .45); font-size: 1.25rem; }
.baseplate .dock-widget, .baseplate .dock-widget p, .baseplate .textwidget { color: #C3D7EC; font-size: .92rem; }
.baseplate .dock-widget a { color: #C3D7EC; text-decoration: none; }
.baseplate .dock-widget a:hover { color: var(--sun); }
.baseplate .dock-widget li { border-bottom-color: rgba(143, 179, 217, .15); padding: .35rem 0; }
.baseplate .post-date { color: var(--muted); }
.baseplate__copy {
    margin: 2.2rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(143, 179, 217, .25);
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.4rem;
    background: var(--base);
    color: var(--paper);
    border: 2px solid var(--paper);
    box-shadow: 6px 6px 0 rgba(255, 210, 90, .9);
}
.cookie-banner__text { margin: 0; font-size: .88rem; line-height: 1.5; min-width: 0; }
.cookie-banner__btn {
    flex: 0 0 auto;
    background: var(--sun);
    color: var(--base);
    border: 2px solid var(--paper);
    padding: .5rem 1.3rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .05em;
    cursor: pointer;
    border-radius: 0;
}
.cookie-banner__btn:hover { background: var(--fire); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .buildline { grid-template-columns: minmax(0, 1fr); }
    .buildline__fact { padding-bottom: 0; }
    .showcase { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
    .masthead__row { flex-wrap: wrap; }
    .topnav__toggle { display: inline-flex; }
    .topnav { flex-basis: 100%; display: none; }
    .topnav.is-open { display: block; }
    .topnav__list { flex-direction: column; gap: .2rem; padding: .6rem 0; }
    .topnav__list a { display: inline-block; }
    .frontwrap { width: 90%; }
    .cardgrid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plansheet { grid-template-columns: minmax(0, 1fr); }
    .plansheet__rail { flex-direction: row; border-right: 0; border-bottom: 1px solid rgba(234, 244, 255, .35); gap: 1rem; }
    .miniplan { flex: 1 1 0; min-width: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .tourframe__caption { width: 80%; }
    .tourframe__note { display: none; }
    .baseplate__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .buildline__rule { display: none; }
    .buildline__track { height: auto; }
    .buildline__list { position: static; border-left: 1px solid var(--muted); margin-left: 6px; }
    .step { position: relative; left: auto; bottom: auto; width: auto; padding: 0 0 1.6rem 1.6rem; }
    .step::before { left: -7px; top: 1.2rem; bottom: auto; }
    .step__icon { margin-left: 0; }
    .step__name, .step__text { position: static; width: auto; }
    .step__name { margin: .2rem 0 .2rem; }
    .step__num { padding-left: 0; padding-bottom: 0; }
}

@media (max-width: 600px) {
    .masthead { padding: 1.1rem 0; }
    .brand__svg { width: 48px; height: 48px; }
    .frontwrap { width: 92%; }
    .tourframe__plate::before { display: none; }
    .tourframe__img { aspect-ratio: 4 / 3; }
    .tourframe__orbit, .cross--ml, .cross--mr { display: none; }
    .tourframe__plate::after { background: linear-gradient(to top, rgba(9, 28, 48, .55), rgba(9, 28, 48, 0) 60%); }
    .tourframe__caption {
        position: static;
        transform: none;
        width: auto;
        padding: 1.4rem 1.2rem 1.6rem;
        background: var(--sheet);
        border-top: 1px solid rgba(234, 244, 255, .4);
    }
    .tourframe__badge { width: 76px; }
    .tourframe__note { display: block; }
    .cross--bl, .cross--br { display: none; }
    .plansheet__main { padding: 1.4rem 1.2rem 1.6rem; }
    .plansheet__rail { padding: 1.2rem 1rem; }
    .miniplan figcaption { font-size: 1rem; }
    .bigplan { aspect-ratio: auto; display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
    .bigplan__img { position: static; width: 100%; margin-bottom: .6rem; }
    .bigplan__lines, .dim { display: none; }
    .callout { position: static; width: auto !important; text-align: left !important; flex: 1 1 40%; border-left: 2px solid var(--fire); padding-left: .55rem; }
    .cardgrid--three, .cardgrid--two { grid-template-columns: minmax(0, 1fr); }
    .showcase { padding: 1.8rem 1.4rem; gap: 1.8rem; }
    .showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
    .sheet { padding: 1.4rem 1.2rem 1.6rem; }
    .entry table { display: block; overflow-x: auto; }
    .lost { width: 100%; padding: 1.8rem 1.3rem; }
    .notes { padding: 1.4rem 1.2rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .sibling-nav { grid-template-columns: minmax(0, 1fr); }
    .sibling-nav__link--next { grid-column: auto; }
    .baseplate__cols { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; left: 10px; right: 10px; bottom: 10px; padding: 1rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
