/* ============================================================
   Components — header, nav, sections, cards, footer
   ============================================================ */

/* ----- Utility bar ----- */
.utility-bar { background-color: var(--ama-plum); color: rgba(255, 255, 255, 0.85); font-family: var(--f-manrope); font-size: 0.85rem; font-weight: 500; }
.utility-wrap { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 4%; max-width: var(--container-max); margin: 0 auto; }
.util-left p { margin: 0; }
.util-nav { display: flex; gap: 1.5rem; }
.util-nav a { transition: color 0.2s; }
.util-nav a:hover { color: #fff; }
.util-toggle { display: none; background: none; border: none; color: rgba(255, 255, 255, 0.85); cursor: pointer; padding: 0.25rem; align-items: center; gap: 0.4rem; font-family: var(--f-manrope); font-size: 0.85rem; font-weight: 500; }
.util-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ----- Main header ----- */
.site-header { position: sticky; top: 0; background: rgba(248, 247, 244, 0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1000; padding: 0.9rem 0; border-bottom: 1px solid rgba(var(--navy-rgb), 0.1); }
.main-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.header-left { display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-emblem { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--slate-navy); }
.brand-emblem svg, .brand-emblem img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 0.9; }
.brand-text { font-family: var(--f-cormorant); color: var(--slate-navy); font-weight: 700; font-size: 1.8rem; }
.brand-sub { font-family: var(--f-manrope); color: var(--ama-plum); text-transform: uppercase; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; margin-top: 5px; }
.membership-actions { display: flex; gap: 0.75rem; }

.main-nav { display: flex; justify-content: center; gap: 1.8rem; margin: 0 1rem; list-style: none; }
.main-nav > li { position: relative; }
.main-nav > li > a { font-family: var(--f-manrope); font-weight: 600; color: var(--slate-navy); font-size: 0.95rem; opacity: 0.85; transition: opacity 0.3s, color 0.3s; display: inline-block; padding: 0.5rem 0; }
.main-nav > li > a:hover { opacity: 1; color: var(--ama-plum); }
.main-nav > li.is-active > a { opacity: 1; color: var(--ama-plum); }

.has-dropdown > a::after { content: "▾"; font-size: 1em; margin-left: 5px; opacity: 0.6; position: relative; top: -1px; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: #fff; border-radius: var(--br-dropdown); box-shadow: var(--shadow-dropdown); border: 1px solid rgba(var(--navy-rgb), 0.05); padding: 0.5rem 0; width: max-content; min-width: 200px; opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 100; list-style: none; }
@media (hover: hover) { .main-nav > li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); } }
.dropdown-menu.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 0.75rem 1.5rem; font-family: var(--f-manrope); font-weight: 500; font-size: 0.9rem; color: var(--charcoal-ink); transition: background 0.2s, color 0.2s; }
.dropdown-menu a:hover { background: var(--paper-cream); color: var(--ama-plum); }

.actions-right { display: flex; align-items: center; gap: 1.5rem; font-family: var(--f-manrope); font-size: 0.95rem; font-weight: 700; color: var(--slate-navy); }
.actions-right a:hover { color: var(--ama-plum); }

/* ----- Hero ----- */
.hero { padding-top: 2.5rem; padding-bottom: 2rem; }
.hero-top-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 4%; margin-bottom: 1.75rem; flex-wrap: wrap; }
.hero-headline-wrap { flex: 1; min-width: 55%; max-width: 850px; }
.hero-sub-text-wrap { flex-basis: 380px; font-family: var(--f-manrope); color: var(--charcoal-ink); padding-bottom: 0.5rem; }
.hero-sub-text-wrap p { margin-bottom: 1.5rem; opacity: 0.8; font-size: 1.05rem; line-height: 1.55; }
.hero-visual { width: 100%; height: 60vh; min-height: 400px; border-radius: var(--br-image); background-color: var(--slate-navy); background-position: center 40%; background-size: cover; background-repeat: no-repeat; box-shadow: var(--shadow-hero); }

/* ----- Section header ----- */
.layout-pad { padding-top: 4.5rem; padding-bottom: 4.5rem; } /* longhand so it never clobbers .container's horizontal padding */
.section-header-block { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; gap: 1.5rem; }
.section-header-block h2 { margin-bottom: 0; }

/* ----- Editorial / gateway cards ----- */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.editorial-card { background-color: var(--card-white); border-radius: var(--br-card); padding: 3.5rem 3rem; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid rgba(var(--navy-rgb), 0.08); transition: transform 0.4s ease, box-shadow 0.4s ease; height: 100%; }
.editorial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.editorial-card h3 { font-size: 1.9rem; margin-bottom: 1.25rem; color: var(--slate-navy); }
.editorial-card p { opacity: 0.85; font-size: 1.1rem; line-height: 1.6; margin-bottom: 3rem; font-family: var(--f-spectral); }
.editorial-card--bordered { background: transparent; border: 2px solid rgba(var(--navy-rgb), 0.1); }
.editorial-card--dark { background: var(--charcoal-ink); color: #fff; }
.editorial-card--dark h3 { color: #fff; }
.editorial-card--dark p { opacity: 0.9; }
.editorial-card--dark .card-topic-label { color: rgba(255, 255, 255, 0.7); }
.card-topic-label { font-family: var(--f-manrope); text-transform: uppercase; letter-spacing: 0.1em; color: #8c6410; font-weight: 800; font-size: 0.8rem; margin-bottom: 1.5rem; display: block; } /* deep gold = WCAG AA on light cards; dark cards override to white below */
.icon-stamp { width: 70px; height: 70px; background: rgba(var(--plum-rgb), 0.05); color: var(--ama-plum); border-radius: 50%; border: 1px solid rgba(var(--plum-rgb), 0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.icon-stamp svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.editorial-card--bordered .icon-stamp { background: var(--card-white); border-color: var(--slate-navy); color: var(--slate-navy); }
.editorial-card--dark .icon-stamp { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }

/* ----- Split feature (Clinical Day) ----- */
.split-feature { background: var(--slate-navy); border-radius: var(--br-image); color: #fff; display: flex; overflow: hidden; align-items: stretch; margin: 6rem 0; box-shadow: var(--shadow-feature); }
.sf-content { padding: 6rem 5.5rem; flex: 1.1; display: flex; flex-direction: column; justify-content: center; }
.sf-content .eyebrow { font-family: var(--f-manrope); color: var(--gold-brass); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; display: block; }
.sf-content h2 { color: #fff; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; margin-bottom: 1.5rem; }
.sf-content p { font-family: var(--f-spectral); font-weight: 500; font-size: 1.15rem; opacity: 0.85; max-width: 550px; margin-bottom: 2rem; }
.sf-image { flex: 0.9; background-position: center center; background-size: cover; background-repeat: no-repeat; min-height: 100%; }

/* ----- News cards ----- */
.news-card { padding: 0; overflow: hidden; }
.news-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.news-card-body { padding: 2rem 2.5rem 2.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card-date { font-family: var(--f-manrope); font-weight: 600; font-size: 0.8rem; color: var(--charcoal-ink); opacity: 0.5; }
.news-card-body h3 { font-size: 1.5rem; margin: 0.75rem 0; }
.news-card-body p { font-size: 1rem; margin-bottom: 1.5rem; opacity: 0.85; }

/* ----- Events list ----- */
.events-list { display: flex; flex-direction: column; border: 1px solid rgba(var(--navy-rgb), 0.08); border-radius: var(--br-card); overflow: hidden; background: var(--card-white); }
.event-row { display: flex; justify-content: space-between; align-items: center; padding: 1.75rem 2.5rem; border-bottom: 1px solid rgba(var(--navy-rgb), 0.06); transition: background 0.2s; gap: 1.5rem; }
.event-row:last-child { border-bottom: none; }
.event-row:hover { background: var(--paper-cream); }
.event-row h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.event-row-meta { font-family: var(--f-manrope); font-weight: 500; font-size: 0.9rem; color: var(--charcoal-ink); opacity: 0.6; }
.event-row .pathway-link { margin-top: 0; white-space: nowrap; }

/* ----- Newsletter ----- */
.newsletter-panel { background: var(--ama-plum); border-radius: var(--br-image); padding: 4.5rem 5rem; display: flex; justify-content: space-between; align-items: center; gap: 3rem; flex-wrap: wrap; }
.newsletter-copy { flex: 1; min-width: 300px; }
.newsletter-copy h2 { color: #fff; font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 1rem; }
.newsletter-copy p { color: rgba(255, 255, 255, 0.8); font-family: var(--f-manrope); font-size: 1.05rem; }
.newsletter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.newsletter-form input { padding: 0.9rem 1.5rem; border-radius: var(--br-pill); border: 2px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); color: #fff; font-family: var(--f-manrope); font-size: 0.95rem; min-width: 280px; }
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.newsletter-form input:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); }
.newsletter-form .btn { background: #fff; color: var(--ama-plum); font-weight: 800; padding: 1rem 2rem; border-color: #fff; }

/* ----- Footer ----- */
.footer-pad { padding: 6rem 0 4rem 0; border-top: 1px solid rgba(var(--navy-rgb), 0.1); font-family: var(--f-manrope); }
.footer-top { display: flex; justify-content: space-between; gap: 4rem; flex-wrap: wrap; }
.footer-org { flex-basis: 360px; }
.logo-mark { color: var(--slate-navy); font-family: var(--f-cormorant); font-weight: 700; font-size: 2rem; line-height: 1; display: inline-block; margin-bottom: 1.5rem; }
.footer-org p { color: var(--charcoal-ink); font-size: 1.1rem; opacity: 0.85; margin-bottom: 1.5rem; font-family: var(--f-spectral); }
.footer-address { font-weight: 600; font-size: 0.95rem; opacity: 0.8; line-height: 1.7; }
.footer-address a:hover { color: var(--ama-plum); }
.footer-cols { display: flex; gap: 5rem; }
.footer-col h4 { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; color: var(--ama-plum); letter-spacing: 0.1em; margin-bottom: 2.2rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.footer-links a { color: var(--slate-navy); font-size: 1rem; opacity: 0.8; font-weight: 500; }
.footer-links a:hover { opacity: 1; color: var(--ama-plum); text-decoration: underline; }
.sub-footer { border-top: 1px solid rgba(var(--navy-rgb), 0.1); margin-top: 5rem; padding-top: 2rem; font-size: 0.85rem; color: var(--charcoal-ink); opacity: 0.7; }

/* ============================================================
   Interior pages — page hero, prose/blocks, tables, sections
   ============================================================ */
.page-hero { background: var(--slate-navy); color: #fff; padding: 4rem 0 4.5rem; }
.page-hero .eyebrow { color: var(--gold-brass); font-family: var(--f-manrope); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; display: block; margin-bottom: 1rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); margin: 0; }
.page-hero .page-tagline { font-family: var(--f-manrope); color: rgba(255, 255, 255, 0.8); font-size: 1.15rem; max-width: 640px; margin-top: 1rem; line-height: 1.5; }

/* Prose / blocks content */
.prose { max-width: 760px; margin: 0 auto; padding: 4rem 0; font-family: var(--f-spectral); font-size: 1.15rem; line-height: 1.7; color: var(--charcoal-ink); }
.prose-wide { max-width: 1040px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a:not(.btn):not(.pathway-link) { color: var(--ama-plum); text-decoration: underline; }
.prose img { border-radius: var(--br-card); margin: 2rem 0; max-width: 100%; }
.prose blockquote { border-left: 4px solid var(--gold-brass); padding-left: 1.5rem; font-style: italic; color: var(--slate-navy); margin: 2rem 0; }
.prose hr { border: none; border-top: 1px solid rgba(var(--navy-rgb), 0.12); margin: 2.5rem 0; }

/* Generic content section wrapper */
.content-section { padding: 4rem 0; }
.content-section + .content-section { padding-top: 0; }

/* Simple data table (fees, custodians, etc.) */
.ham-table { width: 100%; border-collapse: collapse; font-family: var(--f-manrope); font-size: 1rem; margin: 1.5rem 0; background: var(--card-white); border: 1px solid rgba(var(--navy-rgb), 0.1); border-radius: var(--br-dropdown); overflow: hidden; }
.ham-table th, .ham-table td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid rgba(var(--navy-rgb), 0.1); }
.ham-table th { background: var(--paper-cream); color: var(--slate-navy); font-weight: 700; }
.ham-table tr:last-child td { border-bottom: none; }
.ham-table tbody tr:hover td { background: rgba(var(--navy-rgb), 0.02); }

@media (max-width: 768px) {
  .page-hero { padding: 2.5rem 0 3rem; }
  .prose { padding: 2.5rem 0; }
  .ham-table { font-size: 0.9rem; }
  .ham-table th, .ham-table td { padding: 0.7rem 0.75rem; }
}

/* ============================================================
   Mobile nav toggle + menu (toggle hidden on desktop)
   ============================================================ */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; margin-left: auto; }
.nav-toggle-bars { display: block; width: 26px; height: 18px; position: relative; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--slate-navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 8px; }
.nav-toggle-bars span:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.mobile-menu { display: none; }
.mobile-menu .mm-list { list-style: none; }
.mobile-menu .mm-list > li { border-bottom: 1px solid rgba(var(--navy-rgb), 0.08); }
.mobile-menu .mm-top { display: block; padding: 1rem 0; font-family: var(--f-manrope); font-weight: 700; font-size: 1.05rem; color: var(--slate-navy); }
.mobile-menu .mm-heading { display: block; padding: 1rem 0 0.4rem; font-family: var(--f-manrope); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ama-plum); }
.mobile-menu .mm-group ul { list-style: none; padding-bottom: 0.75rem; }
.mobile-menu .mm-group ul a { display: block; padding: 0.55rem 0 0.55rem 1rem; font-family: var(--f-manrope); font-weight: 500; font-size: 1rem; color: var(--charcoal-ink); }
.mobile-menu .mm-group ul a:hover, .mobile-menu .mm-top:hover { color: var(--ama-plum); }
.mobile-menu .mm-actions { display: flex; gap: 0.75rem; padding: 1.25rem 0; }
.mobile-menu .mm-actions .btn { flex: 1; }
.mobile-menu .mm-utility { list-style: none; padding-top: 0.75rem; border-top: 1px solid rgba(var(--navy-rgb), 0.08); }
.mobile-menu .mm-utility a { display: block; padding: 0.55rem 0; font-family: var(--f-manrope); font-size: 0.9rem; color: var(--charcoal-ink); opacity: 0.8; }
.mobile-menu .mm-utility a:hover { opacity: 1; color: var(--ama-plum); }

/* Article featured image */
.article-hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--br-card); margin-bottom: 2rem; }

/* Single event details + CTA */
.event-details { list-style: none; margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--paper-cream); border: 1px solid rgba(var(--navy-rgb), 0.1); border-radius: var(--br-card); font-family: var(--f-manrope); }
.event-details li { padding: 0.35rem 0; }
.event-details li strong { color: var(--slate-navy); display: inline-block; min-width: 84px; }
.event-cta { margin-top: 2.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Footer logo image */
.footer-logo { display: inline-block; margin-bottom: 1.5rem; }
.footer-logo img { max-width: 260px; width: 100%; height: auto; display: block; }

/* Header crest sizing (overrides the earlier 48px) */
.brand-emblem { width: 52px; height: 52px; }

/* Event location map (OpenStreetMap embed) */
.event-map { margin: 1.5rem 0 2rem; }
.event-map iframe { width: 100%; height: 340px; border: 1px solid rgba(var(--navy-rgb), 0.15); border-radius: var(--br-card); display: block; }
.event-map .pathway-link { margin-top: 0.75rem; }
