/* ============================================================
   PORADI — Persatuan Olahraga Dart Indonesia
   Global stylesheet (style.css) — dipakai semua halaman
   Warna diambil dari logo & tampilan home.pdf
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --red:        #c92323;
  --red-dark:   #a81b1b;
  --red-deep:   #9c1717;
  --gray:       #9e9e9e;
  --ink:        #262626;
  --body:       #4c4c4c;
  --muted:      #7a7a7a;
  --surface:    #f7f7f7;
  --surface-2:  #fbfbfb;
  --line:       #ececec;
  --white:      #ffffff;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.05);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 64px; }
.section--tight { padding-block: 44px; }

.section-head { text-align: center; max-width: 780px; margin-inline: auto; }
.section-head h2 { color: var(--red); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: .6em; }
.section-head p  { color: var(--muted); font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  padding: .85em 1.6em;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn .arrow { font-size: 1em; line-height: 0; }

.btn--sm { padding: .7em 1.3em; font-size: .72rem; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--red); border-color: var(--red); }
.btn--ghost:hover { --btn-fg: var(--white); background: var(--red); }
.btn--onred { --btn-bg: var(--white); --btn-fg: var(--red); border-color: var(--white); }
.btn--onred:hover { background: #f2f2f2; border-color: #f2f2f2; color: var(--red-deep); }

/* ---------- Placeholder frames (foto pengganti) ---------- */
.frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #efefef 0 14px, #f6f6f6 14px 28px);
  border: 1px dashed #cfcfcf;
  display: grid;
  place-items: center;
}
.frame::before {
  content: attr(data-label);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gray);
  text-align: center;
  padding: 1em;
  max-width: 90%;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-4-3   { aspect-ratio: 4 / 3; }
.ratio-3-4   { aspect-ratio: 3 / 4; }
.ratio-1-1   { aspect-ratio: 1 / 1; }
.frame--round { border-radius: 999px; }

/* ============================================================
   HEADER + NAV  (konsisten di semua halaman)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero .container {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-top: 40px;
}
.hero__title {
  color: var(--red);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: .55em;
}
.hero__text { color: var(--muted); font-size: .95rem; margin-bottom: 1.8em; }

/* ============================================================
   TWO-COLUMN CONTENT (Apa itu / Program)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.block-title { color: var(--red); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.6rem); margin-bottom: .8em; }
.block-text { font-size: .95rem; }
.block-text p { color: var(--body); }
.block-text strong { color: var(--ink); font-weight: 600; }

/* Program list */
.prog-list { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: 1em; }
.prog-list li { display: flex; gap: .7em; align-items: flex-start; font-size: .92rem; color: var(--body); }
.prog-list .ico { flex: none; font-size: 1.05rem; line-height: 1.5; }
.prog-list strong { color: var(--red); font-weight: 600; }

/* ============================================================
   EVENT CARDS
   ============================================================ */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card .frame { border-radius: 0; border: none; border-bottom: 1px dashed #cfcfcf; }
.event-card__foot { padding: 16px 18px; }
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--red);
}
.learn-more:hover { color: var(--red-dark); }

.center-action { text-align: center; margin-top: 40px; }

/* ============================================================
   RANKING CARDS
   ============================================================ */
.rank-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.rank-card .frame { border-radius: 0; border: none; }
.rank-card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  color: var(--white);
}
.rank-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.rank-card__pts  { font-size: .85rem; opacity: .9; }

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.gallery-grid .frame { border-radius: var(--radius-sm); }

/* ============================================================
   CTA (kotak merah)
   ============================================================ */
.cta .container {
  background: var(--red);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  color: #fff;
}
.cta h2 { color: #fff; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .7em; }
.cta p { color: rgba(255,255,255,.92); font-size: .95rem; }
.cta__accent { font-weight: 600; color: #fff; }
.cta__media { display: grid; place-items: center; }
.cta__media .frame {
  width: min(340px, 100%);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 14px, rgba(255,255,255,.28) 14px 28px);
  border-color: rgba(255,255,255,.6);
}
.cta__media .frame::before { color: rgba(255,255,255,.85); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 28px;
  text-align: center;
}
.site-footer p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 24px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }

  .hero .container,
  .split,
  .cta .container { grid-template-columns: 1fr; }
  .hero .container { text-align: left; }
  .split--reverse .split__media { order: 0; }
  .cta__media { order: -1; }

  .card-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 48px; }
}

/* ---------- A11y niceties ---------- */
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   ==== TAMBAHAN KONSOLIDASI (semua halaman) ==================
   Bagian di bawah ini melengkapi style.css versi awal agar
   halaman About, Ranking, Contact, Gallery, Album, dan Article
   tampil dengan benar. Tidak ada rule lama yang diubah.
   ============================================================ */

/* ---------- Rasio tambahan ---------- */
.ratio-3-2  { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

/* ---------- Utilitas ---------- */
.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;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5em;
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.4em;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--gray); }
.breadcrumb [aria-current="page"] { color: var(--red); }

/* ---------- Hero varian halaman dalam ---------- */
.hero--page .container { margin-top: 32px; }
.hero__body, .hero__copy { min-width: 0; }
.hero__media { min-width: 0; }
.hero--page .hero__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

/* ---------- Split ---------- */
.split__media, .split__body { min-width: 0; }

/* ---------- Tabel: pembungkus scroll ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  margin-top: 28px;
}
.table-wrap:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Tabel struktur organisasi (About) ---------- */
.org-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: .92rem;
}
.org-table th, .org-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.org-table tbody th[scope="row"] {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  width: 46%;
}
.org-table td { color: var(--body); }
.org-table .org-group th {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.org-table .is-strong { color: var(--red); font-weight: 600; }
.org-table tbody tr:last-child th,
.org-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Tabel ranking (halaman Ranking) ---------- */
.rank-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: .9rem;
}
.rank-table thead th {
  background: #eaeaea;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  text-align: left;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky; top: 0;
}
.rank-table tbody th,
.rank-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.rank-table tbody tr:last-child th,
.rank-table tbody tr:last-child td { border-bottom: 0; }
.rank-table .col-no    { color: var(--muted); width: 58px; }
.rank-table .col-name  {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--red);
  text-align: left;
  min-width: 200px;
}
.rank-table .col-score { color: var(--body); white-space: nowrap; }
.rank-table .col-total {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.rank-table tbody tr:nth-child(even) th,
.rank-table tbody tr:nth-child(even) td { background: #ededed; }
.rank-title {
  text-align: center;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin-bottom: 6px;
}
.rank-subtitle {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0;
}
.table-hint {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin: 14px 0 0;
}

/* ---------- CTA tambahan ---------- */
.cta__body { min-width: 0; }
.cta__lead { font-weight: 600; color: #fff; }
.cta--reverse .container { grid-template-columns: .85fr 1.15fr; }

/* ---------- Halaman Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-intro { min-width: 0; }
.contact-title {
  color: var(--red);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: .7em;
}
.contact-intro p { font-size: .95rem; }

.contact-channels { list-style: none; margin: 1.8em 0 0; padding: 0; display: grid; gap: .8em; }
.contact-channels li { display: flex; gap: .7em; align-items: baseline; font-size: .95rem; }
.contact-channels .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
  flex: none;
  min-width: 92px;
}
.contact-channels a { color: var(--red); font-weight: 500; }
.contact-channels a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 34px);
  min-width: 0;
}
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: .45em; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.field .req { color: var(--red); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #dcdcdc;
  border-radius: var(--radius-sm);
  padding: .8em .9em;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--red); outline: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- Gallery: kartu album berjudul ---------- */
.gallery-grid--captioned { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-figure { margin: 0; }
.gallery-figure a { display: block; }
.gallery-figure .frame { transition: transform .2s ease, box-shadow .2s ease; }
.gallery-figure a:hover .frame { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-figure figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  margin-top: .8em;
  line-height: 1.4;
}
.gallery-figure a:hover figcaption { color: var(--red); }

/* ---------- Halaman album (galeri detail) ---------- */
.album-title {
  text-align: center;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  margin-bottom: 8px;
}
.album-count {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.album-grid .frame { border-radius: var(--radius-sm); }
.album-back { text-align: center; margin-top: 44px; }

/* ---------- Article: daftar kartu ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 8px;
}
.article-card { min-width: 0; }
.article-card__thumb { display: block; }
.article-card__thumb .frame { transition: transform .2s ease, box-shadow .2s ease; }
.article-card__thumb:hover .frame { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 1em 0 .5em;
}
.article-card__title a { color: var(--ink); }
.article-card__title a:hover { color: var(--red); }
.article-card__excerpt { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Article: halaman tunggal ---------- */
.article-single .container { max-width: 760px; }
.article-single__title {
  color: var(--red);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: .6em;
}
.article-single__meta {
  font-family: var(--font-display);
  font-size: .78rem;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .6em; align-items: center;
}
.article-single__meta .dot { color: var(--gray); }
.article-single__hero { margin: 0 0 2em; }
.article-single__caption { font-size: .82rem; color: var(--muted); margin-top: .7em; }

.article-body { font-size: .98rem; color: var(--body); }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2em 0 .9em;
}
.article-body h3 { font-size: .98rem; font-weight: 600; margin: 1.6em 0 .7em; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body blockquote {
  margin: 1.8em 0;
  padding: .2em 0 .2em 1.2em;
  border-left: 3px solid var(--red);
  color: var(--ink);
  font-size: 1.02rem;
}
.article-figure { margin: 2em 0; }
.article-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .7em; }
.article-single__back { margin: 2.6em 0 0; }

/* ---------- Article: navigasi Previous / Next ---------- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
}
.post-nav__item { display: flex; gap: 14px; align-items: center; min-width: 0; }
.post-nav__item--next { justify-content: flex-end; text-align: right; }
.post-nav__item--next .post-nav__text { order: -1; }
.post-nav__thumb {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 999px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #efefef 0 10px, #f6f6f6 10px 20px);
  border: 1px dashed #cfcfcf;
}
.post-nav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-nav__label {
  font-family: var(--font-display);
  font-size: .66rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray);
  display: block; margin-bottom: .35em;
}
.post-nav__title {
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 700;
  line-height: 1.4; color: var(--ink);
}
.post-nav a:hover .post-nav__title { color: var(--red); }
.post-nav__item--empty { visibility: hidden; }

/* ---------- Article: Related Posts (blok merah) ---------- */
.related { background: var(--red); padding-block: 48px; }
.related h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.4em;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { min-width: 0; }
.related-card .frame {
  border-color: rgba(255,255,255,.55);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 12px, rgba(255,255,255,.28) 12px 24px);
}
.related-card .frame::before { color: rgba(255,255,255,.9); }
.related-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 700; line-height: 1.45;
  color: #fff;
  margin-top: .9em;
}
.related-card a:hover .related-card__title { text-decoration: underline; }

/* ---------- Footer: kontak & sosial ---------- */
.footer-links {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 26px;
  margin: 0 0 12px; padding: 0;
}
.footer-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  color: var(--ink);
}
.footer-links a:hover { color: var(--red); }

/* ============================================================
   RESPONSIVE — tambahan
   ============================================================ */
@media (max-width: 960px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cta--reverse .container { grid-template-columns: 1fr; }
  .cta--reverse .cta__media { order: -1; }
  .gallery-grid--captioned { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; gap: 20px; }
  .post-nav__item--next { justify-content: flex-start; text-align: left; }
  .post-nav__item--next .post-nav__text { order: 0; }
  .post-nav__item--empty { display: none; }
}

@media (max-width: 620px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .article-grid { grid-template-columns: 1fr; }
  .gallery-grid--captioned { grid-template-columns: 1fr; }
  .rank-table { font-size: .84rem; }
  .rank-table thead th { padding: 12px; font-size: .74rem; }
  .rank-table tbody th, .rank-table tbody td { padding: 10px 12px; }
  .org-table { font-size: .86rem; }
}

/* ============================================================
   RESPONSIVE — urutan mobile: foto selalu di atas
   Berlaku untuk semua section dua kolom (hero, split, CTA).
   Di desktop posisi kiri/kanan tetap mengikuti urutan HTML.
   ============================================================ */
@media (max-width: 860px) {
  .hero .hero__media,
  .split .split__media,
  .cta .cta__media { order: -1; }
}

/* ---------- Contact: status kirim form & kolom jebakan spam ---------- */
.form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  line-height: 1.5;
}
.form-status--ok    { background: #e8f5ec; color: #1d6b37; border: 1px solid #b9e0c6; }
.form-status--error { background: #fdecec; color: var(--red-deep); border: 1px solid #f3c1c1; }
.hp-field {
  position: absolute !important;
  left: -10000px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ============================================================
   RANKING — tab musim/divisi & tabel versi baru (rank-table--pro)
   Rule lama .rank-table tidak diubah; semua lewat kelas tambahan.
   ============================================================ */

/* ---------- Tab ---------- */
.rank-tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.rank-tabs--sub { margin: 22px 0 0; }
.rank-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  padding: .75em 1.5em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.rank-tab:hover { border-color: var(--red); color: var(--red); }
.rank-tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.rank-tabs--sub .rank-tab { font-size: .72rem; padding: .6em 1.3em; }
.rank-tabs--sub .rank-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }

/* Tanpa JavaScript: tab disembunyikan, semua tabel tampil berurutan */
.rank-switch:not(.is-ready) .rank-tabs { display: none; }
.rank-switch:not(.is-ready) .rank-season + .rank-season { margin-top: 64px; }
.rank-division {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 0;
}
.rank-switch.is-ready .rank-division {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Pembungkus tabel: kartu ---------- */
.table-wrap--card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.table-wrap--narrow { max-width: 680px; margin-inline: auto; }

/* ---------- Tabel ---------- */
.rank-table--pro { border: 0; }
.rank-table--compact { min-width: 0; }
.rank-table--pro thead th[scope] {
  background: var(--ink);
  color: var(--white);
  border-bottom: 0;
  letter-spacing: .04em;
}
.rank-table--pro tbody th,
.rank-table--pro tbody td { background-color: var(--white); }
.rank-table--pro tbody tr:nth-child(even) th,
.rank-table--pro tbody tr:nth-child(even) td { background-color: var(--surface); }
.rank-table--pro tbody tr.is-top th,
.rank-table--pro tbody tr.is-top td { background-color: #fdf3f3; }
.rank-table--pro tbody tr:hover th,
.rank-table--pro tbody tr:hover td { background-color: #fbe7e7; }

/* Kolom Total ditonjolkan */
.rank-table--pro .col-total { text-align: right; }
.rank-table--pro tbody tr td.col-total {
  color: var(--red);
  background-image: linear-gradient(rgba(201,35,35,.06), rgba(201,35,35,.06));
}
.rank-table--pro thead th[scope].col-total { background: var(--red); }
.rank-table--pro thead th[scope].col-name { font-family: var(--font-display); font-weight: 700; }
.rank-table--pro .is-empty { color: #b5b5b5; }

/* Medali peringkat 1–3 */
.rank-medal {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}
.rank-medal--1 { background: #f1c84b; }
.rank-medal--2 { background: #cfd3d8; }
.rank-medal--3 { background: #d99a63; }
.rank-table--pro tbody tr.is-top .col-name { font-weight: 600; }

/* Kolom No. & Nama menempel di kiri saat tabel digeser */
.rank-table--pro .col-no {
  position: sticky; left: 0; z-index: 1;
  width: 58px; min-width: 58px;
}
.rank-table--pro .col-name {
  position: sticky; left: 58px; z-index: 1;
  box-shadow: 1px 0 0 var(--line);
}
.rank-table--pro thead .col-no,
.rank-table--pro thead .col-name { z-index: 2; }

/* Home: label divisi di atas kartu atlet */
.rank-subtitle--home { margin-top: 24px; }

@media (max-width: 620px) {
  .rank-table--pro .col-name { min-width: 150px; }
  .rank-tab { padding: .7em 1.2em; }
}

/* ---------- Event: rasio poster 4:5 (banner 1080 × 1350) ---------- */
.ratio-4-5 { aspect-ratio: 4 / 5; }

/* ---------- Frame: tanpa garis putus-putus (foto maupun placeholder) ---------- */
.frame,
.event-card .frame { border: none; }

/* ============================================================
   ABOUT — Struktur organisasi versi kartu (.org)
   Menggantikan tampilan .org-table di halaman About.
   Rule lama .org-table tidak diubah (tidak dipakai lagi).
   ============================================================ */
.org { margin-top: 32px; display: grid; gap: 40px; }

.org-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.org-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}

/* Label kelompok: Dewan Pembina / Dewan Pengawas / Pengurus */
.org-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 16px;
}
.org-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.org-panel .org-label::after { background: #e2e2e2; }

/* Grid kartu */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
}
.org-grid--2 { grid-template-columns: repeat(2, 1fr); }
.org-grid--1 { grid-template-columns: 1fr; }

/* Kartu pengurus */
.org-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.org-card:hover { box-shadow: var(--shadow); border-color: #e2e2e2; border-left-color: var(--red); }
.org-card dt,
.org-unit dt {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--body);
  margin: 0 0 6px;
}
.org-card dd,
.org-unit dd { margin: 0; }
.org-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.org-name.is-empty { color: #b5b5b5; font-weight: 500; }

/* Ketua Umum: kartu utama merah, selebar grid */
.org-card--lead {
  grid-column: 1 / -1;
  background: var(--red);
  border-color: var(--red);
  text-align: center;
  padding: 26px 20px;
}
.org-card--lead:hover { border-color: var(--red); }
.org-card--lead dt {
  color: #fde8e8;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.org-card--lead .org-name { color: var(--white); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }

/* Kartu bidang: ketua + anggota */
.org-units {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.org-unit {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  min-width: 0;
}
.org-unit .org-sub {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.org-chips {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.org-chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35em .9em;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 960px) {
  .org-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .org-top { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .org { gap: 32px; }
  .org-panel { padding: 18px; }
  .org-grid,
  .org-grid--2,
  .org-units { grid-template-columns: 1fr; }
}
