:root {
    --ink: #1c2430;
    --muted: #5c6b78;
    --paper: #f3f6ee;
    --navy: #16356f;
    --navy-2: #1d4e9a;
    --gold: #e2b15a;
    --coral: #e25b4a;
    --mint: #d9f0cc;
    --cyan: #d7f3f8;
    --line: #d5dece;
    --card: #ffffff;
    --ok: #1f8a4c;
    --bad: #b42318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 {
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.15;
    font-weight: 560;
    margin: 0 0 12px;
}
p { margin: 0 0 14px; }
button, input { font-family: inherit; }

.yp-shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: 100vh;
}
.yp-rail {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    padding: 22px 18px 28px;
    background: var(--mint);
    border-right: 1px solid var(--line);
}
.yp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    margin-bottom: 8px;
}
.yp-brand img {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
}
.yp-brand-name {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    line-height: 1.25;
}
.yp-rail-note {
    margin: 0 0 16px 76px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.yp-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.yp-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
}
.yp-nav.is-here {
    background: #fff;
    box-shadow: inset 3px 0 0 var(--navy);
}
.yp-ico { width: 18px; height: 18px; flex: 0 0 18px; }
.yp-shopgo {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--coral);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 999px;
    padding: 14px 16px;
    box-shadow: 0 7px 0 #b83d30;
}
.yp-shopgo:hover { color: #fff; }
.yp-shopgo.is-here {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 0 0 3px #f2c14e, 0 7px 0 #b83d30;
}

.yp-on-charter .yp-rail { background: var(--navy); color: #f4f7ef; border-right-color: #0e244d; }
.yp-on-charter .yp-brand,
.yp-on-charter .yp-nav { color: #f4f7ef; }
.yp-on-charter .yp-rail-note { color: #c9d7ee; }
.yp-on-charter .yp-nav.is-here { background: rgba(255,255,255,0.12); box-shadow: inset 3px 0 0 var(--gold); color: #fff; }

.yp-on-haul .yp-rail { background: #fff8ea; border-right: 6px solid var(--gold); }
.yp-on-haul .yp-nav { border-radius: 0 16px 16px 0; }
.yp-on-haul .yp-nav.is-here { background: var(--gold); color: #3a2a08; box-shadow: none; }

.yp-on-contact .yp-rail { background: var(--cyan); }
.yp-on-contact .yp-nav.is-here { box-shadow: inset 3px 0 0 #12809a; }

.yp-on-shop .yp-rail { background: #1c2430; color: #f4f7ef; border-right-color: #1c2430; }
.yp-on-shop .yp-brand,
.yp-on-shop .yp-nav { color: #f4f7ef; }
.yp-on-shop .yp-rail-note { color: #b7c0cc; }
.yp-on-shop .yp-nav.is-here { background: transparent; border: 1px solid rgba(255,255,255,0.28); box-shadow: none; }

.yp-main { padding: 28px 32px 40px; min-width: 0; }
.yp-wrap { max-width: 1080px; }
.yp-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 8px;
}
.yp-lead { font-size: 18px; color: #2c3848; max-width: 62ch; }
.yp-dash {
    height: 8px;
    width: 120px;
    border-radius: 99px;
    margin: 8px 0 18px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 20px);
}

.yp-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 28px;
    align-items: center;
}
.yp-frame {
    background: var(--card);
    border-radius: 22px;
    padding: 10px;
    border: 1px solid var(--line);
}
.yp-frame img { border-radius: 14px; width: 100%; max-height: 380px; object-fit: cover; }
.yp-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 18px 0 8px;
}
.yp-stores a { display: block; line-height: 0; }
.yp-stores img { height: 52px; width: auto; }

.yp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}
.yp-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 16px 14px;
    text-decoration: none;
    color: inherit;
    display: block;
}
.yp-card h2 { font-size: 22px; }
.yp-card p { color: var(--muted); font-size: 14px; margin: 0; }
.yp-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--navy); }

.yp-strip {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed var(--line);
}
.yp-strip a { font-weight: 600; text-decoration: none; }
.yp-strip span { display: inline-flex; align-items: center; gap: 6px; }

.yp-prose { font-size: 16.5px; }
.yp-prose::after { content: ""; display: block; clear: both; }
.yp-float {
    width: 210px;
    float: right;
    margin: 4px 0 12px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px;
}
.yp-float img { border-radius: 12px; width: 100%; }
.yp-on-contact .yp-float { float: left; margin: 4px 18px 12px 0; width: 200px; }

.yp-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0;
}
.yp-pair article, .yp-quote, .yp-feat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}
.yp-quote { margin: 8px 0 18px; background: var(--navy); color: #f4f7ef; }
.yp-quote p { margin: 0; font-size: 20px; font-family: "Fraunces", Georgia, serif; }
.yp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yp-chips span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
}

.yp-feat-list { display: grid; gap: 12px; margin-top: 8px; }
.yp-feat { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; }
.yp-feat:nth-child(even) { background: #fff8ea; }
.yp-feat h2 { font-size: 22px; }
.yp-feat .yp-ico { width: 28px; height: 28px; margin-top: 4px; color: var(--navy); }

.yp-facts { display: grid; gap: 10px; margin-top: 8px; }
.yp-fact {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    align-items: center;
}
.yp-fact .yp-ico { color: #12809a; }
.yp-fact a { font-weight: 650; }

.yp-alert {
    background: #fde8e6;
    color: var(--bad);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.yp-moneybar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 16px; }
.yp-money {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 700;
}
.yp-money.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.yp-buy {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 16px;
    align-items: start;
}
.yp-well { max-height: 74vh; overflow: auto; padding-right: 4px; }
.yp-group { margin: 8px 0 18px; }
.yp-group h2 { font-size: 26px; }
.yp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.yp-coin {
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    cursor: pointer;
}
.yp-coin img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; flex: 0 0 58px; }
.yp-coin-title { display: block; font-weight: 700; }
.yp-coin-price { display: block; color: var(--navy); font-weight: 700; }
.yp-coin.is-on { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(226,91,74,0.25); }

.yp-order .yp-fields { grid-template-columns: 1fr; }
.yp-order {
    margin-top: 0;
    position: sticky;
    top: 16px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 18px;
}
.yp-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
.yp-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.yp-field input[type="text"] {
    width: 100%;
    border: 1px solid #c9d3c4;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
}
.yp-field input[readonly] { background: #f6f8f4; }
.yp-span { grid-column: 1 / -1; }
.yp-err { display: block; min-height: 1.1em; color: var(--bad); font-size: 13px; }
.yp-picked {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: var(--mint);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
}
.yp-pays { display: flex; flex-wrap: wrap; gap: 8px; }
.yp-pay {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff;
    cursor: pointer;
}
.yp-pay input { accent-color: var(--coral); }
.yp-pay.is-on { border-color: var(--navy); background: #eef3fb; }
.yp-pay-look { cursor: default; color: var(--muted); background: #f6f7f5; }
.yp-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.yp-agree input { margin-top: 4px; }
.yp-go {
    border: 0;
    background: var(--coral);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    box-shadow: 0 6px 0 #b83d30;
}
.yp-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.yp-sheet, .yp-result {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    max-width: 720px;
}
.yp-table { width: 100%; border-collapse: collapse; }
.yp-table th, .yp-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.yp-table th { width: 34%; color: var(--muted); font-weight: 600; }
.yp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.yp-linkbtn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: var(--navy);
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
}
.yp-linkbtn.alt { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.yp-count { font-family: "Fraunces", Georgia, serif; font-size: 42px; margin: 8px 0; }
.yp-result.ok { background: #eef8e8; }
.yp-result.bad { background: #fdeeee; }
.yp-result.warn { background: #fff8ea; border-style: dashed; }
.yp-result .yp-ico { width: 36px; height: 36px; }

.yp-foot { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.yp-foot a { color: inherit; }
.yp-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.yp-foot strong { color: var(--ink); }
.yp-foot-line { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.yp-on-charter .yp-foot { border-top-color: var(--gold); }
.yp-on-haul .yp-foot { background: #fff8ea; margin-left: -8px; margin-right: -8px; padding: 16px; border-radius: 16px; border-top: 0; }
.yp-on-contact .yp-foot { font-size: 16px; }
.yp-on-shop .yp-foot { border-top-style: dashed; }

@media (max-width: 980px) {
    .yp-shell { display: block; width: 100%; }
    .yp-main { width: 100%; max-width: 100%; box-sizing: border-box; }
    .yp-wrap, .yp-split, .yp-prose, .yp-lead, .yp-main p, h1 { max-width: 100%; min-width: 0; }
    .yp-stores { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; min-width: 0; }
    .yp-stores a { min-width: 0; display: block; }
    .yp-stores img { width: 100%; min-width: 0; height: auto; max-height: 48px; object-fit: contain; object-position: left center; }
    .yp-rail { position: relative; height: auto; }
    .yp-menu { display: grid; grid-template-columns: 1fr 1fr; }
    .yp-shopgo { width: 100%; }
    .yp-split { display: block; }
    .yp-cards, .yp-pair, .yp-fields, .yp-foot-grid, .yp-buy { grid-template-columns: minmax(0, 1fr); }
    .yp-frame { overflow: hidden; }
    .yp-frame img { display: block; width: 100%; max-width: 100%; height: auto; }
    .yp-well { max-height: 62vh; }
    .yp-order { position: static; }
    .yp-float, .yp-on-contact .yp-float { float: none; width: min(220px, 70%); margin: 0 0 14px; }
    .yp-main { padding: 20px 16px 32px; }
}
