/* ============================================================
   CHAPTERS, MEGA MENU, FOOTER — shared by all pages
   ============================================================ */

/* ---------- Mega dropdown ---------- */
.nav-dropdown-menu.nav-mega {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.25rem 1rem;
  padding: 1rem;
}
.nav-group { display: flex; flex-direction: column; }
.nav-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 0.25rem 0.75rem 0.5rem;
}
.nav-mega a { display: flex !important; gap: 0.625rem; align-items: baseline; line-height: 1.35; }
.nav-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  min-width: 1.4rem;
  font-size: 0.8125rem;
}
.nav-mega a small { display: block; color: var(--color-text-faint); font-size: 0.6875rem; font-weight: 500; }
@media (max-width: 768px) {
  .nav-dropdown-menu.nav-mega { min-width: 0; grid-template-columns: 1fr; padding: 0.5rem; }
  .nav-dropdown.open .nav-dropdown-menu.nav-mega { display: grid; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { color: var(--color-text-faint); }

/* ---------- Chapter hero ---------- */
.chapter-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.chapter-kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 1rem; position: relative; z-index: 1;
}
.chapter-kicker .roman {
  font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1.5px solid var(--color-primary);
}
.chapter-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1.75rem;
  font-size: 0.8125rem; color: var(--color-text-muted); position: relative; z-index: 1;
}
.chapter-meta span strong { color: var(--color-text); font-weight: 600; }

/* ---------- Chapter layout ---------- */
.chapter-section { padding-block: clamp(2.5rem, 6vw, 5rem); background: var(--color-bg); }
.chapter-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 960px) { .chapter-layout { grid-template-columns: 1fr; } }

.chapter-toc {
  position: sticky; top: 88px;
  font-size: 0.875rem;
  max-height: calc(100vh - 110px); overflow-y: auto;
  padding-right: 0.5rem;
}
@media (max-width: 960px) {
  .chapter-toc { position: static; max-height: none; border: 1px solid var(--color-border); border-radius: 12px; padding: 1.25rem; background: var(--color-surface); }
  .chapter-toc .toc-all { display: none; }
}
.toc-title {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-faint); margin-bottom: 0.75rem;
}
.chapter-toc ol { list-style: none; padding: 0; margin: 0 0 2rem; border-left: 2px solid var(--color-divider); }
.chapter-toc li a {
  display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -2px;
  color: var(--color-text-muted); text-decoration: none; border-left: 2px solid transparent; line-height: 1.4;
}
.chapter-toc li a:hover, .chapter-toc li a.current { color: var(--color-primary); border-left-color: var(--color-primary); }
.chapter-toc .toc-all a { display: flex; gap: 0.5rem; }
.chapter-toc .toc-all a .nav-num { min-width: 1.5rem; }
.chapter-toc .toc-all a.this { color: var(--color-text); font-weight: 600; border-left-color: var(--color-accent); }

/* ---------- Article typography ---------- */
.chapter-body { max-width: 72ch; }
.chapter-body > section { padding: 0; margin-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 96px; }
.chapter-body h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.25rem;
}
.chapter-body h2 .sec-num {
  display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.5rem;
}
.chapter-body h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.chapter-body p { font-size: 1.0625rem; line-height: 1.8; color: var(--color-text); margin-bottom: 1.15rem; }
.chapter-body p.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.7; color: var(--color-text-muted); }
.chapter-body ul.bullets { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.chapter-body ul.bullets li { margin-bottom: 0.5rem; line-height: 1.7; }
.chapter-body a:not(.btn) { color: var(--color-primary); text-underline-offset: 3px; }

sup.cite { font-size: 0.7em; line-height: 0; margin-left: 1px; }
sup.cite a { text-decoration: none; font-weight: 700; color: var(--color-primary); padding: 0 1px; }
sup.cite a:hover { text-decoration: underline; }

/* Key facts strip */
.keyfacts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--color-divider); border: 1px solid var(--color-divider); border-radius: 12px; overflow: hidden;
  margin: 2rem 0 2.5rem;
}
.keyfact { background: var(--color-surface); padding: 1.25rem 1.25rem 1.1rem; }
.keyfact .v { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; color: var(--color-primary); line-height: 1; display: block; margin-bottom: 0.4rem; }
.keyfact .l { font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.4; }

/* Callout */
.callout {
  background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent);
  border-radius: 0 12px 12px 0; padding: 1.5rem 1.75rem; margin: 2rem 0;
}
.callout .callout-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.5rem; display: block; }
.callout p { font-size: 1rem; margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.blue { border-left-color: var(--color-blue); }
.callout.blue .callout-label { color: var(--color-blue); }

/* Pull quote */
.pullquote { margin: 2.5rem 0; padding: 0 0 0 1.75rem; border-left: 3px solid var(--color-primary); }
.pullquote blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.35; font-style: italic; color: var(--color-text); margin: 0 0 0.75rem; }
.pullquote figcaption { font-size: 0.875rem; color: var(--color-text-muted); }

/* Key dates list */
.keydates { list-style: none; padding: 0; margin: 1.5rem 0 2rem; border-top: 1px solid var(--color-divider); }
.keydates li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--color-divider); font-size: 0.975rem; line-height: 1.6; }
.keydates li .d { font-family: var(--font-display); font-weight: 700; color: var(--color-primary); }
@media (max-width: 520px) { .keydates li { grid-template-columns: 1fr; gap: 0.15rem; } }

/* References */
.references { border-top: 2px solid var(--color-text); padding-top: 1.5rem; margin-top: 3rem; }
.references h2 { font-size: 1.375rem !important; }
.references ol { padding-left: 1.5rem; font-size: 0.875rem; color: var(--color-text-muted); }
.references li { margin-bottom: 0.6rem; line-height: 1.55; scroll-margin-top: 100px; }
.references li:target { background: color-mix(in oklab, var(--color-accent) 18%, transparent); border-radius: 4px; }
.references li a { word-break: break-word; }
.references .pub { color: var(--color-text); font-weight: 600; }

/* Prev / next */
.chapter-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.chapter-pager a {
  display: block; padding: 1.25rem 1.5rem; border: 1px solid var(--color-border); border-radius: 12px;
  background: var(--color-surface); text-decoration: none !important; transition: border-color .2s, box-shadow .2s;
}
.chapter-pager a:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.chapter-pager .dir { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 0.35rem; }
.chapter-pager .t { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-text); font-weight: 600; }
.chapter-pager .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .chapter-pager { grid-template-columns: 1fr; } .chapter-pager .next { grid-column: 1; } }

/* ---------- Hub: chapter cards ---------- */
.chapter-list { display: grid; gap: 1rem; margin-top: 2.5rem; }
.chapter-card {
  display: grid; grid-template-columns: 5rem 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.75rem 2rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px;
  text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.chapter-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.chapter-card .roman-big { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; color: var(--color-primary); line-height: 1; }
.chapter-card .years { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.chapter-card h3 { font-size: 1.375rem; margin: 0.25rem 0 0.4rem; }
.chapter-card p { color: var(--color-text-muted); font-size: 0.975rem; line-height: 1.6; margin: 0; }
.chapter-card .go { font-size: 0.8125rem; color: var(--color-text-muted); white-space: nowrap; }
@media (max-width: 640px) {
  .chapter-card { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem; }
  .chapter-card .roman-big { font-size: 2rem; }
}

/* ---------- People ---------- */
.profile {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.75rem); margin-bottom: 2.5rem; scroll-margin-top: 96px;
}
.profile-head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.monogram {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  color: var(--color-bg); background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}
.profile-head h2 { margin: 0 0 0.25rem !important; }
.profile-head .role { font-size: 0.9375rem; color: var(--color-text-muted); }
.profile-head .life { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.in-america { background: var(--color-surface-2); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.in-america h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-blue); margin-bottom: 0.75rem; font-family: var(--font-body); }
.in-america ul { list-style: none; padding: 0; margin: 0; }
.in-america li { display: grid; grid-template-columns: 7rem 1fr; gap: 0.75rem; padding: 0.4rem 0; font-size: 0.9375rem; line-height: 1.55; border-bottom: 1px dashed var(--color-divider); }
.in-america li:last-child { border-bottom: 0; }
.in-america li b { color: var(--color-text); font-family: var(--font-display); }
@media (max-width: 520px) { .in-america li { grid-template-columns: 1fr; gap: 0; } }
.note-balance { font-size: 0.9375rem !important; color: var(--color-text-muted) !important; font-style: italic; }

.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.person {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.5rem;
}
.person .field { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.person h3 { font-size: 1.1875rem !important; margin: 0.35rem 0 0.2rem !important; }
.person .dates { font-size: 0.8125rem; color: var(--color-text-faint); margin-bottom: 0.6rem; display: block; }
.person p { font-size: 0.9375rem !important; line-height: 1.6 !important; color: var(--color-text-muted) !important; margin: 0 !important; }

/* ---------- Sources page ---------- */
.source-group { margin-bottom: 2.5rem; }
.source-group h2 { font-size: 1.5rem !important; }
.source-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.source-table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.source-table td:first-child { width: 40%; font-weight: 600; color: var(--color-text); }
.source-table a { word-break: break-word; }

/* ---------- Home: chapters band ---------- */
.home-chapters { background: var(--color-surface); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.home-chapter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 2rem; }
.home-chapter {
  display: block; padding: 1.5rem; border: 1px solid var(--color-border); border-radius: 12px;
  background: var(--color-bg); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
.home-chapter:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.home-chapter .r { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--color-primary); }
.home-chapter .y { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin: 0.25rem 0; }
.home-chapter h3 { font-size: 1.125rem; line-height: 1.3; margin: 0; }

/* ---------- Site footer ---------- */
.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem !important; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; margin-top: 0.75rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text); margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--color-text-muted); text-decoration: none; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--color-divider); font-size: 0.8125rem; color: var(--color-text-muted); }
.footer-bottom a { color: var(--color-text-muted); }

.page-hero p.chapter-subtitle {
  font-family: var(--font-display); font-style: italic; color: var(--color-primary);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem); line-height: 1.3; margin: -0.25rem 0 1.25rem;
}

/* ---------- Brand logo (USArmenian Partnership) ---------- */
.brand-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand-logo .logo-img { height: 40px; width: auto; display: block; }
.brand-logo .logo-text { display: flex; flex-wrap: wrap; align-items: baseline; line-height: 1; font-family: var(--font-body, 'Satoshi', sans-serif); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; max-width: 7.5rem; }
.brand-logo .lt-us { color: #0d2a5c; }
.brand-logo .lt-arm { color: #c8102e; }
.brand-logo .logo-text small { flex-basis: 100%; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #0d2a5c; margin-top: .2rem; }
[data-theme="dark"] .brand-logo .lt-us, [data-theme="dark"] .brand-logo .logo-text small { color: #e8e2d6; }
[data-theme="dark"] .brand-logo .lt-arm { color: #ff5a6a; }
.footer-logo-img { display: inline-block; background: #fff; border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1rem; }
.footer-logo-img img { display: block; width: 220px; height: auto; }
@media (max-width: 1100px) { .brand-logo .logo-img { height: 34px; } .brand-logo .logo-text { font-size: .95rem; } }

@media (max-width: 768px) {
  .nav-dropdown .nav-dropdown-menu.nav-mega { display: none; }
  .nav-dropdown.open .nav-dropdown-menu.nav-mega { display: grid; }
}

.profile, .chapter-body section, .references { scroll-margin-top: 96px; }

/* ---------- About page ---------- */
.about-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.about-hero .page-hero-content { max-width: none; }
.about-hero-logo { background: #fff; border-radius: 20px; padding: 1.5rem 1.75rem; box-shadow: 0 10px 40px rgba(30, 20, 10, .10); }
.about-hero-logo img { width: 100%; height: auto; display: block; }
.glance-section { padding: clamp(3rem, 6vw, 5rem) 0 1rem; }
.glance-text { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.3; color: var(--color-text); margin: .75rem 0 1.25rem; }
.glance-sub { font-size: 1.125rem; line-height: 1.75; color: var(--color-text-muted); }
.mission-quote { margin: 1.5rem 0 2rem; padding: 1.5rem 1.75rem; border-left: 4px solid var(--color-primary); background: var(--color-surface-2, rgba(0,0,0,.03)); font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); line-height: 1.4; color: var(--color-text); border-radius: 0 12px 12px 0; }
.mission-sub { font-family: var(--font-display); font-size: 1.35rem; margin: 2rem 0 .5rem; color: var(--color-text); }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.goal-card { background: var(--color-surface, #fff); border: 1px solid var(--color-border, rgba(0,0,0,.08)); border-radius: 16px; padding: 1.75rem; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.goal-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30,20,10,.08); }
.goal-num { font-family: var(--font-display); font-size: 2.25rem; color: var(--color-primary); line-height: 1; display: block; margin-bottom: .75rem; }
.goal-card:nth-child(3n+2) .goal-num { color: var(--color-accent); }
.goal-card:nth-child(3n+3) .goal-num { color: var(--color-blue, #1d3a8a); }
.goal-card h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; margin: 0 0 .6rem; }
.goal-card p { font-size: .975rem; line-height: 1.65; color: var(--color-text-muted); margin: 0; }
.tagline-band { background: linear-gradient(90deg, #0d2a5c 0%, #0d2a5c 34%, #c8102e 34%, #c8102e 67%, #f2a800 67%); padding: 3px 0 0; }
.tagline-band .container { background: var(--color-bg); padding: clamp(2.5rem, 5vw, 4rem) 1.5rem; text-align: center; max-width: none; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); line-height: 1.25; margin: 0 auto; max-width: 900px; color: var(--color-primary); }
@media (max-width: 1000px) { .goal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .about-hero-grid { grid-template-columns: 1fr; gap: 2rem; } .goal-grid { grid-template-columns: 1fr; } }

/* ---------- Home: About + side windows ---------- */
.home-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 2rem; }
.home-main .container, .home-main .container-narrow { max-width: none; padding-left: 0; padding-right: 0; }
.home-main .glance-section { padding-top: 0; }
.home-main .mission-section, .home-main .about-section { padding-left: 0; padding-right: 0; }
.home-main .goal-grid { grid-template-columns: repeat(2, 1fr); }
.home-aside { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 1.25rem; }
.home-window { background: var(--color-surface, #fff); border: 1px solid var(--color-border, rgba(0,0,0,.08)); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(30,20,10,.07); }
.hw-bar { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--color-border, rgba(0,0,0,.08)); background: linear-gradient(180deg, rgba(176,10,30,.06), transparent); }
.hw-facts-window .hw-bar { background: linear-gradient(180deg, rgba(200,149,30,.10), transparent); }
.hw-bar h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; color: var(--color-text); flex: 1; }
.hw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(176,10,30,.12); }
.hw-dot-gold { background: var(--color-accent); box-shadow: 0 0 0 4px rgba(200,149,30,.15); }
.hw-more { font-size: .78rem; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.hw-more:hover { text-decoration: underline; }
.hw-body { padding: .35rem 1rem 1rem; }
.hw-news { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.hw-news li + li { border-top: 1px solid var(--color-border, rgba(0,0,0,.07)); }
.hw-news a { display: block; padding: .7rem 0; text-decoration: none; color: inherit; }
.hw-news a:hover .hw-title { color: var(--color-primary); }
.hw-meta { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; margin-bottom: .2rem; }
.hw-title { display: block; font-size: .9rem; line-height: 1.4; font-weight: 500; color: var(--color-text); transition: color .15s ease; }
.hw-facts { list-style: none; margin: 0; padding: .6rem 0 0; min-height: 170px; position: relative; }
.hw-fact { display: none; }
.hw-fact.is-active { display: block; animation: hwFade .35s ease; }
.hw-year { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--color-primary); display: block; margin-bottom: .5rem; }
.hw-fact p { font-size: .92rem; line-height: 1.55; margin: 0 0 .6rem; color: var(--color-text); }
.hw-fact a { font-size: .8rem; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.hw-controls { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--color-border, rgba(0,0,0,.07)); }
.hw-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border, rgba(0,0,0,.15)); background: transparent; color: var(--color-text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hw-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.hw-count { font-size: .8rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
@keyframes hwFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .home-layout { grid-template-columns: 280px minmax(0,1fr); } .home-main .goal-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .home-layout { grid-template-columns: 1fr; } .home-aside { position: static; order: 2; } .hw-news { max-height: none; } }
.home-aside section.home-window { padding-block: 0; }
.home-main > section { padding-block: 0 clamp(2.5rem, 5vw, 4rem); background: transparent !important; }
.home-main > section + section { border-top: 1px solid var(--color-border, rgba(0,0,0,.08)); padding-top: clamp(2.5rem, 5vw, 4rem); }
.hw-dot-blue { background: var(--color-blue, #1d3a8a); box-shadow: 0 0 0 4px rgba(29,58,138,.14); }
.hw-numbers-window .hw-bar { background: linear-gradient(180deg, rgba(29,58,138,.08), transparent); }
.hw-firsts { display: flex; flex-direction: column; gap: .9rem; padding: .8rem 0 .9rem; border-bottom: 1px solid var(--color-border, rgba(0,0,0,.07)); }
.hw-first { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; align-items: start; }
.hw-first-year { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--color-primary); padding-top: .15rem; }
.hw-first h3 { font-family: var(--font-body); font-size: .88rem; font-weight: 700; margin: 0 0 .25rem; color: var(--color-text); }
.hw-first p { font-size: .84rem; line-height: 1.5; margin: 0 0 .3rem; color: var(--color-text-muted); }
.hw-first a { font-size: .76rem; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.hw-sub { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); margin-top: .8rem; }
.hw-facts { min-height: 150px; padding-top: .35rem; }
.hw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .8rem 0 0; }
.hw-stat { background: var(--color-bg, #faf7f2); border: 1px solid var(--color-border, rgba(0,0,0,.06)); border-radius: 10px; padding: .7rem .75rem; }
.hw-stat-wide { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .75rem; }
.hw-stat dt { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; color: var(--color-blue, #1d3a8a); margin-bottom: .3rem; }
.hw-stat-wide dt { font-size: 2.1rem; color: var(--color-primary); margin: 0; }
.hw-stat:nth-child(3n+2) dt { color: var(--color-primary); }
.hw-stat:nth-child(3n) dt { color: var(--color-accent); }
.hw-stat dd { margin: 0; font-size: .76rem; line-height: 1.35; color: var(--color-text-muted); }
.hw-src { font-size: .7rem; color: var(--color-text-muted); margin: .75rem 0 0; }
.hw-src a { color: inherit; }
/* windows on the right */
.home-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.home-layout > .home-main { grid-column: 1; grid-row: 1; }
.home-layout > .home-aside { grid-column: 2; grid-row: 1; }
@media (max-width: 1000px) { .home-layout { grid-template-columns: minmax(0,1fr) 290px; } }
@media (max-width: 820px) { .home-layout { grid-template-columns: 1fr; } .home-layout > .home-main, .home-layout > .home-aside { grid-column: 1; grid-row: auto; } }
.home-aside { position: static; }
.about-hero .hero-statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.15rem); line-height: 1.25; color: var(--color-text); margin: 1.25rem 0 1rem; max-width: 30ch; }
.about-hero .hero-official { font-size: .95rem; letter-spacing: .02em; color: var(--color-text-muted); margin: 0; padding-left: .9rem; border-left: 3px solid var(--color-primary); }
.hw-stat-church dt { color: var(--color-blue, #1d3a8a) !important; }

/* ---- Readable typography refresh ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.015em; font-optical-sizing: auto; }
h1 { font-weight: 650; letter-spacing: -0.025em; }
.about-hero h1 .accent { font-weight: 500; }
.about-hero .hero-statement { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.8rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 34ch; }
.glance-text { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); line-height: 1.55; letter-spacing: -0.005em; max-width: 60ch; }
.section-title { line-height: 1.2; }
.lede, .page-lede, .hero-lede, .chapter-lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; }
.mission-quote { font-weight: 400; line-height: 1.5; }
.goal-card h3, .mission-sub { font-weight: 600; }
.lede { color: var(--color-text) !important; opacity: .85; }
.glance-sub { color: var(--color-text) !important; opacity: .8; font-size: 1.0625rem; line-height: 1.7; }

/* ---- Videos page ---- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 2rem; }
.video-card { background: var(--color-surface, #fff); border: 1px solid var(--color-border, rgba(0,0,0,.1)); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.video-frame { position: relative; aspect-ratio: 16/9; background: #111; cursor: pointer; overflow: hidden; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.video-frame:hover img { transform: scale(1.03); opacity: .9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: none; border: 0; cursor: pointer; padding: 0; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); transition: transform .2s; }
.video-frame:hover .video-play { transform: scale(1.1); }
.video-meta { padding: 1.5rem 1.6rem 1.75rem; }
.video-tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent, #c8951e); }
.video-meta h2 { font-size: 1.45rem; margin: .5rem 0 .35rem; }
.video-hy { color: var(--color-primary); font-size: .95rem; margin: 0 0 .75rem; }
.video-meta p { line-height: 1.6; }
.video-links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem; font-weight: 600; font-size: .92rem; }
.video-more { text-align: center; margin-top: 2.5rem; }
.brand-logo .logo-img { height: 44px; } @media (max-width: 1100px) { .brand-logo .logo-img { height: 38px; } }
.chapter-body section ul { list-style: disc; padding-left: 1.4rem; margin: .75rem 0 1.25rem; }
.chapter-body section ul li { margin: .4rem 0; line-height: 1.6; }
.chapter-body section ul li::marker { color: var(--color-primary); }
.brand-logo .logo-text small { color: #e07b00; font-weight: 700; }
[data-theme="dark"] .brand-logo .logo-text small { color: #f2a800; }
.brand-logo .logo-text small { color: #f0a01e; }
[data-theme="dark"] .brand-logo .logo-text small { color: #f7b544; }
.brand-logo .logo-text small { color: #0d2a5c; }
[data-theme="dark"] .brand-logo .logo-text small { color: #e8e2d6; }

/* Portrait photos */
.person { position: relative; }
.person-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; float: right; margin: 0 0 0.5rem 0.75rem; border: 3px solid var(--color-surface, #fff); box-shadow: 0 2px 10px rgba(0,0,0,0.12); background: var(--color-surface-2, #eee); }
.profile-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 4px solid var(--color-surface, #fff); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.photo-credits { margin-top: 2rem; font-size: 0.75rem; color: var(--color-text-muted); line-height: 1.6; }
.photo-credits h3 { font-size: 0.8125rem !important; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.5rem !important; }
.photo-credits a { color: inherit; }
@media (max-width: 480px) { .profile-photo { width: 96px; height: 96px; } .person-photo { width: 64px; height: 64px; } }
.person-photo.photo-pair { width: 64px; height: 64px; margin-left: -14px; }
.person-photo.photo-pair:last-of-type { margin-left: 0.75rem; }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; margin-right: 0.5rem; border: 1px solid var(--color-border, rgba(0,0,0,.12)); border-radius: 999px; background: var(--color-surface, #fff); flex-shrink: 0; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--color-text-muted); text-decoration: none; transition: background .15s ease, color .15s ease; }
.lang-switch a[lang="hy"] { font-family: 'Noto Sans Armenian', var(--font-body); letter-spacing: 0; }
.lang-switch a:hover { color: var(--color-primary); }
.lang-switch a[aria-current="true"] { background: var(--color-primary, #b00a1e); color: #fff; }
@media (max-width: 768px) { .lang-switch { margin-left: auto; margin-right: 0.25rem; } .lang-switch a { min-width: 34px; padding: 0 0.45rem; } }

/* Armenian typography */
html[lang="hy"] { --font-display: 'Noto Serif Armenian', 'Fraunces', Georgia, serif; --font-body: 'Noto Sans Armenian', 'Satoshi', 'Helvetica Neue', sans-serif; }
html[lang="hy"] body { line-height: 1.7; }
html[lang="hy"] h1, html[lang="hy"] h2, html[lang="hy"] h3 { letter-spacing: 0; line-height: 1.25; }
html[lang="hy"] .section-eyebrow, html[lang="hy"] .chapter-kicker, html[lang="hy"] .field { letter-spacing: 0.03em; }
@media (max-width: 480px) {
  .header-inner { gap: 0.4rem; }
  .brand-logo .logo-img { height: 30px; }
  .brand-logo .logo-text { font-size: .82rem; }
  .lang-switch { padding: 2px; margin-right: 0; }
  .lang-switch a { min-width: 30px; height: 26px; padding: 0 0.4rem; font-size: 0.68rem; }
  .theme-toggle { width: 32px; height: 32px; }
  .menu-toggle { padding: 6px; }
}
@media (max-width: 360px) { .brand-logo .logo-text { display: none; } }


.theme-toggle, .menu-toggle, .lang-switch { flex-shrink: 0; }
html[lang="hy"] .nav-links { gap: 1.1rem; }
html[lang="hy"] .nav-links > a, html[lang="hy"] .nav-dropdown-toggle { white-space: nowrap; font-size: 0.8125rem; }
@media (max-width: 1200px) { html[lang="hy"] .nav-links { gap: 0.8rem; } html[lang="hy"] .nav-links > a, html[lang="hy"] .nav-dropdown-toggle { font-size: 0.78rem; } }

/* Logo v13 (handshake) */
.brand-logo .logo-img { height: 40px !important; width: auto; }
@media (max-width: 1100px) { .brand-logo .logo-img { height: 34px !important; } }
@media (max-width: 480px) { .brand-logo .logo-img { height: 24px !important; } }
[data-theme="dark"] .brand-logo .logo-img { background: #fff; border-radius: 8px; padding: 3px 6px; box-sizing: content-box; }
.theme-toggle, .menu-toggle, .lang-switch { flex-shrink: 0; }
.brand-logo { min-width: 0; }
@media (max-width: 400px) { .brand-logo .logo-text small { letter-spacing: 0.12em; } }
@media (max-width: 360px) { .brand-logo .logo-text { display: none !important; } .brand-logo .logo-img { height: 26px !important; } }
@media (max-width: 420px) {
  .site-header .container, header .header-inner { padding-inline: 14px; }
  .brand-logo { gap: 0.35rem !important; }
  .brand-logo .logo-text { font-size: .74rem !important; }
  .brand-logo .logo-img { height: 22px !important; }
  .header-inner { gap: 0.3rem; }
}

.theme-toggle, .menu-toggle, .lang-switch { flex-shrink: 0; }
html[lang="hy"] .nav-links { gap: 1.1rem; }
html[lang="hy"] .nav-links > a, html[lang="hy"] .nav-dropdown-toggle { white-space: nowrap; font-size: 0.8125rem; }
@media (max-width: 1200px) { html[lang="hy"] .nav-links { gap: 0.8rem; } html[lang="hy"] .nav-links > a, html[lang="hy"] .nav-dropdown-toggle { font-size: 0.78rem; } }

html[lang="hy"] main { overflow-wrap: anywhere; }
html[lang="hy"] main td, html[lang="hy"] main th { overflow-wrap: anywhere; hyphens: auto; }

/* Longer mission statement */
.about-hero .hero-statement { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.35rem); line-height: 1.6; max-width: 46ch; font-weight: 500; }

/* ===== Live news (autopilot feed) ===== */
.live-news { background: var(--color-surface-2); border-bottom: 1px solid var(--color-divider); padding: clamp(2.5rem, 5vw, 4rem) 0; position: relative; }
.live-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.live-head h2, .editors-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: .25rem 0 .5rem; }
.live-lede { color: var(--color-text-muted); max-width: 62ch; margin: 0; line-height: 1.6; }
.live-lede a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.live-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); margin: 0; }
.live-eyebrow--gold { color: var(--color-accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-text-faint); position: relative; }
.live-news.is-live .live-dot { background: #1f9d55; }
.live-news.is-live .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #1f9d55; opacity: 0; animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.live-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.live-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.live-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.live-btn--rss { background: #f26522; border-color: #f26522; color: #fff; }
.live-btn--rss:hover { background: #d9541a; border-color: #d9541a; color: #fff; }
.live-news.is-loading [data-live-refresh] svg { animation: liveSpin .9s linear infinite; }
@keyframes liveSpin { to { transform: rotate(360deg); } }
.live-controls { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.live-sources { display: flex; gap: .25rem; padding: .25rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; flex-wrap: wrap; }
.live-src { border: 0; background: transparent; font: inherit; font-size: .8125rem; font-weight: 500; color: var(--color-text-muted); padding: .4rem .85rem; border-radius: 999px; cursor: pointer; }
.live-src[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
.live-search { display: flex; align-items: center; gap: .5rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; padding: .45rem .9rem; min-width: min(100%, 280px); color: var(--color-text-muted); }
.live-search:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-highlight); }
.live-search input { border: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--color-text); outline: none; width: 100%; }
.live-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.live-chip { flex: none; display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: .8125rem; font-weight: 500; padding: .4rem .8rem; border-radius: 999px; cursor: pointer; transition: all .2s; }
.live-chip:hover { border-color: var(--color-text-muted); }
.live-chip[aria-pressed="true"] { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.live-chip-n { font-size: .7rem; opacity: .65; font-variant-numeric: tabular-nums; }
.live-status { font-size: .8125rem; color: var(--color-text-muted); margin: .9rem 0 .75rem; }
.live-note { font-size: .8125rem; color: var(--color-accent-hover); background: var(--color-accent-highlight); padding: .5rem .8rem; border-radius: 8px; margin: 0 0 .75rem; }
.live-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.live-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; transition: box-shadow .25s, transform .25s, border-color .25s; animation: liveIn .35s ease both; }
.live-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.live-card.is-new { border-color: #1f9d55; box-shadow: 0 0 0 3px rgba(31,157,85,.15); }
@keyframes liveIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.live-card-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .75rem; color: var(--color-text-muted); }
.live-card-meta time { display: inline-flex; align-items: center; gap: .35rem; }
.live-fresh { width: 6px; height: 6px; border-radius: 50%; background: #1f9d55; }
.live-tag { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .6875rem; padding: .2rem .5rem; border-radius: 4px; background: var(--color-surface-offset); color: var(--color-text); }
.live-tag--us { background: #e3e9f7; color: var(--color-blue); }
.live-tag--community { background: var(--color-accent-highlight); color: #8a6410; }
.live-tag--diplomacy { background: var(--color-primary-highlight); color: var(--color-primary); }
.live-tag--economy { background: #e2f1e8; color: #1c6b40; }
.live-tag--security { background: #ece6f5; color: #553a8a; }
[data-theme="dark"] .live-tag--us { background: #1d2740; color: #9fb3ea; }
[data-theme="dark"] .live-tag--community { background: #3a2f16; color: #e2bb5c; }
[data-theme="dark"] .live-tag--economy { background: #16301f; color: #7fd1a0; }
[data-theme="dark"] .live-tag--security { background: #2a2140; color: #b9a4e6; }
.live-lang { font-size: .65rem; font-weight: 700; border: 1px solid var(--color-border); border-radius: 4px; padding: .05rem .35rem; }
.live-card-title { font-size: 1.125rem; line-height: 1.35; margin: 0; }
.live-card-title a { color: var(--color-text); text-decoration: none; }
.live-card-title a:hover { color: var(--color-primary); }
.live-card-sum { margin: 0; color: var(--color-text-muted); font-size: .9rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.live-card-src { margin-top: auto; font-size: .8125rem; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.live-card-src:hover { text-decoration: underline; }
.live-empty { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem; color: var(--color-text-muted); border: 1px dashed var(--color-border); border-radius: 14px; }
.live-clear { margin-top: .75rem; border: 1px solid var(--color-border); background: var(--color-surface); padding: .45rem .9rem; border-radius: 999px; font: inherit; cursor: pointer; }
.live-skel { height: 170px; border-radius: 14px; background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-offset) 50%, var(--color-surface) 75%); background-size: 200% 100%; animation: liveShimmer 1.4s infinite; border: 1px solid var(--color-border); }
@keyframes liveShimmer { to { background-position: -200% 0; } }
.live-more { display: block; margin: 1.5rem auto 0; border: 1px solid var(--color-text); background: transparent; color: var(--color-text); font: inherit; font-weight: 600; font-size: .9rem; padding: .7rem 1.4rem; border-radius: 999px; cursor: pointer; }
.live-more:hover { background: var(--color-text); color: var(--color-bg); }
.live-toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: #1f9d55; color: #fff; padding: .6rem 1.1rem; border-radius: 999px; font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-md); z-index: 60; }
.editors-head { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.editors-head + .news-featured { margin-top: 1.25rem; }
@media (max-width: 760px) {
  .live-list { grid-template-columns: 1fr; }
  .live-controls { flex-direction: column; align-items: stretch; }
  .live-sources { flex-wrap: nowrap; overflow-x: auto; align-self: flex-start; max-width: 100%; }
  .live-src { flex: none; }
  .live-search { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .live-card, .live-news.is-live .live-dot::after, .live-skel { animation: none; }
}

/* ---------- Transparent logos (light theme). Dark theme keeps a light plate so the
   logo's white stripes and hand stay visible. ---------- */
.about-hero-logo { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.footer-logo-img { background: transparent; padding: 0; border-radius: 0; }
[data-theme="dark"] .about-hero-logo { background: transparent; padding: 0; }
[data-theme="dark"] .about-hero-logo img { background: #fff; border-radius: 20px; padding: 1.5rem 1.75rem; box-sizing: border-box; }
[data-theme="dark"] .footer-logo-img { background: #fff; border-radius: 12px; padding: .75rem 1rem; }

/* YouTube playlist panel */
.yt-section { padding-bottom: 0; }
.yt-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 1.5rem; border: 1px solid var(--color-divider); border-radius: 18px; background: color-mix(in oklab, var(--color-primary) 4%, var(--color-surface, var(--color-bg))); }
.yt-frame { position: relative; }
.yt-count { position: absolute; right: .6rem; bottom: .6rem; background: rgba(0,0,0,.75); color: #fff; font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; pointer-events: none; }
.yt-frame.is-playing .yt-count { display: none; }
.yt-copy h2 { margin: .4rem 0 .6rem; }
.yt-copy p { margin: 0 0 1.2rem; }
.yt-actions { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; align-items: center; }
.yt-sub { display: inline-flex; align-items: center; gap: .5rem; }
.yt-open { font-weight: 600; }
@media (max-width: 800px) { .yt-panel { grid-template-columns: 1fr; padding: 1rem; gap: 1.2rem; } }
