/* =====================================================================
   8A142RDS — tampilan publik
   Warna diambil dari template eQSL & sertifikat: cokelat sogan, perunggu,
   emas huruf callsign, merah ORARI.
   ===================================================================== */
:root {
  --sogan: #3a2416;
  --sogan-2: #4a2f1d;
  --sogan-3: #5e3d26;
  --bronze: #a8743f;
  --gold: #e2b65b;
  --gold-hi: #f7dd97;
  --red: #c8102e;
  --paper: #f1e8d8;
  --paper-2: #e7dbc5;
  --card: #fbf7ef;
  --ink: #24170f;
  --muted: #6f5a49;
  --line: #d8c7ab;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--body); color: var(--ink); background: var(--card); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .005em; }
h2, .h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 680px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 14px 0 28px; max-width: 62ch; }

/* ---------- top bar ---------- */
.topbar { background: var(--sogan); color: #f3e6cf; position: relative; z-index: 3; border-bottom: 1px solid rgba(226,182,91,.18); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: .95rem; }
.brand img { height: 40px; width: auto; }
.brand strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; margin-right: 4px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: .95rem; color: #e9d9bd; }
.nav a:hover { background: var(--sogan-2); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #f6ead4;
  background:
    radial-gradient(1100px 520px at 18% 40%, rgba(168,116,63,.38), transparent 60%),
    radial-gradient(700px 400px at 85% 0%, rgba(226,182,91,.12), transparent 70%),
    var(--sogan);
}
.hero__statue {
  position: absolute; left: max(0px, calc(50% - 660px)); bottom: 0;
  height: 100%; width: auto; max-height: 640px; object-fit: contain; object-position: bottom left;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 66%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 66%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%);
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 600px; }
.hero__text { grid-column: 2; padding: 72px 0 64px; display: flex; flex-direction: column; justify-content: center; }
.hero__kicker { font-weight: 600; color: var(--gold); font-size: 1rem; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero__kicker span { color: #e8d6b6; font-weight: 500; }
.hero__call {
  font-family: var(--display); font-weight: 700; line-height: .9; letter-spacing: -.01em;
  font-size: clamp(4.2rem, 11.5vw, 9.5rem); margin: 14px 0 18px -0.06em;
  background: linear-gradient(180deg, #fff3c9 0%, var(--gold-hi) 22%, var(--gold) 52%, #9c6a22 78%, #e7bf63 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(40,20,8,.55)) drop-shadow(0 14px 30px rgba(0,0,0,.35));
  word-break: break-word;
}
.hero__tagline { font-size: 1.12rem; max-width: 46ch; color: #eadbc2; }
.hero__tally { margin-top: 30px; color: #dcc8a8; font-size: 1rem; }
.hero__tally b { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: #fff3d6; margin: 0 2px; }

.lookup { margin-top: 34px; max-width: 520px; }
.lookup label { display: block; font-weight: 600; margin-bottom: 10px; color: #fff3d6; }
.lookup__row { display: flex; gap: 0; background: #fff9ec; border-radius: 12px; padding: 6px; box-shadow: 0 0 0 1px rgba(226,182,91,.5), 0 18px 40px rgba(0,0,0,.28); }
.lookup input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 14px;
  font: 600 1.6rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.lookup input::placeholder { color: #bca98b; }
.lookup input:focus { outline: none; }
.lookup__row:focus-within { box-shadow: 0 0 0 3px var(--gold), 0 18px 40px rgba(0,0,0,.28); }
.lookup button, .btn, .cert button {
  border: 0; cursor: pointer; border-radius: 8px; padding: 12px 22px; text-decoration: none; display: inline-block;
  font: 600 1rem/1.2 var(--body); color: #fff; background: var(--red); white-space: nowrap;
}
.lookup button:hover, .btn:hover, .cert button:hover { background: #a50d25; }
.lookup--light label { color: var(--ink); }
.lookup--light .lookup__row { box-shadow: 0 0 0 1px var(--line); background: #fff; }

.hero--slim { padding: 40px 0 44px; }
.hero--slim .wrap { position: relative; }
.back { color: #e0cba8; text-decoration: none; font-weight: 500; font-size: .95rem; }
.back::before { content: "‹"; margin-right: 8px; font-size: 1.2em; }
.back:hover { color: #fff; }
.hero__call--me { font-size: clamp(3.4rem, 10vw, 7.5rem); margin: 18px 0 14px -0.05em; }
.me { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: #e7d6b9; }
.me b { font-family: var(--display); font-weight: 600; font-size: 1.7rem; color: #fff3d6; margin-right: 4px; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section--paper { background: var(--paper); }
.section__head { margin-bottom: 34px; max-width: 70ch; }
.section__head p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section__head--row > div { max-width: 66ch; }
.empty { color: var(--muted); padding: 28px 0; }
.errcode { font: 700 6rem/1 var(--display); color: var(--bronze); margin-bottom: 8px; }
.errcode + .h2 { margin-bottom: 26px; }

/* ---------- tabs & tables ---------- */
.tabs { display: flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.tabs [role=tab] {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 12px 16px 12px; margin-bottom: -2px;
  font: 600 1.15rem/1 var(--display); color: var(--muted); border-bottom: 3px solid transparent;
}
.tabs [role=tab] span { font: 600 .8rem/1 var(--body); background: var(--paper-2); color: var(--muted); padding: 3px 8px; border-radius: 20px; margin-left: 6px; vertical-align: 2px; }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--red); }
.tabs [role=tab][aria-selected=true] span { background: var(--ink); color: #fff; }
.tabs__filter { margin-left: auto; padding-bottom: 6px; }
.tabs__filter input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: 500 .95rem var(--body); width: 210px; background: #fff; text-transform: uppercase; }
.tabs__filter input::placeholder { text-transform: none; }

.table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.table th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--muted); padding: 12px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid #eadfcb; vertical-align: middle; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .end { text-align: right; }
.table tbody tr:hover { background: rgba(226,182,91,.09); }
.rank { color: var(--muted); width: 56px; }
.table tbody tr:nth-child(-n+3) .rank { font: 700 1.15rem var(--display); color: var(--bronze); }
.call { font: 600 1.15rem var(--display); letter-spacing: .03em; text-decoration: none; }
.call:hover { color: var(--red); }
.pts { font: 600 1.15rem var(--display); }
.award { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.award--none { color: #b9a68b; }
.btn-ghost { margin-top: 18px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 18px; font: 600 .95rem var(--body); cursor: pointer; }
.btn-ghost:hover { border-color: var(--bronze); }
.table-scroll { overflow-x: auto; position: relative; }
.table--log td small { color: var(--muted); font-size: .8rem; }
.table--log tr.is-dupe td { color: #9a8670; }
.link { color: var(--red); font-weight: 600; text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.link:hover { background: rgba(200,16,46,.08); }

/* ---------- award ladder ---------- */
.awards { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; }
.awards__ladders h3 { margin: 6px 0 4px; color: var(--muted); font-family: var(--body); font-weight: 600; font-size: .95rem; }
.ladder { padding: 92px 18px 46px 6px; }
.ladder__track { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #d9c6a6, #c7ab7e); }
.ladder__fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--bronze), var(--gold)); }
.ladder__stop { position: absolute; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; padding-bottom: 12px; }
.ladder__stop::after { content: ""; position: absolute; bottom: -9px; width: 2px; height: 18px; background: var(--sogan-3); }
.ladder__stop img { width: 56px; height: 56px; filter: drop-shadow(0 4px 6px rgba(58,36,22,.3)); }
.ladder__label { font-weight: 600; font-size: .85rem; margin-top: 4px; }
.ladder__pts { position: absolute; top: calc(100% + 16px); font: 600 1.05rem var(--display); color: var(--sogan); }
.ladder--me .ladder__stop:not(.is-reached) img { filter: grayscale(1) opacity(.45); }
.ladder__me {
  position: absolute; top: 22px; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: .85rem; padding: 4px 10px; border-radius: 20px;
}
.ladder__me::before { content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.ladder__me b { font-family: var(--display); font-size: 1rem; }
.ladder__me.is-end { transform: translateX(-100%); border-top-right-radius: 4px; }
.ladder__me.is-end::before { left: auto; right: 0; margin: 0; border-left-width: 0; }
.ladder__me.is-start { transform: none; border-top-left-radius: 4px; }
.ladder__me.is-start::before { left: 0; margin: 0; border-right-width: 0; }
.ladder--me { padding-bottom: 70px; }
.ladder--me .ladder__pts { display: none; }

.points { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.points dl { margin: 14px 0 16px; }
.points dl div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.points dt { font-weight: 600; }
.points dd { margin: 0; font: 600 1.5rem/1 var(--display); color: var(--bronze); }
.points p { font-size: .9rem; color: var(--muted); }

/* ---------- event facts ---------- */
.event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 56px; align-items: start; }
.event .section__head { grid-column: 1 / -1; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.event__card { margin: 0; }
.event__card img { border-radius: 8px; box-shadow: 0 24px 50px rgba(58,36,22,.25); transform: rotate(-1.2deg); }
.event__card figcaption { font-size: .88rem; color: var(--muted); margin-top: 16px; }

/* ---------- certificates ---------- */
.certs__name { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-bottom: 28px; font-weight: 600; }
.certs__name input { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: 500 1.05rem var(--body); background: #fff; }
.certs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cert { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fffdf8; }
.cert img { width: 96px; height: 96px; margin-bottom: 6px; filter: grayscale(1) opacity(.4); }
.cert h3 { font-size: 1.35rem; }
.cert p { font-size: .88rem; color: var(--muted); min-height: 2.6em; }
.cert button { margin-top: 8px; width: 100%; }
.cert.is-earned { background: #fff; border-color: #cfae74; box-shadow: 0 10px 24px rgba(58,36,22,.08); }
.cert.is-earned img { filter: drop-shadow(0 6px 10px rgba(58,36,22,.3)); }

/* ---------- footer ---------- */
.footer { background: var(--sogan); color: #dcc8a8; padding: 40px 0; }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__org { display: flex; align-items: center; gap: 16px; }
.footer__org img:first-child { height: 56px; width: auto; }
.footer__org img + img { height: 54px; width: 54px; }
.footer__org p { color: #f3e6cf; font-weight: 600; }
.footer__org p span { color: #bfa889; font-weight: 400; font-size: .9rem; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: #e2cfae; text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text { grid-column: 1; min-width: 0; padding: 56px 0 330px; }
  .hero__statue { left: auto; right: -30px; max-height: 320px; height: 320px; }
  .awards, .event { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav a:not(:first-child) { display: none; }
  .brand span { display: none; }
  .section { padding: 56px 0; }
  .hero__text { padding-top: 40px; }
  .lookup input { font-size: 1.3rem; }
  .lookup button { padding: 12px 16px; }
  .tabs__filter { margin-left: 0; width: 100%; }
  .tabs__filter input { width: 100%; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
  .table--log th:nth-child(3), .table--log td:nth-child(3) { display: table-cell; }
  .ladder { padding: 0; }
  .ladder__track { height: auto; background: none; display: grid; gap: 10px; }
  .ladder__fill, .ladder__me { display: none; }
  .ladder__stop { position: static; transform: none; flex-direction: row; gap: 12px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
  .ladder__stop::after { display: none; }
  .ladder__stop img { width: 40px; height: 40px; }
  .ladder__label { margin: 0; font-size: 1rem; }
  .ladder__pts, .ladder--me .ladder__pts { position: static; display: block; margin-left: auto; }
  .ladder__pts::after { content: " pts"; font: 500 .85rem var(--body); color: var(--muted); }
  .ladder--me .ladder__stop.is-reached { border-color: var(--gold); }
  .awards__ladders h3 { margin: 18px 0 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
