/* Schools Single Page - Static CSS */
/* Dynamic values (--serif, --hero-img-pos, --rvw-bar-*) defined inline via template */

:root {
  --ink: #2d2a26;
  --ink-light: #6b6560;
  --cream: #faf8f5;
  --white: #fff;
  --warm: #c4a47c;
  --warm-light: #f5efe7;
  --coral: #e07b54;
  --coral-dark: #c96a47;
  --sage: #7a9a7e;
  --sage-light: #e8f0e9;
  --sans: 'DM Sans', system-ui, sans-serif;
  --r: 8px;
  --rl: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overscroll-behavior: none; }
body { width: 100%; max-width: 100vw; overflow-x: clip; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--cream); }
a { color: inherit; text-decoration: none; }

/* Header */
.hdr { background: var(--white); padding: 16px 24px; position: sticky; top: 0; z-index: 100; }
.hdr-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.logo img { height: 32px; width: auto; }
.nav { display: none; gap: 28px; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav a { font-size: 14px; color: var(--ink-light); }
.nav a:hover { color: var(--ink); }
.hdr-cta { background: var(--coral); color: var(--white); padding: 10px 20px; border-radius: 100px; font-size: 14px; font-weight: 500; display: none; }
.hdr-cta:hover { background: var(--coral-dark); }
@media (min-width: 768px) { .hdr-cta { display: inline-block; } }

/* Main */
.main { max-width: 1100px; margin: 0 auto; padding: 40px 24px 32px; }

/* Breadcrumb */
.bc { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-light); margin-bottom: 24px; flex-wrap: wrap; }
.bc a:hover { color: var(--coral); }
.bc a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 2px; }
.bc svg { width: 12px; height: 12px; }

/* Hero */
.hero { margin-bottom: 32px; }
.hero-txt h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; color: var(--ink); }
@media (min-width: 768px) { .hero-txt h1 { font-size: 32px; } }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hbdg { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; font-size: 13px; font-weight: 600; border-radius: 100px; }
.hbdg svg { width: 14px; height: 14px; flex-shrink: 0; }
.hbdg-vf { background: var(--sage-light); color: var(--sage); }
.hbdg-pp { background: #FEF3C7; color: #D97706; }
.hero-tag { font-size: 16px; color: var(--ink-light); line-height: 1.6; }
.hero-img { border-radius: var(--rl); overflow: hidden; width: 100%; max-width: 220px; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--warm-light) 0%, #e8dfd3 100%); float: right; margin: 0 0 16px 20px; }
@media (max-width: 767px) { .hero-img { float: none; max-width: 100%; margin: 0 0 16px 0; } }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-img-pos); }
.hero::after { content: ""; display: table; clear: both; }

/* Meta Row */
.meta-row { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--warm); margin-bottom: 24px; flex-wrap: wrap; }
.meta-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--warm-light); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; color: var(--warm); font-size: 18px; flex-shrink: 0; }
.meta-info { flex: 1; min-width: 200px; }
.meta-info .meta-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.meta-info .meta-details { font-size: 13px; color: var(--ink-light); margin-top: 2px; }

/* Quick Bar */
.qbar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--white); border: 1px solid var(--warm); border-radius: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.qbar-label { font-size: 13px; color: var(--ink-light); font-weight: 500; }
.qbar-tags { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.qtag { background: var(--warm-light); padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--ink); }
@media (max-width: 480px) { .qbar { flex-direction: column; align-items: flex-start; } }

/* Enroll Banner */
.enroll-banner { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--sage-light); border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--sage); margin-bottom: 20px; }

/* Page Grid */
.pg { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .pg { grid-template-columns: 1fr 320px; align-items: start; } }
.pg-cnt { min-width: 0; }
.pg-side { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .pg-side { position: sticky; top: 80px; height: fit-content; } }

/* Side CTA */
.side-cta { background: var(--ink); color: var(--white); border-radius: var(--rl); padding: 28px; box-shadow: 0 8px 24px rgba(45, 42, 38, 0.15); }
.side-cta-head { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.side-cta-list { list-style: none; margin-bottom: 24px; }
.side-cta-list li { padding: 10px 0; font-size: 14px; color: rgba(250, 248, 245, 0.8); display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid rgba(250, 248, 245, 0.1); }
.side-cta-list li:last-child { border-bottom: none; }
.side-cta-list li::before { content: "\2713"; color: var(--coral); font-weight: 700; flex-shrink: 0; }
.side-cta .bp { width: 100%; text-align: center; padding: 16px 24px; }
.side-cta-phone { text-align: center; margin-top: 12px; font-size: 13px; color: rgba(250, 248, 245, 0.6); }
.side-cta-phone a { color: rgba(250, 248, 245, 0.6); }
.side-cta-phone a:hover { color: var(--cream); }

/* Side Info */
.side-info { background: var(--white); border-radius: var(--rl); padding: 20px; }
.side-info-head { font-family: var(--serif); font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.side-info-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-light); margin-bottom: 10px; }
.side-info-row:last-child { margin-bottom: 0; }
.side-info-row svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--warm); }

/* Card */
.card { background: var(--white); border-radius: var(--rl); overflow: hidden; box-shadow: 0 2px 8px rgba(45, 42, 38, 0.06); }

/* Card Status */
.cst { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 20px; background: var(--sage-light); border-bottom: 1px solid rgba(122, 154, 126, 0.2); }
.cst-txt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sage); }
.dot { width: 8px; height: 8px; background: var(--sage); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.qcta { padding: 8px 16px; background: var(--coral); color: #fff; font-size: 13px; font-weight: 600; border-radius: 100px; }
.qcta:hover { background: var(--coral-dark); }

/* Card Layout */
.cly { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cly { grid-template-columns: 400px 1fr; } }
.cimg { position: relative; height: 280px; background: var(--warm-light); }
@media (min-width: 768px) { .cimg { height: auto; min-height: 400px; } }
.cimg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.bdg { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.bg { padding: 6px 12px; background: var(--sage); color: var(--white); font-size: 11px; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.bg.pp { background: var(--coral); }

/* Card Content */
.ccnt { padding: 28px; display: flex; flex-direction: column; }
.cname { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; order: 1; }
.cloc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-light); margin-bottom: 20px; order: 2; }
.cloc svg { width: 14px; height: 14px; }

/* Card Tag */
.ctag { background: var(--warm-light); border-left: 4px solid var(--warm); padding: 14px 18px; margin-bottom: 20px; border-radius: 0 var(--r) var(--r) 0; font-size: 14px; color: var(--ink); order: 3; }
.ctag strong { color: var(--ink); font-weight: 600; }

/* Card Facts */
.cfct { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; order: 4; }
.fct { padding: 8px 14px; background: var(--warm-light); border-radius: 100px; font-size: 13px; color: var(--ink-light); }
.fct strong { color: var(--ink); font-weight: 600; }

/* Card Features */
.cftr { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ftg { padding: 6px 12px; background: var(--white); border: 1px solid rgba(45, 42, 38, 0.1); font-size: 13px; font-weight: 500; border-radius: 100px; color: var(--ink-light); }

/* Buttons */
.bp { display: inline-block; padding: 14px 28px; background: var(--coral); color: #fff; font-size: 15px; font-weight: 600; border-radius: 100px; border: none; cursor: pointer; transition: background 0.15s; }
.bp:hover { background: var(--coral-dark); }
.bp-wa { background: #25D366; }
.bp-wa:hover { background: #128C7E; }
.bp-ph { background: var(--ink); }
.bp-ph:hover { background: #1a1816; }

/* Trust */
.trst { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; padding: 12px 16px; background: var(--warm-light); border-radius: var(--r); }
.trst-i { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-light); }
.trst-i svg { width: 14px; height: 14px; color: var(--sage); }
.trst-i strong { color: var(--ink); font-weight: 600; }

/* Gallery */
.gal { margin-top: 32px; }
.gal h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.gal-g { display: grid; gap: 8px; border-radius: var(--rl); overflow: hidden; }
.gal-g[data-count="1"] { grid-template-columns: 1fr; }
.gal-g[data-count="2"] { grid-template-columns: 1fr 1fr; }
.gal-g[data-count="3"] { grid-template-columns: 1fr 1fr 1fr; }
.gal-g[data-count="4"], .gal-g[data-count="5+"] { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; }
.gal-g[data-count="4"] .gal-i:first-child, .gal-g[data-count="5+"] .gal-i:first-child { grid-row: span 2; }
.gal-i { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--warm-light); cursor: pointer; }
.gal-g[data-count="4"] .gal-i, .gal-g[data-count="5+"] .gal-i { aspect-ratio: auto; }
.gal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.gal-i:hover img { transform: scale(1.05); }
.gal-more { position: absolute; inset: 0; background: rgba(45, 42, 38, 0.6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 600; }
@media (max-width: 767px) {
  .gal-g[data-count="4"], .gal-g[data-count="5+"] { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .gal-g[data-count="4"] .gal-i:first-child, .gal-g[data-count="5+"] .gal-i:first-child { grid-row: span 1; grid-column: span 2; }
}

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); z-index: 1000; display: none; flex-direction: column; }
.lb.active { display: flex; }
.lb-hdr { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; color: #fff; }
.lb-cnt { font-size: 14px; font-weight: 500; opacity: 0.8; }
.lb-close { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: rgba(255, 255, 255, 0.2); }
.lb-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 80px; position: relative; }
.lb-img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 8px; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lb-nav.prev { left: 24px; }
.lb-nav.next { right: 24px; }
.lb-cap { text-align: center; padding: 16px 24px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
@media (max-width: 767px) { .lb-main { padding: 0 60px; } .lb-nav { width: 40px; height: 40px; } }

/* Reviews */
.rvw { margin-top: 32px; padding: 28px; background: var(--white); border-radius: var(--rl); }
.rvw h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--ink); }
.rvw-summary { display: flex; gap: 24px; padding: 20px; background: var(--warm-light); border-radius: var(--r); margin-bottom: 24px; flex-wrap: wrap; }
.rvw-score { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 100px; }
.rvw-avg { font-family: var(--serif); font-size: 42px; font-weight: 700; color: var(--ink); line-height: 1; }
.rvw-stars { display: flex; gap: 2px; color: var(--coral); margin: 4px 0; }
.rvw-stars svg { width: 18px; height: 18px; }
.rvw-count { font-size: 13px; color: var(--ink-light); }
.rvw-dist { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.rvw-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rvw-bar-label { width: 50px; color: var(--ink-light); }
.rvw-bar-track { flex: 1; height: 8px; background: rgba(45, 42, 38, 0.1); border-radius: 4px; overflow: hidden; }
.rvw-bar-fill { height: 100%; background: var(--coral); border-radius: 4px; transition: width 0.3s; }
.rvw-bar-5 { width: var(--rvw-bar-5); }
.rvw-bar-4 { width: var(--rvw-bar-4); }
.rvw-bar-3 { width: var(--rvw-bar-3); }
.rvw-bar-2 { width: var(--rvw-bar-2); }
.rvw-bar-1 { width: var(--rvw-bar-1); }
.rvw-bar-count { width: 30px; text-align: right; color: var(--ink-light); font-size: 12px; }
.rvw-list { display: flex; flex-direction: column; gap: 20px; }
.rvw-item { padding-bottom: 20px; border-bottom: 1px solid var(--warm-light); }
.rvw-item:last-child { border-bottom: none; padding-bottom: 0; }
.rvw-item.rvw-hidden { display: none; }
.rvw-hdr { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rvw-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-light); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--sage); font-size: 14px; }
.rvw-meta { flex: 1; }
.rvw-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.rvw-date { font-size: 13px; color: var(--ink-light); }
.rvw-rating { display: flex; gap: 2px; color: var(--coral); }
.rvw-rating svg { width: 16px; height: 16px; }
.rvw-text { font-size: 15px; line-height: 1.6; color: var(--ink); }
.rvw-more { display: block; width: 100%; margin-top: 20px; padding: 12px 20px; background: var(--warm-light); border: none; border-radius: var(--r); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.rvw-more:hover { background: #ebe4d9; }
.rvw-more:disabled { opacity: 0.6; cursor: not-allowed; }
.rvw-note { margin-top: 16px; padding: 12px 16px; background: var(--cream); border-radius: var(--r); font-size: 13px; color: var(--ink-light); text-align: center; }
.rvw-note a { color: var(--coral); text-decoration: underline; }
.rvw-note a:hover { color: var(--coral-dark); }

/* FAQ */
.faq { margin-top: 32px; padding: 28px; background: var(--white); border-radius: var(--rl); }
.faq h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--ink); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--warm-light); border-radius: var(--r); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--warm-light); cursor: pointer; font-weight: 600; color: var(--ink); font-size: 15px; gap: 12px; text-align: left; width: 100%; border: none; }
.faq-q:hover { background: #ebe4d9; }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s; color: var(--ink-light); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { padding: 16px 20px; font-size: 15px; line-height: 1.6; color: var(--ink); display: none; }
.faq-item.open .faq-a { display: block; }

/* Back Link */
.bck { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; color: var(--coral); font-weight: 500; }
.bck:hover { text-decoration: underline; }
.bck svg { width: 16px; height: 16px; }

/* Footer */
.ftr { background: var(--cream); padding: 20px 24px; border-top: 1px solid rgba(45, 42, 38, 0.1); margin-top: 64px; }
.ftr-minimal { display: flex; justify-content: center; align-items: center; }
.ftr-nav { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; gap: 16px; }
.ftr-copy { font-size: 13px; color: var(--ink-light); }
.ftr-links { display: flex; align-items: center; gap: 20px; }
.ftr-links a { font-size: 13px; color: var(--ink-light); transition: color .15s; }
.ftr-links a:hover { color: var(--ink); }
.ftr-social { display: flex; align-items: center; gap: 16px; }
.ftr-social a { color: var(--ink-light); transition: color .15s; }
.ftr-social a:hover { color: var(--ink); }
.ftr-social svg { width: 18px; height: 18px; }
@media (max-width: 768px) { .ftr-nav { flex-direction: column; text-align: center; gap: 12px; } .ftr-links { justify-content: center; } .ftr-social { justify-content: center; } }

/* Sticky CTA (Mobile) */
.sck { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid rgba(45, 42, 38, 0.1); padding: 12px 20px; z-index: 90; }
@media (max-width: 767px) { .sck { display: block; } body { padding-bottom: 72px; } }
.sck .bp { width: 100%; text-align: center; }

/* Accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 300; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: 2px; }

/* Rich Content (Gutenberg) */
.rich-content { margin-top: 32px; padding: 28px; background: var(--white); border-radius: var(--rl); }
.rich-content h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 24px 0 12px; color: var(--ink); }
.rich-content h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 20px 0 10px; color: var(--ink); }
.rich-content h4 { font-size: 18px; font-weight: 600; margin: 16px 0 8px; color: var(--ink); }
.rich-content p { margin: 0 0 16px; line-height: 1.7; color: var(--ink); }
.rich-content ul, .rich-content ol { margin: 0 0 16px; padding-left: 0; color: var(--ink); list-style: none; }
.rich-content li { padding: 10px 0 10px 24px; position: relative; border-bottom: 1px solid var(--warm-light); }
.rich-content li:last-child { border-bottom: none; }
.rich-content li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; background: var(--coral); border-radius: 50%; }
.rich-content li strong { color: var(--ink); font-weight: 600; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--r); margin: 16px 0; }
.rich-content figure { margin: 24px 0; }
.rich-content figcaption { font-size: 14px; color: var(--ink-light); text-align: center; margin-top: 8px; }
.rich-content blockquote { border-left: 4px solid var(--warm); padding: 12px 20px; margin: 16px 0; background: var(--warm-light); font-style: italic; color: var(--ink); }
.rich-content a { color: var(--coral); text-decoration: underline; }
.rich-content a:hover { color: var(--coral-dark); }
.rich-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.rich-content th, .rich-content td { padding: 12px; border: 1px solid rgba(45, 42, 38, 0.1); }
.rich-content th { background: var(--warm-light); font-weight: 600; color: var(--ink); }
.rich-content iframe { max-width: 100%; margin: 16px 0; border-radius: var(--r); }
/* WordPress embed wrapper - responsive 16:9 container */
.rich-content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}
.rich-content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--r);
}
/* Fallback for iframes not in WordPress wrapper */
.rich-content iframe[src*="youtube"]:not(.wp-block-embed__wrapper iframe),
.rich-content iframe[src*="vimeo"]:not(.wp-block-embed__wrapper iframe) {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}
.rich-content .has-text-align-center, .rich-content td.has-text-align-center, .rich-content th.has-text-align-center { text-align: center; }
.rich-content .has-text-align-right, .rich-content td.has-text-align-right, .rich-content th.has-text-align-right { text-align: right; }
.rich-content .has-text-align-left, .rich-content td.has-text-align-left, .rich-content th.has-text-align-left { text-align: left; }
.rich-content .aligncenter { margin-left: auto; margin-right: auto; display: block; text-align: center; }
.rich-content .alignright { float: right; margin-left: 1em; }
.rich-content .alignleft { float: left; margin-right: 1em; }
.rich-content .wp-block-image { margin: 24px 0; }
.rich-content .wp-block-image.aligncenter { text-align: center; }
.rich-content .wp-block-image.aligncenter img { margin-left: auto; margin-right: auto; }
.rich-content .wp-block-image figcaption { font-size: 14px; color: var(--ink-light); margin-top: 8px; }

/* YouTube Facade - click-to-play pattern for performance */
.yt-facade { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; cursor: pointer; margin: 16px 0; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.yt-facade .yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; background: none; border: none; cursor: pointer; padding: 0; transition: transform 0.2s ease; }
.yt-facade:hover .yt-play { transform: translate(-50%, -50%) scale(1.1); }
.yt-facade .yt-play svg { width: 100%; height: 100%; }
.yt-facade iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
/* Facade inside WordPress embed wrapper - fill the padding-based container */
.wp-block-embed__wrapper .yt-facade { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }

/* Progress Bar */
.progress-bar { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 101; pointer-events: none; }
.progress-fill { height: 100%; background: var(--coral); transform-origin: left; transform: scaleX(0); }
.has-admin-bar .progress-bar { top: 32px; }
@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }

/* Admin Bar */
.admin-bar { position: fixed; top: 0; left: 0; right: 0; height: 32px; background: #111827; color: #fff; font-size: 13px; z-index: 200; display: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.admin-bar.show { display: flex; align-items: center; }
.admin-bar-list { display: flex; list-style: none; margin: 0; padding: 0; width: 100%; height: 100%; }
.admin-bar-list li { flex: 1; display: flex; height: 100%; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.admin-bar-list li:last-child { border-right: none; }
.admin-bar-link { flex: 1; display: flex; align-items: center; justify-content: center; color: #9ca3af; text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.admin-bar-link:hover { color: #fff; background: #374151; }
.admin-bar-link:focus { outline: none; color: #fff; background: #374151; box-shadow: inset 0 0 0 2px #60a5fa; }
.admin-bar-link:active { background: #4b5563; }
.admin-bar-link.active { color: #fff; background: #1f2937; box-shadow: inset 0 -2px 0 0 #3b82f6; }
.admin-bar-short { display: none; font-weight: 600; }
.admin-bar-full { display: inline; }
@media (max-width: 480px) { .admin-bar-short { display: inline; } .admin-bar-full { display: none; } }
.has-admin-bar .hdr { top: 32px; }
