/* siteapp403 - LeaderDeck.
   The scraped reference (casinoleader.com) is a white canvas with a deep
   green masthead (#0b3b25), a bright green action colour (#23b36b), a forest
   call-to-action (#298652), a navy secondary (#394762), an amber highlight
   (#fab938) and a cool grey panel wash (#eceff2).
   This stylesheet keeps that reading for an APK directory: white pages, a
   green header bar, green links, forest download buttons and grey panels,
   with a deep green night mode under [data-p403-mode="dark"].
   Every rule is scoped under the p403 prefix so the file only ever affects
   this template. */

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../siteapp/fontawesome/webfonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../siteapp/fontawesome/webfonts/fa-regular-400.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../siteapp/fontawesome/webfonts/fa-brands-400.woff2") format("woff2");
}
.fa-solid { font-weight: 900; }

:root {

  --p403-canvas: #eef1f4;
  --p403-surface: #ffffff;
  --p403-surface-2: #f5f7f9;
  --p403-wash: #eceff2;
  --p403-ink: #1f2124;
  --p403-ink-soft: #3d4551;
  --p403-muted: #6b7280;
  --p403-faint: #9aa3ae;
  --p403-line: #e0e4e9;
  --p403-line-strong: #c9d0d8;
  --p403-green: #23b36b;
  --p403-green-deep: #109954;
  --p403-green-wash: #e8faec;
  --p403-navy: #394762;
  --p403-navy-deep: #2c374a;
  --p403-navy-wash: #e9edf3;
  --p403-cta: #298652;
  --p403-cta-deep: #05773d;
  --p403-head: #231f20;
  --p403-chrome: #0b3b25;
  --p403-chrome-gradient: linear-gradient(180deg, #05763d 0%, #109954 39%, #109954 100%);
  --p403-star: #fab938;
  --p403-shadow: 0 10px 26px rgba(11, 59, 37, .12);
  --p403-shadow-sm: 0 3px 10px rgba(11, 59, 37, .10);
  --p403-radius: 14px;
  --p403-radius-sm: 10px;
  --p403-body: 'Poppins', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

[data-p403-mode='dark'] {
  --p403-canvas: #101814;
  --p403-surface: #16221c;
  --p403-surface-2: #1e2c25;
  --p403-wash: #24332b;
  --p403-ink: #eaf2ee;
  --p403-ink-soft: #c3d3ca;
  --p403-muted: #9aaca2;
  --p403-faint: #7c8f84;
  --p403-line: #2b3b32;
  --p403-line-strong: #3d5147;
  --p403-green: #23b36b;
  --p403-green-deep: #2fbe79;
  --p403-green-wash: #14301f;
  --p403-navy: #8ba3c7;
  --p403-navy-deep: #a3b6d4;
  --p403-navy-wash: #1b2735;
  --p403-cta: #23b36b;
  --p403-cta-deep: #2fbe79;
  --p403-head: #eaf2ee;
  --p403-chrome: #061a10;
  --p403-chrome-gradient: linear-gradient(180deg, #05200f 0%, #0a2f19 39%, #0a2f19 100%);
  --p403-star: #fab938;
  --p403-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  --p403-shadow-sm: 0 3px 10px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.p403-body {
  margin: 0;
  background: var(--p403-canvas);
  color: var(--p403-ink);
  font-family: var(--p403-body);
  font-size: 14.5px;
  line-height: 1.75;
}
.p403-body a { color: var(--p403-navy); text-decoration: none; }
.p403-body a:hover { color: var(--p403-navy-deep); }
.p403-body img { max-width: 100%; height: auto; }
.p403-body h1, .p403-body h2, .p403-body h3, .p403-body h4 {
  font-family: var(--p403-body);
  color: var(--p403-head);
  line-height: 1.3;
  margin: 0 0 .5em;
  font-weight: 600;
}
.p403-body p { margin: 0 0 1em; }
.p403-body ul, .p403-body ol { margin: 0 0 1em; padding-left: 1.25em; }

.p403-wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }

.p403-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--p403-green); color: #062a17; padding: 10px 16px;
}
.p403-skip:focus { left: 0; color: #062a17; }

/* ---------- utility strip ---------- */
.p403-utility {
  background: var(--p403-chrome);
  border-bottom: 1px solid var(--p403-line);
  font-size: 12px; color: rgba(255, 255, 255, .74);
}
.p403-utility-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 7px 0; flex-wrap: wrap;
}
.p403-body .p403-utility-note { color: #ffffff; font-weight: 600; }
.p403-utility-note i { margin-right: 5px; }
.p403-utility-links { color: rgba(255, 255, 255, .74); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- masthead ---------- */
.p403-header {
  background: var(--p403-chrome);
  background-image: var(--p403-chrome-gradient);
  border-bottom: 1px solid var(--p403-line);
  position: sticky; top: 0; z-index: 60;
}
.p403-header-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 12px 0;
}
.p403-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.p403-brand-mark {
  width: 44px; height: 44px; overflow: hidden;
  background: var(--p403-surface);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.p403-brand-mark img { display: block; width: 44px; height: 44px; }
.p403-brand-word {
  font-weight: 600; font-size: 22px;
  color: #ffffff; letter-spacing: -.3px;
}
.p403-brand-sub {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--p403-green); font-weight: 600;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .18);
}
.p403-nav { display: flex; align-items: center; gap: 0; flex: 1 1 auto; flex-wrap: wrap; }
.p403-body .p403-nav-link {
  padding: 7px 10px; font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, .88); white-space: nowrap;
  border-bottom: 2px solid transparent; border-radius: var(--p403-radius-sm);
}
.p403-body .p403-nav-link:hover { background: rgba(255, 255, 255, .12); color: #ffffff; }
.p403-body .p403-nav-link.is-active { color: #ffffff; border-bottom-color: var(--p403-amber); }

.p403-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.p403-switch {
  display: inline-flex; border: 1px solid rgba(255, 255, 255, .18);
  overflow: hidden; background: rgba(0, 0, 0, .22);
  border-radius: 18px;
}
.p403-body .p403-switch-seg {
  padding: 6px 14px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .82);
  border-radius: 16px;
}
.p403-body .p403-switch-seg:hover { color: #ffffff; }
.p403-body .p403-switch-seg.is-active { background: var(--p403-green); color: #062a17; }
.p403-mode {
  width: 36px; height: 36px; cursor: pointer; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .22);
  color: #ffffff; font-size: 13px;
}
.p403-body .p403-mode:hover { color: #062a17; border-color: var(--p403-green); background: var(--p403-green); }
.p403-burger {
  display: none; width: 40px; height: 40px; cursor: pointer;
  border-radius: var(--p403-radius-sm);
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .22);
  color: var(--p403-green); font-size: 15px;
}

/* ---------- ticker band ---------- */
.p403-marquee {
  background: var(--p403-green);
  border-bottom: 1px solid var(--p403-line);
  overflow: hidden;
}
.p403-marquee-track {
  display: flex; align-items: center; gap: 46px;
  width: min(1200px, 100% - 32px); margin: 0 auto;
  padding: 8px 0; white-space: nowrap;
  animation: p403-marquee 34s linear infinite;
}
.p403-marquee-item {
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: #062a17; display: inline-flex; align-items: center; gap: 7px;
}
.p403-marquee-item i { color: var(--p403-navy); font-size: 10px; }
@keyframes p403-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .p403-marquee-track { animation: none; }
}

/* ---------- hero ---------- */
.p403-hero {
  background: var(--p403-chrome);
  background-image: var(--p403-chrome-gradient);
  border-bottom: 1px solid var(--p403-line);
}
.p403-hero-in {
  display: grid; grid-template-columns: 1fr 300px; gap: 32px;
  align-items: center; padding: 46px 0 42px;
}
.p403-hero-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #ffffff;
  background: rgba(0, 0, 0, .20); border: 1px solid rgba(255, 255, 255, .26);
  padding: 5px 13px; margin-bottom: 14px; border-radius: var(--p403-radius-sm);
}
.p403-body .p403-hero-h1 {
  font-size: clamp(32px, 4.6vw, 50px); font-weight: 600; letter-spacing: -.8px;
  margin: 0 0 10px; color: #ffffff;
}
.p403-hero-lead { color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 62ch; }
.p403-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 18px; }
.p403-hero-marks {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, .88);
}
.p403-hero-marks i { color: var(--p403-amber); margin-right: 5px; }

.p403-exhibit {
  margin: 0; background: var(--p403-surface); border: 1px solid var(--p403-line);
  border-top: 3px solid var(--p403-green);
  padding: 16px; box-shadow: var(--p403-shadow-sm); position: relative;
  border-radius: var(--p403-radius);
}
.p403-exhibit-tag {
  position: absolute; top: -11px; left: 18px; background: var(--p403-amber);
  color: #231f20; font-size: 11px; font-weight: 600; padding: 4px 12px;
  letter-spacing: .5px; border-radius: var(--p403-radius-sm);
}
.p403-exhibit-shot {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; background: var(--p403-surface-2);
  border: 1px solid var(--p403-line); margin-bottom: 12px; overflow: hidden;
  border-radius: var(--p403-radius-sm);
}
.p403-exhibit-shot img { width: 64px; height: 64px; object-fit: contain; }
.p403-exhibit figcaption b {
  display: block; font-size: 15.5px; color: var(--p403-head); margin-bottom: 4px;
}
.p403-exhibit figcaption span { font-size: 12.5px; color: var(--p403-muted); }
.p403-exhibit figcaption i { font-style: normal; margin-left: 10px; }

/* ---------- buttons ---------- */
.p403-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 28px; font-weight: 600; font-size: 13.5px; letter-spacing: .2px;
  border: 1px solid transparent; cursor: pointer;
  border-radius: var(--p403-radius-sm);
  transition: background .12s ease, color .12s ease;
}
.p403-body .p403-btn.is-brand { background: linear-gradient(0deg, var(--p403-cta) 40%, #3fe389 110%); color: #ffffff; box-shadow: var(--p403-shadow-sm); }
.p403-body .p403-btn.is-brand:hover { background: linear-gradient(0deg, var(--p403-cta-deep) 40%, #3fe389 110%); color: #ffffff; }
.p403-btn.is-ghost { background: transparent; border-color: var(--p403-line-strong); color: var(--p403-ink); }
.p403-body .p403-btn.is-ghost:hover { border-color: var(--p403-green); color: var(--p403-green-deep); background: var(--p403-green-wash); }
/* On the black hero the ghost button needs a light stroke and label. */
.p403-hero .p403-btn.is-brand {
  background: #ffffff; color: #0b3b25;
  background-image: none; border-color: #ffffff;
}
.p403-hero .p403-btn.is-brand:hover { background: #f2f7f4; color: #05763d; background-image: none; }
.p403-hero .p403-btn.is-ghost { border-color: rgba(255, 255, 255, .55); color: #ffffff; }
.p403-hero .p403-btn.is-ghost:hover { border-color: #ffffff; color: #ffffff; background: rgba(255, 255, 255, .14); }

/* ---------- category shelf ---------- */
.p403-ribbon { background: var(--p403-surface); border-bottom: 1px solid var(--p403-line); }
.p403-ribbon-in {
  display: flex; align-items: center; gap: 6px; padding: 11px 0;
  overflow-x: auto; scrollbar-width: thin;
}
.p403-ribbon-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--p403-muted); white-space: nowrap; padding-right: 10px;
}
.p403-ribbon-link {
  font-size: 13px; font-weight: 500; color: var(--p403-ink-soft);
  padding: 6px 13px; white-space: nowrap; border: 1px solid var(--p403-line);
  background: var(--p403-surface-2); border-radius: var(--p403-radius-sm);
}
.p403-body .p403-ribbon-link:hover { color: var(--p403-green-deep); border-color: var(--p403-green); }
.p403-body .p403-ribbon-link.is-active { background: var(--p403-green); border-color: var(--p403-green); color: #062a17; }

/* ---------- frame ---------- */
.p403-frame {
  display: grid; grid-template-columns: 1fr 310px; gap: 24px;
  align-items: start; padding: 26px 0 48px;
}
.p403-maincol { min-width: 0; }

.p403-block { margin-bottom: 32px; }
.p403-block-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 14px; padding-bottom: 9px;
  border-bottom: 2px solid var(--p403-line); position: relative; flex-wrap: wrap;
}
.p403-block-head::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 76px; height: 3px;
  background: var(--p403-green);
}
.p403-block-title {
  font-size: 20px; font-weight: 600; margin: 0; position: relative; padding-left: 15px;
  color: var(--p403-head); letter-spacing: -.2px;
}
.p403-block-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--p403-navy);
}
.p403-block-note { font-size: 12.5px; color: var(--p403-muted); }
.p403-block-more { font-size: 13px; font-weight: 600; color: var(--p403-navy); }

.p403-filter-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; background: var(--p403-green-wash); border: 1px solid var(--p403-line);
  border-left: 4px solid var(--p403-green); padding: 12px 16px; font-size: 13.5px;
  margin-bottom: 20px; color: var(--p403-ink); border-radius: var(--p403-radius-sm);
}
.p403-filter-note a { font-weight: 600; color: var(--p403-navy); }

/* ---------- grid + card ---------- */
.p403-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px;
}
.p403-card {
  background: var(--p403-surface); border: 1px solid var(--p403-line);
  border-left: 3px solid var(--p403-green);
  border-radius: var(--p403-radius-sm); overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.p403-card:hover { box-shadow: var(--p403-shadow); transform: translateY(-2px); }
.p403-card-link { display: flex; gap: 12px; padding: 14px; color: var(--p403-ink); }
.p403-card-link:hover { color: var(--p403-ink); }
.p403-card-icon {
  width: 56px; height: 56px; flex: 0 0 56px;
  background: var(--p403-surface-2); border: 1px solid var(--p403-line);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  color: var(--p403-navy); font-size: 20px; border-radius: var(--p403-radius-sm);
}
.p403-card-icon img { width: 44px; height: 44px; object-fit: contain; }
.p403-card-body { min-width: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.p403-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.p403-card-cat {
  font-size: 10.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--p403-navy-deep); background: var(--p403-navy-wash);
  padding: 2px 9px; white-space: nowrap; border-radius: var(--p403-radius-sm);
  overflow: hidden; text-overflow: ellipsis; max-width: 62%;
}
.p403-card-ver { font-size: 11.5px; color: var(--p403-faint); }
.p403-card-title {
  font-size: 15.5px; font-weight: 600; margin: 0 0 6px; line-height: 1.35;
  color: var(--p403-head);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p403-card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 12.5px;
}
.p403-card-rate { color: var(--p403-navy); font-weight: 600; }
.p403-card-rate i { color: var(--p403-star); }
.p403-card-more { color: var(--p403-muted); white-space: nowrap; }

/* ---------- right rail ---------- */
.p403-rail { min-width: 0; }
.p403-rail-box {
  background: var(--p403-surface); border: 1px solid var(--p403-line);
  padding: 16px; margin-bottom: 16px; border-radius: var(--p403-radius-sm);
}
.p403-rail-box.is-brand { border-left: 3px solid var(--p403-navy); }
.p403-rail-title {
  font-size: 15.5px; font-weight: 600; margin: 0 0 12px; position: relative;
  padding-left: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--p403-line);
  color: var(--p403-head);
}
.p403-rail-title::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--p403-green);
}
.p403-rail-title i { color: var(--p403-navy); margin-right: 5px; }
.p403-rail-search { display: flex; gap: 8px; }
.p403-rail-search input {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--p403-line-strong);
  padding: 10px 14px; font: inherit; font-size: 13.5px; border-radius: var(--p403-radius-sm);
  background: var(--p403-surface-2); color: var(--p403-ink);
}
.p403-rail-search input:focus { outline: 2px solid var(--p403-green); outline-offset: 1px; }
.p403-rail-search button {
  width: 42px; flex: 0 0 42px; cursor: pointer; border-radius: var(--p403-radius-sm);
  border: none; background: var(--p403-green); color: #062a17; font-size: 13px;
}
.p403-rail-empty { font-size: 13px; color: var(--p403-muted); margin: 10px 0 0; }
.p403-rail-cta {
  background: var(--p403-chrome); color: rgba(255, 255, 255, .78); padding: 20px; text-align: center;
  border-left: 3px solid var(--p403-green); border-radius: var(--p403-radius-sm);
}
.p403-rail-cta p { font-size: 13.5px; margin: 0 0 12px; }

.p403-ranklist { list-style: none; margin: 0; padding: 0; }
.p403-ranklist li { border-bottom: 1px solid var(--p403-line); }
.p403-ranklist li:last-child { border-bottom: none; }
.p403-ranklist a {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--p403-ink);
}
.p403-ranklist a:hover { color: var(--p403-navy); }
.p403-ranklist img {
  width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain;
  background: var(--p403-surface-2); border: 1px solid var(--p403-line);
  border-radius: var(--p403-radius-sm);
}
.p403-rankno {
  width: 20px; flex: 0 0 20px; font-size: 12px; font-weight: 600;
  color: var(--p403-navy); text-align: center;
}
.p403-ranklist-text { min-width: 0; }
.p403-ranklist-text b {
  display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--p403-head);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p403-ranklist-text small { font-size: 11.5px; color: var(--p403-muted); }
.p403-ranklist-text small i { color: var(--p403-star); }

/* ---------- detail page ---------- */
.p403-detail { padding: 22px 0 48px; }
.p403-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--p403-muted); margin: 0 0 12px;
}
.p403-crumb a { color: var(--p403-ink-soft); }
.p403-crumb a:hover { color: var(--p403-navy); }

.p403-summary {
  background: var(--p403-surface); border: 1px solid var(--p403-line);
  border-top: 3px solid var(--p403-green); padding: 20px;
  border-radius: var(--p403-radius);
}
.p403-summary-top { display: flex; gap: 16px; align-items: flex-start; }
.p403-summary-icon {
  width: 80px; height: 80px; flex: 0 0 80px;
  background: var(--p403-surface-2); border: 1px solid var(--p403-line);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 26px; color: var(--p403-navy); border-radius: var(--p403-radius-sm);
}
.p403-summary-icon img { width: 64px; height: 64px; object-fit: contain; }
.p403-summary-id { min-width: 0; }
.p403-summary-cat {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: var(--p403-navy-deep); background: var(--p403-navy-wash);
  padding: 3px 10px; margin-bottom: 6px; border-radius: var(--p403-radius-sm);
}
.p403-summary-title {
  font-size: clamp(23px, 3vw, 32px); font-weight: 600; margin: 0 0 8px;
  letter-spacing: -.4px;
}
.p403-summary-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p403-summary-rate { color: var(--p403-navy); font-weight: 600; font-size: 13.5px; }
.p403-summary-rate i { color: var(--p403-star); }
.p403-chip {
  font-size: 11.5px; color: var(--p403-ink-soft); background: var(--p403-surface-2);
  border: 1px solid var(--p403-line); padding: 2px 10px; border-radius: var(--p403-radius-sm);
}
.p403-summary-actions { margin: 18px 0 4px; }

.p403-intro {
  background: var(--p403-green-wash); border: 1px solid var(--p403-line);
  border-left: 4px solid var(--p403-green); padding: 14px 16px; margin: 16px 0;
  font-size: 14px; color: var(--p403-ink); border-radius: var(--p403-radius-sm);
}
.p403-intro p { margin: 0; }
.p403-intro.is-steps { background: var(--p403-surface-2); border-left-color: var(--p403-navy); }
.p403-intro.is-steps b { display: block; margin-bottom: 6px; }
.p403-intro.is-steps ol { margin: 0; padding-left: 1.25em; font-size: 13.5px; }

.p403-social {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; border-bottom: 1px solid var(--p403-line); padding-bottom: 14px; margin-bottom: 16px;
}
.p403-social b {
  font-size: 12px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--p403-muted);
}
.p403-social-row { display: flex; gap: 8px; }
.p403-social-row a {
  width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px;
  background: var(--p403-surface-2); border: 1px solid var(--p403-line);
  color: var(--p403-ink-soft); border-radius: 50%;
}
.p403-body .p403-social-row a:hover { background: var(--p403-green); border-color: var(--p403-green); color: #062a17; }

.p403-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px; margin: 0 0 18px;
}
.p403-fact {
  background: var(--p403-surface-2); border: 1px solid var(--p403-line); padding: 10px 12px;
  font-family: var(--p403-body); border-radius: var(--p403-radius-sm);
}
.p403-fact dt {
  font-size: 11px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase;
  color: var(--p403-muted); margin-bottom: 2px;
}
.p403-fact dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--p403-ink); }

.p403-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.p403-tag {
  font-size: 12.5px; font-weight: 500; padding: 5px 12px;
  background: var(--p403-surface-2); border: 1px solid var(--p403-line); color: var(--p403-ink-soft);
  border-radius: var(--p403-radius-sm);
}
.p403-body .p403-tag:hover { border-color: var(--p403-green); color: var(--p403-green-deep); }
.p403-body .p403-tag.is-active { background: var(--p403-green); border-color: var(--p403-green); color: #062a17; }

.p403-toc {
  background: var(--p403-surface); border: 1px solid var(--p403-line);
  border-left: 4px solid var(--p403-navy); padding: 16px 18px; margin: 24px 0 18px;
  border-radius: var(--p403-radius-sm);
}
.p403-toc-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; padding: 0; }
.p403-toc-title i { color: var(--p403-navy); margin-right: 5px; }
.p403-toc ol { margin: 0; padding-left: 1.25em; font-size: 13.5px; }
.p403-toc ol ol { font-size: 13px; color: var(--p403-ink-soft); margin: 2px 0 6px; }

.p403-article {
  background: var(--p403-surface); border: 1px solid var(--p403-line);
  padding: 22px 24px; font-size: 14.5px; border-radius: var(--p403-radius);
}
.p403-article h2 {
  font-size: 20px; font-weight: 600; margin: 26px 0 10px;
  padding-left: 13px; position: relative; scroll-margin-top: 90px;
}
.p403-article h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 22px; border-radius: 3px; background: var(--p403-green);
}
.p403-article h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.p403-article h2:first-child { margin-top: 0; }
.p403-article ul, .p403-article ol { font-size: 14px; }
.p403-article a { color: var(--p403-navy); text-decoration: underline; }
.p403-article a:hover { color: var(--p403-navy-deep); }
.p403-article strong { color: var(--p403-head); }
.p403-article details {
  border: 1px solid var(--p403-line); padding: 10px 14px; margin: 10px 0;
  background: var(--p403-surface-2); border-radius: var(--p403-radius-sm);
}
.p403-article summary { cursor: pointer; font-weight: 600; color: var(--p403-head); }
.p403-shot { margin: 18px 0; }
.p403-shot img {
  width: 100%; max-width: 520px; display: block; margin: 0 auto;
  border: 1px solid var(--p403-line); border-radius: var(--p403-radius-sm);
}
.p403-shot figcaption {
  text-align: center; font-size: 12px; color: var(--p403-muted); margin-top: 8px;
}
.p403-related-inline {
  background: var(--p403-green-wash); border: 1px solid var(--p403-line);
  border-left: 4px solid var(--p403-green); padding: 10px 14px; font-size: 13.5px;
  border-radius: var(--p403-radius-sm);
}
.p403-related-inline a { color: var(--p403-navy); }

/* ---------- download zone (shared appkit markup) ---------- */
.p403-dlzone { margin: 24px 0; }
.app-dl-zone {
  background: var(--p403-surface); border: 1px solid var(--p403-line);
  border-top: 3px solid var(--p403-green); padding: 18px; text-align: center;
  border-radius: var(--p403-radius);
}
.app-dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 30px; border: none; cursor: pointer; border-radius: var(--p403-radius-sm);
  background: var(--p403-cta); color: #ffffff;
  font: inherit; font-weight: 600; font-size: 14px;
  box-shadow: var(--p403-shadow-sm);
}
.app-dl-btn:hover { background: var(--p403-cta-deep); color: #ffffff; }
.app-dl-progress { margin-bottom: 14px; }
.app-dl-progress span { display: block; font-size: 13px; color: var(--p403-ink-soft); margin-bottom: 8px; }
.app-dl-bar {
  display: block; height: 7px; background: var(--p403-surface-2);
  overflow: hidden; position: relative; border-radius: 4px;
}
.app-dl-bar b {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--p403-green), var(--p403-navy));
  display: block;
}
.app-dl-install {
  background: var(--p403-surface-2); border: 1px solid var(--p403-line);
  padding: 12px 16px; margin-bottom: 14px; text-align: left;
  border-radius: var(--p403-radius-sm);
}
.app-dl-install b { display: block; margin-bottom: 6px; }
.app-dl-install ol { margin: 0; padding-left: 1.25em; font-size: 13.5px; }
.p403-body .app-dl-final,
.p403-body a.app-dl-final {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 30px; font-weight: 600; font-size: 14px;
  border-radius: var(--p403-radius-sm);
  background: var(--p403-cta); color: #ffffff; text-decoration: none;
  box-shadow: var(--p403-shadow-sm);
}
.p403-body .app-dl-final:hover,
.p403-body a.app-dl-final:hover { background: var(--p403-cta-deep); color: #ffffff; }
.app-dl-final[hidden] { display: none; }

/* ---------- comments ---------- */
.p403-comments {
  background: var(--p403-surface); border: 1px solid var(--p403-line);
  border-top: 3px solid var(--p403-green); padding: 18px; margin: 24px 0 0;
  border-radius: var(--p403-radius);
}
.p403-comments-title { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.p403-comments-title i { color: var(--p403-navy); margin-right: 5px; }
.p403-cform label { display: block; margin-bottom: 12px; }
.p403-cform label > span {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--p403-muted); margin-bottom: 5px;
}
.p403-cform input, .p403-cform textarea {
  width: 100%; border: 1px solid var(--p403-line-strong);
  padding: 10px 14px; font: inherit; font-size: 14px; border-radius: var(--p403-radius-sm);
  background: var(--p403-surface-2); color: var(--p403-ink);
}
.p403-cform input:focus, .p403-cform textarea:focus {
  outline: 2px solid var(--p403-green); outline-offset: 1px; border-color: var(--p403-green);
}
.p403-cform small { display: block; font-size: 11.5px; color: var(--p403-muted); margin-top: 4px; }
.p403-cform button {
  border: none; cursor: pointer; background: var(--p403-cta); color: #ffffff;
  padding: 11px 26px; font: inherit; font-weight: 600; font-size: 13.5px;
  border-radius: var(--p403-radius-sm);
}
.p403-cform button:hover { background: var(--p403-cta-deep); color: #ffffff; }
.p403-cform-success {
  margin: 12px 0 0; font-size: 13.5px; color: #0a7a4a;
  background: var(--p403-green-wash); padding: 9px 12px; border-radius: var(--p403-radius-sm);
}

/* ---------- landing ---------- */
.p403-landing {
  background: var(--p403-surface); border: 1px solid var(--p403-line);
  border-top: 3px solid var(--p403-green); padding: 24px; max-width: 840px; margin: 0 auto;
  border-radius: var(--p403-radius);
}
.p403-landing-id { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.p403-landing-idmain { min-width: 0; }
.p403-landing-title { font-size: clamp(23px, 3vw, 32px); font-weight: 600; margin: 4px 0 6px; letter-spacing: -.4px; }
.p403-facts.is-landing { margin-bottom: 18px; }
.p403-landing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.p403-landing-actions .p403-btn.is-ghost { border-color: var(--p403-line-strong); color: var(--p403-ink); }
.p403-landing-actions .p403-btn.is-ghost:hover { border-color: var(--p403-green); background: var(--p403-green-wash); color: var(--p403-green-deep); }

/* ---------- 404 ---------- */
.p403-nf { text-align: center; padding: 60px 20px 80px; }
.p403-nf-stamp {
  display: inline-block; font-weight: 600;
  font-size: 56px; color: var(--p403-navy); line-height: 1;
  border: 2px dashed var(--p403-green); padding: 12px 26px; margin-bottom: 18px;
  border-radius: var(--p403-radius);
}
.p403-nf h1 { font-size: 27px; font-weight: 600; color: var(--p403-head); }
.p403-nf p { color: var(--p403-ink-soft); }
.p403-nf .p403-btn.is-brand { margin-top: 6px; }

/* ---------- dock ---------- */
.p403-dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 70;
  background: var(--p403-chrome); border: 1px solid rgba(255, 255, 255, .16);
  padding: 6px; box-shadow: var(--p403-shadow); border-radius: 24px;
}
.p403-dock-btn {
  padding: 9px 22px; font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, .82); background: transparent;
  border-radius: 18px;
}
.p403-body .p403-dock-btn:hover { background: rgba(255, 255, 255, .14); color: #ffffff; }
.p403-body .p403-dock-btn.is-brand { background: var(--p403-green); color: #062a17; }
.p403-body .p403-dock-btn.is-brand:hover { background: var(--p403-green-deep); color: #062a17; }

/* ---------- footer ---------- */
.p403-foot { background: var(--p403-chrome); background-image: var(--p403-chrome-gradient); border-top: 1px solid var(--p403-line); color: rgba(255, 255, 255, .74); margin-top: 20px; }
.p403-foot-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 26px;
  padding: 36px 0 26px;
}
.p403-foot-logo {
  font-weight: 600; font-size: 22px; color: #ffffff;
  display: inline-block; margin-bottom: 10px;
}
.p403-foot-text { font-size: 13px; color: rgba(255, 255, 255, .74); margin: 0 0 12px; }
.p403-foot-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.p403-age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; font-size: 12px; font-weight: 700;
  color: #062a17; background: var(--p403-green); border-radius: 50%;
}
.p403-org-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  padding: 6px 12px; border-radius: 18px;
}
.p403-org-badge i { color: var(--p403-amber); }
.p403-foot-col { display: flex; flex-direction: column; gap: 8px; }
.p403-foot-title {
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase;
  color: #ffffff; margin: 0 0 4px; position: relative; padding-bottom: 8px;
}
.p403-foot-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 42px; height: 2px;
  background: var(--p403-amber);
}
.p403-body .p403-foot-col a { font-size: 13px; color: rgba(255, 255, 255, .74); }
.p403-body .p403-foot-col a:hover { color: #ffffff; }
.p403-foot-note { font-size: 12.5px; color: rgba(255, 255, 255, .58); margin: 4px 0 0; }
.p403-foot-social { display: flex; gap: 8px; margin-top: 6px; }
.p403-foot-social a {
  width: 34px; height: 34px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12.5px;
  background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%;
}
.p403-body .p403-foot-social a:hover { background: #ffffff; border-color: #ffffff; color: #0b3b25; }
.p403-foot-base {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .16); padding: 14px 0 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255, 255, 255, .58);
}
.p403-foot-base p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .p403-frame { grid-template-columns: 1fr 290px; }
  .p403-hero-in { grid-template-columns: 1fr 260px; }
}

@media (max-width: 900px) {
  .p403-hero-in { grid-template-columns: 1fr; padding: 30px 0; }
  .p403-exhibit { max-width: 340px; }
  .p403-frame { grid-template-columns: 1fr; }
  .p403-rail { order: -1; }
  .p403-foot-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .p403-burger { display: inline-flex; align-items: center; justify-content: center; }
  .p403-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--p403-chrome); border-bottom: 1px solid var(--p403-line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px;
  }
  .p403-body.is-drawer-open .p403-nav { display: flex; }
  .p403-header-in { position: relative; flex-wrap: wrap; }
  .p403-brand-sub { display: none; }
  .p403-brand-word { font-size: 19px; }
  .p403-tools { margin-left: auto; }
  .p403-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p403-card-link { flex-direction: column; gap: 10px; }
  .p403-card-icon { width: 52px; height: 52px; flex: 0 0 52px; }
  .p403-card-title { -webkit-line-clamp: 3; }
  .p403-summary-top { gap: 12px; }
  .p403-summary-icon { width: 64px; height: 64px; flex: 0 0 64px; }
  .p403-summary-icon img { width: 50px; height: 50px; }
  .p403-foot-in { grid-template-columns: 1fr; }
  .p403-article { padding: 18px 16px; }
  .p403-dock { bottom: 10px; }
}

@media (max-width: 420px) {
  .p403-grid { grid-template-columns: 1fr; }
}
