/* H Law website stylesheet */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/libre-franklin-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); }

:root {
  --red: #C0392B;
  --red-text: #A93226;
  --red-dark: #7B241C;
  --ink: #000;
  --text: #2B2B2B;
  --text-2: #3A3A3A;
  --muted: #555555;
  --rule: #DADAD7;
  --line: #E2E2DF;
  --stone: #F1F1EF;
  --white: #FFFFFF;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--red-text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 10; }
.skip:focus { top: 12px; color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 700; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 92px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 42px; line-height: 1; text-decoration: none; }
.brand .h { color: var(--red); }
.brand .law { color: var(--muted); }
.main-nav { order: 2; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 30px; }
.main-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.lang-switch { order: 3; display: flex; gap: 12px; padding-left: 20px; border-left: 1px solid var(--rule); font-size: 14px; margin: 0; list-style: none; }
.lang-switch a { color: var(--text-2); text-decoration: none; }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 600; }
.site-header .header-tail { order: 3; display: flex; align-items: center; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; background: var(--red); color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 2px; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--red-dark); color: var(--white); }
.btn--linkedin { background: var(--white); color: var(--ink); border: 1px solid #BDBDB8; }
.btn--linkedin svg { color: #0A66C2; }
.btn--linkedin:hover { background: var(--stone); color: var(--ink); border-color: #4A4A4A; }
.link-strong { font-weight: 600; font-size: 15px; }
.more-link { margin: 18px 0 0; }
.more-link--after { margin-top: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; background: var(--text); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.08) 78%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 88px; }
.hero-text { max-width: 640px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: 52px; line-height: 1.06; letter-spacing: -0.01em; color: var(--white); margin-bottom: 26px; }
.hero p { font-size: 19px; line-height: 1.65; color: #F2F2F0; max-width: 560px; margin-bottom: 40px; }
.hero .link-light { font-weight: 600; font-size: 16px; color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--stone { background: var(--stone); }
.section--flush { padding-top: 0; }
.page-head + .section--after-head { padding-top: 0; }
.section--after-head { padding-top: 0; }
.page-head:has(+ .section--after-head) .wrap { padding-bottom: 48px; }
.section-title { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.15; margin-bottom: 40px; }
.section-title--sm { font-size: 30px; line-height: 1.2; }
.rule-top { border-top: 3px solid var(--red); padding-top: 64px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; margin-bottom: 36px; }
.head-row .section-title { margin-bottom: 0; }
.head-row p { font-size: 15px; color: var(--muted); max-width: 460px; }
.rank-head { margin-bottom: 36px; }
.rank-head .section-title { margin-bottom: 14px; }
.rank-head .lead { font-size: 17px; color: var(--text-2); max-width: 780px; margin: 0; }

/* Intro (home) */
.intro { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.intro img { width: 240px; height: 300px; object-fit: cover; object-position: center 18%; }
.intro-text { max-width: 680px; }
.intro h2 { font-family: var(--serif); font-size: 34px; line-height: 1.15; margin-bottom: 6px; }
.intro .role { font-size: 16px; color: var(--muted); margin-bottom: 22px; }
.intro p + p, .intro .role + p { margin-top: 0; }
.intro-text > p:not(.role) { font-size: 18px; line-height: 1.7; margin-bottom: 16px; }

/* Area cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card { background: var(--white); border-top: 4px solid var(--red); padding: 30px 30px 34px; display: flex; flex-direction: column; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.card h2, .card h3 { font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.2; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--red-text); }
.card .icon { flex-shrink: 0; margin-top: 3px; }
.card > h3 { margin-bottom: 14px; font-size: 23px; }
.card p { font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.card .tags { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 22px; flex-grow: 1; }

/* Practice areas index (home and practice areas page) */
.areas-home { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 72px; align-items: start; }
.areas-intro { position: sticky; top: 32px; }
.areas-intro .section-title { margin-bottom: 16px; }
.areas-intro .lead { font-size: 17px; color: var(--text-2); margin-bottom: 24px; }
.area-index { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--red); }
.area-row { border-bottom: 1px solid var(--rule); }
.area-row a { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 28px; gap: 8px 40px; align-items: start; padding: 30px 8px 30px 0; color: inherit; text-decoration: none; transition: background-color .3s ease, padding .3s ease; }
.area-row a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.area-name { font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.25; color: var(--ink); transition: color .3s ease; }
.area-body { display: block; }
.area-card { display: block; font-size: 16px; line-height: 1.6; color: var(--text); }
.area-tags { display: block; font-size: 14px; line-height: 1.6; color: var(--muted); }
.area-go { margin-top: 2px; color: var(--red); opacity: .55; transition: transform .35s ease, opacity .35s ease; }
.area-row a:hover, .area-row a:focus-visible { background: var(--stone); padding-left: 16px; }
.area-row a:hover::after, .area-row a:focus-visible::after { transform: scaleX(1); }
.area-row a:hover .area-name, .area-row a:focus-visible .area-name { color: var(--red-text); }
.area-row a:hover .area-go, .area-row a:focus-visible .area-go { transform: translateX(6px); opacity: 1; }
.section--areas .area-row a { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr) 28px; }
.section--areas + .section { padding-top: 24px; }
.rule-thin { border-top: 2px solid var(--red); padding-top: 72px; }

/* Subtle entrance: content fades in once when it scrolls into view. */
@keyframes hl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-text { animation: hl-rise .9s ease-out both; }
  .page-head .wrap > * { animation: hl-rise .8s ease-out both; }
  .page-head .wrap > :nth-child(2) { animation-delay: .08s; }
  .page-head .wrap > :nth-child(3) { animation-delay: .16s; }
  .page-head .wrap > :nth-child(n+4) { animation-delay: .24s; }
  .area-index > li:nth-child(2) { --i: 1; } .area-index > li:nth-child(3) { --i: 2; } .area-index > li:nth-child(4) { --i: 3; } .area-index > li:nth-child(n+5) { --i: 4; }
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in, .js.reveal-off .reveal { opacity: 1; transform: none; }
}

/* Rankings */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.rank { display: flex; align-items: center; gap: 20px; }
.rank-logo { width: 184px; height: 124px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); padding: 10px; font-family: var(--serif); font-weight: 700; font-size: 20px; text-align: center; color: var(--ink); }
.rank-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rank-text { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.rank-text b { color: var(--ink); font-weight: 600; }

/* Publication list (home and area pages) */
.pubgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 72px; }
.pubgrid .section-title { margin-bottom: 16px; }
.pubgrid .lead { font-size: 17px; color: var(--text-2); margin-bottom: 24px; }
.aside-note { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.6; color: var(--text-2); }
.aside-note a { font-weight: 600; }
.pub-rows { list-style: none; margin: 0; padding: 0; }
.pub-rows li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); }
.pub-rows li:last-child { border-bottom: 1px solid var(--rule); }
.pub-rows .year { font-size: 15px; font-weight: 600; color: var(--red); }
.pub-rows a { color: var(--ink); text-decoration: none; font-weight: 500; }
.pub-rows a:hover { color: var(--red-text); text-decoration: underline; }
.pub-rows .ref { display: block; color: var(--muted); font-size: 15px; }

/* Contact panel */
.panel { background: var(--white); border-top: 4px solid var(--red); padding: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 64px; align-items: center; }
.panel .section-title { margin-bottom: 16px; }
.panel .lead { font-size: 17px; color: var(--text-2); max-width: 440px; margin-bottom: 28px; }
/* Home contact block (1 November 2026): text and button on the left, three points on the right, white background. */
.cta { padding: 0 0 104px; background: var(--white); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px 96px; align-items: center; border-top: 2px solid var(--red); padding-top: 72px; }
.cta .section-title { margin-bottom: 18px; }
.cta .lead { font-size: 18px; color: var(--text-2); max-width: 480px; margin-bottom: 32px; }
.cta-points { list-style: none; margin: 0; padding: 0; }
.cta-points li { position: relative; padding: 20px 0 20px 28px; border-top: 1px solid var(--rule); }
.cta-points li:last-child { border-bottom: 1px solid var(--rule); }
.cta-points li::before { content: ""; position: absolute; left: 0; top: 29px; width: 12px; height: 2px; background: var(--red); }
.cta-points b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.cta-points span { display: block; font-size: 15px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: minmax(0, 1fr); padding-top: 56px; } .cta { padding-bottom: 80px; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--red-text); }
.contact-list svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--white); font-size: 14px; line-height: 1.6; color: var(--muted); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.site-footer h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ink); text-decoration: underline; }
.site-footer .identity p + p { margin-top: 10px; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1; margin-bottom: 14px; display: inline-block; text-decoration: none; }
.site-footer .social { display: flex; gap: 14px; align-items: center; margin: 16px 0 0; }
.site-footer .social a { display: inline-flex; color: var(--muted); transition: color .2s ease; }
.site-footer .social a:hover, .site-footer .social a:focus-visible { color: var(--red); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--stone); }
/* Inner page titles: same photograph as the home page, darkened for legibility. */
.page-head:not(.page-head--plain) { position: relative; background: var(--text) url("../img/hero.webp") 60% 42% / cover no-repeat; color: #F2F2F0; }
.page-head:not(.page-head--plain)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.62) 45%, rgba(0,0,0,.3) 100%); }
.page-head:not(.page-head--plain) .wrap { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 72px; }
.page-head:not(.page-head--plain) h1 { color: var(--white); }
.page-head:not(.page-head--plain) .lead { color: #F2F2F0; }
.page-head:not(.page-head--plain) .breadcrumb, .page-head:not(.page-head--plain) .breadcrumb a { color: #D6D6D2; }
.page-head:not(.page-head--plain) .breadcrumb [aria-current] { color: var(--white); }
.page-head:not(.page-head--plain) .kicker, .page-head:not(.page-head--plain) .side-line { color: #DADAD6; }
.page-head .wrap { padding-top: 40px; padding-bottom: 64px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--text); }
.page-head h1 { font-family: var(--serif); font-weight: 700; font-size: 46px; line-height: 1.08; max-width: 860px; margin-bottom: 22px; }
.page-head .lead { font-size: 20px; line-height: 1.6; max-width: 760px; margin-bottom: 30px; }
.page-head .lead:last-child { margin-bottom: 0; }
.page-head .kicker { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.page-head .side-line { font-size: 15px; color: var(--muted); }
.page-head .lead:has(+ .topic-chips) { margin-bottom: 26px; }
.topic-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }
.topic-chips li { font-size: 14px; line-height: 1.3; padding: 7px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 2px; color: #F2F2F0; background: rgba(0,0,0,.18); }
.page-head--plain .topic-chips li { border-color: #CFCFCB; color: var(--text); background: var(--white); }
@media (max-width: 760px) { .topic-chips { gap: 8px; } .topic-chips li { font-size: 13px; padding: 6px 11px; } }

.split { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; padding-top: 72px; padding-bottom: 104px; }
.split > .main { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.split > aside { flex: 1 1 280px; min-width: 0; }

.exp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.exp-list li { padding: 24px 26px; border: 1px solid var(--line); background: var(--white); transition: background-color .3s ease, box-shadow .3s ease; }
.exp-list li:hover { background: var(--stone); box-shadow: inset 0 3px 0 var(--red); }
.exp-list .exp-text { font-size: 18px; line-height: 1.6; color: var(--ink); font-weight: 500; margin-bottom: 8px; }
.exp-list .exp-meta { font-size: 15px; color: var(--muted); }
.section-note { font-size: 16px; color: var(--muted); margin: -26px 0 28px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 14px 0; border-top: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 1px solid var(--rule); }
.rows a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; }
.rows a:hover { color: var(--red-text); text-decoration: underline; }
.rows .ref { display: block; font-size: 15px; color: var(--muted); }

.box { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 28px; }
.box h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.box p { font-size: 16px; color: var(--text-2); margin-bottom: 18px; }
.box .contact-list li { padding: 8px 0; border: 0; font-size: 16px; }
.side-links { margin-top: 40px; }
.side-links h2 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; font-family: var(--sans); }
.side-links ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.side-links a { color: var(--text); }

.sub-title { font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1.2; margin-bottom: 36px; }
.sub-title--sm { font-size: 28px; margin-bottom: 18px; }
.block-gap { margin-top: 64px; padding-top: 56px; border-top: 2px solid var(--red); }

/* About */
.about-head { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.about-head img { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }
.about-photo { margin: 0; max-width: 300px; }
.about-photo figcaption { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--red); }
.about-photo figcaption b { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.about-photo figcaption span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.about-head .bio p { font-size: 18px; line-height: 1.72; margin-bottom: 18px; max-width: 700px; }
.about-head .actions { margin-top: 32px; }
.page-head--plain { background: var(--white); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px 80px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .when { font-weight: 600; color: var(--red); }
.timeline b { font-weight: 600; color: var(--ink); display: block; }
.timeline span.where { color: var(--muted); }
.prose-sm p { font-size: 17px; line-height: 1.72; margin-bottom: 18px; }
.outline-box { margin-top: 40px; padding: 28px; border: 1px solid var(--rule); }
.ipc-logo-link { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.ipc-logo { display: inline-flex; align-items: center; gap: 6px; }
.ipc-logo > span { font-family: var(--sans); font-size: 26px; font-weight: 500; letter-spacing: .01em; color: #6E6E6E; line-height: 1; }
.ipc-logo > span b { font-weight: 500; color: #2B5EA7; }
.outline-box h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 10px; }
.outline-box p { font-size: 16px; margin-bottom: 16px; }
.area-note p { margin-bottom: 0; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 56px; }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0 0 14px; font-size: 18px; line-height: 1.65; color: var(--text); }
.quote-logo { width: 150px; height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; padding: 10px; border: 1px solid var(--line); background: var(--white); }
.quote-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.quotes figcaption { font-size: 15px; color: var(--muted); }

/* Recognition page */
.rank-full { list-style: none; margin: 0; padding: 0; }
.rank-full li { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--rule); align-items: start; }
.rank-full li:last-child { border-bottom: 1px solid var(--rule); }
.rank-full h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 6px; }
.rank-full .detail { color: var(--muted); margin-bottom: 14px; }
.rank-full blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 760px; }

/* Publications page */
.filters { padding-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.chip { font: inherit; font-size: 15px; min-height: 40px; padding: 0 16px; border: 1px solid #CFCFCB; background: var(--white); color: var(--text); border-radius: 2px; cursor: pointer; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--white); }
.chips .sep { width: 1px; height: 28px; background: var(--rule); margin: 0 8px; }
.years { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 500; }
.pub-year { margin-top: 56px; }
.pub-year h2 { font-family: var(--serif); font-size: 32px; color: var(--red); margin-bottom: 4px; }
.pub-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--rule); }
.pub-year .pub-item:last-child { border-bottom: 1px solid var(--rule); }
.pub-item .title { color: var(--ink); text-decoration: none; font-size: 19px; line-height: 1.45; font-weight: 500; }
.pub-item .title:hover { color: var(--red-text); text-decoration: underline; }
.pub-item .meta { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pub-item .links { display: flex; gap: 18px; font-size: 15px; font-weight: 600; white-space: nowrap; }
[hidden] { display: none !important; }
.empty { margin-top: 40px; color: var(--muted); }
.pubs-list { padding-bottom: 104px; }

/* Publication page */
.pub-head h1 { font-size: 38px; line-height: 1.15; max-width: 900px; }
.facts { margin: 0 0 40px; display: grid; grid-template-columns: 110px 1fr; gap: 12px 16px; font-size: 16px; line-height: 1.5; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 860px) { .pub-split > aside { order: -1; } .pub-split .facts { margin-bottom: 8px; } }
.cite { padding: 20px 24px; background: var(--stone); font-size: 16px; line-height: 1.6; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.2; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 18px; line-height: 1.72; margin-bottom: 18px; max-width: 760px; }
.prose .tbc { color: var(--muted); }

/* Forms */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #BDBDB8; border-radius: 2px; background: var(--white); color: var(--text); }
.form input:focus, .form textarea:focus { border-color: var(--text); outline: 2px solid var(--red); outline-offset: 0; }
.form textarea { min-height: 180px; resize: vertical; }
.form .note { font-size: 14px; color: var(--muted); }
.form .field-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.form-card { background: var(--stone); border-top: 4px solid var(--red); padding: 40px 44px 44px; }
.form-card .sub-title { margin-bottom: 24px; }
.form-card .form input, .form-card .form textarea { border-color: #CFCFCA; }
.form-card .alert { background: var(--white); }
@media (max-width: 760px) { .form-card { padding: 28px 20px 32px; } }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; margin-bottom: 24px; border-top: 3px solid var(--red); background: var(--stone); }
.alert--ok { border-top-color: #2E7D4F; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.sent-msg p { font-size: 18px; line-height: 1.6; max-width: 560px; }
.sent-msg p:last-child { margin: 28px 0 0; }

/* Phone number shown on request (phone_reveal() in helpers.php, site.js) */
.phone-reveal { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.phone-mask { color: var(--muted); letter-spacing: .04em; }
.phone-btn { font: inherit; font-size: 15px; font-weight: 600; color: var(--red-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.phone-btn:hover { text-decoration-thickness: 2px; }
.phone-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.phone-btn[hidden] { display: none; }

/* Legal pages */
.legal .prose { max-width: 780px; }
.entries { margin: 0 0 18px; max-width: 760px; border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.entry dt { font-weight: 600; color: var(--ink); font-size: 17px; line-height: 1.5; }
.entry dd { margin: 0; font-size: 17px; line-height: 1.65; }
.entry .basis { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.entry .basis b { color: var(--text-2); font-weight: 600; }
.entry .basis b::after { content: ":"; }
@media (max-width: 760px) { .entry { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .areas-home { grid-template-columns: minmax(0, 1fr); }
  .areas-intro { position: static; }
  .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .identity { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .about-head { grid-template-columns: minmax(0, 1fr); }
  .pubgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .site-header .wrap { min-height: 0; padding-top: 14px; gap: 6px 16px; }
  .brand { font-size: 34px; }
  .lang-switch { order: 2; border-left: 0; padding-left: 0; gap: 4px; }
  .lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { flex-wrap: nowrap; white-space: nowrap; gap: 22px; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; }

  /* Burger menu (only when the script runs; without it the row of links above stays) */
  .js .site-header { position: relative; z-index: 20; }
  .js .site-header .wrap { min-height: 68px; padding-top: 0; flex-wrap: nowrap; gap: 8px; }
  .js .lang-switch { margin-left: auto; }
  .js .nav-toggle { order: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .js .nav-toggle .bars, .js .nav-toggle .bars::before, .js .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: currentColor; }
  .js .nav-toggle .bars { position: relative; }
  .js .nav-toggle .bars::before, .js .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .js .nav-toggle .bars::before { top: -7px; }
  .js .nav-toggle .bars::after { top: 7px; }
  .js .nav-toggle .bars span { display: none; }
  .js .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .js .nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
  .js .nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
  .js .main-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 4px var(--gutter) 20px; overflow: visible; background: var(--white); border-bottom: 2px solid var(--red); box-shadow: 0 18px 30px -18px rgba(0,0,0,.25); visibility: hidden; opacity: 0; transform: translateY(-6px); }
  .js .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .js .main-nav ul { display: block; white-space: normal; }
  .js .main-nav li + li { border-top: 1px solid var(--line); }
  .js .main-nav a { display: flex; min-height: 56px; font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); border-bottom: 0; }
  .js .main-nav a[aria-current] { color: var(--red-text); }
  .js body.nav-open { overflow: hidden; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .main-nav { transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .js .main-nav.is-open { transition: opacity .2s ease, transform .2s ease, visibility 0s; }
  .js .nav-toggle .bars, .js .nav-toggle .bars::before, .js .nav-toggle .bars::after { transition: transform .2s ease, top .2s ease, background-color .2s ease; }
}
@media (max-width: 760px) {
  .hero { min-height: 560px; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.62) 45%, rgba(0,0,0,.8) 100%); }
  .hero .wrap { padding-top: 160px; padding-bottom: 32px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; margin-bottom: 28px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .areas-home { grid-template-columns: minmax(0, 1fr); }
  .areas-intro { position: static; }
  .area-row a, .section--areas .area-row a { grid-template-columns: minmax(0, 1fr) 24px; padding: 24px 0; }
  .area-row a:hover, .area-row a:focus-visible { padding-left: 0; background: none; }
  .area-name { font-size: 22px; grid-column: 1; }
  .area-body { grid-column: 1 / -1; grid-row: 2; }
  .area-go { grid-column: 2; grid-row: 1; }
  .rule-thin { padding-top: 56px; }
  .ranks { grid-template-columns: minmax(0, 1fr); }
  .rank-logo { width: 140px; height: 96px; }
  .panel { padding: 28px 22px; }
  .page-head h1 { font-size: 34px; }
  .page-head:not(.page-head--plain)::before { background: rgba(0,0,0,.66); }
  .pub-head h1 { font-size: 28px; }
  .page-head .lead { font-size: 18px; }
  .pub-item { grid-template-columns: minmax(0, 1fr); }
  .rank-full li { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form .row { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media print {
  .site-header nav, .nav-toggle, .lang-switch, .hero::after, .filters { display: none; }
}
.box + .box { margin-top: 24px; }
.box--fees p:last-child { margin-bottom: 0; }
/* Terms page: PDF reader */
.section--tight { padding-top: 48px; }
.terms-actions { gap: 12px 28px; }
.terms-langs { margin: 0; font-size: 15px; color: var(--muted); }
.terms-langs a { margin-left: 10px; font-weight: 600; }
.pdf-viewer { display: block; width: 100%; height: 82vh; min-height: 640px; margin-top: 32px; border: 1px solid var(--line); background: var(--stone); }
.pdf-fallback { padding: 24px; }
@media (max-width: 760px) { .pdf-viewer { display: none; } }
