/* S&A Lawyers main website. Colours are the firm's existing palette, shared with the Knowledge Hub. */
:root {
  --brand: #d3072a;          /* S&A crimson */
  --brand-dark: #a80522;
  --brand-deep: #8f041c;
  --brand-tint: #fdecee;
  --black: #000000;
  --ink: #303030;            /* body text */
  --muted: #5e5e5e;          /* secondary text (darker than before for readability) */
  --soft: #737373;
  --line: #e3e3e3;
  --line-strong: #cbcbcb;
  --bg: #ffffff;
  --tint: #f5f5f4;           /* light panels */
  --charcoal: #232323;
  --footer: #757575;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.07);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; font: 400 16.5px/1.65 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--black); margin: 0; line-height: 1.15; }
h1, h2, .display { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(211,7,42,.4); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section.tint { background: var(--tint); }
.eyebrow { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); }
.section-head p { color: var(--muted); max-width: 560px; margin: 14px 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- sample notice ---------- */
.sample-bar { background: var(--charcoal); color: #ddd; font-size: 13px; text-align: center; padding: 8px 16px; }
.sample-bar a { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 15px var(--sans); padding: 13px 24px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-tint); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--black); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-linkedin svg { color: #0a66c2; }
.btn svg { flex: none; }

/* ---------- header ---------- */
.site-header { background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav > a, .nav-dd-btn { color: var(--black); text-decoration: none; font: 400 15px var(--sans); padding: 10px 12px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; position: relative; }
.site-nav > a:not(.btn):hover, .nav-dd-btn:hover, .site-nav > a.active, .nav-dd-btn.active { color: var(--brand); }
.site-nav > a.active::after, .nav-dd-btn.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--brand); }
.site-nav .ext { font-size: 12px; opacity: .7; }
.site-nav > a.btn { margin-left: 12px; padding: 11px 20px; color: #fff; background: var(--brand); }
.site-nav > a.btn:hover { background: var(--brand-dark); }
.nav-dd { position: relative; }
.nav-dd-menu { display: none; position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--brand); box-shadow: 0 18px 50px rgba(0,0,0,.14); padding: 20px; width: 640px; }
.nav-dd.open .nav-dd-menu { display: block; }
@media (hover: hover) and (min-width: 1101px) { .nav-dd:hover .nav-dd-menu { display: block; } .nav-dd::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; } }
.nav-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.nav-dd-menu a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: 14.5px; border-radius: 3px; }
.nav-dd-menu a:hover { background: var(--tint); color: var(--brand); }
.nav-dd-menu .all { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; color: var(--brand); font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-right: -10px; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--black); margin: 7px 0; transition: .2s; }
.nav-toggle span:nth-child(2) { width: 18px; margin-left: 8px; }
.nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 20px 24px; gap: 0; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.1); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav > a, .nav-dd-btn { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav > a.active::after, .nav-dd-btn.active::after { display: none; }
  .nav-dd-menu { position: static; transform: none; box-shadow: none; width: auto; border: 0; padding: 8px 0; }
  .nav-dd-grid { grid-template-columns: 1fr; }
  .site-nav > a.btn { margin: 18px 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- red hero pattern (the firm's flowing lines, refined) ---------- */
.red-panel { position: relative; background: linear-gradient(115deg, var(--brand) 0%, #c2061f 55%, var(--brand-deep) 100%); color: #fff; overflow: hidden; isolation: isolate; }
.red-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .2; background: url("/static/img/lines.svg") right center / cover no-repeat; }
.red-panel h1, .red-panel h2 { color: #fff; }
.red-panel .eyebrow { color: rgba(255,255,255,.85); }
.red-panel a:not(.btn) { color: #fff; }

/* ---------- home hero ---------- */
.hero { padding: 64px 0 120px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; max-width: 22ch; }
.hero .lead { font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.6; color: rgba(255,255,255,.92); max-width: 620px; margin: 20px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- rankings strip ---------- */
.rankings { position: relative; z-index: 2; margin-top: -72px; }
.rankings-card { background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--brand); display: grid; grid-template-columns: repeat(4, 1fr); }
.rank { padding: 30px 28px; border-left: 1px solid var(--line); }
.rank:first-child { border-left: 0; }
.rank-big { font: 500 22px/1.15 var(--serif); color: var(--black); white-space: nowrap; }
.rank-label { font-weight: 600; font-size: 14px; color: var(--ink); margin-top: 10px; }
.rank-note { font-size: 13.5px; color: var(--soft); }
.rankings-caption { font-size: 13px; color: var(--soft); margin-top: 14px; text-align: right; }

/* ---------- firm intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: start; }
.intro-grid h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 28px; }
.intro-grid .body p { color: var(--ink); font-size: 17px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 28px 0 26px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 28px; }
.stat-num { font: 500 44px/1 var(--serif); color: var(--brand); }
.stat-label { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* ---------- expertise grid ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area-card { background: #fff; padding: 30px 28px 28px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; position: relative; transition: background .2s; min-height: 188px; }
.area-card::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--brand); transition: width .25s; }
.area-card:hover { background: #fffafa; }
.area-card:hover::before { width: 100%; }
.area-card h3 { font-size: 17.5px; color: var(--black); }
.area-card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.area-card .go { margin-top: auto; color: var(--brand); font-size: 14px; font-weight: 500; opacity: 0; transform: translateX(-4px); transition: .2s; }
.area-card:hover .go { opacity: 1; transform: none; }
.area-card.ask { background: var(--brand); color: #fff; justify-content: center; }
.area-card.ask h3 { color: #fff; font: 500 24px/1.2 var(--serif); }
.area-card.ask p { color: rgba(255,255,255,.9); }
.area-card.ask .go { opacity: 1; transform: none; color: #fff; margin-top: 8px; }
.area-card.ask:hover { background: var(--brand-dark); }
.area-card.ask::before { display: none; }
.icon { width: 40px; height: 40px; background: var(--brand); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; flex: none; }
.icon.white { background: #fff; }

/* ---------- feature band (arbitration) ---------- */
.feature { background: var(--charcoal); color: #e9e9e9; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature h2 { color: #fff; font-size: clamp(32px, 3.8vw, 48px); margin-bottom: 24px; }
.feature .eyebrow { color: #ff6b80; }
.feature p { color: #cfcfcf; font-size: 17px; }
.feature .btn-ghost-light { margin-top: 12px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 26px 0 26px 56px; border-top: 1px solid rgba(255,255,255,.14); position: relative; color: #e6e6e6; }
.feature-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.feature-list .n { position: absolute; left: 0; top: 24px; font: 500 26px/1 var(--serif); color: #ff6b80; }
.feature-list strong { color: #fff; display: block; font-weight: 600; margin-bottom: 4px; }

/* ---------- awards & recognition ---------- */
.awards-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: stretch; }
.award-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.award-card { background: #fff; padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 10px; min-height: 196px; position: relative; }
.award-card::before { content: ''; position: absolute; left: 26px; top: 0; width: 32px; height: 3px; background: var(--brand); }
.award-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.award-org { font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.award-year { font: 600 12.5px var(--sans); color: var(--brand); white-space: nowrap; }
.award-title { font: 500 23px/1.2 var(--serif); color: var(--black); margin-top: auto; }
.award-note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.honours { background: var(--tint); padding: 28px 26px; }
.tint .honours { background: #fff; border: 1px solid var(--line); }
.tint .honour-people img { box-shadow: 0 0 0 2px #fff; }
.honours h3 { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.honours ul { list-style: none; padding: 0; margin: 0; }
.honours li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.honours li:last-child { border-bottom: 0; padding-bottom: 0; }
.honour-people { display: flex; padding-left: 10px; }
.honour-people a { margin-left: -10px; }
.honour-people img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #dcdcdc; box-shadow: 0 0 0 2px var(--tint); }
.honour-names { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.honour-names a { color: var(--black); text-decoration: none; }
.honour-names a:hover { color: var(--brand); }
.honour-what { font-size: 14px; color: var(--ink); margin-top: 2px; line-height: 1.45; }
.honour-org { font-size: 13px; color: var(--soft); margin-top: 2px; }
.award-quote { margin: 56px 0 0; padding: 40px 0 0 64px; border-top: 1px solid var(--line); position: relative; }
.award-quote::before { content: '“'; position: absolute; left: 0; top: 22px; font: 500 88px/1 var(--serif); color: var(--brand); }
.award-quote blockquote { margin: 0; font: 400 clamp(21px, 2.2vw, 28px)/1.45 var(--serif); color: var(--black); max-width: 900px; }
.award-quote figcaption { margin-top: 14px; font-size: 14px; color: var(--soft); }

/* client quotes: one large, or several side by side */
.client-quotes.several { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 56px; border-top: 1px solid var(--line); }
.client-quotes.several .award-quote { margin-top: 0; padding-top: 40px; border-top: 0; }
.client-quotes.several .award-quote blockquote { font-size: clamp(18px, 1.7vw, 22px); }
.quotes-band .client-quotes:not(.several) .award-quote { margin-top: 0; border-top: 0; padding-top: 8px; }
.quotes-band .client-quotes.several { margin-top: 0; border-top: 0; }
.quotes { display: grid; gap: 28px; }
.quotes.several .profile-quote blockquote { font-size: 19px; }

/* ---------- people cards ---------- */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.person-card { text-decoration: none; color: var(--ink); display: block; }
.person-card { text-align: center; }
.person-card .ph { aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #dcdcdc; max-width: 240px; margin: 0 auto; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s; }
.person-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.person-card:hover .ph { box-shadow: 0 0 0 3px var(--brand); }
.person-card:hover img { transform: scale(1.04); }
.person-card h3 { margin-top: 20px; font-size: 17px; color: var(--black); }
.person-card:hover h3 { color: var(--brand); }
.person-card .role { font-size: 14px; color: var(--muted); }

/* ---------- news / hub cards ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--black); padding-bottom: 14px; margin-bottom: 8px; gap: 16px; }
.col-head h2 { font-size: 30px; }
.list-item { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list-item.with-img { grid-template-columns: 132px 1fr; gap: 22px; align-items: start; }
.list-item img { width: 132px; aspect-ratio: 4/3; object-fit: cover; background: var(--tint); }
.list-item .meta { font-size: 12.5px; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 10px; flex-wrap: wrap; }
.list-item .meta .tag { color: var(--brand); font-weight: 600; }
.list-item h3 { font: 500 19px/1.35 var(--serif); color: var(--black); transition: color .15s; }
.list-item:hover h3 { color: var(--brand); }
.list-item p { font-size: 14.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.empty-note { color: var(--soft); font-size: 14.5px; padding: 22px 0; }

/* ---------- call to action band ---------- */
.cta { padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { font-size: clamp(30px, 3.4vw, 42px); max-width: 18ch; }
.cta p { color: rgba(255,255,255,.9); margin: 14px 0 0; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 72px; }
.crumbs { font-size: 13.5px; margin-bottom: 36px; display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.8); }
.crumbs a { text-decoration: none; opacity: .9; }
.crumbs a:hover { text-decoration: underline; opacity: 1; }
.crumbs.dark { color: var(--soft); }
.crumbs.dark a { color: var(--muted); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: end; }
.page-hero h1 { font-size: clamp(38px, 5vw, 62px); margin: 18px 0 20px; }
.page-hero .lead { font-size: 19px; color: rgba(255,255,255,.93); max-width: 640px; margin: 0; }
.contact-card { background: #fff; color: var(--ink); padding: 26px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.contact-card .label { font: 600 11.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.contact-card .who { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.contact-card .who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #dcdcdc; }
.contact-card .who strong { display: block; color: var(--black); font-size: 16px; }
.contact-card .who span { font-size: 13.5px; color: var(--muted); }
.contact-card .lines { margin: 18px 0 18px; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 14.5px; display: grid; gap: 6px; }
.contact-card .lines a { color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: center; }
.contact-card .lines a:hover { color: var(--brand); }
.contact-card .btn { width: 100%; }
/* two key contacts: one under the other, each with their own phone and email */
.contact-card.two .kc { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-card.two .label + .kc { border-top: 0; padding-top: 0; }
.contact-card.two .who img { width: 52px; height: 52px; }
.contact-card .mini-lines { display: grid; gap: 4px; margin-top: 12px; padding-left: 66px; font-size: 14px; }
.contact-card .mini-lines a { color: var(--ink); text-decoration: none; display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.contact-card .mini-lines a:hover { color: var(--brand); }
.contact-card.two .btn { margin-top: 4px; }

/* ---------- in-page navigation ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 18px 14px 16px; font-size: 14.5px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--black); }
.subnav a.on { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- article layout with sidebar ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 22px; }
.prose .block + .block { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); }
.prose ul.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.prose ul.ticks li { padding-left: 26px; position: relative; font-size: 16px; }
.prose ul.ticks li::before { content: ''; position: absolute; left: 0; top: 10px; width: 12px; height: 2px; background: var(--brand); }
.matters-title { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 32px 0 6px; }
.matters { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.matters li { counter-increment: m; position: relative; padding: 20px 0 20px 52px; border-bottom: 1px solid var(--line); font-size: 16px; }
.matters li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 20px; font: 500 17px/1.6 var(--serif); color: var(--brand); }
.aside { position: sticky; top: calc(var(--header-h) + 84px); display: grid; gap: 28px; }
.aside-box { border: 1px solid var(--line); padding: 26px; background: #fff; }
.aside-box.tinted { background: var(--tint); border-color: var(--tint); }
.aside-box h3 { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 16px; }
.mini-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mini-people a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.mini-people img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #dcdcdc; }
.mini-people strong { display: block; font-weight: 500; color: var(--black); font-size: 15px; line-height: 1.3; }
.mini-people a:hover strong { color: var(--brand); }
.mini-people span { font-size: 13px; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.stat-row > div { padding: 30px 28px; border-left: 1px solid var(--line); }
.stat-row > div:first-child { border-left: 0; }
.stat-row .big { font: 500 28px/1.1 var(--serif); color: var(--brand); }
.stat-row .small { font-size: 14.5px; color: var(--muted); margin-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13.5px; padding: 7px 12px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; border-radius: 999px; background: #fff; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.compact-areas { columns: 3; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.compact-areas li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.compact-areas a { display: flex; justify-content: space-between; padding: 13px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.compact-areas a::after { content: '→'; color: var(--line-strong); transition: .2s; }
.compact-areas a:hover { color: var(--brand); }
.compact-areas a:hover::after { color: var(--brand); transform: translateX(3px); }

/* ---------- person profile ---------- */
.profile-hero { background: var(--tint); padding: 40px 0 72px; }
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: center; }
.profile-photo { aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #dcdcdc; box-shadow: 0 0 0 10px #fff, 0 20px 50px rgba(0,0,0,.12); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { padding: 0; }
.profile-info h1 { font-size: clamp(38px, 4.6vw, 58px); margin: 10px 0 10px; }
.profile-info .role { font-size: 19px; color: var(--brand); font-weight: 500; margin-bottom: 22px; }
.profile-info .summary { font-size: 18px; color: var(--ink); max-width: 620px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.recog { list-style: none; padding: 0; margin: 0; }
.recog li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.recog li:first-child { padding-top: 0; }
.recog li:last-child { border-bottom: 0; padding-bottom: 0; }
.recog strong { display: block; font-weight: 600; color: var(--black); font-size: 14.5px; }
.recog span { font-size: 14px; color: var(--muted); }
.roles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roles li { padding: 22px; background: var(--tint); }
.roles strong { display: block; font: 500 19px/1.3 var(--serif); color: var(--black); margin-bottom: 6px; }
.roles span { font-size: 14.5px; color: var(--muted); }

/* ---------- placeholder ---------- */
.placeholder { padding: 120px 0; text-align: center; }
.placeholder h1 { font-size: 44px; margin-bottom: 16px; }
.placeholder p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; }
.placeholder .links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer (grey, as on the current firm site and the Knowledge Hub) ---------- */
.site-footer { background: var(--footer); color: #fff; font-size: 14.5px; padding: 72px 0 0; }
.site-footer p { color: rgba(255,255,255,.92); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.5fr .9fr .9fr; gap: 48px; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 22px; }
.footer-heading { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; margin-bottom: 16px; color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; break-inside: avoid; }
.footer-list.two { columns: 2; column-gap: 24px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; }
.social a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.28); margin-top: 56px; padding: 22px 0 30px; font-size: 13px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal p { margin: 0; }

/* ---------- database-driven pages ---------- */
.container.narrow { max-width: 860px; }
.page-hero.short { padding: 48px 0 64px; }
.page-hero.short h1 { margin-top: 0; }
.page-hero .lead a { text-decoration: underline; }
.page-hero-grid.single { grid-template-columns: 1fr; }
.preview-note { display: inline-block; background: #fff4d6; color: #6b4e00; font-size: 14px; padding: 6px 12px; border-radius: 3px; margin: 0 0 18px; }
.preview-note.light { background: rgba(255,255,255,.15); color: #fff; }
.rankings-card { grid-template-columns: repeat(var(--n, 4), 1fr); }
.stat-row { grid-template-columns: repeat(var(--n, 3), 1fr); margin-top: 48px; }
.awards-grid.no-honours { grid-template-columns: 1fr; }
a.plain { text-decoration: none; color: inherit; }
a.plain:hover strong { color: var(--brand); }

/* text written in the admin editor */
.rich { font-size: 17px; line-height: 1.7; }
.rich > :first-child { margin-top: 0; }
.rich h2 { font: 500 clamp(26px, 2.8vw, 34px)/1.2 var(--serif); margin: 56px 0 18px; }
.rich h3 { font: 600 18px/1.35 var(--sans); margin: 32px 0 10px; }
.rich h4 { font: 600 16px var(--sans); margin: 24px 0 8px; }
.rich ul, .rich ol { padding-left: 22px; margin: 0 0 1.1em; }
.rich li { margin-bottom: 8px; }
.rich ul li::marker { color: var(--brand); }
.rich blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font: 400 20px/1.5 var(--serif); color: var(--black); }
.rich img { max-width: 100%; height: auto; margin: 24px auto; }
.page-rich img { max-width: min(100%, 340px); max-height: 340px; width: auto; }
.rich table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; display: block; overflow-x: auto; }
.rich th, .rich td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.rich th { background: var(--tint); font-weight: 600; }
.rich a { word-break: break-word; }
.rich .ql-align-center { text-align: center; }
.rich .ql-align-right { text-align: right; }
.rich .ql-indent-1 { padding-left: 2em; }
/* practice area pages: each heading starts a section; numbered lists are recent matters */
.practice-rich h2 { margin-top: 0; padding-top: 64px; border-top: 1px solid var(--line); margin-bottom: 22px; }
.practice-rich > h2:first-child { padding-top: 0; border-top: 0; }
.practice-rich h2 + p { margin-top: 0; }
.practice-rich h3 { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 36px 0 6px; }
.practice-rich ol, .matters-rich ol, .matters-rich ul { list-style: none; padding: 0; counter-reset: m; margin-bottom: 56px; }
.practice-rich ol li, .matters-rich li { counter-increment: m; position: relative; padding: 18px 0 18px 52px; border-bottom: 1px solid var(--line); margin: 0; font-size: 16px; }
.practice-rich ol li::before, .matters-rich li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 500 17px/1.6 var(--serif); color: var(--brand); }
.practice-rich ul { columns: 2; column-gap: 32px; list-style: none; padding: 0; }
.practice-rich ul li { padding-left: 26px; position: relative; break-inside: avoid; }
.practice-rich ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 12px; height: 2px; background: var(--brand); }
.roles-rich ul, .roles-rich ol { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roles-rich li { background: var(--tint); padding: 20px 22px; margin: 0; font-size: 15px; color: var(--muted); }
.roles-rich li strong { display: block; font: 500 19px/1.3 var(--serif); color: var(--black); margin-bottom: 4px; }
.recog-rich ul, .recog-rich ol { list-style: none; padding: 0; margin: 0; }
.recog-rich li { padding: 12px 0; border-bottom: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); }
.recog-rich li:first-child { padding-top: 0; }
.recog-rich li:last-child { border-bottom: 0; padding-bottom: 0; }
.recog-rich li strong { display: block; color: var(--black); font-size: 14.5px; }
.recog-rich p { font-size: 14.5px; }

/* profile extras */
.profile-quote { margin: 0 0 8px; padding: 0 0 0 26px; border-left: 3px solid var(--brand); }
.profile-quote blockquote { margin: 0; font: 400 22px/1.5 var(--serif); color: var(--black); }
.profile-quote figcaption { margin-top: 10px; font-size: 14px; color: var(--soft); }
.prose .block + .profile-quote, .prose .profile-quote + .block { margin-top: 56px; }
.education-rich li { font-size: 15px; }

/* careers */
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.job-card { background: #fff; padding: 28px; text-decoration: none; color: var(--ink); border-top: 3px solid var(--brand); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.job-card h3 { font: 500 24px/1.2 var(--serif); color: var(--black); }
.job-card p { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.job-card:hover h3 { color: var(--brand); }
.field small.soft { color: var(--soft); font-weight: 400; }
.field input[type=file] { padding: 9px; background: #fff; }

/* people and filters */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.all-people { row-gap: 48px; }

.contact-form-box input, .contact-form-box select, .contact-form-box textarea {
  font: 15px var(--sans); padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; width: 100%; color: var(--ink); }
.contact-form-box :is(input, select, textarea):focus { outline: 2px solid rgba(211,7,42,.3); border-color: var(--brand); }

.small-head { font: 600 12px var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--soft) !important; margin: 0 0 16px !important; }
.article-people { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.mini-people.row { display: flex; flex-wrap: wrap; gap: 16px 36px; }
.article-areas { margin-top: 24px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-details h2, .contact-form-box h2 { font-size: 30px; margin-bottom: 22px; }
.addr { font-size: 18px; }
.big-link { font: 500 22px/1.6 var(--serif); text-decoration: none; }
.contact-form-box { background: var(--tint); padding: 40px; scroll-margin-top: 120px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > span { font-weight: 600; font-size: 14px; color: var(--black); }
.field em { color: var(--brand); font-style: normal; }
.field small { color: var(--red, #b3261e); font-size: 13.5px; }
.field.has-error :is(input, textarea) { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--soft); margin: 16px 0 0; }
.sent-box h2 { color: var(--brand); }
.connect { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.connect h2 { font-size: 24px; margin-bottom: 8px; }
.connect p { color: var(--muted); margin: 0 0 18px; }
.connect-links { display: flex; flex-wrap: wrap; gap: 10px; }
.connect-linkedin svg { color: #0a66c2; }
.connect-facebook svg { color: #1877f2; }
@media (max-width: 480px) { .connect-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .connect-links .btn { padding: 12px 8px; gap: 6px; font-size: 14px; } }

@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 900px) {
  .rankings-card { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .practice-rich ul { columns: 1; }
  .roles-rich ul, .roles-rich ol { grid-template-columns: 1fr; }
  .contact-form-box { padding: 24px 18px; margin: 0 -4px; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 36px; padding: 0 20px 6px; }
  .filter-chips .chip { flex: none; }
}

/* ---------- news: same design as the Knowledge Hub (grey and white bands, outlined cards) ---------- */
.band-hero { background: var(--tint); padding: 40px 0 36px; }
.band-hero h1 { font-size: clamp(34px, 4.2vw, 48px); color: var(--brand); margin: 14px 0 10px; }
.band-lead { color: var(--muted); font-size: 17px; margin: 0; max-width: 720px; }
.band-body { background: #fff; padding: 40px 0 80px; }
.band-tint { background: var(--tint); padding: 72px 0; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.band-head h2 { font-size: clamp(28px, 3vw, 34px); color: var(--brand); }
.preview-banner { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 14px; padding: 10px 16px; }

.library-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 20px; }
.ffield { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ffield label { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ffield input, .ffield select { font: 15px var(--sans); color: var(--ink); padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; width: 100%; }
.ffield input:focus, .ffield select:focus { outline: 2px solid rgba(211,7,42,.3); border-color: var(--brand); }
.btn-block { width: 100%; }
.clear-link { display: block; text-align: center; margin-top: 12px; font-size: 14px; }
.results-count { margin: 0 0 16px; color: var(--muted); }
.results-count strong { color: var(--black); }
.result-list { display: grid; gap: 16px; }
.empty-box { padding: 32px; text-align: center; color: var(--muted); background: var(--tint); }
.empty-box p { margin: 0 0 4px; }
.pager-b { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 32px; color: var(--muted); }
.pager-b a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--black); }
.pager-b a:hover { border-color: var(--brand); color: var(--brand); }

.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); padding: 24px; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.ncard:hover { box-shadow: var(--shadow); }
.ncard-media { display: block; margin: -24px -24px 20px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.ncard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ncard:hover .ncard-media img { transform: scale(1.03); }
.ncard-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.ncard-title { font: 600 20px/1.3 var(--sans); margin: 0 0 10px; letter-spacing: -.005em; }
.ncard-title a { color: var(--black); text-decoration: none; }
.ncard-title a:hover { color: var(--brand); }
.ncard-summary { color: var(--muted); margin: 0 0 18px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ncard-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.area-chip { display: inline-block; font-size: 12.5px; color: var(--ink); background: var(--tint); padding: 3px 10px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; }
.area-chip:hover { border-color: var(--brand); color: var(--brand); }
.pdf-flag { font-size: 11px; font-weight: 600; color: var(--brand); border: 1px solid var(--brand); padding: 1px 6px; border-radius: 3px; letter-spacing: .04em; flex: none; }
.result-list .ncard-summary { -webkit-line-clamp: 4; }
.result-list .ncard.has-image { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 28px; align-content: start; }
.result-list .ncard.has-image > * { grid-column: 1; }
.result-list .ncard.has-image .ncard-media { grid-column: 2; grid-row: 1 / span 4; margin: 0; aspect-ratio: 4 / 3; align-self: start; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; background: var(--ink); color: #fff; }
.badge-news { background: var(--brand); color: #fff; }
.badge-insight { background: var(--brand-tint); color: var(--brand-dark); }
.badge-memo, .badge-memo-series { background: var(--ink); color: #fff; }
.badge-update { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge-featured { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

/* a news item */
.article-people { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.pub-header { padding: 32px 0 40px; }
.pub-type { margin: 22px 0 14px; }
.pub-header h1 { font-size: clamp(30px, 4.2vw, 46px); color: var(--black); margin: 0 0 16px; line-height: 1.15; }
.pub-summary { font-size: 19px; color: var(--ink); margin: 0 0 18px; line-height: 1.55; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.pub-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-areas .area-chip { background: #fff; }
.pub-body-wrap { padding-top: 40px; padding-bottom: 64px; }
.pub-figure { margin: 0 0 36px; }
.pub-figure img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.pub-figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--brand); }
.pdf-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--brand); margin-bottom: 32px; flex-wrap: wrap; background: #fff; }
.pdf-box-info { display: flex; align-items: center; gap: 14px; color: var(--brand); min-width: 0; }
.pdf-name { color: var(--black); font-weight: 500; word-break: break-word; }
.pdf-hint { color: var(--muted); font-size: 14px; }
.pdf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.prose-b { font-size: 17px; line-height: 1.75; color: var(--ink); }
.prose-b > :first-child { margin-top: 0; }
.prose-b h2 { font: 500 25px/1.3 var(--sans); color: var(--brand); margin: 1.8em 0 .5em; letter-spacing: -.005em; }
.prose-b h3 { font: 600 20px/1.35 var(--sans); margin: 1.6em 0 .4em; }
.prose-b h4 { font: 600 17px var(--sans); margin: 1.4em 0 .4em; }
.prose-b p { margin: 0 0 1.1em; }
.prose-b ul, .prose-b ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose-b li { margin-bottom: .4em; }
.prose-b li::marker { color: var(--brand); }
.prose-b blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); font-size: 18px; }
.prose-b table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose-b th, .prose-b td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose-b th { background: var(--tint); font-weight: 600; }
.prose-b img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; }
.prose-b a { word-break: break-word; }
.prose-b .ql-align-center { text-align: center; }
.prose-b .ql-align-right { text-align: right; }
.pub-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 32px; margin-left: -10px; }
.btn-link { background: none; border: 0; color: var(--brand); font: 500 14.5px var(--sans); padding: 8px 10px; cursor: pointer; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .library-layout { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; }
  #filter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  #filter-form .ffield:first-child, #filter-form .btn, #filter-form .clear-link { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .result-list .ncard.has-image { display: flex; }
  .result-list .ncard.has-image .ncard-media { margin: -24px -24px 20px; aspect-ratio: 16 / 9; }
  .band-tint { padding: 56px 0; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { #filter-form { grid-template-columns: 1fr; } .ncard { padding: 20px; } .ncard-media, .result-list .ncard.has-image .ncard-media { margin: -20px -20px 18px; } }
@media print { .filters, .pub-tools, .band-tint, .preview-banner { display: none !important; } .band-hero { background: none; } }

/* ---------- Maldives Law Institute section ---------- */
.mli-hero { padding: 72px 0 88px; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.activity-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 28px; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.activity-card:hover { box-shadow: var(--shadow); }
.activity-card h3 { font: 500 23px/1.25 var(--serif); color: var(--black); }
.activity-card:hover h3 { color: var(--brand); }
.activity-card p { color: var(--muted); font-size: 15px; margin: 0; }
.activity-card .go { margin-top: auto; color: var(--brand); font-size: 14px; font-weight: 500; }
.activity-n { font: 500 30px/1 var(--serif); color: var(--brand); }
.activity-img { display: block; margin: -28px -28px 6px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.activity-img img { width: 100%; height: 100%; object-fit: cover; }
.mli-about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.mli-about h2 { font-size: clamp(28px, 3vw, 38px); }
.event-list { display: grid; gap: 14px; }
.event-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 24px; align-items: start; background: #fff; border: 1px solid var(--line); padding: 20px 24px; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.event-card:hover { box-shadow: var(--shadow); }
.event-card.past { opacity: .78; }
.date-block { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--brand); color: #fff; padding: 10px 6px; line-height: 1.1; text-align: center; }
.event-card.past .date-block { background: var(--soft); }
.db-day { font: 500 32px/1 var(--serif); }
.db-month { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
.db-year { font-size: 12px; opacity: .85; }
.event-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-when { font-size: 13px; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.event-title { font: 500 21px/1.3 var(--serif); color: var(--black); }
.event-card:hover .event-title { color: var(--brand); }
.event-where { font-size: 14.5px; color: var(--ink); }
.event-summary { font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-heading { font-size: 26px; margin: 8px 0 18px; }
.list-heading:not(:first-child) { margin-top: 48px; }
.event-box { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; border: 1px solid var(--line); border-left: 3px solid var(--brand); padding: 18px 22px; margin-bottom: 32px; }
.event-box dl { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.event-box dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); font-weight: 600; }
.event-box dd { margin: 2px 0 0; font-weight: 500; color: var(--black); }
@media (max-width: 900px) { .mli-about { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) {
  .event-card { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .db-day { font-size: 26px; }
  .mli-hero { padding: 48px 0 64px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-aside { grid-template-columns: 1fr; gap: 56px; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .contact-card { max-width: 420px; }
  .profile-grid { grid-template-columns: 260px 1fr; gap: 48px; }
  .awards-grid { grid-template-columns: 1fr; }
  .honours ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .honours li:last-child { border-bottom: 1px solid var(--line-strong); padding-bottom: 16px; }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .rankings-card { grid-template-columns: 1fr 1fr; }
  .rank:nth-child(3) { border-left: 0; }
  .rank:nth-child(n+3) { border-top: 1px solid var(--line); }
  .intro-grid, .feature-grid, .two-col { grid-template-columns: 1fr; gap: 48px; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .area-card.ask { grid-column: span 2; }
  .award-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .compact-areas { columns: 2; }
  .profile-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-photo { max-width: 240px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row > div { border-left: 0; border-top: 1px solid var(--line); }
  .stat-row > div:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 100px; }
  .rankings { margin-top: -64px; }
  .rankings-card { grid-template-columns: 1fr 1fr; }
  .rank { padding: 20px 18px; }
  .rank-big { font-size: 18px; white-space: normal; }
  .rankings-caption { text-align: left; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-card.ask { grid-column: auto; }
  .award-cards { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .award-card { min-height: 0; padding: 22px 18px 20px; }
  .award-card::before { left: 18px; }
  .award-title { font-size: 19px; margin-top: 4px; }
  .honours { padding: 24px 20px; }
  .honours ul { grid-template-columns: 1fr; }
  .honours li:last-child { border-bottom: 0; padding-bottom: 0; }
  .award-quote { margin-top: 40px; padding: 48px 0 0; }
  .client-quotes.several { grid-template-columns: minmax(0, 1fr); }
  .award-quote::before { top: 14px; font-size: 64px; }
  .area-card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 22px 20px; }
  .area-card .icon { width: 32px; height: 32px; }
  .area-card h3 { flex: 1; }
  .area-card p { flex-basis: 100%; }
  .area-card .go { display: none; }
  .stat-num { font-size: 36px; }
  .list-item.with-img { grid-template-columns: 96px 1fr; gap: 16px; }
  .list-item img { width: 96px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .prose ul.ticks, .roles { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
  .compact-areas { columns: 1; }
  .page-hero { padding: 40px 0 56px; }
  .crumbs { margin-bottom: 24px; }
  .hero-actions .btn, .cta-actions .btn, .profile-actions .btn { flex: 1 1 auto; }
  .people-grid { gap: 20px; }
}

@media print {
  .site-header, .site-footer, .sample-bar, .subnav, .cta, .profile-actions { display: none !important; }
  .red-panel { background: none; color: #000; }
  .red-panel h1, .red-panel .lead, .red-panel a { color: #000 !important; }
}

/* ---------- MLI books (the shop moved here from the Knowledge Hub) ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.book-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.book-cover { position: relative; aspect-ratio: 2 / 3; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.book-card:hover .book-cover img { transform: scale(1.03); }
.book-cover-blank { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font: 500 20px/1.3 var(--serif); color: #fff; background: var(--brand); }
.sold-out { position: absolute; top: 12px; left: 12px; background: var(--black); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.book-info { padding-top: 14px; }
.book-title { font: 500 19px/1.3 var(--serif); margin: 0 0 4px; color: var(--black); }
.book-card:hover .book-title { color: var(--brand); }
.book-authors { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.book-price { font-weight: 600; color: var(--black); margin: 0; }
@media (max-width: 480px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } .book-title { font-size: 15px; } }

.book-layout { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 48px; margin-top: 24px; align-items: start; }
.book-cover-lg { max-width: 340px; }
.book-heading { font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; color: var(--brand); margin: 0 0 8px; }
.book-subtitle { font-size: 19px; color: var(--black); margin: 0 0 8px; }
.book-by { color: var(--muted); margin: 0 0 20px; }
.book-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.book-price-lg { font-size: 26px; font-weight: 600; color: var(--black); }
.stock-note { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.stock-in { background: #e7f5ec; color: #1e6b3a; }
.stock-out { background: var(--black); color: #fff; }
.book-description { margin-bottom: 24px; }
.book-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px 24px; margin: 0; padding: 16px 20px; background: var(--tint); border-radius: var(--radius); }
.book-details dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.book-details dd { margin: 2px 0 0; color: var(--black); }
@media (max-width: 760px) { .book-layout { grid-template-columns: 1fr; gap: 28px; } .book-cover-lg { max-width: 240px; } }

.order-heading { font-size: 30px; font-weight: 400; margin: 0 0 8px; }
.order-lead { color: var(--muted); margin: 0 0 24px; }
.order-closed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.order-closed h2 { margin: 0 0 8px; font-size: 24px; }
.order-closed p { margin: 0; }
.order-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px 28px; }
.order-step { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 22px 0; min-width: 0; }
.order-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; color: var(--black); margin-bottom: 14px; padding: 0; }
.order-step legend + * { clear: both; }
.order-step p { margin: 0 0 10px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; flex: none; }
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty-row select { width: 90px; }
.pay-box { white-space: pre-line; background: var(--brand-tint); border-left: 3px solid var(--brand); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--black); font-variant-numeric: tabular-nums; }
.file-drop { display: block; border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; color: var(--muted); }
.file-drop:hover, .file-drop:focus-within { border-color: var(--brand); }
.file-drop.has-file { border-style: solid; border-color: #1e6b3a; background: #f3faf6; color: #1e6b3a; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop strong { color: var(--brand); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; height: 100%; }
.choice strong { display: block; color: var(--black); font-weight: 500; }
.choice small { color: var(--muted); }
.choice input:checked + span { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-tint); }
.choice input:focus-visible + span { outline: 3px solid rgba(211, 7, 42, .35); }
.choice-info { color: var(--muted); font-size: 14px; white-space: pre-line; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.order-form :is(input[type=text], input[type=email], input[type=tel], select, textarea) { font: 15px var(--sans); color: var(--black); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; width: 100%; min-width: 0; }
.order-form textarea { resize: vertical; }
.order-form :is(input, select, textarea):focus { border-color: var(--brand); outline: 3px solid rgba(211,7,42,.12); outline-offset: 0; }
.order-form .field { margin-bottom: 14px; }
.order-submit { margin-top: 24px; width: 100%; padding: 14px; font-size: 16px; }
.order-submit:disabled { opacity: .7; cursor: wait; }
.order-small { color: var(--muted); font-size: 13px; margin: 12px 0 0; text-align: center; }
.form-error { background: var(--brand-tint); color: var(--brand-dark); border: 1px solid #f5c2ca; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
@media (max-width: 560px) { .order-form { padding: 4px 18px 22px; } .choice-row, .field-pair { grid-template-columns: 1fr; } }

.confirm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.confirm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.confirm-card h1 { font-size: 28px; font-weight: 400; margin: 0 0 10px; color: var(--black); }
.confirm-ref { display: flex; flex-direction: column; align-items: flex-start; background: var(--tint); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.confirm-ref span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.confirm-ref strong { font-size: 30px; letter-spacing: .06em; color: var(--brand); font-variant-numeric: tabular-nums; }
.confirm-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 0 0 22px; }
.confirm-details dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.confirm-details dd { margin: 2px 0 0; color: var(--black); }
.pre { white-space: pre-line; }
.order-status { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: #fff4d6; color: #6b5413; }
.order-status.status-confirmed, .order-status.status-ready, .order-status.status-completed { background: #e7f5ec; color: #1e6b3a; }
.order-status.status-cancelled { background: var(--tint); color: var(--muted); }
.confirm-next { border-top: 1px solid var(--line); padding-top: 18px; }
.confirm-next h2 { font-size: 18px; margin: 0 0 8px; }

.book-top { padding-top: 32px; }
.book-top .crumbs { margin-bottom: 8px; }
.book-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); }
.qty-row select { width: 90px !important; }
@media print { body:has(.confirm-card) :is(.site-header, .site-footer, .sample-bar, .skip-link) { display: none !important; } }
