@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg-primary: #FAFAF7;
  --surface-primary: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #383838;
  --text-tertiary: #5E5E5E;
  --text-inverse: #111111;
  --text-link: #1D4ED8;
  --text-error: #C62828;
  --accent: #FF5A1F;
  --accent-lime: #C8FF2E;
  --accent-subtle: #C8FF2E;
  --accent-text: #111111;
  --action-primary: #FF5A1F;
  --action-disabled: #E6E6DE;
  --action-tertiary-hover: #C8FF2E;
  --border-focus: #111111;
  --border-strong: #737373;
  --border-default: #CFCFC5;
  --border-subtle: #CFCFC5;
  --border-error: #C62828;
  --shadow-hard: 4px 4px 0 #111111;
  --shadow-hard-sm: 3px 3px 0 #111111;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font: 400 16px/1.4 var(--font-body); }

.ys-body { min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.ys-body a { color: var(--text-link); text-underline-offset: 3px; }
.ys-body h1, .ys-body h2, .ys-body h3 { overflow-wrap: normal; }

.ys-bar { background: var(--bg-primary); border-bottom: 2px solid var(--border-focus); }
.ys-bar::before { content: ""; display: block; height: 12px; background: var(--accent-lime) url("form/stripes.svg") repeat-x left top / 1920px 12px; }
.ys-bar-in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.ys-body .ys-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1.1 var(--font-heading); color: var(--text-primary); text-decoration: none; }
.ys-brand img { flex: none; border: 2px solid var(--border-focus); border-radius: 10px; }
.ys-mascot { display: block; margin-bottom: 18px; border: 2px solid var(--border-focus); border-radius: 24px; box-shadow: var(--shadow-hard); }
.ys-nav { display: flex; gap: 4px; }
.ys-body .ys-nav a { padding: 4px 8px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; color: var(--text-primary); text-decoration: none; }
.ys-body .ys-nav a:hover, .ys-body .ys-nav a[aria-current="page"] { background: var(--accent-lime); }

.ys-land { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; flex: 1 0 auto; }
.ys-small { font-size: 14px; line-height: 1.5; color: var(--text-tertiary); }

.ys-open { display: grid; gap: 28px; padding: 32px 0 40px; }
.ys-open-text p { margin: 0 0 14px; }
.ys-kicker { display: inline-block; margin-bottom: 14px !important; padding: 2px 10px; border: 2px solid var(--border-focus); background: var(--accent-lime); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.ys-open h1 { margin: 0 0 16px; font: 900 46px/1 var(--font-heading); }
.ys-lead { font-size: 18px; line-height: 1.5; color: var(--text-secondary); }
.ys-body .ys-jump { display: inline-flex; align-items: center; margin-top: 6px; padding: 12px 20px; border: 2px solid var(--border-focus); border-radius: var(--radius-md); background: var(--action-primary); box-shadow: var(--shadow-hard); color: var(--text-primary); font: 800 18px/1.2 var(--font-heading); text-decoration: none; }
.ys-body .ys-jump:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--border-focus); }

.ys-tally {
  margin: 0;
  display: grid;
  gap: 12px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-primary) url("tally-edge.svg") no-repeat;
  background-size: 100% 100%;
  box-shadow: var(--shadow-hard);
}
.ys-tally-cap { font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-tertiary); }
.ys-tally-goal, .ys-tally-sum, .ys-tally-gap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 700; }
.ys-tally-goal strong, .ys-tally-sum strong { font: 900 28px/1 var(--font-heading); }
.ys-tally-list { list-style: none; margin: 0; padding: 0; }
.ys-tally-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border-strong); }
.ys-item b { display: block; font-size: 16px; }
.ys-item small { font-size: 13px; color: var(--text-tertiary); }
.ys-pricetag { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 2px 10px 2px 8px; border: 2px solid var(--border-focus); background: var(--accent-lime); box-shadow: var(--shadow-hard-sm); font: 900 20px/1.2 var(--font-heading); }
.ys-tally-sum { padding-top: 4px; }
.ys-tally-gap { padding: 10px 12px; border: 2px solid var(--border-focus); border-radius: var(--radius-sm); background: var(--accent); }
.ys-tally-gap strong { font: 900 32px/1 var(--font-heading); }

.ys-block { padding: 40px 0; border-top: 2px dashed var(--border-strong); }
.ys-block h2 { margin: 0 0 20px; font: 800 34px/1.05 var(--font-heading); }
.ys-block p { margin: 0 0 12px; line-height: 1.55; }

.ys-trio { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ys-trio li { padding: 20px; border: 2px solid var(--border-focus); border-radius: var(--radius-md); background: var(--surface-primary); box-shadow: var(--shadow-hard); }
.ys-trio-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--border-focus); border-radius: 50%; background: var(--accent); font: 900 20px/1 var(--font-heading); }
.ys-trio h3 { margin: 12px 0 6px; font: 800 22px/1.15 var(--font-heading); }
.ys-trio p { margin: 0; color: var(--text-secondary); }

.ys-rest { display: grid; gap: 20px; }
.ys-rest-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.ys-rest-points li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 2px dashed var(--border-focus); border-radius: var(--radius-md); background: var(--surface-primary); font-weight: 700; }
.ys-rest-points li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--accent); border: 2px solid var(--border-focus); }

.ys-decide { margin: 8px 0 40px; padding: 28px 20px; border: 0; border-radius: var(--radius-lg); background: var(--text-primary); color: var(--bg-primary); }
.ys-decide h2 { color: var(--accent-lime); }
.ys-kicker-dark { color: var(--text-primary); }
.ys-decide .ys-decide-main { font: 800 24px/1.2 var(--font-heading); }
.ys-decide .ys-small { color: var(--border-default); margin-bottom: 0; }

.ys-tags { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 16px; }
.ys-bigtag { position: relative; padding: 16px 20px 16px 44px; border: 2px solid var(--border-focus); background: var(--accent-lime); box-shadow: var(--shadow-hard); }
.ys-bigtag img { position: absolute; left: 16px; top: 50%; margin-top: -6px; }
.ys-bigtag-label { display: block; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.ys-bigtag strong { display: block; font: 900 34px/1.05 var(--font-heading); }

.ys-slip-wrap { display: grid; gap: 20px; }
.ys-slip { padding: 8px 20px; border: 2px solid var(--border-focus); border-top-width: 6px; background: var(--surface-primary); box-shadow: var(--shadow-hard); font-variant-numeric: tabular-nums; }
.ys-slip-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border-strong); }
.ys-slip-row span:last-child { font-weight: 700; white-space: nowrap; }
.ys-slip-total { border-top: 2px solid var(--border-focus); border-bottom: 0; font: 900 24px/1.1 var(--font-heading); }

.ys-asked-list { max-width: 820px; }
.ys-asked-list > p { display: inline-block; margin-bottom: 16px; font-size: 14px; color: var(--text-tertiary); }
.faq-item { margin-bottom: 10px; border: 2px solid var(--border-focus); border-radius: var(--radius-md); background: var(--surface-primary); }
.faq-item summary { position: relative; padding: 14px 48px 14px 16px; font-weight: 700; font-size: 17px; line-height: 1.35; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 900 26px/1 var(--font-heading); }
.faq-item[open] summary { border-bottom: 1px dashed var(--border-strong); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item > :not(summary) { margin: 0; padding: 12px 16px 14px; line-height: 1.55; color: var(--text-secondary); }

.ys-owner-card { margin: 0; display: grid; gap: 14px; padding: 22px 20px; border: 2px solid var(--border-focus); border-radius: var(--radius-lg); background: var(--surface-primary); box-shadow: var(--shadow-hard); }
.ys-owner-card dt { font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-tertiary); }
.ys-owner-card dd { margin: 2px 0 0; font-weight: 500; }

.ys-foot { margin-top: 24px; background: var(--text-primary); color: var(--bg-primary); }
.ys-foot-in { max-width: 1080px; margin: 0 auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; font-size: 14px; }
.ys-foot-in p { margin: 0; }
.ys-foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ys-body .ys-foot-links a { color: var(--accent-lime); }

.ys-doc { width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 16px 48px; flex: 1 0 auto; }
.ys-doc-head { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--border-focus); }
.ys-body .ys-doc-back { font-weight: 700; font-size: 14px; color: var(--text-primary); text-decoration: none; }
.ys-body .ys-doc-back::before { content: "\2039\00a0"; }
.ys-doc-head h1 { margin: 8px 0 0; font: 900 40px/1.05 var(--font-heading); }
.ys-doc-body h2 { margin: 32px 0 8px; font: 800 24px/1.15 var(--font-heading); }
.ys-doc-body p { margin: 0 0 12px; line-height: 1.6; }
.legal-meta { display: inline-block; padding: 2px 10px; border: 2px solid var(--border-focus); background: var(--accent-lime); font-weight: 700; font-size: 13px; }
.legal-facts { list-style: none; margin: 12px 0 16px; padding: 0; border: 2px solid var(--border-focus); border-radius: var(--radius-md); background: var(--surface-primary); }
.legal-facts li { padding: 12px 16px; border-bottom: 1px dashed var(--border-strong); line-height: 1.5; }
.legal-facts li:last-child { border-bottom: 0; }
.legal-facts span { display: block; font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-tertiary); }

@media (min-width: 760px) {
  .ys-bar { position: sticky; top: 0; z-index: 5; } .ys-block[id], .ys-asked { scroll-margin-top: 72px; } .ys-open { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding: 64px 0 72px; }
  .ys-open h1 { font-size: 68px; }
  .ys-tally { transform: rotate(-1.2deg); }
  .ys-block { padding: 56px 0; }
  .ys-block h2 { font-size: 44px; }
  .ys-trio, .ys-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ys-rest { grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start; }
  .ys-decide { margin: 8px 0 56px; padding: 40px; }
  .ys-slip-wrap { grid-template-columns: 1fr minmax(0, 420px); gap: 48px; align-items: start; }
  .ys-owner-card { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px; }
  .ys-doc-head h1 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .ys-body .ys-jump:active { transform: none; }
}
