/* siteapp408 - UltrasBet.
   The scraped reference (ultrasbet.com) sits on light paper surfaces
   (#f7f7f5 / #ffffff) with a grass-green action colour (#2fa532, hover
   #58c95c), deep pine feature sections (#1b6e26, deep #0d3a13), a charcoal
   headline ink (#262626) and a soft grey page wash. Its signature is a
   news-listing front page - a Latest Picks card grid beside a sticky rail -
   so the APK catalogue is filed as ranked tables under that same masthead.
   This stylesheet keeps that reading, with a deep pine night mode under
   [data-p408-mode="dark"].
   Every rule is scoped under the p408 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 {
  --p408-canvas: #eceae5;
  --p408-surface: #ffffff;
  --p408-surface-2: #f2f4f1;
  --p408-wash: #f7f7f5;
  --p408-ink: #262626;
  --p408-ink-soft: #4a5548;
  --p408-muted: #77826f;
  --p408-faint: #a3ad9c;
  --p408-line: #dfe3da;
  --p408-line-strong: #c8cfc0;
  --p408-plum: #1b6e26;
  --p408-plum-deep: #0d3a13;
  --p408-plum-wash: #e7f1e6;
  --p408-rust: #2fa532;
  --p408-rust-deep: #1b6e26;
  --p408-rust-wash: #e4f4e3;
  --p408-gold: #58c95c;
  --p408-gold-deep: #2fa532;
  --p408-blue: #1b6e26;
  --p408-blue-deep: #0d3a13;
  --p408-star: #eab800;
  --p408-shadow: 0 10px 26px rgba(13, 58, 19, .14);
  --p408-shadow-sm: 0 3px 10px rgba(13, 58, 19, .10);
  --p408-radius: 12px;
  --p408-radius-sm: 8px;
  --p408-body: 'PT Sans', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

[data-p408-mode='dark'] {
  --p408-canvas: #061c09;
  --p408-surface: #0d2b13;
  --p408-surface-2: #123a1a;
  --p408-wash: #16411f;
  --p408-ink: #eef4ec;
  --p408-ink-soft: #ccdcc6;
  --p408-muted: #93a88d;
  --p408-faint: #6a7f65;
  --p408-line: #1e5127;
  --p408-line-strong: #2b6a35;
  --p408-plum: #b9e6bb;
  --p408-plum-deep: #041206;
  --p408-plum-wash: #123a1a;
  --p408-rust: #58c95c;
  --p408-rust-deep: #7ddb81;
  --p408-rust-wash: #14351a;
  --p408-gold: #7ddb81;
  --p408-gold-deep: #a5e8a8;
  --p408-blue: #8fd694;
  --p408-blue-deep: #b4e6b8;
  --p408-star: #fac800;
  --p408-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  --p408-shadow-sm: 0 3px 10px rgba(0, 0, 0, .45);
}

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

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

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

.p408-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--p408-plum); color: #ffffff; padding: 10px 18px;
}
.p408-skip:focus { left: 0; color: #ffffff; }

/* ---------- utility strip ---------- */
.p408-utility {
  background: var(--p408-plum-deep); color: #d9ead6;
  font-size: 12px;
}
.p408-utility-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; padding: 7px 0;
}
.p408-utility-note { color: var(--p408-gold); font-weight: 700; }
.p408-utility-note i { margin-right: 5px; }
.p408-utility-links { color: #a8cba4; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- header ---------- */
.p408-header {
  background: var(--p408-plum); color: #ffffff;
  border-bottom: 3px solid var(--p408-rust);
  position: relative;
}
.p408-header-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 12px 0;
}
.p408-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.p408-brand-mark {
  width: 44px; height: 44px; display: inline-flex; overflow: hidden;
  border-radius: 10px;
}
.p408-brand-mark img { display: block; width: 44px; height: 44px; }
.p408-brand-word {
  font-size: 22px; font-weight: 700; color: #ffffff; letter-spacing: -.3px;
  display: block; line-height: 1.1;
}
.p408-brand-sub {
  display: block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--p408-gold);
}
.p408-nav { display: flex; align-items: center; gap: 0; flex: 1 1 auto; flex-wrap: wrap; }
.p408-nav-link {
  padding: 8px 12px; font-size: 13.5px; font-weight: 600; color: #d9ead6;
  border-bottom: 2px solid transparent;
}
.p408-nav-link:hover { background: rgba(255, 255, 255, .08); color: var(--p408-gold); }
.p408-nav-link.is-active { color: var(--p408-gold); border-bottom-color: var(--p408-rust); }
.p408-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.p408-switch {
  display: inline-flex; overflow: hidden; border: 1px solid #3c8f47;
  border-radius: 20px;
}
.p408-switch-seg {
  padding: 5px 12px; font-size: 12px; font-weight: 700; color: #bcdcb8;
  text-transform: uppercase; letter-spacing: .5px;
}
.p408-switch-seg.is-active { background: var(--p408-rust); color: #ffffff; }
.p408-mode {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid #3c8f47; color: #d9ead6;
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.p408-mode:hover { color: #ffffff; border-color: var(--p408-gold); background: var(--p408-gold); }
.p408-burger {
  display: none; width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid #3c8f47; color: #ffffff; font-size: 15px;
}

/* ---------- marquee ---------- */
.p408-marquee {
  background: var(--p408-rust); color: #ffffff; overflow: hidden;
  font-size: 12.5px; font-weight: 600;
}
.p408-marquee-track {
  display: flex; gap: 30px; padding: 7px 0; white-space: nowrap;
  width: max-content; animation: p408-marquee 26s linear infinite;
}
.p408-marquee-item { display: inline-flex; align-items: center; }
.p408-marquee-item i { color: var(--p408-gold); font-size: 10px; margin-right: 5px; }
@keyframes p408-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .p408-marquee-track { animation: none; }
}

/* ---------- hero ---------- */
.p408-hero {
  background: var(--p408-plum);
  background-image: linear-gradient(135deg, #1b6e26 0%, #14601e 55%, #0d3a13 100%);
  color: #ffffff;
  border-bottom: 1px solid #155c1f;
}
.p408-hero-in {
  display: grid; grid-template-columns: 1fr 300px; gap: 34px;
  align-items: center; padding: 42px 0 46px;
}
.p408-hero-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--p408-gold);
  border: 1px solid rgba(88, 201, 92, .45); padding: 4px 12px; border-radius: 16px;
}
.p408-body .p408-hero-h1 {
  font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; color: #ffffff;
  margin: 14px 0 12px; letter-spacing: -.8px;
}
.p408-hero-lead { color: #c4e0c1; font-size: 15px; max-width: 62ch; }
.p408-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 18px; }
.p408-hero-marks {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 18px;
  flex-wrap: wrap; font-size: 12.5px; color: #a9cfa5;
}
.p408-hero-marks i { color: var(--p408-gold); margin-right: 5px; }

.p408-exhibit {
  margin: 0; background: var(--p408-surface); border-radius: var(--p408-radius);
  padding: 18px; text-align: center; box-shadow: var(--p408-shadow);
}
.p408-exhibit-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--p408-rust-deep); background: var(--p408-rust-wash);
  padding: 4px 12px; border-radius: 14px; margin-bottom: 12px;
}
.p408-exhibit-shot {
  display: block; width: 118px; height: 118px; margin: 0 auto;
  background: var(--p408-surface-2); border-radius: var(--p408-radius-sm);
  overflow: hidden;
}
.p408-exhibit-shot img { width: 112px; height: 112px; object-fit: contain; }
.p408-exhibit figcaption b {
  display: block; margin-top: 12px; font-size: 14.5px; color: var(--p408-ink);
}
.p408-exhibit figcaption span { font-size: 12.5px; color: var(--p408-muted); }
.p408-exhibit figcaption i { font-style: normal; margin-left: 10px; }
.p408-exhibit figcaption i.fa-star { color: var(--p408-star); margin-left: 0; }

.p408-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-weight: 700; font-size: 14px; border-radius: var(--p408-radius-sm);
  border: 1px solid transparent;
}
.p408-btn.is-brand { background: var(--p408-rust); color: #ffffff; box-shadow: var(--p408-shadow-sm); }
.p408-btn.is-brand:hover { background: var(--p408-rust-deep); color: #ffffff; }
.p408-btn.is-ghost { background: transparent; border-color: var(--p408-line-strong); color: var(--p408-ink); }
.p408-btn.is-ghost:hover { border-color: var(--p408-rust); color: var(--p408-rust-deep); background: var(--p408-rust-wash); }
.p408-hero .p408-btn.is-ghost { border-color: #3c8f47; color: #d9ead6; }
.p408-hero .p408-btn.is-ghost:hover { border-color: var(--p408-gold); color: var(--p408-gold); background: rgba(88, 201, 92, .10); }

/* ---------- category ribbon ---------- */
.p408-ribbon { background: var(--p408-surface); border-bottom: 1px solid var(--p408-line); }
.p408-ribbon-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0;
}
.p408-ribbon-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--p408-muted); margin-right: 4px;
}
.p408-ribbon-link {
  font-size: 13px; font-weight: 600; color: var(--p408-ink-soft);
  padding: 5px 13px; border: 1px solid var(--p408-line); border-radius: 18px;
}
.p408-ribbon-link:hover { color: var(--p408-rust-deep); border-color: var(--p408-rust); }
.p408-ribbon-link.is-active { background: var(--p408-rust); border-color: var(--p408-rust); color: #ffffff; }

/* ---------- frame ---------- */
.p408-frame {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px;
  padding: 26px 0 48px; align-items: start;
}
.p408-maincol { min-width: 0; }
.p408-block { margin-bottom: 32px; }
.p408-block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; border-bottom: 2px solid var(--p408-plum); padding-bottom: 8px; margin-bottom: 14px;
}
.p408-block-title {
  font-size: 19px; font-weight: 700; margin: 0; position: relative; padding-left: 13px;
}
.p408-block-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 21px; border-radius: 3px; background: var(--p408-rust);
}
.p408-block-note { font-size: 12.5px; color: var(--p408-muted); }
.p408-block-more { font-size: 13px; font-weight: 600; color: var(--p408-blue); }

.p408-filter-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; background: var(--p408-plum-wash); border: 1px solid var(--p408-line);
  border-left: 4px solid var(--p408-plum); padding: 10px 14px; margin-bottom: 18px;
  font-size: 13.5px; border-radius: var(--p408-radius-sm);
}
.p408-filter-note a { font-weight: 600; color: var(--p408-rust-deep); }

/* ---------- ranked listing table ---------- */
.p408-tablewrap {
  background: var(--p408-surface); border: 1px solid var(--p408-line);
  border-radius: var(--p408-radius); overflow-x: auto; box-shadow: var(--p408-shadow-sm);
}
.p408-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.p408-table thead th {
  background: var(--p408-plum); color: #ffffff; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 10px 12px; white-space: nowrap;
}
.p408-table tbody tr { border-bottom: 1px solid var(--p408-line); }
.p408-table tbody tr:last-child { border-bottom: none; }
.p408-table tbody tr:nth-child(even) { background: var(--p408-wash); }
.p408-table tbody tr:hover { background: var(--p408-rust-wash); }
.p408-table td { padding: 10px 12px; vertical-align: middle; }

.p408-row-rank {
  width: 46px; text-align: center; font-weight: 700; font-size: 15px;
  color: var(--p408-rust-deep); background: var(--p408-surface-2);
  border-right: 1px solid var(--p408-line);
}
.p408-row-app a { display: flex; align-items: center; gap: 11px; color: var(--p408-ink); }
.p408-row-app a:hover { color: var(--p408-rust-deep); }
.p408-row-icon {
  width: 40px; height: 40px; flex: 0 0 40px; overflow: hidden;
  background: var(--p408-surface-2); border: 1px solid var(--p408-line);
  border-radius: var(--p408-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.p408-row-icon img { width: 38px; height: 38px; object-fit: contain; }
.p408-row-text { min-width: 0; }
.p408-row-text b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.p408-row-text small { display: block; font-size: 11.5px; color: var(--p408-muted); }
.p408-row-ver, .p408-row-size, .p408-row-dl { color: var(--p408-muted); white-space: nowrap; font-size: 12.5px; }
.p408-row-rate { color: var(--p408-gold-deep); font-weight: 700; white-space: nowrap; }
.p408-row-rate i { color: var(--p408-star); }
.p408-row-cta a {
  display: inline-block; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--p408-rust); color: #ffffff; padding: 6px 13px; border-radius: 16px;
}
.p408-row-cta a:hover { background: var(--p408-rust-deep); color: #ffffff; }

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

/* ---------- rail ---------- */
.p408-rail { min-width: 0; }
.p408-rail-box {
  background: var(--p408-surface); border: 1px solid var(--p408-line);
  padding: 15px 16px; margin-bottom: 16px; border-radius: var(--p408-radius);
}
.p408-rail-box.is-brand { border-left: 3px solid var(--p408-rust); }
.p408-rail-title {
  font-size: 14.5px; font-weight: 700; margin: 0 0 10px; position: relative; padding-bottom: 8px;
  border-bottom: 1px solid var(--p408-line);
}
.p408-rail-title i { color: var(--p408-rust); margin-right: 5px; }
.p408-rail-search { display: flex; gap: 8px; }
.p408-rail-search input {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--p408-line-strong);
  background: var(--p408-surface-2); color: var(--p408-ink);
  padding: 9px 13px; font: inherit; font-size: 13px; border-radius: var(--p408-radius-sm);
}
.p408-rail-search input:focus { outline: 2px solid var(--p408-rust); outline-offset: 1px; }
.p408-rail-search button {
  border: none; cursor: pointer; background: var(--p408-rust); color: #ffffff;
  padding: 0 14px; border-radius: var(--p408-radius-sm); font-size: 13px;
}
.p408-rail-search button:hover { background: var(--p408-rust-deep); }
.p408-rail-empty { font-size: 13px; color: var(--p408-muted); margin: 10px 0 0; }
.p408-rail-cta {
  background: var(--p408-plum); border-radius: var(--p408-radius); padding: 16px;
  color: #d9ead6;
}
.p408-rail-cta p { font-size: 13.5px; margin: 0 0 12px; }

.p408-ranklist { list-style: none; margin: 0; padding: 0; }
.p408-ranklist li { border-bottom: 1px solid var(--p408-line); }
.p408-ranklist li:last-child { border-bottom: none; }
.p408-ranklist a {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--p408-ink);
}
.p408-ranklist a:hover { color: var(--p408-rust-deep); }
.p408-ranklist img {
  width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px;
  background: var(--p408-surface-2); border: 1px solid var(--p408-line); border-radius: 6px;
}
.p408-rankno {
  width: 24px; height: 24px; flex: 0 0 24px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  background: var(--p408-plum-wash); color: var(--p408-plum); border-radius: 6px;
}
.p408-ranklist-text { min-width: 0; }
.p408-ranklist-text b {
  display: block; font-size: 13px; font-weight: 600; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p408-ranklist-text small { font-size: 11.5px; color: var(--p408-muted); }
.p408-ranklist-text small i { color: var(--p408-star); }

/* ---------- detail page ---------- */
/* The detail page reuses the frame's two-column split, so the rail sits
   beside the article instead of dropping below it. */
.p408-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px;
  align-items: start; padding: 22px 0 48px;
}
.p408-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--p408-muted); margin: 0 0 12px;
}
.p408-crumb a { color: var(--p408-ink-soft); }
.p408-crumb a:hover { color: var(--p408-rust-deep); }

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

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

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

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

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

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

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

/* ---------- download zone (shared appkit markup) ---------- */
.p408-dlzone { margin: 24px 0; }
.app-dl-zone {
  background: var(--p408-surface); border: 1px solid var(--p408-line);
  border-top: 3px solid var(--p408-rust); padding: 18px; text-align: center;
  border-radius: var(--p408-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(--p408-radius-sm);
  background: var(--p408-rust); color: #ffffff;
  font: inherit; font-weight: 700; font-size: 14px;
  box-shadow: var(--p408-shadow-sm);
}
.app-dl-btn:hover { background: var(--p408-rust-deep); color: #ffffff; }
.app-dl-progress { margin-bottom: 14px; }
.app-dl-progress span { display: block; font-size: 13px; color: var(--p408-ink-soft); margin-bottom: 8px; }
.app-dl-bar {
  display: block; height: 7px; background: var(--p408-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(--p408-rust), var(--p408-gold));
  display: block;
}
.app-dl-install {
  background: var(--p408-surface-2); border: 1px solid var(--p408-line);
  padding: 12px 16px; margin-bottom: 14px; text-align: left;
  border-radius: var(--p408-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; }
.p408-body .app-dl-final,
.p408-body a.app-dl-final {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 30px; font-weight: 700; font-size: 14px;
  border-radius: var(--p408-radius-sm);
  background: var(--p408-rust); color: #ffffff; text-decoration: none;
  box-shadow: var(--p408-shadow-sm);
}
.p408-body .app-dl-final:hover,
.p408-body a.app-dl-final:hover { background: var(--p408-rust-deep); color: #ffffff; }
.app-dl-final[hidden] { display: none; }

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

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

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

/* ---------- dock ---------- */
.p408-dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 70;
  background: var(--p408-plum); border: 1px solid #3c8f47;
  padding: 6px; box-shadow: var(--p408-shadow); border-radius: 24px;
  /* The dock floats over the page, so it never grows past the viewport. */
  max-width: calc(100% - 24px);
}
.p408-dock-btn {
  padding: 9px 22px; font-size: 13px; font-weight: 700;
  color: #bcdcb8; background: transparent; border-radius: 18px;
}
.p408-dock-btn:hover { background: rgba(255, 255, 255, .10); color: var(--p408-gold); }
.p408-dock-btn.is-brand { background: var(--p408-rust); color: #ffffff; }
.p408-dock-btn.is-brand:hover { background: var(--p408-rust-deep); color: #ffffff; }

/* ---------- footer ---------- */
.p408-foot { background: var(--p408-plum-deep); color: #a8cba4; margin-top: 20px; }
.p408-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;
}
.p408-foot-logo {
  font-weight: 700; font-size: 22px; color: #ffffff;
  display: inline-block; margin-bottom: 10px;
}
.p408-foot-text { font-size: 13px; color: #a8cba4; margin: 0 0 12px; }
.p408-foot-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.p408-age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; font-size: 12px; font-weight: 700;
  color: #0d3a13; background: var(--p408-gold); border-radius: 50%;
}
.p408-org-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: #a8cba4;
  background: rgba(255, 255, 255, .06); border: 1px solid #155c1f;
  padding: 6px 12px; border-radius: 18px;
}
.p408-org-badge i { color: var(--p408-gold); }
.p408-foot-col { display: flex; flex-direction: column; gap: 8px; }
.p408-foot-title {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--p408-gold); margin: 0 0 4px; position: relative; padding-bottom: 8px;
}
.p408-foot-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 42px; height: 2px;
  background: var(--p408-rust);
}
.p408-foot-col a { font-size: 13px; color: #a8cba4; }
.p408-foot-col a:hover { color: var(--p408-gold); }
.p408-foot-note { font-size: 12.5px; color: #8aa886; margin: 4px 0 0; }
.p408-foot-social { display: flex; gap: 8px; margin-top: 6px; }
.p408-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: #a8cba4;
  border: 1px solid #155c1f; border-radius: 50%;
}
.p408-foot-social a:hover { background: var(--p408-rust); border-color: var(--p408-rust); color: #ffffff; }
.p408-foot-base {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  border-top: 1px solid #155c1f; padding: 14px 0 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #8aa886;
}
.p408-foot-base p { margin: 0; }

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

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

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

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