/*
   NOVERA.Software v2.0 - site stylesheet
   Builds on tokens.css. Measurements follow the board briefing, which is set
   on a 1456px page with an 82px margin; the site keeps those proportions and
   lets the page grow taller than a slide where the content needs it.
 */

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--ground);
    color: var(--ink-2);
    font-family: var(--f-sans);
    font-weight: var(--w-light);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*
   BACKGROUNDS - exactly as the board briefing draws each page
   Every page of the PDF is navy (#0b1020) with at most these glows, placed and
   sized relative to the page width as the PDF places them:
     warm  glow-a  top right,   55.5% of the width  (PDF pages 02 05 08 11)
     cool  glow-b + glow-c, bottom left, 47.7%      (PDF pages 03 06 09)
     blue  glow-b alone, bottom left                (PDF page 12)
     plain navy only                                (PDF pages 04 07 10)
   The cover is darker: a radial gradient centred at 70% / 10% under a 26/1280
   dot grid, with all three glows. The glows stay fixed to the window, as they
   are fixed to the page in the PDF.
 */
body[class*="bg-"] { background-repeat: no-repeat; background-attachment: fixed; }

body.bg-warm {
    background-image: url('../img/glow-a.png');
    background-position: right top;
    background-size: 55.52vw auto;
}
body.bg-cool {
    background-image: url('../img/glow-c.png'), url('../img/glow-b.png');
    background-position: left bottom, left bottom;
    background-size: 47.71vw auto, 47.71vw auto;
}
body.bg-blue {
    background-image: url('../img/glow-b.png');
    background-position: left bottom;
    background-size: 47.71vw auto;
}
body.bg-plain { background-image: none; }

body.bg-cover {
    background-color: #050912;
    background-image:
        url('../img/glow-c.png'),
        url('../img/glow-b.png'),
        url('../img/glow-a.png'),
        radial-gradient(circle closest-side, rgba(255, 255, 255, .03) 0 10%, rgba(255, 255, 255, 0) 13%),
        radial-gradient(ellipse 120% 90% at 70% 10%,
            #122144 0%, #111e3e 6.64%, #101c39 12.89%, #0f1933 19.14%, #0e172e 25.39%,
            #0c1123 37.89%, #070c18 74.22%, #050912 100%);
    background-position: left bottom, left bottom, right top, 0 0, 0 0;
    background-size: 47.71vw auto, 47.71vw auto, 55.52vw auto, 2.03125vw 2.03125vw, 100% 100%;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: var(--w-xlight); text-wrap: balance; }

/* six languages: long compounds (Oberflächensprachen, nyilvántartás) hyphenate
   by the page's own <html lang>, and nothing can push the page sideways */
body { overflow-wrap: break-word; }
p, li, dd, td, th, label, h1, h2, h3, .chip, .nav-list a, .contents-list a { hyphens: auto; -webkit-hyphens: auto; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong, b { color: var(--ink); font-weight: var(--w-reg); }

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

.skip {
    position: absolute; left: var(--gutter); top: -60px; z-index: 100;
    background: var(--gold); color: var(--ground); padding: 10px 16px; border-radius: var(--radius);
    font-weight: var(--w-med);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }

/* masthead */
.mast {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--ground) 86%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.mast-brand { display: inline-flex; align-items: center; gap: 12px; min-height: var(--touch); }
.mast-brand img { width: 26px; height: 26px; }
.mast-brand span { color: var(--ink); font-size: 17px; font-weight: var(--w-light); letter-spacing: .01em; }
.dot { color: var(--gold); }

/* the cover carries its own lockup, so the masthead sits on the artwork */
.is-cover .mast { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.is-cover .mast-brand { visibility: hidden; }

.mast-tools { display: flex; align-items: center; gap: 18px; }

/* navigator */
.mast-in { gap: 28px; }
.mast-brand { flex: 0 0 auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
    display: inline-flex; align-items: center; gap: 9px; min-height: var(--touch); padding: 0 14px; position: relative;
    font-size: 14px; color: var(--ink-2); cursor: pointer; list-style: none; transition: color .2s ease;
}
.nav-link::-webkit-details-marker { display: none; }
.nav-link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.nav-link:hover, .nav-menu[open] > .nav-link { color: var(--ink); }
.nav-link:hover::after, .nav-link.on::after { transform: scaleX(1); }
.nav-link.on { color: var(--ink); }
.nav-link i { width: 6px; height: 6px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.nav-menu[open] > .nav-link i { transform: translateY(1px) rotate(-135deg); }
.nav-menu { position: relative; }
.nav-panel {
    position: absolute; left: -12px; top: calc(100% + 6px); z-index: 60; width: min(620px, 80vw);
    padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .5);
}
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 2px 10px; }
.nav-list a {
    display: flex; align-items: baseline; gap: 12px; min-height: 40px; padding: 9px 10px; border-radius: 5px;
    font-size: 14.5px; line-height: 1.35; color: var(--ink-2);
}
.nav-list a em { font-style: normal; font-size: 11px; letter-spacing: .16em; color: var(--gold-ink); min-width: 20px; }
.nav-list .added a em::before { content: '·'; color: var(--ink-4); }
.nav-list a:hover { background: var(--surface-2); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--gold); }

/* language pill */
.lang { position: relative; }
.lang summary {
    list-style: none; cursor: pointer; user-select: none;
    display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 14px;
    border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent);
    font-size: 12px; letter-spacing: .16em; color: var(--ink-2); transition: border-color .2s ease, color .2s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--gold-line); color: var(--ink); }
.lang summary i { width: 7px; height: 7px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.lang[open] summary i { transform: translateY(1px) rotate(-135deg); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px;
    list-style: none; margin: 0; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.lang-menu a {
    display: flex; align-items: center; gap: 14px; min-height: 40px; padding: 0 12px; border-radius: 5px;
    font-size: 14.5px; color: var(--ink-2);
}
.lang-menu a em { font-style: normal; font-size: 11.5px; letter-spacing: .16em; color: var(--ink-4); min-width: 22px; }
.lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--gold); }
.lang-menu a[aria-current="true"] em { color: var(--gold-ink); }

.contents-btn {
    display: inline-flex; align-items: center; gap: 12px; min-height: var(--touch); padding: 0 4px;
    font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
    transition: color .2s ease;
}
.contents-btn:hover { color: var(--ink); }
.contents-btn i { display: grid; gap: 4px; width: 18px; }
.contents-btn i::before, .contents-btn i::after { content: ''; height: 1px; background: currentColor; }
.contents-btn i::after { width: 12px; margin-left: auto; background: var(--gold); }

/* contents overlay: the briefing's table of contents */
.contents {
    position: fixed; inset: 0; z-index: 80;
    background: var(--ground);
    background-image: url('../img/glow-a.png');
    background-repeat: no-repeat; background-position: right top; background-size: min(73vw, 1066px) auto;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.contents.open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.contents-top { display: flex; align-items: center; justify-content: space-between; min-height: 68px; border-bottom: 1px solid var(--rule); }
.contents-list { list-style: none; margin: 0; padding: 40px 0 64px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.contents-list li { border-bottom: 1px solid var(--rule); }
.contents-list a, .contents-list span.pending {
    display: flex; align-items: baseline; gap: 22px; min-height: var(--touch); padding: 18px 0;
    font-size: clamp(20px, 2vw, 26px); font-weight: var(--w-xlight); color: var(--ink);
}
.contents-list a em, .contents-list span em {
    font-style: normal; font-size: 12px; letter-spacing: .2em; color: var(--gold-ink); font-weight: var(--w-light); min-width: 2.2em;
}
.contents-list a:hover { color: var(--gold); }
.contents-list a[aria-current="page"] { color: var(--gold); }
.contents-list span.pending { color: var(--ink-5); cursor: default; }
.contents-list span.pending em { color: var(--ink-5); }
.contents-list .home a { color: var(--ink-2); }
.contents-list .added a, .contents-list .added span.pending { font-size: clamp(17px, 1.6vw, 21px); }
.contents-more { list-style: none; margin: -32px 0 56px; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 28px; border-top: 1px solid var(--rule); }
.contents-more a { display: inline-flex; align-items: center; min-height: var(--touch); font-size: 15px; color: var(--ink-2); }
.contents-more a:hover { color: var(--gold); }

body.locked { overflow: hidden; }

/* shared section header (every briefing page opens this way) */
.eyebrow {
    font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold-ink); font-weight: var(--w-light);
}
.title {
    margin-top: 10px;
    font-size: clamp(34px, 3.4vw, 48px); line-height: 1.12; font-weight: var(--w-xlight); letter-spacing: -.005em;
}
.lede {
    margin-top: 16px; max-width: 1110px;
    font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); font-weight: var(--w-xlight);
}

/* a briefing page */
.page { padding: clamp(48px, 5.2vw, 76px) 0 0; }

.page-foot { margin-top: clamp(48px, 6vw, 88px); }
.page-foot-in {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    border-top: 1px solid var(--rule); padding: 18px 0 30px;
}
.page-mark { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); }
.page-mark img { width: 18px; height: 18px; }
.page-no { font-size: 12px; letter-spacing: .1em; color: var(--ink-4); }

.pager { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 8px; }
.pager a {
    display: inline-flex; flex-direction: column; gap: 4px; min-height: var(--touch); justify-content: center;
    color: var(--ink); font-size: 17px; font-weight: var(--w-light); transition: color .2s ease;
}
.pager a small { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.pager a:hover { color: var(--gold); }
.pager .next { text-align: right; margin-left: auto; }

/* the cover */
.cover {
    position: relative; isolation: isolate;
    min-height: calc(100vh - 68px);
    display: flex; flex-direction: column; justify-content: center;
    padding: 48px 0 40px;
}
.cover-lockup { width: clamp(150px, 15vw, 216px); height: auto; }
.cover-title {
    margin-top: clamp(36px, 3.6vw, 52px);
    font-size: clamp(42px, 4.4vw, 62px); line-height: 1.08; font-weight: var(--w-xlight); letter-spacing: .005em;
}
.cover-bar {
    width: 142px; height: 3px; margin-top: clamp(40px, 3.8vw, 54px); border-radius: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 40%, rgba(232, 167, 92, 0) 100%);
}
.cover-sub {
    margin-top: clamp(36px, 3.6vw, 52px);
    font-size: clamp(21px, 2vw, 29px); line-height: 1.3; font-weight: var(--w-light); color: var(--ink);
}
.cover-sub span { color: var(--gold); }
.cover-lede {
    margin-top: 22px; max-width: 760px;
    font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.75; font-weight: var(--w-light); color: var(--ink-3);
}
.cover-meta {
    margin-top: clamp(56px, 8.5vw, 124px);
    font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4);
}
.cover-meta b { color: var(--ink-2); font-weight: var(--w-light); }
.cover-meta i { font-style: normal; margin: 0 .6em; color: var(--ink-5); }
.cover-start {
    margin-top: 28px; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 14px; min-height: var(--touch);
    font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
    border-bottom: 1px solid var(--gold-line); transition: gap .2s ease, color .2s ease;
}
.cover-start::after { content: '\2192'; color: var(--gold); }
.cover-start:hover { gap: 20px; color: var(--gold); }

/*
   BRIEFING COMPONENTS - one per device the PDF uses
 */

.slide-body { margin-top: clamp(32px, 2.8vw, 40px); }
.stack > * + * { margin-top: 24px; }

/* surfaces: the PDF's cards are a faint top-to-bottom navy gradient */
.card, .tile, .panel, .layer, .side, .box {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* pillar / module cards (pages 02, 09) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card { position: relative; padding: 30px 28px 32px 30px; overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.card.blue::before { background: var(--blue); }
.card .ico { width: 30px; height: 30px; color: var(--gold); }
.card.blue .ico { color: var(--blue); }
.card h3 { margin-top: 30px; font-size: 19px; font-weight: var(--w-reg); line-height: 1.3; }
.card p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.cards.tall .card { min-height: 440px; }

/* stat tiles (page 03) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tile { padding: 24px 24px 24px; min-height: 150px; }
.tile .n { font-size: clamp(38px, 3.2vw, 46px); line-height: 1; font-weight: var(--w-xlight); color: var(--gold); }
.tile .n small { font-size: .4em; color: var(--ink-3); margin-left: 2px; }
.tile p { margin-top: 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }

/* callout with a blue rule (pages 03, 12) */
.callout {
    position: relative; padding: 20px 28px 22px 28px; border-radius: var(--radius);
    background: linear-gradient(90deg, #0f1c38 0%, #0d1730 100%);
    border: 1px solid #1f3256;
    font-size: 15.5px; line-height: 1.7; color: var(--ink-3);
}
.callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); border-radius: var(--radius) 0 0 var(--radius); }
.callout b { color: var(--ink); font-weight: var(--w-reg); }

/* labels: small gold (or blue / green) uppercase */
.label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); font-weight: var(--w-reg); }
.label.blue { color: var(--blue); }
.label.green { color: var(--green); }

/* two columns: argument on the left, a panel on the right (05, 06, 08) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: stretch; }
.split .col > .label { margin-bottom: 22px; }
.copy p { font-size: 16px; line-height: 1.7; color: var(--ink-3); }
.copy p + p { margin-top: 18px; }
.copy b { color: var(--ink); font-weight: var(--w-reg); }
.panel { padding: 32px 30px 34px; min-height: 100%; }
.panel > .label { margin-bottom: 24px; }

.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding-left: 23px; font-size: 15.5px; line-height: 1.55; color: var(--ink-3); }
.dots li + li { margin-top: 16px; }
.dots li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.dots b { color: var(--ink); font-weight: var(--w-reg); }

/* chips (pages 04, 08) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 5px;
    border: 1px solid #34405a; background: #18233f;
    font-size: 14px; line-height: 1.3; color: var(--ink-3);
}
.chip.warm { border-color: #6c5a43; background: #1c2238; }
.chip.gold { border-color: #6c5a43; background: #1c2238; color: var(--gold-ink); }
.panel .chips { margin-bottom: 30px; }

/* architecture: four layers and three side panels (page 04) */
.arch { display: grid; grid-template-columns: 1fr 298px; gap: var(--gap); align-items: stretch; }
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding: 24px 22px; min-height: 120px; }
.layer .label { font-size: 12px; }
.sides { display: grid; gap: 12px; }
.side { padding: 18px 18px 20px; }
.side .label { font-size: 12px; margin-bottom: 10px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }

/* flows: boxes joined by arrows (pages 07, 10) */
.flow { display: flex; align-items: stretch; gap: 0; }
.flow .box { flex: 1 1 auto; padding: 26px 22px 24px; min-width: 0; }
.flow .arrow { flex: 0 0 62px; display: grid; place-items: center; color: #5b6680; }
.flow .arrow svg { width: 46px; height: 10px; }
.box .label { font-size: 12px; margin-bottom: 12px; color: var(--gold-ink); }
.box h3 { font-size: 17px; font-weight: var(--w-light); line-height: 1.35; }
.box p { margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.box.warm { background: linear-gradient(180deg, #1e1d25 0%, #1a1a22 100%); border-color: var(--gold-line); }
.box.green { border-color: rgba(108, 197, 159, .55); }
.box.blue-l .label { color: var(--blue); }
.box.green .label { color: var(--green); }
.flow.center .box { text-align: center; padding: 24px 18px; }
.flow.center .box h3 { font-size: 16px; }
.flow-note { display: flex; flex-direction: column; align-items: flex-end; margin-top: 10px; color: var(--green); font-size: 14.5px; }
.flow-note::before { content: ''; width: 1px; height: 32px; background: rgba(108, 197, 159, .55); margin-right: 72px; margin-bottom: 6px; }

/* rule cards (page 07) */
.rules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rule-card { padding: 22px 18px 24px; border-radius: var(--radius); background: var(--surface-warm); border: 1px solid #4a3f33; }
.rule-card .label { font-size: 12px; margin-bottom: 12px; color: var(--gold-ink); }
.rule-card p { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.fine { font-size: 15px; line-height: 1.6; color: var(--ink-5); }
.flow + .split.open { margin-top: clamp(48px, 5.4vw, 78px); }
.split.open .dots li { font-size: 16px; }
.flow-note + .rules { margin-top: 36px; }
.rules + .fine { margin-top: 22px; }

/* status table (page 11) */
.status { width: 100%; border-collapse: collapse; }
.status th {
    text-align: left; padding: 0 16px 16px 0; border-bottom: 2px solid var(--rule);
    font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); font-weight: var(--w-reg);
}
.status tr { border-bottom: 0 solid var(--rule); }
.status td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; font-size: 15.5px; color: var(--ink-3); }
.status td:first-child { color: var(--ink); width: 18%; }
.status td:nth-child(2) { width: 17%; }
.pill {
    display: inline-flex; align-items: center; gap: 9px; padding: 5px 13px 5px 11px; border-radius: 5px; white-space: nowrap;
    font-size: 14.5px; background: var(--green-tint); color: var(--green);
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.gold { background: rgba(232, 167, 92, .12); color: var(--gold); }
.pill.blue { background: var(--blue-tint); color: var(--blue-ink); }

/* open items (page 12) */
.items { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: column; gap: 26px 40px; }
.item { border-left: 3px solid #a8783f; padding: 2px 0 2px 18px; }
.item h3 { font-size: 16px; font-weight: var(--w-reg); line-height: 1.4; }
.item p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }
.items + .next-step { margin: 30px 0 0 calc(50% + 20px); }

/*
   THE PLATFORM DESCRIPTION, set beneath each briefing page
 */
.desc { margin-top: clamp(64px, 7vw, 104px); }
.desc-in { border-top: 1px solid var(--rule); padding-top: clamp(40px, 4.4vw, 64px); }
.desc-src { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); }
.desc h2 {
    margin-top: 14px; max-width: 34ch;
    font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; font-weight: var(--w-xlight);
}
.desc h2 + .prose { margin-top: 26px; }
.desc .prose + h2 { margin-top: clamp(48px, 5vw, 72px); }
.prose { max-width: 74ch; }
.prose p { font-size: 16.5px; line-height: 1.8; color: var(--ink-2); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1.1em; }
.prose ul { list-style: none; margin: 0; padding: 0; }
.prose li { position: relative; padding-left: 24px; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose li + li { margin-top: .55em; }
.prose li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose ul + ul { margin-top: .55em; }
.prose b { color: var(--ink); font-weight: var(--w-reg); }

/* each description section opens with one plain lead paragraph; the rest is
   highlights: bold lead-ins, bullet lists and short notes */
.prose > .lead {
    font-size: clamp(17.5px, 1.45vw, 20px); line-height: 1.7; color: var(--ink); font-weight: var(--w-light);
    max-width: 78ch; margin-bottom: 1.5em; hyphens: manual; -webkit-hyphens: manual;
}
@media (max-width: 640px) { .prose > .lead { hyphens: auto; -webkit-hyphens: auto; } }
.prose p:has(+ ul) { break-after: avoid; margin-bottom: .55em; }
.prose p + ul { margin-top: 0; }
.prose ul { margin-bottom: 1.1em; }
.prose ul + p { margin-top: 0; }

/* the spread: on a wide screen the description runs in two columns across the
   full width of the page, divided by a hairline, the way a printed spread does.
   Headings stay above the columns; a bullet never splits across them. */
@media (min-width: 1100px) {
    .prose { max-width: none; columns: 2; column-gap: 72px; column-rule: 1px solid var(--rule); column-fill: balance; }
    .prose p { orphans: 3; widows: 3; }
    .prose li { break-inside: avoid; }
    .prose > :first-child { margin-top: 0; }
    .prose > .lead { column-span: all; }
}

/*
   SITE FOOTER - laid out as the Novera.Apartments footer
 */
.site-foot { margin-top: 0; background: #070b16; border-top: 1px solid var(--rule); padding: clamp(56px, 6vw, 84px) 0 28px; }
.sf-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr .9fr; gap: 40px; }
.sf-brand img { width: 168px; height: auto; }
.sf-brand p { margin-top: 20px; max-width: 34ch; font-size: 14.5px; line-height: 1.65; color: var(--ink-3); }
.sf-cta {
    margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; min-height: var(--touch);
    font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
    border-bottom: 1px solid var(--gold-line); transition: gap .2s ease, color .2s ease;
}
.sf-cta::after { content: '\2192'; color: var(--gold); }
.sf-cta:hover { gap: 18px; color: var(--gold); }
.sf-col h2 { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: var(--w-reg); margin-bottom: 18px; }
.sf-col ul { list-style: none; margin: 0; padding: 0; }
.sf-col li + li { margin-top: 4px; }
.sf-col a, .sf-reveal, .sf-revealed {
    display: inline-flex; align-items: center; min-height: 34px;
    font-size: 14.5px; color: var(--ink-2); text-align: left; transition: color .2s ease;
}
.sf-col a:hover, .sf-reveal:hover { color: var(--gold); }
.sf-reveal { border-bottom: 1px dotted var(--ink-4); min-height: 28px; margin: 3px 0; }
.sf-revealed { color: var(--ink); }
.sf-place { font-size: 14.5px; color: var(--ink-4); padding-top: 6px; }
.sf-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.6; color: var(--ink-4); }
.sf-bottom { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-4); }
.sf-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.sf-bottom a { display: inline-flex; align-items: center; min-height: 34px; color: var(--ink-3); }
.sf-bottom a:hover { color: var(--gold); }

/*
   CONTACT
 */
.contact { grid-template-columns: 1.35fr 1fr; align-items: start; }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.field .req { color: var(--gold); }
.field input, .field textarea {
    width: 100%; padding: 13px 14px; border-radius: 6px;
    background: rgba(9, 14, 28, .72); border: 1px solid var(--line); color: var(--ink);
    font-family: var(--f-sans); font-size: 16px; font-weight: var(--w-light); line-height: 1.5;
    transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 168px; }
.field input:hover, .field textarea:hover { border-color: #3a4560; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(9, 14, 28, .9); }
.field.has-error input, .field.has-error textarea { border-color: #c9785f; }
.field-error { margin-top: 7px; font-size: 13.5px; color: #e09a80; }
.field.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); }
.consent label { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.consent label a { color: var(--ink); border-bottom: 1px solid var(--gold-line); }
.consent .field-error { grid-column: 2; margin-top: 0; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.btn {
    display: inline-flex; align-items: center; gap: 12px; min-height: var(--touch); padding: 0 26px; border-radius: 6px;
    background: var(--gold); color: #1a1206; font-family: var(--f-sans); font-size: 15px; font-weight: var(--w-med);
    border: 1px solid var(--gold); transition: background .2s ease, transform .2s ease;
}
.btn::after { content: '\2192'; }
.btn:hover { background: #f0b56f; transform: translateY(-1px); }
.notice { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.notice p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.notice p + p { margin-top: 8px; }
.notice a { color: var(--ink); border-bottom: 1px solid var(--gold-line); }
.notice.ok { border-color: rgba(108, 197, 159, .5); background: var(--green-tint); }
.notice.ok .label { margin-bottom: 10px; }
.notice.warn { border-color: rgba(232, 167, 92, .5); background: var(--gold-tint); }

/* company facts (Contact page, legal pages) */
.facts { margin: 0; display: grid; gap: 12px; }
.facts + .facts { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); padding-top: 2px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.facts dd a { color: var(--ink); }
.facts dd a:hover { color: var(--gold); }
.facts.reg dd { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/*
   LEGAL PAGES
 */
.legal-date { margin-top: 14px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.legal-split { grid-template-columns: 1.6fr 1fr; align-items: start; }
.legal-body section + section { margin-top: 38px; }
.legal-body h2 { display: flex; align-items: baseline; gap: 14px; font-size: 21px; line-height: 1.3; font-weight: var(--w-light); }
.legal-body h2 em { font-style: normal; font-size: 11.5px; letter-spacing: .18em; color: var(--gold-ink); min-width: 22px; }
.legal-text { margin-top: 14px; padding-left: 36px; }
.legal-text p, .legal-text li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.legal-text p + p, .legal-text ul + p, .legal-text p + ul, .legal-text table + p { margin-top: 1em; }
.legal-text ul { list-style: none; margin: 0; padding: 0; }
.legal-text li { position: relative; padding-left: 22px; }
.legal-text li + li { margin-top: .6em; }
.legal-text li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal-text a { color: var(--ink); border-bottom: 1px solid var(--gold-line); }
.legal-text a:hover { color: var(--gold); }
.legal-panel { position: sticky; top: 92px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 4px 0; }
.legal-table th { text-align: left; padding: 0 12px 10px 0; border-bottom: 2px solid var(--rule); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); font-weight: var(--w-reg); }
.legal-table tr { border-bottom: 0 solid var(--rule); }
.legal-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.legal-table td:first-child { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

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