:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --ink: #1d2433;
    --muted: #5c667a;
    --line: #e7e1d8;
    --brand: #233d4d;
    --brand-2: #5b7c99;
    /* Accent split into two tokens for contrast. The single legacy accent (#d89559)
       measured 2.41:1 against --bg, failing WCAG AA for the small uppercase .eyebrow
       text it was applied to. It passes comfortably on dark surfaces, so it is kept
       there rather than discarded.

       --accent is checked against every light surface it can land on, not just --bg:
       --bg 5.04:1, --surface 5.26:1, --section-muted 4.55:1, .answer-box 5.03:1.
       --section-muted is the binding constraint. --accent-on-dark: 7.67:1 on --dark,
       5.24:1 on --brand. */
    --accent: #9e5c0e;
    --accent-on-dark: #e0a468;
    --focus: #1d4ed8;
    --dark: #151f2b;
    --radius: 24px;
    --shadow: 0 24px 70px rgba(20, 31, 43, 0.12);
    --container: 1160px;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-2); }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.section { padding: 88px 0; }
.section-muted { background: #f2eee7; }
.section-dark { background: var(--dark); color: #fff; }
.section-dark .eyebrow { color: var(--accent-on-dark); }
.section-dark p { color: rgba(255,255,255,.76); }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.row-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; max-width: none; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.center-split { align-items: center; }

.skip-link {
    position: absolute; left: -999px; top: 12px; padding: 10px 14px; background: #fff; z-index: 1000;
}
.skip-link:focus { left: 12px; }
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251,250,247,.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--brand); color: #fff; letter-spacing: -0.04em; }
.brand-text { font-size: 1.02rem; }
.menu, .footer-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; }
.menu a { text-decoration: none; color: var(--muted); font-weight: 650; font-size: .94rem; }
.menu a:hover { color: var(--ink); }

.button, button, input[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover, button:hover, input[type="submit"]:hover { transform: translateY(-1px); color: #fff; box-shadow: var(--shadow); }
.button-small { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.button-secondary { background: transparent; color: var(--brand); }
.button-secondary:hover { background: var(--brand); color: #fff; }
.button-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.text-link { font-weight: 800; color: var(--brand); }

.hero { padding: 110px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr); gap: 54px; align-items: center; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 850; font-size: .78rem; margin: 0 0 14px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.04em; margin: 0 0 18px; }
h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); max-width: 920px; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.35rem; }
.lede { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--muted); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 18px; }
.metric-row { display: grid; gap: 4px; padding: 20px; border-bottom: 1px solid var(--line); }
.metric-row:last-child { border-bottom: 0; }
.metric-row strong { font-size: 1.3rem; letter-spacing: -0.03em; }
.metric-row span { color: var(--muted); }

.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.card h2, .card h3 { font-size: 1.35rem; }
.card p:last-child { margin-bottom: 0; }
.card a { text-decoration: none; }
.card .meta, .meta { color: var(--muted); font-size: .9rem; font-weight: 650; }
.service-card { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.service-card .button { align-self: flex-start; margin-top: 10px; }

.process-list { display: grid; gap: 18px; }
.process-list article { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.process-list span { color: var(--accent-on-dark); font-weight: 850; }
.process-list h3 { margin-bottom: 6px; }
.process-list p { margin: 0; }

.cta-band { background: var(--brand); color: #fff; }
.cta-band .eyebrow { color: var(--accent-on-dark); }
.cta-band p { color: rgba(255,255,255,.75); }
.cta-band .button { background: #fff; color: var(--brand); border-color: #fff; }

.page-hero { padding-bottom: 34px; }
.page-content { padding-top: 24px; }
.content-body { font-size: 1.07rem; }
.content-body h2 { font-size: 2.1rem; margin-top: 42px; }
.content-body h3 { margin-top: 32px; }
.content-body p, .content-body li { color: #343c4c; }
.content-body blockquote { margin: 32px 0; padding: 22px 26px; border-left: 4px solid var(--accent); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.content-body table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.content-body th, .content-body td { border: 1px solid var(--line); padding: 12px; text-align: left; }
.content-body th { background: #f2eee7; }
.article-header { background: #f2eee7; padding-bottom: 56px; }
.article-body { padding-top: 48px; }
.article-cta { margin-top: 52px; }
.sp-cta { background: var(--dark); color: #fff; padding: 30px; border-radius: var(--radius); }
.sp-cta p { color: rgba(255,255,255,.75); }

.search-form { display: flex; gap: 12px; margin: 20px 0 34px; }
.search-field { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; font: inherit; background: #fff; }

.site-footer { background: #0d141d; color: rgba(255,255,255,.76); padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { color: #fff; font-weight: 850; font-size: 1.15rem; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 42px; padding-top: 22px; font-size: .9rem; }

.pagination { margin-top: 36px; }
.pagination .page-numbers { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; margin-right: 6px; text-decoration: none; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; padding: 14px 0; }
    .primary-nav { order: 3; width: 100%; }
    .menu { gap: 14px 18px; flex-wrap: wrap; }
    .hero-grid, .split { grid-template-columns: 1fr; }
    .cards.three, .footer-grid { grid-template-columns: 1fr; }
    .row-heading { display: block; }
    .section { padding: 64px 0; }
    .hero { padding-top: 74px; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 28px, var(--container)); }
    .button { width: 100%; }
    .header-inner .button { width: auto; }
    .header-cta { font-size: .82rem; }
    .hero-actions { display: grid; }
    .search-form { display: grid; }
    .process-list article { grid-template-columns: 1fr; }
}

/* SEO-rich answer library components */
.breadcrumbs { margin: 0 0 18px; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; gap: 8px; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: var(--accent); }
.breadcrumbs a { text-decoration: none; color: var(--muted); font-weight: 700; }
.breadcrumbs a:hover { color: var(--ink); }

.topic-chips { list-style: none; padding: 0; margin: 8px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: .82rem; font-weight: 800; text-decoration: none; }
.topic-chips a:hover { background: var(--brand); color: #fff; }

.card-image { display: block; margin: -26px -26px 20px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: #f2eee7; }
.card-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card { overflow: hidden; }
.post-card .topic-chips { margin-top: 0; }
.post-card .topic-chips a { background: #f8fafc; }
.compact-card h3 { font-size: 1.1rem; letter-spacing: -0.02em; }

.article-hero-image { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.article-hero-image img { display: block; width: 100%; }
.answer-box { margin: 0 0 32px; padding: 24px 26px; border: 1px solid rgba(216,149,89,.4); border-radius: var(--radius); background: #fff9f0; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.answer-box strong { display: block; margin-bottom: 6px; color: var(--brand); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
.answer-box p { margin: 0; color: var(--ink); font-size: 1.08rem; }

.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; margin: 48px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.author-box h2 { font-size: 1.35rem; margin-bottom: 4px; }
.author-box p { margin: 0 0 8px; }
.author-avatar img { border-radius: 999px; display: block; }
.author-title { color: var(--accent); font-weight: 850; }
.author-expertise { color: var(--muted); font-size: .95rem; }
.author-profile-head { display: grid; grid-template-columns: 112px 1fr; gap: 28px; align-items: center; }
.author-avatar.large img { width: 112px; height: 112px; }

.related-answers { margin-top: 52px; }
.related-answers h2 { font-size: 2rem; }

.hub-index { display: grid; gap: 24px; }
.hub-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.hub-panel h2 { font-size: 1.7rem; }
.answer-list { margin: 18px 0 0; padding-left: 20px; }
.answer-list li { margin: 8px 0; }

@media (max-width: 700px) {
    .author-box, .author-profile-head { grid-template-columns: 1fr; }
    .card-image { margin: -26px -26px 18px; }
}


/* ---------------------------------------------------------------------------
   Focus visibility

   The starter defined no focus styles at all. Buttons, chips, and cards override
   background and border, so the user-agent default focus ring was landing on
   custom-coloured pills with no guaranteed contrast. Every interactive element
   now gets an explicit, high-contrast, offset ring.
   --------------------------------------------------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}
.section-dark :where(a, button):focus-visible,
.cta-band :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible,
.sp-cta :where(a, button):focus-visible {
    outline-color: #fff;
}
.skip-link:focus { left: 12px; outline: 3px solid var(--focus); outline-offset: 3px; }

/* Honour reduced-motion for the transform/shadow transitions on buttons. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .button:hover, button:hover, input[type="submit"]:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   Components added for the IETERNUS homepage
   --------------------------------------------------------------------------- */
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.four .card h3 { font-size: 1.15rem; }

.support-line { margin-top: 22px; color: var(--muted); font-weight: 650; font-size: .96rem; max-width: 640px; }

.hero-card-title {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 850;
    color: var(--muted); margin: 0; padding: 14px 20px 6px;
}

.proof-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px;
}
.proof-list li {
    position: relative; padding-left: 30px; color: #343c4c; font-weight: 600;
}
.proof-list li::before {
    content: ""; position: absolute; left: 0; top: .45em;
    width: 14px; height: 8px;
    border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
    transform: rotate(-45deg);
}

.section-heading p { color: var(--muted); }
.section-dark .section-heading p { color: rgba(255,255,255,.76); }

@media (max-width: 900px) {
    .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .cards.four { grid-template-columns: 1fr; }
    .proof-list { grid-template-columns: 1fr; }
}
