/* ==========================================================================
   Estate Management London
   ---------------------------------------------------------------------------
   Design language: warm ivory paper, ink text, a single restrained bronze
   accent. Hairline rules instead of boxes. Square corners throughout — the
   radius token is 0 on purpose and should stay that way; rounded corners are
   the fastest way to make this look like a consumer app rather than a London
   practice.

   Type is a serif display face over a system sans for running text. No
   webfonts: the page paints on first byte, which is itself part of feeling
   expensive. Every colour is a token below — nothing past :root hardcodes one.
   ========================================================================== */

:root {
    /* Ink */
    --ink:          #16181C;  /* headings, primary text */
    --ink-soft:     #55595F;  /* secondary text — AA on --paper */
    /* Meta, captions and table headers. Kept dark enough to clear WCAG AA
       (4.5:1) against --paper-tint, the lightest background it sits on —
       these are small uppercase labels, so the usual "it's only secondary
       text" latitude does not apply. */
    --ink-faint:    #666A72;
    --ink-deep:     #121820;  /* dark section backgrounds */

    /* Paper */
    --paper:        #FBFAF7;  /* warm ivory page */
    --paper-raised: #FFFFFF;
    --paper-tint:   #F4F2EC;  /* subtle banding */

    /* Rules */
    --line:         #E4E0D7;
    --line-strong:  #C8C2B4;
    --line-invert:  rgba(255, 255, 255, 0.16);

    /* Bronze accent — used sparingly. --accent passes AA on --paper;
       --accent-bright is decorative or for use on --ink-deep only. */
    --accent:        #7A5F35;
    --accent-bright: #B0904F;
    --accent-wash:   #F2EDE3;

    /* Semantic — the emergency triage tables lean on these */
    --alert:      #8C2F24;
    --alert-wash: #F6EBE9;

    /* Type */
    --font-display: "Hoefler Text", "Iowan Old Style", "Palatino Linotype", Palatino,
                    "Book Antiqua", Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --container-w: 1200px;
    --container-narrow-w: 720px;
    --container-mid-w: 940px;

    --radius: 0;

    /* Letterspacing used on every small uppercase label. Kept as a token so
       the "eyebrow" treatment stays identical everywhere it appears. */
    --track-wide: 0.18em;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

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

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: var(--paper);
    padding: 0.75rem 1.25rem; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container        { max-width: var(--container-w); margin: 0 auto; padding: 0 2rem; }
.container-mid    { max-width: var(--container-mid-w); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--container-narrow-w); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 600px) {
    .container, .container-mid, .container-narrow { padding: 0 1.25rem; }
}

[data-observe] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-observe].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-observe] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Wordmark — a CSS rebuild of the letterhead lockup: "ESTATE MANAGEMENT"
   set wide, with "LONDON" beneath it flanked by two hairlines. Scales from
   the site header to the footer via the --wordmark-size custom property.
   -------------------------------------------------------------------------- */

.wordmark {
    --wordmark-size: 0.95rem;
    display: inline-block;
    line-height: 1;
    text-align: center;
    color: var(--ink);
}
.wordmark-primary {
    display: block;
    font-size: var(--wordmark-size);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    /* The trailing letter's tracking would otherwise push the lockup
       off-centre against the rule below it. */
    text-indent: 0.22em;
}
.wordmark-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: 0.45em;
    font-size: calc(var(--wordmark-size) * 0.72);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-indent: 0.3em;
}
.wordmark-secondary::before,
.wordmark-secondary::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
    min-width: 1.2em;
}
.wordmark--lg { --wordmark-size: 1.6rem; }
.wordmark--invert { color: var(--paper); }

/* --------------------------------------------------------------------------
   Eyebrows & headings
   -------------------------------------------------------------------------- */

.eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--accent);
}
.eyebrow--invert { color: var(--accent-bright); }
.eyebrow--muted  { color: var(--ink-faint); }

/* A hairline that runs from the eyebrow to the edge of its column. Used to
   open major sections. */
.eyebrow-rule {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.eyebrow-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-strong);
}
.eyebrow-rule--invert::after { background: var(--line-invert); }

.display-1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.6vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
}
.display-2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.display-3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    line-height: 1.25;
}

.lede {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 42rem;
}
.lede--invert { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   Buttons & link affordances
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }

.btn-invert { background: transparent; color: var(--paper); border-color: var(--line-invert); }
.btn-invert:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Text link with a rule that draws in on hover — the quiet alternative to a
   third button style. */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { color: var(--ink); border-bottom-color: var(--ink); }
.link-arrow::after { content: '\2192'; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 1.15rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav-logo { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    position: relative;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--ink-soft);
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-mobile-toggle { display: none; background: none; border: none; padding: 0.4rem; color: var(--ink); }
.nav-close-icon { display: none; }
.nav-links.nav--open .nav-hamburger-icon { display: none; }
.nav-links.nav--open .nav-close-icon { display: block; }

@media (max-width: 900px) {
    .nav-container { padding: 1rem 1.25rem; }
    .nav-mobile-toggle { display: block; order: 2; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--paper-raised);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 1.25rem 1.25rem;
    }
    .nav-links.nav--open { display: flex; }
    .nav-links a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
    .nav-links a::after { display: none; }
    .nav-links a:last-child { border-bottom: none; }
}

/* --------------------------------------------------------------------------
   Home hero — dark, typographic, no photography required
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--ink-deep);
    color: var(--paper);
    padding: 7rem 0 0;
    overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; padding-bottom: 7rem; }
.hero-title { max-width: 20ch; }
.hero-title em { font-style: italic; color: var(--accent-bright); }
.hero-lede { margin-top: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.75rem; }

/* The letterhead skyline, etched faintly along the base of the hero. */
.hero-skyline {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: auto;
    color: var(--accent-bright);
    opacity: 0.22;
    pointer-events: none;
}

/* Standing figures beneath the hero: the facts that establish standing. */
.hero-facts {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-invert);
}
.hero-fact { padding: 2rem 2rem 2.5rem; border-left: 1px solid var(--line-invert); }
.hero-fact:first-child { border-left: none; padding-left: 0; }
.hero-fact-value {
    /* The office box runs to two lines; 1.35 keeps it tight enough to read as
       one block rather than two stacked values. */
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.35;
    color: var(--paper);
}
.hero-fact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 760px) {
    .hero { padding-top: 4.5rem; }
    .hero-inner { padding-bottom: 5rem; }
    .hero-facts { grid-template-columns: 1fr; }
    .hero-fact { border-left: none; border-top: 1px solid var(--line-invert); padding: 1.5rem 0; }
    .hero-fact:first-child { border-top: none; }
}

/* --------------------------------------------------------------------------
   Interior page headers
   -------------------------------------------------------------------------- */

.page-head { padding: 5rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-head-title { margin-top: 0.5rem; }
.page-head-lede { margin-top: 1.5rem; }
.page-head--dark {
    background: var(--ink-deep);
    color: var(--paper);
    border-bottom: none;
    padding: 5.5rem 0 4rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    margin-bottom: 1.75rem;
}
.breadcrumb a { color: var(--ink-faint); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.5; }

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.section { padding: 6rem 0; }
.section--tight { padding: 4rem 0; }
.section--tint { background: var(--paper-tint); }
.section--dark { background: var(--ink-deep); color: var(--paper); }
.section--dark .section-title { color: var(--paper); }
.section--dark .section-lede { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 760px) { .section { padding: 4rem 0; } }

.section-head { max-width: 46rem; margin-bottom: 3.5rem; }
.section-title { margin-top: 0; }
.section-lede { margin-top: 1.25rem; color: var(--ink-soft); }

/* Two-column split: sticky heading beside a list of items. */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
.split-aside { position: sticky; top: 7rem; align-self: start; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 2.5rem; }
    .split-aside { position: static; }
}

/* --------------------------------------------------------------------------
   Index rows — the numbered hairline list used for services and guides.
   Deliberately not cards: rules read as a schedule or a prospectus, boxes
   read as a marketing page.
   -------------------------------------------------------------------------- */

.index-list { border-top: 1px solid var(--line); }
.index-row {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s ease, padding 0.25s ease;
}
.index-row:hover { background: var(--accent-wash); padding-left: 1.25rem; padding-right: 1.25rem; }
.index-row-num {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}
/* These are spans nested inside a wrapper span so the whole row stays inside
   one <a>. Nested spans are not grid children, so they are not blockified
   automatically — without display:block the margin below is silently dropped. */
.index-row-title { display: block; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; }
.index-row-desc { display: block; margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.98rem; max-width: 44rem; }
.index-row-action {
    align-self: center;
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform 0.25s ease;
}
.index-row:hover .index-row-action { transform: translateX(4px); }
@media (max-width: 700px) {
    .index-row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; }
    .index-row-action { display: none; }
    .index-row:hover { padding-left: 0; padding-right: 0; background: transparent; }
    .index-row-title { font-size: 1.2rem; }
}

/* Compact variant for the "related guides" rails. */
.index-list--compact .index-row { grid-template-columns: minmax(0, 1fr) auto; padding: 1.35rem 0; }
.index-list--compact .index-row-title { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Feature cards — used where an index row would be too sparse (journal,
   related links). Bordered, square, no shadow.
   -------------------------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }

.card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    padding: 2rem 1.85rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
.card-desc { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card-meta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--ink-faint);
}
.card-thumb { margin: -2rem -1.85rem 0.5rem; aspect-ratio: 16 / 10; background: var(--accent-wash); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Prose — long-form guide and article bodies
   -------------------------------------------------------------------------- */

.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.5rem; }
.prose h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.25;
    margin-top: 3.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.prose h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin-top: 2.25rem; }
.prose h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--accent);
    margin-top: 2rem;
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.5rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.6rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
    border-left: 2px solid var(--accent);
    padding: 0.25rem 0 0.25rem 1.75rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--ink);
}
.prose blockquote p + p { margin-top: 1rem; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }
.prose figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.6rem; }
.prose code { font-family: ui-monospace, Consolas, monospace; background: var(--accent-wash); padding: 0.15em 0.4em; font-size: 0.9em; }

/* The opening paragraph of a guide, set larger. */
.prose > p:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Data tables — fee schedules and the emergency triage table. These carry a
   lot of the site's credibility, so they get proper typographic treatment:
   no vertical rules, uppercase tracked headers, tabular figures.
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin-top: 2rem; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 34rem; }

.prose table, .data-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose thead th, .data-table thead th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--ink-faint);
    padding: 0 1.25rem 0.85rem 0;
    border-bottom: 1px solid var(--ink);
    white-space: nowrap;
}
.prose tbody td, .data-table tbody td {
    padding: 1.1rem 1.25rem 1.1rem 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.prose tbody tr:hover, .data-table tbody tr:hover { background: var(--accent-wash); }
.prose tbody td:first-child, .data-table tbody td:first-child { font-weight: 600; padding-left: 0; }
.prose tbody td:last-child, .data-table tbody td:last-child { padding-right: 0; color: var(--ink-soft); }

/* Markdown tables are wrapped in .table-wrap by the render-table hook, so the
   table itself stays in normal table layout at every width. */
.prose .table-wrap { margin-top: 1.5rem; }

.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Verdict pills for the emergency triage table. */
.verdict {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
}
.verdict--yes      { background: var(--alert-wash); color: var(--alert); }
.verdict--no       { background: var(--paper-tint); color: var(--ink-soft); }
.verdict--depends  { background: var(--accent-wash); color: var(--accent); }

/* --------------------------------------------------------------------------
   Callouts — emergency notices, key contacts, procedural warnings
   -------------------------------------------------------------------------- */

.callout {
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--accent);
    background: var(--paper-raised);
    padding: 1.75rem 1.85rem;
}
.callout-title {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--accent);
    margin-bottom: 0.85rem;
}
.callout p + p { margin-top: 0.85rem; }
.callout--alert { border-left-color: var(--alert); background: var(--alert-wash); border-color: rgba(140, 47, 36, 0.25); }
.callout--alert .callout-title { color: var(--alert); }
.prose .callout { margin-top: 2rem; }
.prose .callout a { color: inherit; }

/* Prominent single contact — the 999 / gas leak style block. */
.contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    margin-top: 1.25rem;
}
.contact-strip-item { min-width: 12rem; }
.contact-strip-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--ink-faint);
}
.contact-strip-value { font-family: var(--font-display); font-size: 1.35rem; margin-top: 0.25rem; }
.contact-strip-value a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Downloads — the original PDFs remain available beside every guide
   -------------------------------------------------------------------------- */

.download {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.download:hover { border-color: var(--accent); background: var(--accent-wash); }
.download-label { display: block; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.download-meta { display: block; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 0.15rem; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Article / guide single page furniture
   -------------------------------------------------------------------------- */

.entry { padding: 4rem 0 5rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    margin-top: 1.5rem;
}
.entry-body { margin-top: 3rem; }
.entry-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }

.tag {
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    border: 1px solid var(--line-strong);
    padding: 0.3rem 0.7rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}
a.tag:hover { color: var(--accent); border-color: var(--accent); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.byline { display: inline-flex; align-items: center; gap: 0.75rem; }
.byline-name { display: block; font-size: 0.9rem; font-weight: 600; }
.byline-role { display: block; font-size: 0.8rem; color: var(--ink-faint); }

.avatar-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--ink-deep);
    color: var(--paper);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    overflow: hidden;
}
.avatar-mark img { width: 100%; height: 100%; object-fit: cover; }
.avatar-mark img ~ * { display: none; }
.avatar-mark--sm { width: 2.25rem; height: 2.25rem; }
.avatar-mark--md { width: 3.5rem; height: 3.5rem; font-size: 1rem; }
.avatar-mark--lg { width: 5.5rem; height: 5.5rem; font-size: 1.5rem; }

.entry-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.entry-nav-link { padding: 1.5rem; border: 1px solid var(--line); transition: border-color 0.2s ease; }
.entry-nav-link:hover { border-color: var(--accent); }
.entry-nav--next { text-align: right; }
.entry-nav-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--ink-faint); }
.entry-nav-title { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-top: 0.4rem; }
@media (max-width: 640px) { .entry-nav { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
    font: inherit;
    font-size: 1rem;
    padding: 0.85rem 0;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    transition: border-color 0.2s ease;
}
.form-field select { padding-right: 1.5rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }
.form-status { font-size: 0.9rem; min-height: 1.4em; color: var(--ink-soft); }
.form-status[data-state="sent"] { color: var(--accent); font-weight: 600; }
.form-status[data-state="error"] { color: var(--alert); font-weight: 600; }

.contact-panel { background: var(--paper-tint); padding: 2.5rem; }
.contact-item { padding: 1.4rem 0; border-top: 1px solid var(--line-strong); }
.contact-item:first-child { border-top: none; padding-top: 0; }
.contact-item-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--ink-faint); }
.contact-item-value { margin-top: 0.45rem; line-height: 1.55; }
.contact-item-value a { border-bottom: 1px solid var(--line-strong); }
.contact-item-value a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--ink-deep); color: var(--paper); margin-top: 0; }
.footer-skyline { display: block; width: 100%; height: auto; color: var(--accent-bright); opacity: 0.3; }
.footer-inner { padding: 4rem 0 3rem; }
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line-invert);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 2.5rem; } }

.footer-col-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
}
.footer-address { font-size: 0.95rem; line-height: 1.7; color: rgba(255, 255, 255, 0.75); }
.footer-address a { border-bottom: 1px solid var(--line-invert); }
.footer-address a:hover { color: var(--accent-bright); border-bottom-color: var(--accent-bright); }
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent-bright); }

.footer-brand { margin-bottom: 1.75rem; }
.footer-blurb { font-size: 0.92rem; color: rgba(255, 255, 255, 0.6); max-width: 26rem; margin-top: 1.5rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-top: 2rem;
}
/* 0.55 rather than the 0.45 this started at — small print at 0.45 lands at
   exactly 4.50:1 on --ink-deep, which is too close to the line for text that
   carries the company registration details. */
.footer-legal { font-size: 0.78rem; line-height: 1.7; color: rgba(255, 255, 255, 0.55); max-width: 46rem; }
.footer-legal a { color: rgba(255, 255, 255, 0.75); }
.footer-legal a:hover { color: var(--accent-bright); }
.footer-legal-links { margin-top: 0.6rem; }

/* Regulatory memberships. Two forms of the same component: a text pill when
   no logo file is on disk, and a logo on a light plate when there is one.
   Both are sized to the same height so a half-populated strip still lines up
   while official assets are still being sourced scheme by scheme. */

.accreditations { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.accreditation-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.accreditation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    border: 1px solid;
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* The plate. Scheme brand packs ship colour or dark-on-transparent marks far
   more often than white ones, so putting every logo on paper is what lets the
   same file work in the dark footer and on a light page without maintaining
   an inverted copy of each. Fixed height also reserves the space, so a lazily
   loaded logo cannot shift the footer as it arrives. */
.accreditation--logo {
    height: 2.75rem;
    padding: 0.4rem 0.7rem;
    background: var(--paper);
    border-color: var(--paper);
}
.accreditation--logo img { max-height: 100%; max-width: 7.5rem; width: auto; object-fit: contain; }
.accreditation--logo:hover { border-color: var(--accent-bright); }

.accreditation-cert {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.accreditations--footer .accreditation { color: rgba(255, 255, 255, 0.6); border-color: var(--line-invert); }
.accreditations--footer .accreditation:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.accreditations--footer .accreditation-cert { color: rgba(255, 255, 255, 0.6); }
.accreditations--footer .accreditation-cert:hover { color: var(--accent-bright); }

.accreditations--page { margin-top: 2rem; }
.accreditations--page .accreditation { color: var(--ink-soft); border-color: var(--line-strong); }
.accreditations--page .accreditation:hover { color: var(--accent); border-color: var(--accent); }
.accreditations--page .accreditation-cert { color: var(--accent); }

.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social-link { color: rgba(255, 255, 255, 0.6); }
.footer-social-link:hover { color: var(--accent-bright); }

/* --------------------------------------------------------------------------
   Pagination & 404
   -------------------------------------------------------------------------- */

.pagination {
    display: flex; align-items: center; justify-content: center; gap: 2rem;
    margin-top: 4rem; font-size: 0.76rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--ink-faint);
}
.pagination a { color: var(--accent); }
.pagination a:hover { color: var(--ink); }

.not-found { padding: 8rem 0; text-align: center; }
.not-found .eyebrow { margin-bottom: 1rem; }
.not-found p { color: var(--ink-soft); margin-top: 1rem; }
.not-found .btn { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   Print — fee schedules and guides are frequently printed or PDF'd by
   tenants and landlords, so they need to survive it.
   -------------------------------------------------------------------------- */

@media print {
    .nav, .footer-skyline, .hero-skyline, .entry-nav, .btn, .download { display: none; }
    body { background: #fff; font-size: 12pt; }
    .footer { background: none; color: #000; }
    .prose h2 { break-after: avoid; }
    .prose table, .data-table { break-inside: auto; }
    tr { break-inside: avoid; }
}
