/* Public pages and content admin. The homepage is "Parade" (.pd-*); every other page uses the "Eagle" pieces from app.css plus the ones below. Weights stay at 600 or lighter. */

.h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.h3 { font-size: 1.15rem; font-weight: 500; }
.mt { margin-top: 14px; }
.rounded { border-radius: var(--r); width: 100%; object-fit: cover; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.filters select, .filters input { min-height: 40px; width: auto; min-width: 150px; }
.filters { gap: 8px; }
.center-row { justify-content: center; margin-top: 28px; }

/* ── Home: "Parade" ── white like the costume cloth, appliqué shapes, ruffles, everything moving */
.pd { overflow: hidden; }
.pd-strip { overflow: hidden; white-space: nowrap; }
.pd-track { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; animation: pd-slide 56s linear infinite; }
@keyframes pd-slide { to { transform: translateX(-50%); } }
.pd-bg-orange { background: var(--orange); } .pd-bg-pink { background: var(--pink); } .pd-bg-lime { background: var(--lime); }
.pd-bg-cyan { background: var(--cyan); } .pd-bg-violet { background: var(--violet); } .pd-bg-sun { background: var(--sun); }

.pd-hero { position: relative; padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 104px); }
/* The first block (hero and confetti) fills exactly one screen, so the heap rests on the bottom edge of the window.
   The headline and photos size to the screen height to make that fit. */
.pd-first { display: flex; flex-direction: column; min-height: calc(100svh - 85px); }
@media (min-width: 701px) {
  .pd-hero { flex: 1 1 auto; display: flex; align-items: center; padding: clamp(10px, 2svh, 32px) 0; }
  .pd-hero-grid { flex: 1; }
}
.pd-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'top stage' 'act stage'; column-gap: clamp(28px, 5vw, 56px); align-items: end; }
.pd-hero-top { grid-area: top; position: relative; z-index: 1; }
.pd-hero-act { grid-area: act; position: relative; z-index: 1; align-self: start; }
.pd-stage { grid-area: stage; align-self: center; }
/* Phones and narrow tablets: the photos come first, then the words, then the branch search */
@media (max-width: 900px) {
  .pd-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'top' 'stage' 'act'; row-gap: 8px; }
  .pd-hero { padding-top: 16px; }
}
.pd-card-x { display: none; }
.pd-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 14px; border-radius: 10px; background: color-mix(in srgb, var(--pink) 10%, var(--surface)); color: #b0105f; font-weight: 600; font-size: .9rem; }
.pd-blip { width: 8px; height: 8px; border-radius: 3px; background: var(--pink); animation: pd-pop 2.4s ease-in-out infinite; }
@keyframes pd-pop { 50% { transform: scale(1.6); } }
.pd-title { font-size: clamp(2.6rem, min(5.4vw, 7.4svh), 5.2rem); line-height: .98; letter-spacing: -.035em; margin: 0; max-width: 13ch; }
.pd-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--text-2); max-width: 520px; margin: 14px 0 20px; }
.pd-cta { margin-top: 14px; }
/* The branch search: the first thing to do on the site */
.pd-search { max-width: 600px; padding: 16px 18px; border-radius: 24px; background: var(--surface); border: 2px solid var(--navy); box-shadow: 0 24px 50px rgba(20, 33, 61, .16); }
.pd-search-label { display: flex; align-items: center; gap: 8px; font: 600 1.15rem/1.2 var(--display); margin-bottom: 12px; }
.pd-search-label .icon { color: var(--red); }
.pd-search-box { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--surface-2); }
.pd-search-box .icon { color: var(--text-3); }
.pd-search-box input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 52px; padding: 6px 4px; font-size: 1.12rem; box-shadow: none; }
.pd-search-box input:focus { box-shadow: none; }
.pd-search-box .btn { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.pd-search-more { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 0 0; font-size: .95rem; }
.pd-search-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.pd-search-more a:hover { color: var(--red); }
:root[data-theme='dark'] .pd-search { border-color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .pd-search { border-color: var(--sun); } }
@media (max-width: 480px) { .pd-search-box { padding: 5px 5px 5px 12px; } .pd-search-box > .icon { display: none; } .pd-search-box .btn { padding: 0 18px; } }

.pd-stage { position: relative; height: clamp(340px, calc(100svh - 85px - 150px - 56px), 600px); }
.pd-card { border-radius: 26px; overflow: hidden; border: 10px solid #fff; box-shadow: 0 30px 60px rgba(20, 33, 61, .22); background: var(--surface-2); }
.pd-card img { width: 100%; height: 100%; object-fit: cover; }
.pd-stage .pd-card { position: absolute; animation: pd-bob 5s ease-in-out infinite; transform-origin: 50% 80%; }
.pd-card-a { --r: -7deg; left: 2%; top: 60px; width: 46%; aspect-ratio: 3 / 4; z-index: 1; }
.pd-card-b { --r: 5deg; animation-delay: -1.6s !important; right: 2%; top: 0; width: 50%; aspect-ratio: 3 / 4; z-index: 2; }
.pd-card-c { --r: -2deg; animation-delay: -3.2s !important; left: 28%; bottom: 0; width: 44%; aspect-ratio: 4 / 3; z-index: 2; }
.pd-card-c img { object-position: 50% 30%; }
@keyframes pd-bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 3deg)); } }
.pd-card-flat { aspect-ratio: 5 / 4; border-width: 0; }

/* Confetti band (drawn on a canvas by public/js/confetti.js) */
.pd-confetti { position: relative; height: 150px; overflow: hidden; flex: none; }
/* One canvas from the top of the page to the bottom of the band, behind everything and never clickable */
.pd { position: relative; }
.pd-confetti-canvas { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; display: block; }
.pd-hero { z-index: 1; }
.pd-stage { z-index: 1; }

.pd-section { padding: clamp(64px, 9vw, 104px) 0; }
.pd-soft { background: var(--surface-2); }
.pd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 34px; }
.pd-head .pd-h2 { margin: 0; }
.pd-h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.pd-kicker { margin: 0 0 12px; font-weight: 600; font-size: .95rem; }
.pd-body { font-size: 1.1rem; line-height: 1.6; color: var(--text-2); max-width: 540px; margin-bottom: 22px; }
.pd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(28px, 5vw, 56px); align-items: center; }

.pd-finder { background: #fff4e8; padding: clamp(64px, 9vw, 96px) 0; }
.pd-match { background: var(--surface); border-radius: 28px; padding: clamp(20px, 3vw, 30px); box-shadow: 0 24px 60px rgba(194, 78, 0, .14); }
.pd-label { display: block; font-weight: 600; margin: 0 0 10px; }
.pd-match .pd-label + .pd-chips { margin-top: 0; }
.pd-match-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pd-match-row input { flex: 1 1 220px; min-height: 52px; }
.pd-orange { background: var(--orange); color: #fff; }
.pd-orange:hover { color: #fff; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip { position: relative; cursor: pointer; }
.pd-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pd-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; font-weight: 500; transition: transform .2s var(--ease), box-shadow .2s; border: 2px solid transparent; }
.pd-chip:hover span { transform: translateY(-2px); }
.pd-chip input:checked + span { border-color: currentColor; box-shadow: 0 6px 16px rgba(20, 33, 61, .12); }
.pd-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.pd-chip-orange span { background: #fff0e3; color: #a84300; } .pd-chip-pink span { background: #fff0f7; color: #b0105f; }
.pd-chip-lime span { background: #eef9e0; color: #3d6b00; } .pd-chip-cyan span { background: #e6f8fc; color: #006e8a; }
.pd-chip-violet span { background: #f1eafe; color: #5a22c8; } .pd-chip-sun span { background: #fff6d6; color: #7a5a00; }

.pd-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 22px; }
.pd-act { border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; display: block; }
.pd-act:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); color: inherit; }
.pd-act-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.pd-act-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pd-act:hover .pd-act-img img { transform: scale(1.08); }
.pd-act-name { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 22px; font: 600 1.35rem/1.15 var(--display); letter-spacing: -.02em; }
.pd-sq { width: 14px; height: 14px; border-radius: 4px; flex: none; }

.pd-events { position: relative; background: var(--navy); color: #fff; padding: clamp(64px, 9vw, 104px) 0; overflow: hidden; }
.pd-link-light { color: #fff; font-weight: 600; }
.pd-link-light:hover { color: var(--sun); }
.pd-ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.pd-ev { border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; transition: transform .35s var(--ease), box-shadow .35s; }
.pd-ev:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.pd-ev-sun { background: var(--sun); color: var(--navy); } .pd-ev-pink { background: var(--pink); color: #fff; } .pd-ev-lime { background: var(--lime); color: var(--navy); }
.pd-ev:hover { color: inherit; } .pd-ev-pink:hover { color: #fff; }
.pd-ev-tag { align-self: flex-start; padding: 6px 10px; border-radius: 8px; background: var(--navy); color: var(--sun); font-weight: 600; font-size: .82rem; }
.pd-ev-pink .pd-ev-tag { background: #fff; color: #b0105f; }
.pd-ev-lime .pd-ev-tag { color: var(--lime); }
.pd-ev-title { font: 600 clamp(1.9rem, 3vw, 2.5rem)/1 var(--display); letter-spacing: -.03em; }
.pd-ev-text { font-size: 1.02rem; line-height: 1.5; }
.pd-ev-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pd-ev-foot .icon { margin-left: auto; transition: transform .3s var(--ease); }
.pd-ev:hover .pd-ev-foot .icon { transform: translateX(6px); }
.pd-ev-demo { font-size: .72rem; padding: 2px 7px; border-radius: 6px; border: 1.5px dashed currentColor; }
.pd-news { margin-top: 48px; }
.pd-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.pd-news-item { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 22px; }
.pd-news-item h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.pd-news-item p { margin: 0; color: var(--on-dark); }
.pd-news-when { font-size: .82rem; display: flex; gap: 8px; align-items: center; }

.pd-gallery { padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 7vw, 80px); }
.pd-strip img { height: clamp(240px, 26vw, 340px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; display: inline-block; }

.pd-partners { padding: 48px 0; border-top: 1px solid var(--line); }
.pd-join-wrap { padding: 0 0 clamp(64px, 8vw, 96px); }
.pd-join { position: relative; overflow: hidden; border-radius: 36px; background: var(--violet); color: #fff; padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 32px; align-items: center; }
.pd-join-title { position: relative; font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: .98; letter-spacing: -.035em; margin: 0; }
.pd-join-side { position: relative; font-size: 1.12rem; line-height: 1.6; }
.pd-join-side .prose p { color: #fff; }
.pd-white { background: #fff; color: #5a22c8; }
.pd-white:hover { color: #5a22c8; }
.pd .contact-strip { border-radius: 26px; }

:root[data-theme='dark'] .pd-finder { background: #1d1a1f; }
:root[data-theme='dark'] .pd-card { border-color: var(--surface-2); }
:root[data-theme='dark'] .pd-pill { color: #ff8cc4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .pd-finder { background: #1d1a1f; }
  :root:not([data-theme='light']) .pd-card { border-color: var(--surface-2); }
  :root:not([data-theme='light']) .pd-pill { color: #ff8cc4; }
}
:root[data-theme='dark'] .pd-cta .btn-sun { background: transparent; color: var(--text); border-color: var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .pd-cta .btn-sun { background: transparent; color: var(--text); border-color: var(--line-2); } }
/* Phones: words, then a swipeable photo slider that fills the space left, then the branch search, with the
   confetti heap on the bottom edge of the first screen. */
@media (max-width: 700px) {
  .pd-first { display: flex; flex-direction: column; min-height: calc(100svh - 71px); }
  .pd-hero { flex: 1 1 auto; display: flex; padding: 8px 0 8px; }
  .pd-hero-grid { flex: 1; display: flex; flex-direction: column; gap: 12px; }
  .pd-pill, .pd-cta { display: none; }
  .pd-title { font-size: clamp(1.85rem, min(9vw, 5.4svh), 2.4rem); max-width: none; }
  .pd-lead { margin: 8px 0 0; font-size: 1rem; }
  .pd-hero-grid { align-items: stretch; }
  .pd-hero-act, .pd-search { width: 100%; max-width: none; }
  /* The photo pile: inside the page margins, cards stacked and tucked behind the front one (positions: stack.js) */
  .pd-stage { position: relative; align-self: stretch; flex: 1 1 0; height: auto; min-height: 180px; max-height: 420px; margin: 4px 0 6px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
  .pd-stage .pd-card { position: absolute; display: block; top: 0; bottom: 14px; left: 13%; right: 13%; width: auto; height: auto; aspect-ratio: auto; animation: none; border-width: 6px; border-radius: 22px; box-shadow: 0 14px 30px rgba(20, 33, 61, .2); cursor: grab; will-change: transform; }
  .pd-stage .pd-card img { object-position: 50% 30%; pointer-events: none; -webkit-user-drag: none; }
  .pd-search { padding: 14px; border-radius: 20px; }
  .pd-search-label { font-size: 1rem; margin-bottom: 8px; }
  .pd-search-box input, .pd-search-box .btn { min-height: 46px; }
  .pd-search-more { margin-top: 8px; font-size: .9rem; }
  .pd-confetti { height: 110px; }
}

.mini-timeline { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.mini-timeline li { border-top: 2px solid var(--red); padding-top: 12px; display: grid; gap: 4px; }
.mini-when { font: 500 1.4rem/1.1 var(--display); color: var(--red-ink); }

.news-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.news-when { font-size: .8rem !important; color: var(--text-3) !important; display: flex; gap: 8px; align-items: center; }

/* ── Shared Eagle pieces for inner pages ── */
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.event-cover { position: relative; overflow: hidden; }
.event-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.event-card:hover .event-cover img { transform: scale(1.06); }
.event-date { position: absolute; left: 14px; top: 14px; background: var(--red); color: #fff; border-radius: 12px; padding: 8px 11px; text-align: center; line-height: 1; box-shadow: 0 8px 20px rgba(210, 31, 60, .35); }
.event-date b { display: block; font: 600 1.5rem/1 var(--display); }
.event-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #ffe1e6; }
.event-body { padding: 18px 20px 20px; display: grid; gap: 6px; border-top: 2px dashed var(--line); }
.event-body h3 { margin: 4px 0 2px; font-size: 1.3rem; }
.event-meta { margin: 0; display: flex; gap: 6px; align-items: center; color: var(--text-2); font-size: .92rem; }
.event-meta .icon { color: var(--red); }

.activity-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.media-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); }
.media-tile { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--surface-3); }
.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.media-tile:hover img { transform: scale(1.07); }
.play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(210, 31, 60, .4); }
.media-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .84rem; font-weight: 500; color: #fff; background: linear-gradient(180deg, transparent, rgba(14, 24, 48, .85)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery { margin-top: 6px; }

.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 8px; align-items: center; }
.check-list .icon { color: var(--ok); }

.sponsor-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sponsor { display: grid; place-items: center; gap: 6px; min-height: 100px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
a.sponsor:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sponsor img { max-height: 54px; width: auto; object-fit: contain; }
.sponsor-name { font: 500 1rem/1.2 var(--display); }

.contact-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: var(--r); background: var(--surface-2); }
.contact-strip h2 { margin: 0 0 4px; font-size: 1.5rem; }
.contact-strip p { margin: 0; }
.contact-items { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.contact-items > a:not(.btn), .contact-items > span { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }

/* ── About ── */
.mvv { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: -64px; position: relative; z-index: 2; }
.mvv { margin-top: 0; }
.mvv-card { background: var(--navy); color: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-lg); }
.mvv-card:nth-child(3n+2) { background: var(--red); }
.mvv-card:nth-child(3n) { background: var(--sun); color: var(--navy); }
.mvv-card .prose p, .mvv-card p { color: inherit; }
.about-blocks { display: grid; gap: clamp(36px, 6vw, 72px); }
.about-block { max-width: 820px; }
.about-block.with-image { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.about-block.with-image.flip img { order: 2; }
.about-block img { width: 100%; border-radius: 30px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .about-block.with-image { grid-template-columns: 1fr; } .about-block.with-image.flip img { order: 0; } }
.leader { text-align: left; }
.leader img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 24px 24px; margin-bottom: 14px; }
.leader h3 { margin: 0 0 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.leader p { margin: 0 0 6px; }

/* ── Activities ── */
.activity-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.activity-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.activity-card:hover img { transform: scale(1.06); }
.activity-card-body { padding: 16px; }
.activity-card-body h3 { margin-bottom: 6px; }

/* ── Events ── */
.events-bar { margin-bottom: 18px; }
.events-bar .tabs { margin-bottom: 0; border-bottom: 0; }
.event-hero { position: relative; color: #fff; padding: clamp(64px, 10vw, 140px) 0 clamp(36px, 5vw, 60px); background: var(--cover) center/cover, var(--navy-deep); isolation: isolate; }
.event-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,24,48,.3), rgba(14,24,48,.9)); }
.event-hero .crumbs { color: #dfe5f2; }
.event-hero .gold { color: var(--sun); }
.event-hero h1 { margin: 12px 0 10px; max-width: 22ch; }
.event-hero .lead { color: #eef2fa; }

/* ── Gallery viewer ── */
.viewer-stage { background: #0b1222; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; min-height: 240px; }
.viewer-stage img { max-height: 78vh; width: auto; max-width: 100%; }
.viewer-stage iframe, .viewer-stage video { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.viewer-meta { margin-top: 16px; align-items: flex-start; }
.viewer-meta h1 { margin-bottom: 6px; }
.viewer-meta .tags a.tag:hover { color: var(--accent); }

/* ── History ── */
.history { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.history::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--orange), var(--pink), var(--violet), var(--cyan), var(--lime)); }
.history li { position: relative; padding: 0 0 36px 36px; }
.history li::before { content: ''; position: absolute; left: -1px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 4px solid var(--red); }
.history-when { font: 600 1.6rem/1.1 var(--display); color: var(--red-ink); display: block; margin-bottom: 6px; }
.history-body h2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.history-body img { border-radius: var(--r); margin: 10px 0 14px; width: 100%; object-fit: cover; }

/* ── Membership steps ── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.steps li:hover { transform: translateY(-6px); }
.step-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--orange); color: #fff; margin-bottom: 16px; }
.steps li:nth-child(6n+2) .step-icon { background: var(--pink); } .steps li:nth-child(6n+3) .step-icon { background: var(--cyan); }
.steps li:nth-child(6n+4) .step-icon { background: var(--violet); } .steps li:nth-child(6n+5) .step-icon { background: var(--lime); color: var(--navy); } .steps li:nth-child(6n) .step-icon { background: var(--sun); color: var(--navy); }
.steps .step-n { display: block; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.steps h3 { margin: 6px 0 6px; }
.steps p { margin: 0; font-size: .93rem; }

/* ── Contact ── */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.contact-list .icon { color: var(--red); }

/* ── Content admin ── */
.cms-bar { margin-bottom: 14px; }
.cms-bar p { margin: 0; }
.cms-thumb { width: 160px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; }
.cms-row-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.danger-zone { margin-top: 18px; }
.cms-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cms-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cms-preview img { max-height: 340px; width: auto; border-radius: 10px; }
.cms-media { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); }
.cms-media-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; }
.cms-media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cms-media-meta { padding: 8px 10px; display: grid; gap: 4px; font-size: .85rem; min-width: 0; }
.cms-media-meta .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cms-media-meta .row { gap: 6px; }
.cms-media-meta .sub { color: var(--text-3); }

/* ── Group branding: a text wordmark for a group without a logo, and the "Part of Ankos" credit ── */
.brand-text { min-height: 48px; text-decoration: none; }
.brand-wordmark { font: 600 1.35rem/1.05 var(--display); letter-spacing: -.02em; color: inherit; max-width: 14ch; overflow-wrap: anywhere; }
.footer-brand .brand-wordmark { font-size: 1.8rem; }
.side .brand-wordmark { font-size: 1.15rem; }
.auth-card .brand-wordmark { font-size: 1.6rem; }
.footer-credits { display: inline-flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.ankos-credit b { font-weight: 600; }
