/*
Theme Name: dds_tienaotructuyen.com
Theme URI: https://tienaotructuyen.com/
Author: Nguyễn Minh Thái
Description: Giao diện cho cổng thông tin phân tích và so sánh đa kênh đầu tư: bất động sản, cổ phiếu và tài sản số dành cho nhà đầu tư cá nhân tại Việt Nam.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tnao
*/
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/oswald-vietnamese-500-normal.woff2') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/oswald-latin-ext-500-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/oswald-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Oswald';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/oswald-vietnamese-700-normal.woff2') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:'Oswald';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/oswald-latin-ext-700-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Oswald';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/oswald-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/be-vietnam-pro-vietnamese-400-normal.woff2') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/be-vietnam-pro-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/be-vietnam-pro-vietnamese-600-normal.woff2') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/be-vietnam-pro-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/be-vietnam-pro-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root {
    --ink: #14181C;
    --ink-2: #181D21;
    --ink-3: #1D2328;
    --ink-4: #0F1215;
    --grid: #2A3238;
    --paper: #E8E4DB;
    --paper-2: #DCD7CC;
    --paper-3: #F1EEE7;
    --text: #1E2327;
    --muted: #6B7378;
    --muted-light: #A3ACB1;
    --on-dark: #E8E4DB;
    --lime: #C6F24E;
    --lime-deep: #A9D432;
    --teal: #1F5F5B;
    --teal-light: #3FA59C;
    --line: #3B4449;
    --coral: #E0664A;
    --torn-a: polygon(0.0% 5px, 2.94% 2px, 5.88% 6px, 8.82% 10px, 11.76% 0px, 14.71% 1px, 17.65% 8px, 20.59% 1px, 23.53% 5px, 26.47% 9px, 29.41% 0px, 32.35% 8px, 35.29% 3px, 38.24% 0px, 41.18% 1px, 44.12% 6px, 47.06% 6px, 50.0% 1px, 52.94% 3px, 55.88% 1px, 58.82% 8px, 61.76% 6px, 64.71% 0px, 67.65% 9px, 70.59% 1px, 73.53% 3px, 76.47% 10px, 79.41% 10px, 82.35% 9px, 85.29% 0px, 88.24% 9px, 91.18% 9px, 94.12% 6px, 97.06% 0px, 100.0% 3px, calc(100% - 0px) 12.5%, calc(100% - 4px) 25.0%, calc(100% - 6px) 37.5%, calc(100% - 1px) 50.0%, calc(100% - 2px) 62.5%, calc(100% - 3px) 75.0%, calc(100% - 1px) 87.5%, 100.0% calc(100% - 8px), 97.06% calc(100% - 1px), 94.12% calc(100% - 9px), 91.18% calc(100% - 4px), 88.24% calc(100% - 8px), 85.29% calc(100% - 10px), 82.35% calc(100% - 2px), 79.41% calc(100% - 1px), 76.47% calc(100% - 9px), 73.53% calc(100% - 9px), 70.59% calc(100% - 10px), 67.65% calc(100% - 3px), 64.71% calc(100% - 5px), 61.76% calc(100% - 1px), 58.82% calc(100% - 8px), 55.88% calc(100% - 11px), 52.94% calc(100% - 1px), 50.0% calc(100% - 9px), 47.06% calc(100% - 0px), 44.12% calc(100% - 9px), 41.18% calc(100% - 3px), 38.24% calc(100% - 7px), 35.29% calc(100% - 10px), 32.35% calc(100% - 8px), 29.41% calc(100% - 6px), 26.47% calc(100% - 12px), 23.53% calc(100% - 5px), 20.59% calc(100% - 7px), 17.65% calc(100% - 9px), 14.71% calc(100% - 7px), 11.76% calc(100% - 5px), 8.82% calc(100% - 4px), 5.88% calc(100% - 3px), 2.94% calc(100% - 12px), 0.0% calc(100% - 2px), 5px 87.5%, 6px 75.0%, 1px 62.5%, 0px 50.0%, 4px 37.5%, 2px 25.0%, 4px 12.5%);
    --torn-b: polygon(0.0% 10px, 2.94% 0px, 5.88% 12px, 8.82% 8px, 11.76% 1px, 14.71% 8px, 17.65% 3px, 20.59% 6px, 23.53% 5px, 26.47% 8px, 29.41% 4px, 32.35% 9px, 35.29% 2px, 38.24% 9px, 41.18% 4px, 44.12% 1px, 47.06% 4px, 50.0% 6px, 52.94% 5px, 55.88% 4px, 58.82% 1px, 61.76% 12px, 64.71% 5px, 67.65% 4px, 70.59% 0px, 73.53% 9px, 76.47% 9px, 79.41% 3px, 82.35% 1px, 85.29% 3px, 88.24% 1px, 91.18% 8px, 94.12% 7px, 97.06% 6px, 100.0% 11px, calc(100% - 0px) 12.5%, calc(100% - 6px) 25.0%, calc(100% - 0px) 37.5%, calc(100% - 3px) 50.0%, calc(100% - 0px) 62.5%, calc(100% - 0px) 75.0%, calc(100% - 4px) 87.5%, 100.0% calc(100% - 11px), 97.06% calc(100% - 6px), 94.12% calc(100% - 12px), 91.18% calc(100% - 6px), 88.24% calc(100% - 7px), 85.29% calc(100% - 10px), 82.35% calc(100% - 4px), 79.41% calc(100% - 9px), 76.47% calc(100% - 8px), 73.53% calc(100% - 2px), 70.59% calc(100% - 12px), 67.65% calc(100% - 10px), 64.71% calc(100% - 6px), 61.76% calc(100% - 3px), 58.82% calc(100% - 12px), 55.88% calc(100% - 8px), 52.94% calc(100% - 9px), 50.0% calc(100% - 11px), 47.06% calc(100% - 1px), 44.12% calc(100% - 12px), 41.18% calc(100% - 3px), 38.24% calc(100% - 6px), 35.29% calc(100% - 3px), 32.35% calc(100% - 2px), 29.41% calc(100% - 2px), 26.47% calc(100% - 10px), 23.53% calc(100% - 7px), 20.59% calc(100% - 1px), 17.65% calc(100% - 8px), 14.71% calc(100% - 11px), 11.76% calc(100% - 7px), 8.82% calc(100% - 0px), 5.88% calc(100% - 7px), 2.94% calc(100% - 7px), 0.0% calc(100% - 9px), 0px 87.5%, 4px 75.0%, 3px 62.5%, 6px 50.0%, 4px 37.5%, 3px 25.0%, 2px 12.5%);
    --f-head: 'Oswald', 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
    --f-body: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
}

/* hidden-state rules first (A11) */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

*, *::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: 15px;
    line-height: 1.7;
    color: var(--on-dark);
    background-color: var(--ink);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(rgba(42, 50, 56, .38) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 50, 56, .38) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px, 8px 8px, 8px 8px;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-radial-gradient(circle at 78% 26%, transparent 0 239px, rgba(59, 68, 73, .55) 240px 241px, transparent 242px 480px),
        repeating-radial-gradient(circle at 8% 92%, transparent 0 299px, rgba(31, 95, 91, .35) 300px 301px, transparent 302px 600px);
}

img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 1.4em 0 .55em;
    letter-spacing: .01em;
}
p, li, h1, h2, h3, h4, td, th, dd, blockquote, .card-title, .brand-name, .brand-desc {
    overflow-wrap: break-word;
    hyphens: auto;
}

a { color: inherit; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--lime); }
:focus-visible { outline: 2px dashed var(--lime); outline-offset: 3px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-to {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--lime);
    color: var(--ink);
    font-weight: 600;
}
.skip-to:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    padding: .62em 1.25em;
    border: 2px solid var(--ink);
    border-radius: 0;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-lime {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}
.btn-lime:hover, .btn-lime:focus-visible {
    color: var(--ink);
    background: #D6FA6E;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}
.btn-lime:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* ---------- Header ---------- */
.topbar {
    background: var(--ink);
    border-bottom: 1px solid var(--grid);
    position: relative;
    z-index: 20;
}
.topbar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: var(--on-dark);
    min-width: 0;
    flex: 1 1 auto;
    max-width: 40rem;
}
.brand:hover { color: var(--on-dark); }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; max-height: 60px; width: auto; }
.brand-svg { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    letter-spacing: .02em;
    color: #DADFE1;
}
.brand-desc {
    font-size: .74rem;
    line-height: 1.45;
    color: var(--muted-light);
    margin-top: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mainnav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.6rem;
    margin: 0;
    padding: 0;
}
.mainnav { flex: 0 0 auto; }
.mainnav-list a {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .88rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #C9CFD2;
    text-decoration: none;
    padding: .3rem 0;
    border-bottom: 2px solid transparent;
    display: inline-block;
}
.mainnav-list a:hover { color: var(--lime); }
.mainnav-list .current-menu-item > a,
.mainnav-list .current_page_item > a {
    color: var(--lime);
    border-bottom-color: var(--lime);
}
.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    background: transparent;
    border: 2px solid var(--line);
    color: var(--on-dark);
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
    padding: .45rem .8rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--lime);
    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; }

/* ---------- Section heads ---------- */
.sec-head {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.55rem, 3.1vw, 2.45rem);
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.1;
    margin: 0 0 1.8rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .9rem;
}
.sec-num {
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .02em;
}
.sec-num::after { content: " /"; color: var(--teal); }
.sec-head-light { color: var(--on-dark); border-bottom-color: var(--grid); }
.sec-head-light .sec-num { color: var(--muted-light); }
.sec-head-light .sec-num::after { color: var(--lime); }

/* ---------- Front page ---------- */
.front { width: min(85%, 1180px); padding: 2.6rem 0 3.5rem; }
.fs { margin-bottom: 2.8rem; position: relative; }
.fs-paper {
    background: var(--paper);
    color: var(--text);
    padding: 3.1rem 3rem 3rem;
    clip-path: var(--torn-a);
}
.fs-paper:nth-of-type(odd) { clip-path: var(--torn-b); }

/* Block 01 — atlas */
.fs-map { padding: 0; }
.atlas {
    position: relative;
    min-height: 540px;
    border: 1px solid var(--grid);
    background-color: rgba(24, 29, 33, .78);
    background-image:
        repeating-radial-gradient(circle at 50% 50%, transparent 0 89px, rgba(59, 68, 73, .7) 90px 91px, transparent 92px 180px),
        linear-gradient(rgba(42, 50, 56, .9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 50, 56, .9) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    padding: 1.8rem 5.5rem 2.2rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.atlas-map {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 54%;
    transform: translateX(-50%);
    height: 100%;
    aspect-ratio: 884 / 1004;
    z-index: 0;
}
.atlas-map img { display: block; width: 100%; height: 100%; object-fit: contain; }
.atlas-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(198, 242, 78, .18), 0 0 14px 3px rgba(198, 242, 78, .55);
    transform: translate(-50%, -50%);
}
.atlas-dot-n { left: 27.9%; top: 16.1%; }
.atlas-dot-s { left: 35.3%; top: 83.7%; }
.atlas-lead {
    position: relative;
    z-index: 1;
    max-width: 22rem;
    color: var(--muted-light);
    font-size: .88rem;
    margin: 0;
}
.atlas-facts {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 2rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, .62fr) minmax(0, 1fr) minmax(0, .5fr) minmax(0, 1.18fr);
    gap: 1.5rem 2rem;
    align-items: end;
}
.atlas-fact { min-width: 0; }
.atlas-fact:nth-child(3) { grid-column: 4; }
.atlas-num {
    display: block;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(2.8rem, 5.4vw, 5.3rem);
    line-height: .95;
    color: var(--lime);
    letter-spacing: .01em;
    text-shadow: 0 0 18px rgba(20, 24, 28, .95), 0 2px 0 rgba(20, 24, 28, .8);
    white-space: nowrap;
}
.atlas-cap {
    display: block;
    margin-top: .55rem;
    font-size: 1.02rem;
    line-height: 1.4;
    color: var(--on-dark);
    text-shadow: 0 0 10px rgba(20, 24, 28, 1);
}
.atlas-scale {
    position: absolute;
    right: 1rem;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 3.6rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: .68rem;
    color: var(--muted-light);
}
.atlas-scale-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    letter-spacing: .12em;
    position: absolute;
    left: 0;
    top: 50%;
    translate: 0 -50%;
}
.atlas-ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
}
.atlas-ticks li {
    position: relative;
    padding-right: 1rem;
    line-height: 1;
    min-height: 1px;
    text-align: right;
}
.atlas-ticks li::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 1px;
    background: var(--muted-light);
}
.atlas-ticks li:first-child::after { background: var(--lime); width: 12px; }

/* Block 02 — structure */
.structure {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
    gap: 2rem 3rem;
    align-items: start;
}
.cutaway { margin: 0; min-width: 0; }
.cutaway-frame { position: relative; }
.cutaway-frame img { display: block; width: 100%; height: auto; }
.cut-label {
    position: absolute;
    transform: translateY(-50%);
    font-size: clamp(.72rem, 1.25vw, 1rem);
    line-height: 1.15;
    color: var(--text);
    white-space: nowrap;
}
.cut-l { right: auto; }
.cut-1 { left: 0; top: 13.2%; width: 13%; text-align: right; padding-right: .35rem; white-space: normal; }
.cut-2 { left: 0; top: 62.9%; width: 8.6%; text-align: right; padding-right: .3rem; }
.cut-r { left: 71.6%; padding-left: .4rem; }
.cut-3 { top: 32.3%; }
.cut-4 { top: 56.4%; }
.cut-5 { top: 72.7%; }
.cutaway figcaption {
    margin-top: 1rem;
    font-size: .86rem;
    color: var(--muted);
    max-width: 34rem;
    border-left: 2px solid var(--teal);
    padding-left: .9rem;
}
.gauges {
    border-left: 1px solid var(--line);
    padding-left: 2.6rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.gauges-note {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin: 0;
}
.gauge { display: flex; flex-direction: column; gap: .45rem; }
.gauge-name { font-size: 1.05rem; color: var(--text); font-weight: 600; }
.gauge-track {
    display: flex;
    height: 16px;
    border: 2px solid var(--text);
    border-radius: 10px;
    overflow: hidden;
    background: var(--paper-3);
}
.gauge-fill { display: block; height: 100%; background: var(--lime); }
.gauge-fill-neg { background: var(--coral); }
.gauge-fill-rest { background: var(--lime); }
.gauge-hint { font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* Block 03 — latest */
.latest-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.latest-row:has(> .card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-note { color: var(--muted); font-size: .95rem; }

/* ---------- Cards ---------- */
.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--text);
    overflow: hidden;
    min-width: 0;
    transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--teal); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--teal); }
.card-row { display: flex; flex: 1; min-width: 0; }
.card-thumb-wrap {
    flex: 0 0 38%;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    background: var(--paper-2);
    border-right: 1px solid var(--line);
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease, filter .3s ease;
    filter: saturate(.9);
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); filter: saturate(1.05); }
.card-body {
    flex: 1;
    min-width: 0;
    padding: 1rem 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.card-pin {
    font-family: var(--f-head);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    background: var(--ink);
    color: var(--lime);
    padding: .15rem .5rem;
    margin-bottom: .5rem;
}
.card-title {
    font-size: 1.22rem;
    line-height: 1.2;
    margin: 0 0 .5rem;
    font-weight: 700;
}
.card-title a { text-decoration: none; color: var(--text); }
.card-title a:hover { color: var(--teal); text-decoration: underline; text-decoration-color: var(--lime); }
.card-excerpt { font-size: .84rem; line-height: 1.55; color: #3A4146; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--teal); }
.card-date {
    font-size: .8rem;
    color: var(--muted);
    margin: .35rem 0 .85rem;
    letter-spacing: .03em;
}
.card-more { margin-top: auto; font-size: .82rem; padding: .5em 1em; }

/* Block 04 — matrix */
.fs-matrix {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 1.8rem 2.5rem;
    border: 1px solid var(--grid);
    background-color: rgba(24, 29, 33, .85);
    background-image:
        repeating-radial-gradient(circle at 12% 120%, transparent 0 119px, rgba(59, 68, 73, .6) 120px 121px, transparent 122px 240px);
    padding: 2.4rem 2.4rem 2.6rem;
}
.matrix-intro { min-width: 0; }
.matrix-intro .sec-head { margin-bottom: 1.2rem; font-size: clamp(1.4rem, 2.5vw, 2.05rem); }
.matrix-intro p { color: var(--muted-light); font-size: .92rem; max-width: 26rem; }
.matrix-wrap { min-width: 0; overflow-x: auto; align-self: end; }
.matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    color: var(--on-dark);
    border: 1px solid #2A6F6A;
}
.matrix th, .matrix td {
    border: 1px solid #2A6F6A;
    padding: .7rem 1rem;
    text-align: center;
}
.matrix thead th {
    background: var(--lime);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: .02em;
    border-color: var(--ink);
}
.matrix thead th:first-child { background: transparent; border-color: transparent transparent #2A6F6A transparent; }
.matrix tbody th {
    text-align: left;
    font-weight: 600;
    color: #F4F1EA;
    background: rgba(31, 95, 91, .14);
}
.matrix tbody tr:hover td { background: rgba(198, 242, 78, .07); }

/* Block 05 — view */
.view {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 2rem 3rem;
    align-items: center;
}
.view-quote { margin: 0; min-width: 0; }
.view-quote p {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: .005em;
    margin: 0 0 1rem;
    color: var(--text);
}
.view-quote cite {
    display: block;
    font-style: normal;
    font-size: 1.15rem;
    color: var(--text);
    padding-top: .7rem;
    border-top: 1px solid var(--line);
    max-width: 22rem;
}
.cycle { margin: 0; min-width: 0; }
.cycle svg { display: block; width: 100%; height: auto; }
.cycle figcaption { font-size: .84rem; color: var(--muted); margin-top: .9rem; }
.view-cta { margin-top: 2rem; }

/* ---------- Inner pages ---------- */
.inner { padding: 1.6rem 0 3.5rem; }
.crumbs {
    font-size: .82rem;
    color: var(--muted-light);
    margin: 0 0 1.4rem;
    letter-spacing: .02em;
}
.crumbs a { color: var(--on-dark); }
.crumbs-sep { color: var(--lime); margin: 0 .35rem; }
.crumbs span:last-child { 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; }

.sheet {
    background: var(--paper);
    color: var(--text);
    padding: 2.8rem 2.6rem 2.6rem;
    clip-path: var(--torn-a);
    margin-bottom: 2rem;
}
.page-head { margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.page-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0 0 .5rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.08;
    color: var(--text);
}
.page-intro { color: #3A4146; font-size: .95rem; }
.entry-meta { font-size: .85rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.entry-cat a { color: var(--teal); }
.entry-cover { margin: 0 0 1.8rem; }
.entry-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }

.list { display: flex; flex-direction: column; gap: 1.3rem; }
.list .card-thumb-wrap { flex-basis: 33%; min-height: 220px; }
.list .card-body { padding: 1.3rem 1.4rem 1.4rem; }
.list .card-title { font-size: 1.45rem; }
.list .card-excerpt { font-size: .92rem; }

/* entry typography */
.entry { font-size: 1rem; line-height: 1.78; color: var(--text); }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.75rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.entry h3 { font-size: 1.35rem; }
.entry h4 { font-size: 1.12rem; }
.entry a { color: var(--teal); }
.entry a:hover { color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--teal); }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--paper-2);
    border-left: 4px solid var(--teal);
    font-family: var(--f-head);
    font-size: 1.25rem;
    line-height: 1.35;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92rem; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: .55rem .8rem; text-align: left; vertical-align: top; }
.entry th { background: var(--ink); color: var(--lime); font-family: var(--f-head); font-weight: 500; letter-spacing: .03em; }
.entry tr:nth-child(even) td { background: rgba(220, 215, 204, .55); }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.entry pre { background: var(--ink); color: var(--on-dark); padding: 1rem 1.2rem; overflow-x: auto; font-size: .86rem; }
.entry code { background: var(--paper-2); padding: .1em .35em; font-size: .9em; }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.entry-tags { font-size: .85rem; color: var(--muted); margin-top: 1.8rem; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.post-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    background: var(--ink-2);
    color: var(--on-dark);
    text-decoration: none;
    font-family: var(--f-head);
    font-size: 1.05rem;
    line-height: 1.3;
}
.post-nav-link span { display: block; font-size: .75rem; color: var(--lime); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3rem; }
.post-nav-link:hover { border-color: var(--lime); color: var(--on-dark); }
.post-nav-next { text-align: right; grid-column: 2; }

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
    align-items: center;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .75rem;
    border: 2px solid var(--ink);
    background: var(--paper-3);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 600;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}
.pager a.page-numbers:hover { background: var(--lime); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.pager .page-numbers.current { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .2rem; }

/* ---------- Sidebar ---------- */
.sidebar {
    background: var(--ink-3);
    border: 1px solid var(--line);
    padding: 1.7rem 1.5rem;
    color: #D3D8DA;
    min-width: 0;
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--on-dark);
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--lime);
    display: inline-block;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; line-height: 1.45; color: #D3D8DA; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--on-dark); text-decoration: none; }
.sidebar a:hover { color: var(--lime); text-decoration: underline; text-decoration-color: var(--lime); }
.sidebar .post-date { display: block; font-size: .76rem; color: var(--muted-light); }
.sidebar p, .sidebar .textwidget { color: #D3D8DA; font-size: .9rem; }
.sidebar .seek { flex-direction: column; }

/* ---------- Search form ---------- */
.seek { display: flex; gap: .6rem; margin: 1.2rem 0; max-width: 32rem; }
.seek-field {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: .95rem;
    padding: .62rem .8rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--paper-3);
    color: var(--text);
}
.seek-field:focus { outline: 2px solid var(--lime); outline-offset: 0; }
.seek-btn { box-shadow: 3px 3px 0 var(--ink); }

/* ---------- 404 ---------- */
.notfound { text-align: left; }
.notfound-code {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(5rem, 16vw, 9rem);
    line-height: .9;
    margin: 0 0 .4rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--teal);
}

/* ---------- Comments ---------- */
.talk-title { font-size: 1.5rem; text-transform: uppercase; margin-top: 0; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.5rem; border-left: 2px solid var(--teal); margin-top: 1rem; }
.note { margin-bottom: 1.2rem; }
.note-body { background: var(--paper-3); border: 1px solid var(--line); padding: 1rem 1.2rem; }
.note-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.note-meta img { display: block; border: 1px solid var(--line); }
.note-author { font-weight: 600; color: var(--text); }
.note-wait { font-size: .82rem; color: var(--coral); }
.note-text { font-size: .94rem; }
.comment-reply-link { font-family: var(--f-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.3rem; text-transform: uppercase; }
.comment-reply-title small { font-family: var(--f-body); font-size: .8rem; text-transform: none; margin-left: .6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    padding: .6rem .75rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--paper-3);
    color: var(--text);
}
.comment-form .submit {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .65em 1.3em;
    border: 2px solid var(--ink);
    background: var(--lime);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
}
.comment-form .submit:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.comment-notes, .logged-in-as, .must-log-in, .talk-closed { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.bottombar {
    background: var(--ink);
    border-top: 1px solid var(--grid);
    color: #B9C0C4;
    padding: 3rem 0 1.6rem;
}
.bottombar-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 3rem;
}
.bottombar-col { min-width: 0; }
.bottombar .widget { margin-bottom: 1.4rem; }
.bottombar .widget-title {
    font-size: 1.3rem;
    color: #F1EEE7;
    margin: 0 0 .8rem;
    letter-spacing: .02em;
}
.bottombar p, .bottombar .textwidget { color: #B9C0C4; font-size: .9rem; line-height: 1.6; }
.bottombar ul { list-style: none; margin: 0; padding: 0; }
.bottombar li { margin-bottom: .3rem; font-size: .92rem; }
.bottombar a { color: #E2E5E6; text-decoration: none; }
.bottombar a:hover { color: var(--lime); text-decoration: underline; text-decoration-color: var(--lime); }
.bottombar .textwidget a { text-decoration: underline; text-decoration-color: var(--lime); }
.copyline {
    text-align: center;
    font-size: .82rem;
    color: #9AA3A8;
    border-top: 1px solid var(--grid);
    margin: 1.6rem 0 0;
    padding-top: 1.3rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: var(--ink-4);
    border-top: 2px solid var(--lime);
    color: var(--on-dark);
}
.cookie-text { margin: 0; font-size: .86rem; max-width: 48rem; color: #D3D8DA; }
.cookie-banner .btn-lime { box-shadow: 4px 4px 0 var(--teal); }
.cookie-banner .btn-lime:hover { box-shadow: 2px 2px 0 var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .latest-row { grid-template-columns: minmax(0, 1fr); }
    .latest-row .card-thumb-wrap { flex-basis: 34%; min-height: 210px; }
    .latest-row .card-title { font-size: 1.4rem; }
}
@media (max-width: 960px) {
    .front { width: 92%; }
    .topbar-in { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .mainnav { flex-basis: 100%; display: none; }
    .mainnav.is-open { display: block; }
    .mainnav-list { flex-direction: column; gap: 0; border-top: 1px solid var(--grid); padding-top: .4rem; }
    .mainnav-list a { padding: .65rem 0; }
    .atlas { min-height: 0; padding: 1.6rem 4.8rem 1.8rem 1.6rem; }
    .atlas-map { position: relative; left: auto; transform: none; height: auto; width: min(70%, 340px); margin: 1.2rem auto 0; aspect-ratio: 884 / 1004; }
    .atlas-facts { grid-template-columns: minmax(0, 1fr); margin: 1.2rem 0 0; }
    .atlas-fact:nth-child(3) { grid-column: auto; }
    .latest-row:has(> .card:nth-child(4)) { grid-template-columns: minmax(0, 1fr); }
    .structure, .view, .fs-matrix { grid-template-columns: minmax(0, 1fr); }
    .gauges { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.6rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
    .layout-single > .content-area { width: 100%; }
    .bottombar-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body { font-size: 14.5px; }
    .front { padding-top: 1.6rem; }
    .fs-paper { padding: 2.4rem 1.4rem 2.3rem; }
    .sheet { padding: 2.2rem 1.3rem 2rem; }
    .fs-matrix { padding: 1.8rem 1.2rem 2rem; }
    .atlas { padding: 1.3rem 1.2rem 1.6rem; }
    .atlas-scale { display: none; }
    .atlas-map { width: 82%; }
    .brand-svg { width: 44px; height: 42px; }
    .brand-name { font-size: .95rem; }
    .card-row { flex-direction: column; }
    .card-thumb-wrap, .list .card-thumb-wrap, .latest-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .cut-label { font-size: .62rem; }
    .cut-1 { width: 14%; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; }
    .bottombar-cols { grid-template-columns: minmax(0, 1fr); }
    .seek { flex-direction: column; }
    .matrix th, .matrix td { padding: .55rem .6rem; font-size: .88rem; }
    .cookie-banner { padding: 1rem; }
}
