:root {
    --ink: #102a43;
    --ink-2: #294861;
    --blue: #1e5b92;
    --blue-dark: #123b61;
    --red: #b7293d;
    --red-dark: #8f1f30;
    --teal: #0e6b73;
    --sky: #eaf3f8;
    --soft: #f4f6f7;
    --sand: #f6f3ee;
    --line: #dbe3e8;
    --white: #fff;
    --muted: #617589;
    --radius: 18px;
    --shadow: 0 18px 55px rgba(16, 42, 67, .11);
    --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.28rem; }
p { color: var(--ink-2); }
.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .8rem 1rem; background: #fff; border: 2px solid var(--ink); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #e9ad1c; outline-offset: 3px; }

.utility-bar { background: var(--ink); color: #d9e5ec; font-size: .75rem; letter-spacing: .02em; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.utility-inner nav { display: flex; gap: 1.5rem; }
.utility-inner a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(219,227,232,.8); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; flex: 0 0 auto; }
.brand-mark { display: block; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; }
.brand-mark img { width: auto; max-width: none; height: 52px; }
.brand-type { display: flex; flex-direction: column; min-width: 0; color: var(--ink); line-height: 1.08; letter-spacing: -.025em; white-space: nowrap; }
.brand-type strong { font-size: .96rem; font-weight: 820; }
.brand-type span { margin-top: .25rem; color: var(--blue); font-size: .7rem; font-weight: 680; letter-spacing: -.01em; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); font-size: .91rem; font-weight: 650; }
.main-nav > a:not(.nav-cta) { position: relative; padding-block: 29px; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 2px; background: var(--red); transition: right .2s; }
.main-nav > a:hover::after, .main-nav > a.active::after { right: 0; }
.nav-cta { padding: .78rem 1.1rem; color: #fff; background: var(--blue-dark); border-radius: 999px; }
.nav-cta:hover { background: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); padding: 12px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 4px 0; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .75rem 1.25rem; border: 1px solid var(--blue); border-radius: 7px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--ink); border-color: #bfcbd3; }
.button-ghost:hover { color: #fff; }
.button-dark { background: var(--ink); border-color: var(--ink); }
.button-white { background: #fff; border-color: #fff; color: var(--ink); }
.button-muted, .button:disabled { background: #dce3e7; border-color: #dce3e7; color: #647583; cursor: not-allowed; transform: none; }
.button-small { min-height: 42px; padding: .55rem 1rem; }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.text-link { color: var(--blue); font-weight: 750; font-size: .92rem; }
.text-link span { display: inline-block; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.eyebrow { display: block; margin-bottom: .8rem; color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-red { color: var(--red); }
.eyebrow-light { color: #a8d1e7; }
.tag { display: inline-flex; padding: .3rem .6rem; background: var(--sky); color: var(--blue-dark); border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.home-hero { min-height: 660px; display: grid; align-items: center; position: relative; overflow: hidden; background: #f8fafb; }
.home-hero::before { content: ""; position: absolute; inset: 0 auto 0 62%; width: 1px; background: #d9e2e7; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 660px; }
.hero-copy { position: relative; z-index: 2; padding: 5rem 4rem 4rem 0; }
.hero-copy h1 { max-width: 770px; margin-bottom: 1.5rem; color: var(--ink); }
.hero-copy > p { max-width: 640px; font-size: 1.22rem; }
.hero-stats { display: flex; gap: 2.5rem; margin: 3.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-size: 1.35rem; font-weight: 800; }
.hero-stats dd { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.hero-visual { height: 100%; min-height: 660px; position: relative; overflow: hidden; background: var(--sky); }
.hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero-note { position: absolute; z-index: 4; left: 1.5rem; bottom: 2rem; display: flex; align-items: center; gap: .8rem; max-width: 300px; padding: 1rem; background: #fff; box-shadow: var(--shadow); border-radius: 12px; }
.hero-note div { display: flex; flex-direction: column; }
.hero-note small { color: var(--muted); line-height: 1.35; }
.pulse-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #279168; box-shadow: 0 0 0 6px #dff2e9; }

.audience-strip { background: var(--ink); color: #fff; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; }
.audience-grid > a { min-height: 138px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4rem; padding: 2rem 2.5rem; border-right: 1px solid rgba(255,255,255,.15); transition: background .2s; }
.audience-grid > a:hover { background: var(--blue-dark); }
.audience-number { align-self: start; color: #82adc8; font-size: .72rem; }
.audience-grid strong { display: block; margin-bottom: .25rem; font-size: 1.25rem; }
.audience-grid small { color: #b9cad6; }
.round-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section-soft { background: var(--soft); }
.section-events { background: var(--sand); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.7rem; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.1rem); }
.heading-note { max-width: 330px; margin: 0; color: var(--muted); font-size: .85rem; }
.event-list { display: grid; gap: 1px; background: #d9dfdf; border-top: 1px solid #d9dfdf; border-bottom: 1px solid #d9dfdf; }
.event-card { display: grid; grid-template-columns: 88px 1fr; gap: 1.5rem; padding: 1.8rem 2rem; background: var(--sand); }
.event-card > div:last-child { display: grid; grid-template-columns: minmax(120px, .35fr) 1.2fr .7fr auto; gap: 1.3rem; align-items: center; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid #d4d7d6; }
.event-date strong { font-size: 2rem; line-height: 1; }
.event-date span { color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.event-card h3 { margin: 0; font-size: 1.25rem; }
.event-card h3 a:hover { color: var(--blue); }
.event-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.article-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--sky); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .card-media img { transform: scale(1.035); }
.media-placeholder { height: 100%; display: grid; place-items: center; background: var(--sky); color: rgba(30,91,146,.38); }
.media-placeholder span { font-size: 1.35rem; font-weight: 900; letter-spacing: .2em; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: .8rem; }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { min-height: 4.5em; color: var(--muted); font-size: .92rem; }
.split-feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.split-feature > div:first-child > p { max-width: 520px; font-size: 1.06rem; }
.topic-list { border-top: 1px solid #ccd6dc; }
.topic-list a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 1rem; min-height: 65px; border-bottom: 1px solid #ccd6dc; font-weight: 700; }
.topic-list a > span { color: var(--red); font-size: .7rem; }
.topic-list a b { font-weight: 400; }
.topic-list a:hover { color: var(--blue); }
.directory-cta { color: #fff; background: var(--blue-dark); }
.directory-cta h2, .directory-cta p { color: #fff; }
.directory-cta-inner { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 5rem; }
.directory-cta-inner h2 { max-width: 650px; }
.directory-cta-inner p { color: #c2d3df; }
.search-box > label { display: block; margin-bottom: .6rem; color: #c2d3df; font-size: .8rem; font-weight: 700; }
.search-box > div { display: flex; padding: .4rem; background: #fff; border-radius: 8px; }
.search-box input { min-width: 0; flex: 1; border: 0; padding: .85rem; outline: 0; }
.search-box button { border: 0; border-radius: 5px; padding: 0 1.2rem; color: #fff; background: var(--red); font-weight: 700; cursor: pointer; }

.page-hero { padding: clamp(5rem, 9vw, 8rem) 0; background: #f6f8f9; }
.page-hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(3rem, 6vw, 6rem); }
.page-hero h1 { max-width: 850px; font-size: clamp(3rem, 6vw, 5.2rem); }
.page-hero p { max-width: 660px; font-size: 1.15rem; }
.page-hero-card, .login-teaser { padding: 2.2rem; background: #fff; border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.page-hero-card strong { display: block; margin-bottom: .6rem; }
.page-hero-card p { margin: 0; font-size: .95rem; }
.page-hero-visual { position: relative; min-height: 520px; background: var(--sky); box-shadow: var(--shadow); overflow: visible; }
.page-hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.page-hero-visual .page-hero-card { position: absolute; left: -2rem; right: 2rem; bottom: -2rem; z-index: 2; }
.page-hero-members { position: relative; min-height: 690px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--ink); }
.page-hero-background, .page-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-background { object-fit: cover; object-position: center; }
.page-hero-shade { background: rgba(7, 26, 43, .48); }
.page-hero-members .page-hero-grid { position: relative; z-index: 2; width: var(--container); grid-template-columns: 1.15fr .72fr; }
.page-hero-members h1, .page-hero-members > .container > div > p { color: #fff; }
.page-hero-members .button-ghost { color: #fff; border-color: rgba(255,255,255,.65); }
.page-hero-members .button-ghost:hover { border-color: var(--blue-dark); }
.login-teaser { color: var(--ink); }
.login-teaser > span { color: var(--red); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-teaser h2 { margin: .8rem 0; font-size: 2rem; }
.login-teaser p { color: var(--ink-2); }
.login-teaser .button { margin-top: .8rem; }
.topic-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.topic-tiles a { min-height: 180px; display: flex; flex-direction: column; padding: 1.5rem; background: var(--sky); border-bottom: 3px solid transparent; }
.topic-tiles a > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: auto; border-radius: 50%; background: #fff; color: var(--blue); font-weight: 800; }
.topic-tiles a strong { font-size: 1.2rem; }
.topic-tiles a small { margin-top: .4rem; color: var(--blue); }
.topic-tiles a:hover { border-color: var(--red); }
.compact-cta { padding: 3.5rem 0; color: #fff; background: var(--red-dark); }
.compact-cta h2 { margin: 0; color: #fff; font-size: clamp(1.9rem,4vw,3rem); }
.compact-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit-grid article { min-height: 230px; padding: 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit-grid article > span { color: var(--red); font-size: .72rem; font-weight: 800; }
.benefit-grid h3 { margin-top: 2.5rem; }
.benefit-grid p { color: var(--muted); font-size: .9rem; }

.breadcrumbs { display: flex; gap: .55rem; align-items: center; min-height: 48px; overflow: hidden; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
.listing-hero { padding: 5.5rem 0 4.5rem; background: var(--sky); }
.listing-hero h1 { max-width: 850px; margin-bottom: 1.2rem; font-size: clamp(3rem, 6vw, 5rem); }
.listing-hero p { max-width: 670px; margin: 0; font-size: 1.12rem; }
.events-listing-hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--ink); }
.listing-hero-background, .listing-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.listing-hero-background { object-fit: cover; object-position: center; }
.listing-hero-shade { background: rgba(6, 28, 47, .58); }
.events-listing-hero .container { position: relative; z-index: 2; }
.events-listing-hero h1, .events-listing-hero p { color: #fff; }
.narrow-left { padding-right: 26%; }
.section-listing { padding-top: 2.5rem; }
.filter-bar { display: grid; grid-template-columns: 1fr 260px auto; gap: .75rem; padding: 1rem; margin-bottom: 1.5rem; background: var(--soft); border: 1px solid var(--line); }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #c9d4dc; border-radius: 5px; background: #fff; color: var(--ink); padding: .7rem .85rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid rgba(30,91,146,.15); }
.result-summary { margin-bottom: 1.2rem; color: var(--muted); font-size: .88rem; }
.empty-state { grid-column: 1/-1; padding: 4rem; text-align: center; background: var(--soft); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .88rem; }
.pagination a { color: var(--blue); font-weight: 750; }
.pagination .disabled { color: #9aa8b3; }

.detail-header { max-width: 980px; padding-top: 5rem; padding-bottom: 3rem; text-align: center; }
.detail-header h1 { margin-bottom: 1.4rem; font-size: clamp(2.7rem, 6vw, 5rem); }
.lead { max-width: 780px; margin-inline: auto; font-size: 1.2rem; }
.detail-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem 1.6rem; margin-top: 1.8rem; color: var(--muted); font-size: .78rem; }
.detail-meta span + span { position: relative; }
.detail-meta span + span::before { content: ""; position: absolute; left: -.85rem; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.detail-image { max-width: 1080px; max-height: 560px; overflow: hidden; }
.detail-image img { width: 100%; max-height: 560px; object-fit: cover; }
.reading-layout { display: grid; grid-template-columns: 120px minmax(0, 720px); justify-content: center; gap: 4rem; padding-top: 4rem; padding-bottom: 7rem; }
.prose { min-width: 0; color: #263f53; font-family: Georgia, "Times New Roman", serif; font-size: 1.09rem; line-height: 1.85; }
.prose h2, .prose h3, .prose h4 { margin: 2.2em 0 .7em; color: var(--ink); font-family: Inter, "Segoe UI", sans-serif; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.45rem; }
.prose img { height: auto !important; margin: 2rem auto; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose table { width: 100% !important; border-collapse: collapse; font-family: Inter, sans-serif; font-size: .85rem; }
.prose td, .prose th { padding: .7rem; border: 1px solid var(--line); }
.prose [style*="font-family"], .prose [style*="font-size"] { font-family: inherit !important; font-size: inherit !important; }
.share-rail, .detail-index { position: sticky; top: 115px; align-self: start; display: flex; flex-direction: column; gap: .65rem; color: var(--muted); font-family: Inter, sans-serif; font-size: .73rem; }
.share-rail a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); font-weight: 800; }
.detail-index a { color: var(--blue); }
.medical-note { margin-top: 3rem; padding: 1.5rem; border-left: 4px solid var(--red); background: var(--sand); font-family: Inter, sans-serif; font-size: .9rem; }
.medical-note p { margin: .4rem 0 0; }
.alphabet { display: flex; flex-wrap: wrap; gap: .35rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.alphabet a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--blue); font-size: .8rem; font-weight: 700; }
.alphabet a:hover { color: #fff; background: var(--blue); }
.pathology-list > section { display: grid; grid-template-columns: 90px 1fr; padding: 2rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.pathology-list h2 { color: var(--red); font-size: 2.5rem; }
.pathology-list section > div { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; }
.pathology-list a { display: flex; align-items: center; justify-content: space-between; padding: 1rem; background: var(--soft); }
.pathology-list a span { color: var(--blue); font-size: .78rem; }

.directory-hero { padding: 5rem 0; color: #fff; background: var(--blue-dark); }
.directory-hero h1 { margin-bottom: .7rem; color: #fff; font-size: clamp(3rem,6vw,5.3rem); }
.directory-hero p { color: #c4d7e3; font-size: 1.08rem; }
.directory-search { max-width: 850px; margin-top: 2.2rem; }
.directory-search > label { display: block; margin-bottom: .6rem; color: #c4d7e3; font-size: .78rem; font-weight: 700; }
.directory-search > div { display: flex; padding: .45rem; background: #fff; border-radius: 7px; }
.directory-search input { border: 0; min-height: 50px; outline: 0; }
.directory-search button { min-width: 110px; border: 0; border-radius: 5px; color: #fff; background: var(--red); font-weight: 750; cursor: pointer; }
.directory-section { padding-top: 2.5rem; }
.directory-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.filter-sidebar { position: sticky; top: 115px; }
.filter-form { display: grid; gap: 1rem; padding: 1.3rem; background: var(--soft); border: 1px solid var(--line); }
.filter-form label { display: grid; gap: .35rem; color: var(--ink-2); font-size: .78rem; font-weight: 700; }
.filter-title { display: flex; justify-content: space-between; align-items: center; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.filter-title a { color: var(--blue); font-size: .7rem; }
.directory-toolbar { display: flex; justify-content: space-between; margin-bottom: 1rem; color: var(--muted); font-size: .8rem; }
.directory-toolbar p { margin: 0; }
.professional-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.professional-card { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.professional-photo { display: grid; place-items: center; aspect-ratio: 1/1; background: var(--sky); overflow: hidden; }
.professional-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .3s; }
.professional-card:hover .professional-photo img { transform: scale(1.03); }
.professional-photo > span { font-size: 2.5rem; font-weight: 800; color: var(--blue); }
.professional-card > div { padding: 1.1rem; }
.verified { color: var(--teal); font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.professional-card h2 { min-height: 2.4em; margin: .4rem 0; font-size: 1.12rem; }
.professional-card h2 a:hover { color: var(--blue); }
.professional-card p { min-height: 2.6em; margin-bottom: .7rem; color: var(--muted); font-size: .78rem; }
.mini-tags, .tag-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.mini-tags span, .tag-list span { padding: .25rem .45rem; background: var(--soft); color: var(--ink-2); font-size: .64rem; }
.mobile-filter-bar { display: none; }
.filter-dialog { width: min(440px,100%); height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; }
.filter-dialog::backdrop { background: rgba(16,42,67,.55); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.dialog-header button { border: 0; background: transparent; font-size: 1.8rem; }

.professional-profile { padding: 4rem 0 7rem; background: var(--soft); }
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 4rem; align-items: start; }
.profile-summary { position: sticky; top: 115px; padding: 1.8rem; background: #fff; border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.profile-photo { display: grid; place-items: center; aspect-ratio: 1/1; margin-bottom: 1.3rem; overflow: hidden; background: var(--sky); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.profile-photo span { font-size: 4rem; font-weight: 800; color: var(--blue); }
.profile-summary h1 { margin: .5rem 0; font-size: 2rem; }
.profile-summary > p { color: var(--muted); }
.profile-summary > small { display: block; margin-top: 1rem; color: var(--muted); line-height: 1.5; }
.profile-details { padding: 2rem 0; }
.profile-details > h2 { margin-bottom: 2.5rem; }
.profile-details section { padding: 1.5rem 0; border-top: 1px solid #d2dce2; }
.profile-details section h3 { font-size: 1rem; }
.profile-details section p { white-space: pre-line; }
.tag-list span { padding: .45rem .7rem; background: #fff; font-size: .78rem; }
.profile-notice { padding: 1.5rem; margin-top: 2rem; background: var(--sky); }
.profile-notice p { margin: .4rem 0; }

.event-calendar { display: grid; gap: 4rem; }
.calendar-month > h2 { margin-bottom: 1.5rem; font-size: 2rem; text-transform: capitalize; }
.event-detail { padding: 6rem 0 8rem; background: var(--soft); }
.event-detail-grid { display: grid; grid-template-columns: 1fr 370px; gap: 6rem; align-items: start; }
.event-detail h1 { margin-top: 1.3rem; font-size: clamp(3rem,6vw,5rem); }
.event-detail .lead { margin-inline: 0; }
.event-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.event-facts div { padding: 1.2rem; background: #fff; }
.event-facts dt { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.event-facts dd { margin: .4rem 0 0; font-weight: 700; }
.registration-card { padding: 2rem; background: var(--ink); color: #fff; }
.registration-card > span { color: #a8c4d5; font-size: .8rem; }
.registration-card > small { display: block; margin-top: 1rem; color: #a8c4d5; line-height: 1.4; }
.countdown { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin: 1.3rem 0; }
.countdown div { display: flex; flex-direction: column; padding: .8rem; text-align: center; background: rgba(255,255,255,.08); }
.countdown strong { font-size: 1.7rem; }
.countdown small { color: #a8c4d5; }

.organization-hero { position: relative; min-height: 680px; display: flex; align-items: center; padding: 8rem 0; overflow: hidden; color: #fff; background: var(--ink); }
.organization-hero-background, .organization-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.organization-hero-background { object-fit: cover; object-position: center; }
.organization-hero-shade { background: rgba(5, 24, 39, .32); }
.organization-hero .container { position: relative; z-index: 2; }
.organization-hero h1 { max-width: 1020px; color: #fff; font-size: clamp(3rem,7vw,6rem); }
.organization-hero p { max-width: 680px; color: #e0eaf0; font-size: 1.2rem; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.story-grid p { font-size: 1.08rem; }
.board-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.board-grid article { display: flex; align-items: center; gap: 1rem; min-height: 100px; padding: 1.2rem; background: #fff; border: 1px solid var(--line); }
.board-grid article > span { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 800; }
.board-grid small { color: var(--red); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.board-grid h3 { margin: .3rem 0 0; font-size: 1rem; }
.institution-numbers { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.institution-numbers div { display: flex; flex-direction: column; padding: 1.5rem; border-right: 1px solid var(--line); }
.institution-numbers div:last-child { border: 0; }
.institution-numbers strong { font-size: 2.5rem; }
.institution-numbers span { color: var(--muted); font-size: .78rem; }
.group-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.group-grid article { min-height: 135px; padding: 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.group-grid span { color: var(--red); font-size: .7rem; }
.group-grid h3 { margin-top: 2rem; font-size: 1rem; }
.table-shell { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
tbody th { color: var(--blue); }
.document-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.document-grid article { min-height: 240px; padding: 1.5rem; border: 1px solid var(--line); }
.document-grid article > span { display: inline-flex; padding: .25rem .5rem; color: var(--red); background: #f9ebed; font-size: .65rem; font-weight: 900; }
.document-grid h2 { margin: 2rem 0 .6rem; font-size: 1.3rem; }
.document-grid p { color: var(--muted); font-size: .88rem; }

.contact-page { padding: 7rem 0; color: #fff; background: var(--blue-dark); }
.contact-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 6rem; align-items: start; }
.contact-grid h1 { color: #fff; font-size: clamp(3rem,6vw,5rem); }
.contact-grid > div > p { color: #bad0dd; }
.contact-data { margin-top: 3rem; }
.contact-data div { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.contact-data dt { color: #91b1c5; font-size: .7rem; text-transform: uppercase; }
.contact-data dd { margin: .3rem 0 0; }
.contact-form { padding: 2rem; color: var(--ink); background: #fff; }
.contact-form > label, .form-row label { display: grid; gap: .4rem; margin-bottom: 1rem; font-size: .8rem; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label small { color: var(--red); }
.checkbox { display: flex !important; flex-direction: row; align-items: start; font-weight: 400 !important; }
.checkbox input { width: 18px; min-height: 18px; margin-top: .2rem; flex: none; }
.checkbox a { color: var(--blue); text-decoration: underline; }
.hp-field { position: absolute; left: -10000px; }
.alert { margin-bottom: 1rem; padding: 1rem; font-size: .85rem; }
.alert-success { color: #155f45; background: #e4f5ee; }
.alert-error { color: #842538; background: #fae9ec; }

.legal-page > header { max-width: 920px; padding-top: 5rem; padding-bottom: 3rem; text-align: center; }
.legal-page header h1 { font-size: clamp(3rem,6vw,5rem); }
.legal-page header p { font-size: 1.15rem; }
.legal-page header small { color: var(--muted); }
.legal-body { display: grid; grid-template-columns: 240px minmax(0,720px); justify-content: center; gap: 5rem; padding-bottom: 7rem; }
.legal-body > aside { position: sticky; top: 115px; align-self: start; display: flex; flex-direction: column; gap: .7rem; padding: 1rem; background: var(--soft); font-size: .8rem; }
.legal-body > aside a { color: var(--blue); }
.legal-body section { padding: 1.8rem 0; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.legal-body h2 { font-size: 1.8rem; }

.site-footer { padding-top: 5rem; color: #fff; background: #0b2236; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 3rem; padding-bottom: 4rem; }
.footer-grid h2 { margin-bottom: 1.2rem; color: #91afc2; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: .7rem; font-size: .86rem; }
.footer-grid p { margin: 0; color: #a9bdc9; font-size: .85rem; }
.footer-grid a:hover { color: #abd5ec; }
.brand-footer { margin-bottom: 1.5rem; }
.brand-footer .brand-type { color: #fff; }
.brand-footer .brand-type span { color: #b9d8e9; }
.footer-brand p { max-width: 330px; }
.footer-bottom { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid rgba(255,255,255,.13); }
.footer-bottom p { margin: 0; color: #8da4b3; font-size: .75rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; color: #b5c6d0; font-size: .75rem; }
.cookie-panel { position: fixed; z-index: 100; left: 50%; bottom: 1.2rem; width: min(920px, calc(100% - 2rem)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 80px rgba(3,26,45,.22); }
.cookie-panel[hidden] { display: none; }
.cookie-panel p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.cookie-actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.cookie-actions > a { color: var(--blue); font-size: .8rem; }

@media (max-width: 1050px) {
    .main-nav { gap: 1rem; font-size: .82rem; }
    .brand-header .brand-type span { display: none; }
    .brand-header .brand-type strong { max-width: 108px; white-space: normal; }
    .hero-copy { padding-right: 2rem; }
    .event-card > div:last-child { grid-template-columns: 110px 1fr auto; }
    .event-card p { display: none; }
    .professional-grid { grid-template-columns: repeat(2,1fr); }
    .group-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
    :root { --container: min(100% - 32px, 680px); }
    .utility-inner > span { display: none; }
    .utility-inner { justify-content: flex-end; }
    .header-inner { min-height: 70px; }
    .brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
    .brand-mark img { height: 46px; }
    .brand-header .brand-type strong { max-width: none; white-space: nowrap; }
    .brand-header .brand-type span { display: block; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; inset: 70px 0 auto; padding: 1rem 16px 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }
    .main-nav > a:not(.nav-cta) { padding: .7rem .4rem; border-bottom: 1px solid var(--line); }
    .main-nav > a:not(.nav-cta)::after { display: none; }
    .nav-cta { margin-top: .5rem; text-align: center; }
    .home-hero, .hero-grid { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { padding: 4.5rem 0 3rem; }
    .hero-copy h1 { font-size: clamp(3rem,12vw,4.8rem); }
    .hero-visual { min-height: 480px; }
    .audience-grid { grid-template-columns: 1fr; }
    .audience-grid > a { min-height: 115px; padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
    .article-grid { grid-template-columns: repeat(2,1fr); }
    .event-card > div:last-child { grid-template-columns: 1fr auto; }
    .event-card .tag { display: none; }
    .split-feature, .directory-cta-inner, .page-hero-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .directory-cta-inner { align-items: start; }
    .page-hero { padding: 4.5rem 0; }
    .page-hero-visual { min-height: 500px; margin-bottom: 1.5rem; }
    .page-hero-visual .page-hero-card { left: 1.2rem; right: 1.2rem; bottom: -1.5rem; }
    .page-hero-members { min-height: 760px; }
    .page-hero-members .page-hero-grid { grid-template-columns: 1fr; }
    .page-hero-members .page-hero-background { object-position: 58% center; }
    .events-listing-hero { min-height: 520px; }
    .organization-hero { min-height: 620px; }
    .benefit-grid { grid-template-columns: repeat(2,1fr); }
    .narrow-left { padding-right: 0; }
    .directory-layout { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; }
    .mobile-filter-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
    .mobile-filter-bar p { margin: 0; color: var(--muted); font-size: .8rem; }
    .button-filter span { display: grid; place-items: center; min-width: 22px; height: 22px; margin-left: .5rem; border-radius: 50%; background: #fff; color: var(--blue); }
    .filter-dialog .filter-form { border: 0; }
    .profile-grid, .event-detail-grid, .legal-body { grid-template-columns: 1fr; gap: 3rem; }
    .profile-summary, .legal-body > aside { position: static; }
    .reading-layout { grid-template-columns: minmax(0,720px); }
    .share-rail, .detail-index { position: static; flex-direction: row; flex-wrap: wrap; }
    .board-grid { grid-template-columns: repeat(2,1fr); }
    .group-grid { grid-template-columns: repeat(3,1fr); }
    .document-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 1/-1; }
}

@media (max-width: 560px) {
    :root { --container: calc(100% - 28px); }
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    .utility-inner nav { gap: 1rem; }
    .hero-copy { padding-top: 3.5rem; }
    .hero-copy h1 { font-size: 3.1rem; }
    .hero-copy > p { font-size: 1rem; }
    .hero-stats { gap: 1rem; justify-content: space-between; }
    .hero-stats dt { font-size: 1.1rem; }
    .hero-stats dd { max-width: 80px; }
    .hero-visual { min-height: 380px; }
    .hero-visual > img { object-position: center 22%; }
    .hero-note { right: 1rem; left: 1rem; bottom: 1rem; }
    .section { padding: 4.2rem 0; }
    .section-heading { align-items: start; flex-direction: column; margin-bottom: 2rem; }
    .article-grid, .topic-tiles, .benefit-grid, .professional-grid, .board-grid, .group-grid, .document-grid { grid-template-columns: 1fr; }
    .event-card { grid-template-columns: 60px 1fr; padding: 1.2rem .7rem; gap: .8rem; }
    .event-card > div:last-child { grid-template-columns: 1fr; gap: .6rem; }
    .event-card .text-link { font-size: .78rem; }
    .event-date strong { font-size: 1.5rem; }
    .event-date { align-self: stretch; }
    .compact-cta-inner { align-items: start; flex-direction: column; }
    .page-hero { padding: 3.8rem 0 4.8rem; }
    .page-hero h1 { font-size: 3rem; }
    .page-hero-visual { min-height: 410px; }
    .page-hero-card, .login-teaser { padding: 1.5rem; }
    .page-hero-members { min-height: 760px; padding-block: 4.5rem; }
    .page-hero-members .page-hero-background { object-position: 62% center; }
    .events-listing-hero { min-height: 480px; }
    .listing-hero-background { object-position: 60% center; }
    .organization-hero { min-height: 560px; padding: 5.5rem 0; }
    .organization-hero-background { object-position: 58% center; }
    .filter-bar { grid-template-columns: 1fr; }
    .detail-header { text-align: left; }
    .detail-header .lead { margin-left: 0; }
    .detail-meta { justify-content: flex-start; }
    .reading-layout { padding-top: 2rem; gap: 1.5rem; }
    .prose { font-size: 1rem; overflow-wrap: anywhere; }
    .pathology-list > section { grid-template-columns: 45px 1fr; }
    .pathology-list section > div { grid-template-columns: 1fr; }
    .directory-search > div { display: grid; }
    .directory-search button { min-height: 46px; }
    .directory-toolbar span { display: none; }
    .event-facts { grid-template-columns: 1fr; }
    .institution-numbers { grid-template-columns: 1fr; }
    .institution-numbers div { border-right: 0; border-bottom: 1px solid var(--line); }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
    .footer-brand { grid-column: 1/-1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; padding: 1.5rem 0; }
    .cookie-panel { align-items: stretch; flex-direction: column; gap: 1rem; }
    .cookie-actions { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
