/* ==========================================================================
   Dr. Sisay Bezabih, public site
   Theme tokens below are defaults; the live values are injected from
   Admin → Settings → Branding (see layouts/main.php).
   ========================================================================== */
:root {
    --primary: #17457A;
    --primary-rgb: 23, 69, 122;
    --primary-dark: #0F2E52;
    --accent: #D99A1E;
    --accent-rgb: 217, 154, 30;
    --accent-text: #7e5911;          /* amber darkened for small text (WCAG AA on paper) */
    --leaf: #2E8B6E;
    --ink: #14213D;
    --ink-2: #33405a;
    --muted: #56627A;
    --paper: #F5F7FA;
    --paper-2: #EBEFF5;
    --surface: #ffffff;
    --line: #DEE3EB;
    --line-2: #C8D0DC;
    --success: #2f7d5b;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06), 0 2px 8px rgba(20, 33, 61, .04);
    --shadow: 0 12px 32px -14px rgba(20, 33, 61, .2), 0 2px 6px rgba(20, 33, 61, .05);
    --shadow-lg: 0 30px 60px -22px rgba(20, 33, 61, .3);
    --font-heading: 'Plus Jakarta Sans', 'Noto Sans Ethiopic', system-ui, sans-serif;
    --font-body: 'Source Sans 3', 'Noto Sans Ethiopic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--ink); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
::selection { background: rgba(var(--accent-rgb), .3); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; color: #fff; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.text-muted-2 { color: var(--muted) !important; }
.author-me { color: var(--ink); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.35rem; transition: all .25s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-lg { padding: .8rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: .4rem .9rem; font-size: .88rem; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-border-color: var(--primary-dark); --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); box-shadow: 0 8px 20px -10px rgba(var(--primary-rgb), .6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(var(--primary-rgb), .6); }
.btn-accent { background: var(--accent); border: 1px solid var(--accent); color: #1d1606; }
.btn-accent:hover { background: #c4871a; border-color: #c4871a; color: #1d1606; transform: translateY(-1px); }
.btn-outline-ink { border: 1.5px solid var(--line-2); color: var(--ink); background: var(--surface); }
.btn-outline-ink:hover { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb), .04); }
.btn-outline-light-2 { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-outline-light-2:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-link-ink { color: var(--ink); background: none; border: 0; padding-left: .5rem; padding-right: .5rem; }
.btn-link-ink:hover { color: var(--primary); }
.btn-icon { width: 42px; height: 42px; border-radius: 50%; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }
.btn .btn-loading { display: none; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Announcement ---------- */
.announcement-bar { background: var(--primary-dark); color: rgba(255, 255, 255, .9); font-size: .9rem; padding: .5rem 0; text-align: center; }
.announcement-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.announcement-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .3); flex: none; }

/* ---------- Header (transparent over the hero, solid on scroll) ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--paper) 80%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.is-home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20, 33, 61, .35); background: color-mix(in srgb, var(--paper) 95%, transparent); }
@media (max-width: 1199.98px) { .site-header, .site-header.is-scrolled, .is-home .site-header:not(.is-scrolled) { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); } }
.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1rem; letter-spacing: .02em; flex: none; box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .9); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.brand-tagline { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { max-height: 48px; width: auto; }
.navbar-nav .nav-link { color: var(--ink-2); font-weight: 600; font-size: .98rem; padding: .5rem .75rem !important; position: relative; border-radius: 8px; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary); }
@media (min-width: 1200px) {
    .navbar-nav .nav-link::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
    .navbar-nav .nav-link.dropdown-toggle::after { display: none; }
    .navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
    .navbar-nav .dropdown-toggle { padding-right: 1.6rem !important; }
    .navbar-nav .dropdown-toggle::before { content: '\F282'; font-family: bootstrap-icons; position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); font-size: .7rem; }
}
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .5rem; min-width: 230px; }
.dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-size: .96rem; color: var(--ink-2); display: flex; gap: .6rem; align-items: center; }
.dropdown-item i { color: var(--primary); }
.dropdown-item:hover, .dropdown-item.active { background: var(--paper-2); color: var(--primary); }
.navbar-toggler { padding: .5rem; width: 42px; height: 42px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; }
.offcanvas { background: var(--paper); }
.offcanvas-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.offcanvas-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link { font-size: 1.05rem; padding: .7rem .5rem !important; border-bottom: 1px solid var(--line); border-radius: 0; }
    .navbar-nav .dropdown-menu { border: 0; box-shadow: none; background: transparent; padding-left: .75rem; }
}
@media (min-width: 1200px) {
    .site-header .offcanvas { position: static; visibility: visible !important; transform: none !important; background: transparent; border: 0; width: auto; flex-grow: 1; }
    .site-header .offcanvas-header { display: none; }
    .site-header .offcanvas-body { display: flex; align-items: center; padding: 0; overflow: visible; }
    .site-header .navbar-toggler { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-nav .nav-link { padding: .5rem .5rem !important; font-size: .93rem; }
    .navbar-nav .nav-link::after { left: .5rem; right: .5rem; }
    .navbar-nav .dropdown-toggle { padding-right: 1.3rem !important; }
    .brand-tagline { display: none; }
    .navbar-nav.me-xl-3 { margin-right: .5rem !important; }
}
@media (max-width: 400px) { .brand-name { font-size: .98rem; } .brand-tagline { display: none; } }

/* ---------- Section primitives ---------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--paper-2); }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.eyebrow-center { justify-content: center; }
.eyebrow-light { color: #ecc777; }
.eyebrow-light::before { background: #ecc777; }
.section-title { font-size: clamp(1.75rem, 3.1vw, 2.5rem); margin-bottom: 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.section-head .section-title { margin-bottom: 0; }
.subhead { font-size: 1.3rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.subhead .bi { color: var(--primary); }
.lead-text { font-size: 1.15rem; color: var(--ink-2); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); text-decoration: none; }
a.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip .count { font-size: .76rem; font-weight: 700; background: var(--paper-2); color: var(--ink-2); border-radius: 999px; padding: 0 .45rem; }
.badge-soft, .badge-accent, .badge-outline, .badge-theme, .badge-oa, .badge-mode { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; letter-spacing: .01em; line-height: 1.4; text-decoration: none; }
.badge-soft { background: rgba(var(--primary-rgb), .08); color: var(--primary); }
.badge-accent { background: rgba(var(--accent-rgb), .16); color: var(--accent-text); }
.badge-outline { border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.badge-theme { --theme: var(--primary); background: color-mix(in srgb, var(--theme) 12%, #fff); color: color-mix(in srgb, var(--theme) 75%, #000); border: 1px solid color-mix(in srgb, var(--theme) 28%, #fff); }
.badge-theme::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--theme); }
a.badge-theme:hover { background: color-mix(in srgb, var(--theme) 20%, #fff); }
.badge-oa { background: #e8f4ec; color: #1e6a43; }
.badge-mode { background: var(--paper-2); color: var(--ink-2); }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 .5rem; border-radius: 999px; background: rgba(var(--primary-rgb), .08); color: var(--primary); font: 700 .78rem var(--font-body); }
.review-flag { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Hexagon / molecule motif ---------- */
.hex-pattern, .page-hero-pattern, .cta-pattern, .footer-pattern { position: absolute; inset: 0; background-image: url('../img/pattern.svg'); background-size: 84px 97px; opacity: .1; pointer-events: none; }
.hero .hex-pattern { mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 56px); }
.hero::before { content: ''; position: absolute; width: 680px; height: 680px; right: -180px; top: -160px; background: radial-gradient(circle, rgba(var(--accent-rgb), .16), transparent 65%); pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 520px; height: 520px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(var(--primary-rgb), .12), transparent 65%); pointer-events: none; }
.hero-bg-image { position: absolute; inset: 0; background: var(--hero-bg) center/cover no-repeat; opacity: .12; }
.availability { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; position: relative; flex: none; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2fa36b; opacity: .5; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .9rem; }
.hero-title { font-size: clamp(2.5rem, 5.8vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 1rem; }
.hero-role { font-family: var(--font-heading); font-size: clamp(1.1rem, 1.9vw, 1.4rem); font-weight: 600; color: var(--primary); margin-bottom: 1rem; }
.hero-badge-line { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem .45rem .55rem; border-radius: 999px; background: rgba(var(--accent-rgb), .14); color: var(--accent-text); font-weight: 700; font-size: .95rem; margin-bottom: 1.4rem; }
.hero-badge-line i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #1d1606; font-size: .9rem; }
.hero-subtitle { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 620px; margin-bottom: 2rem; }
.hero-centered .hero-subtitle, .hero-minimal .hero-subtitle { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-profiles { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-profiles a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 1.1rem; transition: all .25s var(--ease); }
.hero-profiles a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.hero-avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: var(--shadow), 0 0 0 2px var(--accent); margin-bottom: 1.5rem; }
.hero-minimal { padding-bottom: 110px; }

.hero-portrait { position: relative; max-width: 430px; margin: 0 auto; padding: 24px 24px 40px; }
.portrait-frame { position: relative; z-index: 2; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: linear-gradient(160deg, var(--primary), var(--primary-dark)); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease); }
.hero-portrait:hover .portrait-frame img { transform: scale(1.04); }
.portrait-monogram { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: clamp(5rem, 12vw, 8rem); color: rgba(255, 255, 255, .92); letter-spacing: -.04em; }
.portrait-monogram::before { content: ''; position: absolute; inset: 0; background-image: url('../img/pattern-light.svg'); background-size: 84px 97px; opacity: .12; }
.portrait-ring { position: absolute; z-index: 1; inset: 8px 0 24px 40px; border-radius: 999px 999px 28px 28px; border: 1.5px solid var(--accent); transform: translate(14px, 14px); }
.float-badge { position: absolute; z-index: 3; display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-width: 250px; animation: float 6s ease-in-out infinite; }
.float-badge strong { display: block; font-family: var(--font-heading); font-size: .95rem; line-height: 1.25; color: var(--ink); }
.float-badge small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.float-badge-1 { left: -40px; top: 64px; }
.float-badge-2 { right: -34px; top: 46%; animation-delay: -2s; }
.float-badge-3 { left: -20px; bottom: 54px; animation-delay: -4s; }
.float-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--primary); color: #fff; }
.float-icon-accent { background: var(--accent); color: #1d1606; }
.float-icon-leaf { background: var(--leaf); color: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 575.98px) {
    .hero-portrait { padding: 16px 12px 32px; }
    .float-badge { max-width: 190px; padding: .55rem .75rem; }
    .float-badge-1 { left: -6px; top: 40px; }
    .float-badge-2 { right: -6px; }
    .float-badge-3 { left: -6px; bottom: 30px; }
    .float-badge small { display: none; }
}

/* ---------- Impact counters ---------- */
.stats-band { background: var(--primary); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats-band::after { content: ''; position: absolute; inset: 0; background-image: url('../img/pattern-light.svg'); background-size: 84px 97px; opacity: .07; pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; position: relative; z-index: 1; }
.stat { text-align: center; padding: .5rem; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 1px; background: rgba(255, 255, 255, .15); }
.stat-icon { font-size: 1.4rem; color: var(--accent); }
.stat-value { font-family: var(--font-heading); font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.1; margin: .35rem 0; }
.stat-label { font-size: .92rem; color: rgba(255, 255, 255, .82); line-height: 1.35; }
@media (max-width: 575.98px) { .stat + .stat::before { display: none; } .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Current roles ---------- */
.now-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.now-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--paper)); }
.now-label { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--success); }
.now-org { font-size: .9rem; color: var(--muted); }
.now-list { list-style: none; padding: 1.25rem 1.5rem; margin: 0; display: grid; gap: 1.1rem; }
.now-list li { display: flex; gap: .9rem; }
.now-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); margin-top: .5rem; flex: none; }
.now-list strong { display: block; font-family: var(--font-heading); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.now-list small { color: var(--muted); font-size: .9rem; }
.now-card-foot { padding: 1rem 1.5rem 1.25rem; background: var(--paper); border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.now-card-foot strong { color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .35rem; }
.now-card-foot ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; }

/* ---------- Research theme cards ---------- */
.area-card { --theme: var(--primary); display: flex; flex-direction: column; height: 100%; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: all .35s var(--ease); }
.area-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--theme); }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); border-color: transparent; }
.area-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--theme) 12%, #fff); color: color-mix(in srgb, var(--theme) 80%, #000); font-size: 1.4rem; margin-bottom: 1.1rem; transition: all .35s var(--ease); }
.area-card:hover .area-icon { background: var(--theme); color: #fff; }
.area-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.area-card p { color: var(--muted); font-size: .96rem; margin: 0 0 1rem; flex: 1; }
.area-meta { display: flex; gap: 1rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.area-meta i { color: var(--theme); }

/* ---------- IP impact band ---------- */
.impact-band { background: radial-gradient(circle at 85% 15%, rgba(var(--accent-rgb), .25), transparent 45%), linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.impact-band .section-title { color: #fff; }
.impact-band p { color: rgba(255, 255, 255, .85); font-size: 1.08rem; }
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.impact-tile { padding: 1.5rem; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.impact-tile i { color: var(--accent); font-size: 1.3rem; }
.impact-value { display: block; font-family: var(--font-heading); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.05; margin: .35rem 0; color: #fff; }
.impact-label { font-size: .95rem; color: rgba(255, 255, 255, .82); }
.seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #1d1606; font-size: 1.7rem; box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .2); margin-bottom: 1.25rem; }

/* ---------- Publications ---------- */
.pub-list { display: grid; gap: 0; }
.pub-item { display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.pub-item:first-child { padding-top: .25rem; }
.pub-year { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1.3; }
.pub-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .55rem; }
.pub-title { font-size: 1.12rem; line-height: 1.4; margin-bottom: .35rem; font-weight: 700; }
.pub-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease); }
.pub-title a:hover { background-size: 100% 2px; color: var(--primary); }
.pub-authors { font-size: .95rem; color: var(--ink-2); margin-bottom: .25rem; }
.pub-venue { color: var(--muted); font-size: .95rem; font-style: italic; margin-bottom: .6rem; }
.pub-actions { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.pub-action { font-size: .9rem; font-weight: 700; color: var(--primary); text-decoration: none; background: none; border: 0; padding: 0; display: inline-flex; gap: .35rem; align-items: center; }
.pub-action:hover { color: var(--primary-dark); text-decoration: underline; }
.pub-item-compact .pub-title { font-size: 1.02rem; }
@media (max-width: 575.98px) { .pub-item { grid-template-columns: 1fr; gap: .25rem; } .pub-year { font-size: 1rem; } }
.year-divider { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: 1rem; margin: 2rem 0 .25rem; }
.year-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.year-divider:first-child { margin-top: 0; }
.results-bar { font-size: .95rem; color: var(--muted); margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line-2); }
.js-results { transition: opacity .2s; }
.js-results.is-loading { opacity: .4; pointer-events: none; }
.summary-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.summary-bar > div { background: var(--surface); padding: 1rem 1.25rem; }
.summary-bar strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.summary-bar span { font-size: .88rem; color: var(--muted); }
@media (max-width: 575.98px) { .summary-bar { grid-template-columns: 1fr; } }

.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.filter-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.filter-list { display: grid; gap: .2rem; }
.filter-option { display: flex; align-items: center; gap: .6rem; padding: .45rem .65rem; border-radius: 10px; cursor: pointer; font-size: .96rem; transition: background .2s; }
.filter-option:hover { background: var(--paper); }
.filter-option input { accent-color: var(--primary); }
.filter-option span { flex: 1; display: inline-flex; align-items: center; gap: .45rem; }
.filter-option .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--theme, var(--primary)); flex: none; }
.filter-option em { font-style: normal; font-size: .8rem; color: var(--ink-2); background: var(--paper-2); border-radius: 999px; padding: 0 .5rem; }
.filter-option:has(input:checked) { background: rgba(var(--primary-rgb), .07); color: var(--primary); font-weight: 700; }
.search-input { position: relative; }
.search-input i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input .form-control { padding-left: 2.4rem; }
.export-box { position: relative; display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line-2); transition: border-color .2s; }
.export-box:hover { border-color: var(--primary); }
.export-box > i { font-size: 1.3rem; color: var(--primary); }
.export-box strong { display: block; font-size: .95rem; }
.export-box span { font-size: .85rem; color: var(--muted); }

.pub-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.pub-meta-grid > div { background: var(--surface); padding: 1rem 1.25rem; }
.pub-meta-grid > div.wide { grid-column: 1 / -1; }
.pub-meta-grid dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.pub-meta-grid dd { margin: 0; font-weight: 500; word-break: break-word; }
.doi-box { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.doi-box code { background: var(--paper-2); color: var(--ink); padding: .15rem .45rem; border-radius: 6px; font-size: .88rem; }
.btn-copy { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: .15rem .55rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.btn-copy:hover { border-color: var(--primary); color: var(--primary); }

.cite-tabs .nav-link { border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: .9rem; padding: .35rem .9rem; }
.cite-tabs .nav-link.active { background: var(--primary); color: #fff; }
.cite-output { white-space: pre-wrap; word-break: break-word; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; font-size: .9rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); margin: 0; min-height: 90px; }
.modal-content { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }

/* ---------- Cards: projects, posts, albums ---------- */
.project-card, .post-card, .album-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-decoration: none; color: var(--ink); }
.project-card:hover, .post-card:hover, .album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.project-card-media, .post-card-media, .album-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .cover-img, .post-card:hover .cover-img, .album-card:hover .cover-img { transform: scale(1.05); }
.cover-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: rgba(255, 255, 255, .92); font-size: 2rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); position: relative; }
.cover-fallback::before { content: ''; position: absolute; inset: 0; background-image: url('../img/pattern-light.svg'); background-size: 84px 97px; opacity: .12; }
.cover-fallback span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; position: relative; }
.cover-fallback i { position: relative; }
.cover-fallback-1 { background: linear-gradient(135deg, #7a5a17, var(--accent)); }
.cover-fallback-2 { background: linear-gradient(135deg, #4b6e3c, var(--leaf)); }
.cover-fallback-3 { background: linear-gradient(135deg, #2c4357, #3E5C76); }
.project-type { position: absolute; left: 1rem; top: 1rem; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.project-card-body, .post-card-body, .album-body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-meta, .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .86rem; color: var(--muted); margin-bottom: .75rem; }
.project-title, .post-title { font-size: 1.14rem; line-height: 1.35; margin-bottom: .6rem; }
.project-title a, .post-title a { color: var(--ink); text-decoration: none; }
.project-title a:hover, .post-title a:hover { color: var(--primary); }
.project-summary, .post-excerpt { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; flex: 1; }
.project-partner { font-size: .88rem; color: var(--ink-2); margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); }
.project-partner i { color: var(--primary); }
.role-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: var(--accent-text); background: rgba(var(--accent-rgb), .14); padding: .2rem .6rem; border-radius: 999px; }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 999px; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ongoing { background: rgba(47, 163, 107, .13); color: #1d6f48; }
.status-completed { background: rgba(var(--primary-rgb), .09); color: var(--primary); }
.status-published { background: #e6eef6; color: #2d4a63; }
.status-submitted, .status-filed, .status-in_progress { background: rgba(var(--accent-rgb), .16); color: var(--accent-text); }
.status-planned { background: var(--paper-2); color: var(--ink-2); }
.status-granted, .status-registered { background: rgba(47, 163, 107, .13); color: #1d6f48; }
.post-cat { font-weight: 700; color: var(--accent-text); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.album-count { position: absolute; right: .9rem; bottom: .9rem; background: rgba(12, 24, 44, .72); color: #fff; font-size: .8rem; padding: .25rem .65rem; border-radius: 999px; }
.album-body h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.album-body p { font-size: .9rem; color: var(--muted); margin: 0; }

.outcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.outcome { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; border-top: 3px solid var(--accent); }
.outcome strong { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--primary); margin-bottom: .3rem; }
.outcome span { font-size: .95rem; color: var(--ink-2); }
.outcome-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.outcome-list li { display: flex; gap: .6rem; align-items: flex-start; }
.outcome-list i { color: var(--success); margin-top: .2rem; }

.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.featured-post > * { min-width: 0; }
.featured-post-media { display: block; min-height: 320px; }
.featured-post-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.featured-post-title { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin: .5rem 0 1rem; }
.featured-post-title a { color: var(--ink); text-decoration: none; }
.featured-post-body p { color: var(--muted); }
@media (max-width: 991.98px) { .featured-post { grid-template-columns: 1fr; } .featured-post-media { min-height: 0; aspect-ratio: 16/9; } .featured-post-body { padding: 1.75rem; } }

/* ---------- Speaking & training ---------- */
.talk-year { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--primary); display: flex; align-items: center; gap: 1rem; margin: 2.25rem 0 1rem; }
.talk-year::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.talk-year:first-child { margin-top: 0; }
.talk-list { display: grid; gap: 1rem; }
.talk-item { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; transition: box-shadow .3s, border-color .3s; scroll-margin-top: calc(var(--header-h) + 20px); }
.talk-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.talk-item:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.talk-date { border-radius: 14px; background: var(--paper-2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .6rem .4rem; font-weight: 700; font-size: .88rem; color: var(--ink-2); line-height: 1.25; min-height: 80px; }
.talk-date i { font-size: 1.3rem; color: var(--primary); margin-bottom: .2rem; }
.talk-type { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .3rem; }
.talk-body h3 { font-size: 1.1rem; line-height: 1.4; margin-bottom: .3rem; font-style: italic; }
.talk-event { font-size: .97rem; color: var(--ink-2); margin-bottom: .45rem; }
.talk-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .88rem; color: var(--muted); }
.talk-meta .sep { color: var(--line-2); }
.talk-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .6rem; }
@media (max-width: 575.98px) { .talk-item { grid-template-columns: 1fr; padding: 1.1rem; } .talk-date { flex-direction: row; gap: .5rem; min-height: 0; justify-content: flex-start; padding: .4rem .7rem; width: fit-content; } .talk-date i { margin: 0; } }
.engage-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.country-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.country-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .5rem .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.country-chip b { min-width: 24px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--primary); color: #fff; font-size: .78rem; padding: 0 .4rem; }
a.country-chip:hover, .country-chip.active { border-color: var(--primary); color: var(--primary); }
.globe-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1.1rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-top: 2rem; }
.globe-strip > strong { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-heading); }
.globe-strip > strong i { color: var(--primary); }

/* ---------- Testimonials ---------- */
.testimonial-carousel { max-width: 820px; margin: 0 auto; padding-bottom: 3rem; }
.testimonial { text-align: center; margin: 0; padding: 0 1rem; }
.testimonial-mark { font-size: 3.5rem; color: var(--accent); line-height: 1; display: block; }
.testimonial blockquote p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: 1.5; color: var(--ink); font-weight: 500; margin: 1rem 0 2rem; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: .9rem; text-align: left; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption small { color: var(--muted); }
.testimonial-photo, .testimonial-initials { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-initials { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; }
.testimonial-carousel .carousel-indicators { bottom: 0; margin: 0; }
.testimonial-carousel .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; background: var(--primary); border: 0; opacity: .2; }
.testimonial-carousel .carousel-indicators .active { opacity: 1; }

/* ---------- Partners strip (text chips; logos optional) ---------- */
.partners-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.partners-label { text-align: center; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1.5rem; }
.partner-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.partner { display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink-2); font-family: var(--font-heading); font-weight: 600; font-size: .95rem; transition: all .25s; }
.partner:hover { border-color: var(--primary); color: var(--primary); }
.partner img { max-height: 32px; width: auto; filter: grayscale(1); opacity: .8; }
.partner:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb), .22), transparent 40%), linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.cta-band .cta-pattern { background-image: url('../img/pattern-light.svg'); opacity: .08; }
.cta-title { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta-text { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.engage-card { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; transition: all .3s var(--ease); }
.engage-card i { font-size: 1.5rem; color: var(--accent); margin-bottom: .4rem; }
.engage-card strong { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 700; }
.engage-card span { font-size: .95rem; color: rgba(255, 255, 255, .8); }
.engage-card:hover { background: rgba(255, 255, 255, .13); color: #fff; transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .7); }

/* ---------- Compact page bar (inner pages) ---------- */
.page-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 0 18px; position: relative; overflow: hidden; }
.page-bar .page-hero-pattern { opacity: .06; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.page-bar-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; position: relative; }
.page-bar-main { min-width: 0; flex: 1 1 420px; }
.page-bar .breadcrumb { font-size: .86rem; margin-bottom: .25rem; --bs-breadcrumb-divider-color: var(--line-2); }
.page-bar .breadcrumb a { color: var(--muted); text-decoration: none; }
.page-bar .breadcrumb a:hover { color: var(--primary); }
.page-bar .breadcrumb-item.active { color: var(--ink-2); }
.page-bar-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; margin: 0; max-width: 980px; }
.page-bar-eyebrow { display: block; font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .15rem; }
.page-bar-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .9rem; color: var(--muted); padding-bottom: .2rem; }
.page-bar-meta i { color: var(--primary); margin-right: .3rem; }
.page-bar + .section, .page-bar + section.section { padding-top: 40px; }

/* ---------- Prose ---------- */
.prose { color: var(--ink-2); }
.prose-lg { font-size: 1.12rem; line-height: 1.8; }
.prose p { margin-bottom: 1.15em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .7); }
.prose blockquote { border-left: 3px solid var(--accent); padding: .5rem 0 .5rem 1.4rem; margin: 1.8rem 0; font-family: var(--font-heading); font-size: 1.2rem; color: var(--ink); }
.prose img { border-radius: 12px; height: auto; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.prose > :last-child { margin-bottom: 0; }
.article-cover { margin: 0 0 2rem; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-lead { font-family: var(--font-heading); font-size: 1.28rem; line-height: 1.55; color: var(--ink); margin-bottom: 1.75rem; font-weight: 500; }
.article-share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 2.5rem 0; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-share span { font-weight: 700; font-size: .85rem; margin-right: .5rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.article-share a, .article-share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: all .2s; }
.article-share a:hover, .article-share button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .2s; }
.post-nav a:hover { border-color: var(--primary); }
.post-nav small { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.post-nav span { font-weight: 700; line-height: 1.35; }
.post-nav-next { text-align: right; grid-column: 2; }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } .post-nav-next { grid-column: 1; } }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 1.25rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.side-title { font-size: 1.05rem; margin-bottom: 1rem; }
.side-cats { list-style: none; padding: 0; margin: 0; }
.side-cats a { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); text-decoration: none; font-size: .97rem; }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats a:hover, .side-cats a.active { color: var(--primary); font-weight: 700; }
.side-cats a span { font-size: .78rem; background: var(--paper-2); padding: .05rem .5rem; border-radius: 999px; color: var(--ink-2); }
.side-popular { padding-left: 1.2rem; margin: 0; display: grid; gap: .9rem; }
.side-popular li::marker { color: var(--primary); font-family: var(--font-heading); font-weight: 700; }
.side-popular a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; font-size: .97rem; }
.side-popular a:hover { color: var(--primary); }
.side-popular small { color: var(--muted); font-size: .82rem; }
.author-card { position: relative; display: flex; align-items: center; gap: 1rem; }
.author-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-card strong { display: block; font-family: var(--font-heading); }
.author-card small { color: var(--muted); font-size: .86rem; }

/* ---------- About ---------- */
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.profile-card-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; }
.profile-card-monogram { aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(160deg, var(--primary), var(--primary-dark)); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 5rem; }
.profile-card-body { padding: 1.5rem; }
.profile-card-name { font-size: 1.35rem; margin-bottom: .2rem; }
.profile-card-title { color: var(--muted); font-size: .97rem; margin-bottom: 1.25rem; }
.fact-list { margin: 0 0 1.25rem; display: grid; gap: .8rem; }
.fact-list div { display: grid; gap: .1rem; }
.fact-list dt { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact-list dt i { color: var(--primary); margin-right: .25rem; }
.fact-list dd { margin: 0; font-size: .97rem; font-weight: 500; word-break: break-word; }
.profile-card-social { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); justify-content: center; }
.profile-card-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--paper); text-decoration: none; transition: all .2s; }
.profile-card-social a:hover { background: var(--primary); color: #fff; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 190px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 40px; position: relative; padding-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: 184px; top: 1.4rem; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); border: 3px solid var(--line-2); }
.timeline-item.is-current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .2); }
.timeline-date { text-align: right; font-size: .9rem; font-weight: 700; color: var(--ink-2); padding-top: 1.15rem; }
.timeline-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.5rem; transition: box-shadow .3s; }
.timeline-card:hover { box-shadow: var(--shadow); }
.timeline-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.timeline-org { font-size: .95rem; color: var(--ink-2); margin-bottom: .4rem; }
.timeline-org i { color: var(--primary); }
.timeline-desc { font-size: .97rem; color: var(--muted); margin: 0 0 .4rem; }
.timeline-highlights { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .96rem; color: var(--ink-2); display: grid; gap: .25rem; }
@media (max-width: 767.98px) {
    .timeline::before { left: 7px; }
    .timeline-item { grid-template-columns: 1fr; gap: .4rem; padding-left: 32px; }
    .timeline-item::before { left: 1px; top: .35rem; }
    .timeline-date { text-align: left; padding-top: 0; }
}

.edu-card, .skill-card, .service-card, .course-card, .lang-card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: all .3s var(--ease); }
.edu-card:hover, .course-card:hover, .skill-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.edu-icon, .skill-icon, .course-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--primary-rgb), .09); color: var(--primary); font-size: 1.25rem; margin-bottom: 1rem; }
.edu-years { display: block; font-size: .85rem; font-weight: 700; color: var(--accent-text); letter-spacing: .06em; margin-bottom: .35rem; }
.edu-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.edu-org { font-weight: 600; color: var(--ink-2); font-size: .97rem; margin-bottom: .5rem; }
.edu-grade { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; color: var(--success); font-weight: 600; margin: 0; }
.lang-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.lang-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-bottom: .8rem; border-bottom: 1px dashed var(--line); }
.lang-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.lang-list strong { font-family: var(--font-heading); }
.lang-list span { color: var(--muted); font-size: .94rem; text-align: right; }
.skill-card h3 { font-size: 1.08rem; margin-bottom: .8rem; }
.skill-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .96rem; color: var(--ink-2); }
.skill-card li { display: flex; gap: .4rem; }
.skill-card li i { color: var(--success); }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.service-list li:last-child { border-bottom: 0; }

/* ---------- Teaching ---------- */
.mini-timeline ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.mini-timeline li { padding: 0 0 1rem 1.1rem; position: relative; }
.mini-timeline li::before { content: ''; position: absolute; left: -6px; top: .5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mini-timeline strong { display: block; font-size: 1rem; line-height: 1.35; }
.mini-timeline small { color: var(--muted); }
.course-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.course-head .course-icon { margin: 0; }
.course-level { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.course-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.course-card p { font-size: .95rem; color: var(--muted); }
.course-code { font-family: var(--font-body); font-size: .82rem; background: var(--paper-2); padding: .1rem .45rem; border-radius: 6px; vertical-align: middle; }
.course-foot { font-size: .88rem; color: var(--ink-2); padding-top: .9rem; border-top: 1px solid var(--line); margin-top: auto; }
.course-card { display: flex; flex-direction: column; }
.approach-card { background: var(--surface); border-radius: var(--radius); padding: 2rem; border-left: 4px solid var(--accent); box-shadow: var(--shadow-sm); }

/* Filter pills */
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: .45rem 1rem; font-size: .93rem; font-weight: 600; text-decoration: none; transition: all .2s; cursor: pointer; }
.filter-pill span { font-size: .76rem; background: var(--paper-2); color: var(--ink-2); border-radius: 999px; padding: 0 .45rem; }
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-pill.active span { background: rgba(255, 255, 255, .2); color: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.filter-bar .form-select { min-width: 150px; width: auto; padding-top: .5rem; padding-bottom: .5rem; }
.filter-bar label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
@media (max-width: 575.98px) { .filter-bar > div { flex: 1 1 100%; } .filter-bar .form-select { width: 100%; } }
.js-filter-item.is-hidden { display: none !important; }

/* ---------- Research ---------- */
.theme-list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.theme-row { --theme: var(--primary); display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 1.25rem; padding: 1.5rem .5rem; border-bottom: 1px solid var(--line-2); transition: background .3s; scroll-margin-top: calc(var(--header-h) + 20px); }
.theme-row:hover { background: var(--surface); }
.theme-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--theme); color: #fff; font-size: 1.35rem; }
.theme-body h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.theme-body p { margin: 0 0 .5rem; color: var(--muted); font-size: .98rem; }
.theme-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; }
.theme-counts { display: flex; gap: .5rem; }
@media (max-width: 767.98px) { .theme-row { grid-template-columns: 52px 1fr; } .theme-counts { grid-column: 2; } }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.chart-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.chart-box { position: relative; height: 280px; }
.tool-strip { display: flex; flex-wrap: wrap; gap: .6rem; }
.tool { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-family: var(--font-heading); }
.tool i { color: var(--primary); }

/* ---------- Translation & Editing page ---------- */
.work-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 20px); }
.work-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(var(--accent-rgb), .08); }
.work-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.work-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.work-seal { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: #1d1606; font-size: 1.35rem; box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .18); }
.work-type { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.work-card h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.work-facts { margin: 0 0 .9rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; font-size: .93rem; }
.work-facts dt { color: var(--muted); font-weight: 600; }
.work-facts dd { margin: 0; color: var(--ink-2); }
.work-quantity { font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem; color: var(--primary); line-height: 1; margin-bottom: .45rem; }
.work-quantity small { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.work-cert { display: block; margin-top: auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); max-width: 180px; }
.disclaimer { display: flex; gap: .6rem; align-items: center; font-size: .92rem; color: var(--muted); padding: .9rem 1.1rem; border-radius: 12px; background: var(--paper-2); }
.trainer-card { background: var(--surface); border-radius: 22px; padding: 2rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.cred-list li { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cred-list i { color: var(--primary); font-size: 1.2rem; }
.cred-list strong { display: block; font-size: .98rem; line-height: 1.35; }
.cred-list small { color: var(--muted); }
.cred-list .cred-date { font-size: .86rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 575.98px) { .cred-list li { grid-template-columns: auto 1fr; } .cred-list .cred-date { grid-column: 2; } }

/* ---------- Media ---------- */
.media-card { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: all .3s var(--ease); }
.media-card:hover { box-shadow: var(--shadow); color: var(--ink); transform: translateY(-3px); }
.media-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(var(--primary-rgb), .09); color: var(--primary); font-size: 1.3rem; }
.media-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.media-card small { color: var(--muted); }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.video-body { padding: 1.25rem 1.5rem; }
.video-body h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.invite-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 2.25rem; border-radius: 22px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .13), rgba(var(--primary-rgb), .07)); border: 1px solid rgba(var(--accent-rgb), .35); }
.invite-card h2, .invite-card h3 { font-size: 1.45rem; margin-bottom: .25rem; }
.invite-card p { margin: 0; color: var(--ink-2); }

/* ---------- Gallery ---------- */
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry-item { display: block; position: relative; margin-bottom: 1rem; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.masonry-item img { width: 100%; display: block; transition: transform .7s var(--ease); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; background: linear-gradient(transparent, rgba(8, 26, 24, .85)); color: #fff; font-size: .9rem; font-weight: 600; opacity: 0; transition: opacity .3s; }
.masonry-item:hover .masonry-caption, .masonry-item:focus .masonry-caption { opacity: 1; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s var(--ease), opacity .3s; }
.video-thumb:hover img { transform: scale(1.04); opacity: 1; }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--primary); font-size: 2rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, .2); }

/* ---------- Awards & certifications ---------- */
.tab-switch { display: inline-flex; gap: .35rem; padding: .35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 2rem; flex-wrap: wrap; }
.tab-switch .nav-link { border-radius: 999px; color: var(--ink-2); font-weight: 700; padding: .55rem 1.2rem; display: inline-flex; gap: .45rem; align-items: center; }
.tab-switch .nav-link span { font-size: .76rem; background: var(--paper-2); border-radius: 999px; padding: 0 .45rem; }
.tab-switch .nav-link.active { background: var(--primary); color: #fff; }
.tab-switch .nav-link.active span { background: rgba(255, 255, 255, .2); color: #fff; }
.award-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s var(--ease); }
.award-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.award-card.is-featured { border-color: rgba(var(--accent-rgb), .55); }
.award-media { aspect-ratio: 16 / 7; display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, rgba(var(--accent-rgb), .35), transparent 60%), linear-gradient(135deg, var(--primary), var(--primary-dark)); position: relative; overflow: hidden; }
.award-media img { width: 100%; height: 100%; object-fit: cover; }
.award-media a { display: block; width: 100%; height: 100%; }
.award-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; color: var(--accent); border: 1.5px solid rgba(var(--accent-rgb), .6); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .06); }
.award-body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.award-date { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .4rem; }
.award-body h3 { font-size: 1.08rem; margin-bottom: .35rem; line-height: 1.35; }
.award-issuer { font-size: .95rem; color: var(--ink-2); font-weight: 600; margin-bottom: .5rem; }
.award-desc { font-size: .94rem; color: var(--muted); margin-bottom: .75rem; }
.award-links { margin-top: auto; display: flex; gap: 1rem; font-size: .9rem; font-weight: 700; flex-wrap: wrap; }
.award-links a { text-decoration: none; }
.cert-list { display: grid; gap: .75rem; }
.cert-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; }
.cert-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--primary-rgb), .09); color: var(--primary); font-size: 1.3rem; }
.cert-body h3 { font-size: 1rem; margin-bottom: .15rem; font-family: var(--font-body); font-weight: 700; }
.cert-body p { font-size: .92rem; color: var(--muted); margin: 0; }
.cert-date { font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: .95rem; text-align: right; }
.cert-actions { display: flex; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }
@media (max-width: 575.98px) { .cert-item { grid-template-columns: 40px 1fr; } .cert-date { grid-column: 2; text-align: left; } }

/* ---------- Downloads ---------- */
.download-list { display: grid; gap: .75rem; }
.download-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; transition: box-shadow .3s; }
.download-item:hover { box-shadow: var(--shadow); }
.download-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(var(--primary-rgb), .08); color: var(--primary); }
.download-icon.ext-pdf { background: rgba(200, 40, 40, .09); color: #a62424; }
.download-icon.ext-docx, .download-icon.ext-doc { background: rgba(40, 90, 200, .09); color: #2b56b4; }
.download-icon.ext-pptx, .download-icon.ext-ppt { background: rgba(210, 100, 30, .1); color: #a94a14; }
.download-body h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.download-body p { font-size: .92rem; color: var(--muted); margin-bottom: .25rem; }
.download-body small { font-size: .82rem; color: var(--muted); }
@media (max-width: 575.98px) { .download-item { grid-template-columns: 44px 1fr; } .download-icon { width: 44px; height: 44px; font-size: 1.3rem; } .download-item .btn { grid-column: 1 / -1; } }

/* ---------- Services ---------- */
.offer-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); scroll-margin-top: calc(var(--header-h) + 20px); }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.offer-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; gap: 1rem; }
.offer-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 1.35rem; box-shadow: 0 8px 18px -10px rgba(var(--primary-rgb), .7); flex: none; }
.offer-card:hover .offer-icon { background: var(--accent); color: #1d1606; }
.offer-title { font-size: 1.18rem; margin-bottom: .45rem; }
.offer-summary { color: var(--muted); font-size: .98rem; margin-bottom: 1rem; }
.offer-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; font-size: .96rem; color: var(--ink-2); }
.offer-list li { display: flex; gap: .5rem; align-items: flex-start; }
.offer-list i { color: var(--success); margin-top: .2rem; }
.offer-more { margin-bottom: 1rem; font-size: .95rem; }
.offer-more summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.offer-more .prose { margin-top: .5rem; }
.offer-facts { margin: 0 0 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--line-2); display: grid; gap: .5rem; font-size: .92rem; }
.offer-facts dt { font-weight: 700; color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.offer-facts dt i { color: var(--primary); }
.offer-facts dd { margin: 0; color: var(--ink-2); }
.step-card { position: relative; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-card > i { font-size: 1.6rem; color: var(--primary); }
.step-card h3 { font-size: 1.08rem; margin: .7rem 0 .35rem; }
.step-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-num { position: absolute; right: 1.25rem; top: 1rem; font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; color: rgba(var(--primary-rgb), .14); font-weight: 800; }
.home-offer { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: all .3s var(--ease); }
.home-offer:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.home-offer h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.home-offer p { font-size: .95rem; color: var(--muted); margin: 0; }
.home-offer .offer-icon { width: 46px; height: 46px; font-size: 1.2rem; }

/* ---------- Contact ---------- */
.contact-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 2.25rem; box-shadow: var(--shadow-sm); }
@media (max-width: 575.98px) { .contact-form-card { padding: 1.4rem; } }
.form-label { font-weight: 700; font-size: .93rem; color: var(--ink-2); }
.req { color: #b42318; }
.form-control, .form-select { border: 1.5px solid var(--line-2); border-radius: 12px; padding: .7rem .95rem; background-color: var(--surface); transition: border-color .2s, box-shadow .2s; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.inquiry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.inquiry-option { position: relative; cursor: pointer; }
.inquiry-option input { position: absolute; opacity: 0; }
.inquiry-option span { display: block; padding: .65rem .9rem; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: .95rem; font-weight: 600; transition: all .2s; }
.inquiry-option input:checked + span { border-color: var(--primary); background: rgba(var(--primary-rgb), .07); color: var(--primary); }
.inquiry-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-feedback:empty { display: none; }
.form-feedback .alert { margin: 0; border-radius: 12px; }
.contact-info-card { background: var(--primary); color: rgba(255, 255, 255, .88); border-radius: 22px; padding: 2rem; margin-bottom: 1.25rem; position: relative; overflow: hidden; }
.contact-info-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 1.25rem; }
.contact-info { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 1.1rem; position: relative; }
.contact-info li { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--accent); font-size: 1.1rem; }
.contact-info small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.contact-info a, .contact-info span { color: #fff; text-decoration: none; word-break: break-word; }
.contact-social { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); position: relative; }
.contact-social a { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-size: .88rem; transition: background .2s; }
.contact-social a:hover { background: var(--accent); color: #1d1606; }
.map-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper-2); }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pagination & misc ---------- */
.pagination-wrap { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination { gap: .35rem; flex-wrap: wrap; }
.page-link { border-radius: 10px !important; border: 1px solid var(--line); color: var(--ink-2); min-width: 42px; height: 42px; display: grid; place-items: center; font-weight: 700; }
.page-link:hover { background: var(--paper-2); color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.empty-state { text-align: center; padding: 3.5rem 1rem; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: var(--primary); }
.empty-state h3 { font-size: 1.2rem; margin: .75rem 0 .25rem; }
.empty-state p { margin: 0; }
.error-page { padding: 120px 0; }
.error-code { display: block; font-family: var(--font-heading); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--primary); font-weight: 800; }
.error-search { max-width: 420px; }
.search-results { list-style: none; padding: 0; display: grid; gap: .5rem; }
.search-results a { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
.search-results a:hover { border-color: var(--primary); }
.search-results strong { display: block; }
.search-results small { color: var(--muted); }
.search-modal .modal-content { overflow: hidden; }
.search-form { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-form > i { font-size: 1.2rem; color: var(--muted); }
.search-form .form-control { border: 0; box-shadow: none; font-size: 1.15rem; padding: .5rem 0; }
.search-hint { color: var(--muted); margin: .5rem 0; font-size: .97rem; }
.live-group { margin-bottom: 1.25rem; }
.live-group h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .5rem; }
.live-group a { display: block; padding: .6rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.live-group a:hover, .live-group a:focus { background: var(--paper-2); }
.live-group a strong { display: block; font-weight: 700; font-size: .98rem; line-height: 1.35; }
.live-group a small { color: var(--muted); font-size: .85rem; }
.live-group mark { background: rgba(var(--accent-rgb), .3); padding: 0 2px; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255, 255, 255, .78); padding: 80px 0 0; font-size: .98rem; position: relative; overflow: hidden; }
.site-footer .footer-pattern { background-image: url('../img/pattern-light.svg'); opacity: .04; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-tagline { color: rgba(255, 255, 255, .6); }
.footer-about { max-width: 380px; }
.footer-title { font-family: var(--font-body); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: .25rem; }
.footer-contact a, .footer-contact span { word-break: break-word; }
.footer-social { display: flex; flex-wrap: wrap; gap: .45rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .88); text-decoration: none; transition: all .25s; }
.footer-social a:hover { background: var(--accent); color: #1d1606; transform: translateY(-2px); }
.footer-muted { color: rgba(255, 255, 255, .7); }
.newsletter-form .form-control { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; border-radius: 12px 0 0 12px; }
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, .6); }
.newsletter-form .btn { border-radius: 0 12px 12px 0; }
.newsletter-form .form-feedback { color: rgba(255, 255, 255, .85); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 56px; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: rgba(255, 255, 255, .68); }
.footer-bottom a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 1020; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent); color: #1d1606; }
.toast { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); }
.glightbox-clean .gslide-title { font-family: var(--font-heading); }

/* Phone gutters: 16px page edge, and wide-gutter rows that never exceed it */
@media (max-width: 767.98px) {
    .container { --bs-gutter-x: 2rem; }
    .row.g-5, .row.gx-5 { --bs-gutter-x: 2rem; }
}

/* ---------- Printable CV (/cv) ---------- */
.cv-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.cv-sheet { background: #fff; max-width: 210mm; margin: 0 auto; padding: 18mm 18mm 20mm; box-shadow: var(--shadow); border-radius: 6px; color: #1a1a1a; font-size: 10.5pt; line-height: 1.5; }
.cv-head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; border-bottom: 3px solid var(--primary); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.cv-head h1 { font-size: 22pt; margin: 0 0 .15rem; color: var(--primary-dark); }
.cv-head .cv-title { font-weight: 600; color: var(--ink-2); margin: 0 0 .5rem; }
.cv-contact { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: 9.5pt; color: #333; margin: 0; padding: 0; list-style: none; }
.cv-contact i { color: var(--primary); }
.cv-photo { width: 90px; height: 110px; object-fit: cover; border-radius: 6px; }
.cv-sheet h2 { font-size: 11.5pt; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); margin: 1.2rem 0 .55rem; padding-bottom: .25rem; border-bottom: 1px solid #ddd; break-after: avoid; }
.cv-entry { display: grid; grid-template-columns: 110px 1fr; gap: .9rem; margin-bottom: .55rem; break-inside: avoid; }
.cv-date { font-weight: 600; color: #444; font-size: 9.5pt; }
.cv-entry strong { display: block; }
.cv-entry ul { margin: .15rem 0 0; padding-left: 1rem; }
.cv-entry small { color: #555; }
.cv-pubs { margin: 0; padding-left: 1.3rem; }
.cv-pubs li { margin-bottom: .35rem; break-inside: avoid; }
.cv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
@media (max-width: 767.98px) { .cv-sheet { padding: 1.25rem; } .cv-head { grid-template-columns: 1fr; } .cv-entry { grid-template-columns: 1fr; gap: 0; } .cv-two { grid-template-columns: 1fr; } }

@media print {
    @page { size: A4; margin: 14mm; }
    body { background: #fff !important; font-size: 10.5pt; }
    .site-header, .site-footer, .announcement-bar, .back-to-top, .pub-actions, .hero-actions, .page-bar, .cv-toolbar, .toast-container, .skip-link { display: none !important; }
    .section { padding: 0 !important; }
    .cv-sheet { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
    .reveal { opacity: 1 !important; transform: none !important; }
    a { color: inherit; text-decoration: none; }
}
