/* Legal 365 Soldlei — site styles (one file). Palette: ink navy, slate, saffron-gold, ivory. */
:root {
  --ink: #0F1E33;
  --slate: #1E3350;
  --gold: #C9952B;
  --gold-dark: #9A6F14;
  --gold-soft: #F3E6C8;
  --gold-ink: #86600F;   /* gold text on ivory/tinted backgrounds (AA 4.5:1+) */
  --ivory: #FBF7F0;
  --white: #FFFFFF;
  --text: #1B2430;
  --muted: #5D6778;
  --line: #E6DFD2;
  --ok: #1D6B3F;
  --bad: #A12A1F;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 30, 51, .06), 0 8px 24px rgba(15, 30, 51, .07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.22; font-weight: 600; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
.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 { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .97rem/1.2 var(--sans); padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D9A63C; color: var(--ink); }
.btn-navy { background: var(--ink); color: var(--white); }
.btn-navy:hover { background: var(--slate); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.more-link { font-weight: 700; color: var(--gold-dark); text-decoration: none; }
.more-link::after { content: " →"; }
.more-link:hover { text-decoration: underline; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: #D7DCE4; font-size: .84rem; }
.topbar-row { display: flex; gap: 24px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #F0D9A6; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-words { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; }
.brand-tag { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand-light { color: var(--white); }
.brand-light .brand-tag { color: #C3CAD6; }
.site-menu { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-menu ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-menu li a { display: block; white-space: nowrap; padding: 8px 8px; color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: var(--radius-sm); }
.site-menu li a:hover { background: var(--ivory); color: var(--ink); }
.site-menu li a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.btn-call { padding: 10px 16px; font-size: .92rem; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font: 700 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.menu-toggle-bars::before { position: absolute; top: -6px; }
.menu-toggle-bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(201, 149, 43, .18), transparent 60%), linear-gradient(160deg, var(--ink) 0%, var(--slate) 100%); color: var(--white); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--gold), #E8C676 50%, var(--gold)); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); margin-bottom: .45em; }
.hero-sub { font-size: 1.15rem; color: #DCE2EA; max-width: 36em; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 30px; color: #EEF1F5; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-form .form-card { box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.kicker { font: 700 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .7em; }
.kicker-light { color: #E8C676; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 48px 0; }
.section-tint { background: var(--ivory); }
.section-ink { background: var(--ink); color: #DCE2EA; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.section-head p.kicker { color: var(--gold-dark); font-size: .78rem; }
.section-ink .section-head p.kicker { color: #E8C676; }
.section-ink .section-head p { color: #C3CAD6; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head-row > div { max-width: 720px; }
.section-title { margin-bottom: 20px; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3, .card .card-h { font-size: 1.14rem; margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: .8em; }
.card-dark { background: var(--slate); border-color: #2C4467; border-top-color: var(--gold); color: #DCE2EA; box-shadow: none; }
.card-dark h3 { color: var(--white); }
.link-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.link-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 30, 51, .08), 0 16px 32px rgba(15, 30, 51, .12); color: inherit; }
.link-card:hover h3, .link-card:hover .card-h { text-decoration: underline; text-decoration-color: var(--gold); }
.link-card .more-link { margin-top: auto; }
.card-tag { font: 700 .72rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.card-dark .card-tag { color: #E8C676; }
.card-meta { font-size: .84rem; color: var(--muted); margin-top: auto; }
.card-grid { display: grid; gap: 22px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.practice-card h3 a { color: var(--ink); text-decoration: none; }
.practice-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.practice-card ul { list-style: none; padding: 0; margin: 0 0 14px; }
.practice-card li { border-bottom: 1px dashed var(--line); }
.practice-card li a { display: block; padding: 7px 0; color: var(--text); text-decoration: none; font-size: .97rem; }
.practice-card li a:hover { color: var(--gold-dark); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 22px 22px; border: 1px solid var(--line); }
.step-no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold); font: 700 1.2rem var(--serif); margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

.team-strip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.team-photo { margin: 0; }
.team-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.team-photo figcaption, .wide-photo figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.team-mini { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.team-mini li { border-left: 3px solid var(--gold); padding-left: 12px; line-height: 1.4; }
.team-mini strong { display: block; color: var(--ink); }
.team-mini span { font-size: .86rem; color: var(--muted); }

.city-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.city-list a { display: flex; flex-direction: column; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.3; }
.city-list a span { font-weight: 400; font-size: .8rem; color: var(--muted); }
.city-list a:hover { border-color: var(--gold); }

.careers-teaser { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: linear-gradient(120deg, var(--ivory), #F6EEDC); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; }
.careers-teaser > div { max-width: 720px; }
.careers-teaser p { margin: 0; color: var(--muted); }

.enquiry-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-lines { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }

/* ---------- forms ---------- */
.form-card { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.form-title { font-size: 1.35rem; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text); background: var(--white); border: 1.5px solid #CFC6B5; border-radius: var(--radius-sm); padding: 11px 12px; min-height: 46px; }
.field textarea { resize: vertical; min-height: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(201, 149, 43, .45); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: .84rem; color: var(--muted); margin: 5px 0 0; }
.form-fine { font-size: .8rem; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.notice-ok { background: #E6F3EA; color: var(--ok); border: 1px solid #BFDFC9; }
.notice-bad { background: #FBEAE7; color: var(--bad); border: 1px solid #F0C4BD; }
.form-compact .field { margin-bottom: 11px; }

/* ---------- inner pages ---------- */
.page-head { background: var(--ivory); border-bottom: 1px solid var(--line); padding: 26px 0 34px; }
.page-head h1 { margin-bottom: .25em; max-width: 920px; }
.page-lead { font-size: 1.12rem; color: var(--muted); max-width: 820px; margin: .6em 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 18px; font-size: .88rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #A8A090; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.content-main { min-width: 0; }
.author-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 30px; }
.author-box img { border-radius: 50%; flex-shrink: 0; border: 2px solid var(--gold-soft); }
.author-box p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.author-box strong { color: var(--ink); }
.author-box a { color: inherit; }

/* prose (content body) */
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 1.9em; padding-top: .2em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--gold); background: var(--ivory); font-style: italic; color: var(--slate); }
.prose .answer-first { font-size: 1.14rem; line-height: 1.65; color: var(--ink); background: linear-gradient(0deg, var(--ivory), var(--ivory)); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius-sm); padding: 18px 22px; }
.prose .key-takeaways { background: var(--ink); color: #E3E8EF; border-radius: var(--radius); padding: 22px 26px 12px; margin: 1.6em 0; }
.prose .key-takeaways h2, .prose .key-takeaways h3 { color: var(--gold); font-size: 1.15rem; margin: 0 0 .6em; padding: 0; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }
.prose .key-takeaways ul { list-style: none; padding: 0; }
.prose .key-takeaways li { position: relative; padding-left: 26px; }
.prose .key-takeaways li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.prose .key-takeaways a { color: #F0D9A6; }
.prose .student-note { border: 2px dashed var(--gold); background: #FFFCF4; border-radius: var(--radius); padding: 18px 22px 8px; margin: 1.6em 0; }
.prose .student-note h3 { margin-top: 0; font-size: 1.1rem; }
.prose .student-note h3::before { content: "✎ "; color: var(--gold-dark); }
.table-scroll { position: relative; overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }
.prose table, .jobs-table { font-size: .95rem; }
.prose th, .prose td, .jobs-table th, .jobs-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose thead th, .jobs-table thead th { background: var(--ivory); color: var(--ink); font-weight: 700; }
.prose tbody tr:nth-child(even) td { background: #FDFBF7; }

/* FAQ */
.faq-block { margin-top: 48px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 0; position: relative; font-weight: 700; color: var(--ink); font-size: 1.03rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:hover { color: var(--gold-dark); }
.faq-answer { padding: 0 0 16px; color: var(--text); }
.faq-answer p { margin: 0; }
.faq-search { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 14px; align-items: end; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.faq-search .field { margin: 0; }
.faq-status { min-height: 1.6em; margin: 14px 0; color: var(--muted); }
.faq-group { margin-bottom: 36px; }

/* related + CTA */
.related { margin-top: 48px; display: grid; gap: 26px; }
.related-h { font-size: 1.15rem; margin-bottom: .6em; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a, .chip-list span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chip-list a:hover { border-color: var(--gold); background: var(--ivory); }
.chip-center { justify-content: center; margin-top: 18px; }
.cta-band { background: linear-gradient(120deg, var(--ink), var(--slate)); color: #DCE2EA; padding: 52px 0; border-top: 4px solid var(--gold); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 640px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* sidebar */
.sidebar { display: grid; gap: 22px; position: sticky; top: 100px; }
.side-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.side-h { font-size: 1.05rem; margin-bottom: .6em; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: 8px 0; color: var(--text); text-decoration: none; font-size: .94rem; line-height: 1.45; }
.side-links a:hover { color: var(--gold-dark); text-decoration: underline; }
.side-photo { border-radius: var(--radius-sm); margin-bottom: 12px; }
.side-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* hubs */
.jump-nav ul { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump-nav a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.jump-nav a:hover { border-color: var(--gold); }
.hub-group { margin-bottom: 56px; }
.hub-group h2 .count { font: 700 .85rem var(--sans); color: var(--gold-dark); background: var(--gold-soft); border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 40px 0; }
.pager a { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a[aria-current] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.topic-index { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.topic-cols { columns: 3 300px; column-gap: 36px; }
.topic-col { break-inside: avoid; margin-bottom: 26px; }
.topic-col h3 { font-size: 1.05rem; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 2px; }
.topic-col ul { list-style: none; padding: 0; margin: 0; }
.topic-col li { font-size: .92rem; line-height: 1.45; margin-bottom: 7px; }
.topic-col a { color: var(--text); text-decoration: none; }
.topic-col a:hover { color: var(--gold-dark); text-decoration: underline; }
.kh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kh-card h2 { font-size: 1.2rem; }
.kh-card ul { list-style: none; padding: 0; margin: 0; }
.kh-card li { border-bottom: 1px dashed var(--line); }
.kh-card li a { display: block; padding: 6px 0; font-size: .93rem; color: var(--text); text-decoration: none; line-height: 1.45; }
.kh-card li a:hover { color: var(--gold-dark); }
.edu-band { margin-top: 56px; background: var(--ink); color: #DCE2EA; border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.edu-band h2 { color: var(--white); }
.edu-band a { color: #F0D9A6; }
.edu-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.edu-list li { break-inside: avoid; margin-bottom: 8px; font-size: .95rem; line-height: 1.45; }

/* about / team / gallery / contact / careers */
.about-intro { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about-portrait { margin: 0; }
.about-portrait img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-portrait figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.lead-big { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1.45; color: var(--ink); }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fact-list li { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fact-list span { font-weight: 700; color: var(--ink); }
.team-grid { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { text-align: center; }
.team-img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 3px solid var(--gold-soft); }
.team-initials { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; background: var(--ink); color: var(--gold); font: 700 1.6rem var(--serif); }
.team-card h3 { margin-bottom: .2em; }
.team-role { font-weight: 600; color: var(--gold-dark); font-size: .92rem; }
.team-bio, .team-enrol { font-size: .9rem; }
.photo-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.photo-pair img { border-radius: var(--radius); object-fit: cover; }
.lead-profile { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; margin-bottom: 48px; }
.lead-photo { border-radius: var(--radius-sm); }
.wide-photo { margin: 24px 0 0; }
.wide-photo img { border-radius: var(--radius); }
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.office-card h2 { font-size: 1.15rem; }
.office-card address { color: var(--ink); font-weight: 600; margin-bottom: .6em; }
.office-card p { font-size: .95rem; }
.big-link { font: 700 1.35rem var(--serif); color: var(--ink); text-decoration: none; }
.chip-static span { font-weight: 600; }
.careers-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.careers-intro p { color: var(--muted); margin: 0; }
.jobs-table td:last-child, .jobs-table th { white-space: nowrap; }
.apply-form { margin-top: 40px; }

/* tools */
.tool-warning { background: #FFF6E0; border: 2px solid var(--gold); color: #5A4209; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px; font-size: 1rem; }
.tool-warning strong { display: block; font-size: 1.12rem; color: #3F2E05; }
.tool-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.tool-card h2 { font-size: 1.4rem; }
.tool-result { margin-top: 22px; padding: 20px 22px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line); }
.tool-result .big-date { font: 700 1.6rem var(--serif); color: var(--ink); display: block; margin: 4px 0 8px; }
.tool-result .warn { color: var(--bad); font-weight: 700; }
.tool-result .good { color: var(--ok); font-weight: 700; }
.tool-notes { margin-top: 24px; font-size: .95rem; }
.tool-notes h3 { font-size: 1.05rem; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; margin-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold); }
.timeline li.is-key::before { background: var(--gold); }
.timeline li.is-bad::before { border-color: var(--bad); background: var(--bad); }
.timeline .t-date { display: block; font-weight: 700; color: var(--ink); }
.timeline .t-label { display: block; color: var(--muted); font-size: .95rem; }

.notfound { text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: #0B1726; color: #B9C2CF; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 60px; padding-bottom: 44px; }
.footer-about p { margin-top: 16px; }
.footer-h { font: 700 .82rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #DCE2EA; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer address { margin-bottom: 12px; line-height: 1.6; }
.site-footer address strong { color: var(--white); }
.footer-disclaimer { border-top: 1px solid #1D2C42; padding: 18px 0; font-size: .86rem; }
.footer-disclaimer p { margin: 0; }
.footer-base { border-top: 1px solid #1D2C42; padding: 16px 0; font-size: .85rem; }
.footer-base-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-base p { margin: 0; }
.footer-base ul { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-base li { margin: 0; }

/* AA contrast: darker gold for text on tinted backgrounds */
.page-head .kicker, .section-tint .kicker, .section-tint p.kicker, .careers-teaser .kicker, .side-card a:hover, .hub-group h2 .count, .prose .answer-first a, .prose blockquote a, .side-card .more-link, .section-tint .more-link, .section-tint .contact-lines a, .page-head a:hover { color: var(--gold-ink); }
.breadcrumb a { color: var(--muted); }

/* mobile bar */
.mobile-bar { display: none; }

/* disclaimer modal */
.disc-modal { position: fixed; inset: 0; z-index: 200; background: rgba(11, 23, 38, .78); display: grid; place-items: center; padding: 18px; }
.disc-modal[hidden] { display: none; }
.disc-box { background: var(--white); max-width: 620px; width: 100%; max-height: 90vh; overflow: auto; border-radius: var(--radius); border-top: 5px solid var(--gold); padding: 30px 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.disc-box h2 { font-size: 1.6rem; }
.disc-box ul { padding-left: 1.2em; }
.disc-box li { margin-bottom: .5em; font-size: .97rem; }
.disc-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.disc-more { font-weight: 600; }
body.has-modal { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .site-menu li a { padding: 8px 8px; font-size: .9rem; }
  .btn-call { font-size: 0; gap: 0; padding: 11px; }
  .btn-call::after { content: "Call"; font-size: .92rem; margin-left: 6px; }
}
@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .site-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15, 30, 51, .12); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 12px; }
  .site-menu.is-open { display: flex; }
  .site-menu ul { flex-direction: column; }
  .site-menu li a { padding: 12px 6px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-menu li a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .btn-call { font-size: .95rem; gap: 8px; padding: 12px; }
  .btn-call::after { content: none; }
  .header-row { position: relative; min-height: 68px; }
  .hero-grid, .team-strip, .enquiry-split, .contact-grid, .about-intro, .edu-band { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-top: 48px; padding-bottom: 56px; gap: 36px; }
  .layout-sidebar { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sidebar { position: static; }
  .card-grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3, .practice-grid, .kh-grid, .team-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .city-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-portrait { max-width: 300px; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; padding-bottom: 64px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .topbar .hide-sm { display: none; }
  .topbar-row { justify-content: space-between; gap: 12px; font-size: .78rem; }
  .brand-name { font-size: 1.12rem; }
  .brand-tag { font-size: .64rem; }
  .logo-mark { width: 34px; height: 40px; }
  .section { padding: 56px 0; }
  .section-head-row, .careers-teaser, .cta-row, .careers-intro { flex-direction: column; align-items: flex-start; }
  .careers-teaser { padding: 28px 22px; }
  .card-grid-3, .card-grid-4, .practice-grid, .kh-grid, .team-grid, .gallery-grid, .steps, .contact-cards { grid-template-columns: 1fr; }
  .city-list { grid-template-columns: repeat(2, 1fr); }
  .field-row, .faq-search { grid-template-columns: 1fr; }
  .team-mini { grid-template-columns: 1fr; }
  .lead-profile { grid-template-columns: 1fr; }
  .lead-photo { max-width: 220px; }
  .photo-pair { grid-template-columns: 1fr; }
  .fact-list li { grid-template-columns: 1fr; gap: 2px; }
  .edu-list { columns: 1; }
  .edu-band { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-ctas .btn { width: 100%; }
  .form-card, .tool-card { padding: 22px 18px; }
  .disc-box { padding: 24px 20px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); border-top: 2px solid var(--gold); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 4px; min-height: 58px; color: var(--white); text-decoration: none; font-weight: 700; font-size: .8rem; }
  .mobile-bar a + a { border-left: 1px solid #2C4467; }
  .mobile-bar a:nth-child(2) svg { color: #5FD08A; }
  .mobile-bar a:first-child svg, .mobile-bar a:last-child svg { color: var(--gold); }
}
@media print {
  .topbar, .site-header, .mobile-bar, .sidebar, .cta-band, .disc-modal, .site-footer { display: none !important; }
  .layout-sidebar { display: block; }
}

/* Mid-article call-to-action box used in some articles */
.prose .cta-box { border: 1px solid var(--line, #E6DFD2); border-left: 4px solid #C9952B; background: #FBF7F0; border-radius: 10px; padding: 16px 20px; margin: 1.6em 0; }
.prose .cta-box p:last-child { margin-bottom: 0; }
