/* Your data / Working here: two informational pages that share one layout,
   a centred head, then a single readable column. */

.yd-head,
.wh-head {
    text-align: center;
    /* The shared .container already carries 40px top and bottom. Adding a
       margin on top of that left 128px of empty page under the intro. */
    padding-bottom: 0;
    margin-bottom: 0;
}

.yd-head h1,
.wh-head h1 {
    font-size: clamp(2.1rem, 5vw, 2.9rem);
    margin-bottom: 14px;
}

.yd-kicker,
.wh-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--violet);
    margin: 0 0 10px;
}

.yd-head .page-description,
.wh-head .page-description {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.yd-body,
.wh-body {
    max-width: 760px;
    margin: 0 auto 70px;
}

.yd-h2,
.wh-h2 {
    font-size: 1.3rem;
    margin: 46px 0 12px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.yd-body > .yd-h2:first-child,
.wh-body > .wh-h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.yd-p,
.wh-p {
    color: var(--ink-3);
    margin: 0 0 14px;
    line-height: 1.7;
}

/* ── Definition rows ─────────────────────────────────────────────────── */
.yd-rows {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 18px 0 8px;
}

.yd-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    align-items: start;
}

.yd-row:first-child {
    border-top: 0;
}

.yd-row dt {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.94rem;
}

.yd-row dd {
    margin: 0;
    color: var(--ink-3);
    font-size: 0.94rem;
}

/* ── Numbered steps ──────────────────────────────────────────────────── */
.yd-steps {
    counter-reset: yd;
    list-style: none;
    padding: 0;
    margin: 18px 0 8px;
}

.yd-steps li {
    counter-increment: yd;
    position: relative;
    padding: 0 0 22px 46px;
    border-left: 1px solid var(--border);
    margin-left: 15px;
}

.yd-steps li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.yd-steps li::before {
    content: counter(yd);
    position: absolute;
    left: -15px;
    top: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--violet-tint);
    color: var(--violet-dark);
    border: 1px solid var(--violet-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.yd-steps b {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    margin-bottom: 2px;
}

.yd-steps span {
    display: block;
    font-size: 0.92rem;
    color: var(--ink-3);
    line-height: 1.65;
}

/* ── Fraud warnings ──────────────────────────────────────────────────── */
.yd-flags {
    display: grid;
    gap: 12px;
    margin: 18px 0 18px;
}

.yd-flag {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    background-color: var(--warning-tint);
    border: 1px solid var(--warning);
    border-left-width: 3px;
    border-radius: 10px;
    padding: 15px 17px;
}

.yd-flag-icon {
    color: var(--warning-dark);
    display: flex;
    margin-top: 1px;
}

.yd-flag b {
    display: block;
    color: var(--ink);
    font-size: 0.97rem;
    margin-bottom: 2px;
}

.yd-flag span {
    display: block;
    font-size: 0.92rem;
    color: var(--ink-3);
    line-height: 1.6;
}

/* ── Benefits ────────────────────────────────────────────────────────── */
.wh-perks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 12px;
    margin: 18px 0 8px;
}

.wh-perk {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    background-color: var(--surface-2);
}

.wh-perk-icon {
    color: var(--violet);
    display: block;
    margin-bottom: 10px;
}

.wh-perk b {
    display: block;
    font-size: 0.98rem;
    color: var(--ink);
}

.wh-places {
    list-style: none;
    padding: 0;
    margin: 18px 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.wh-places li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-3);
    font-size: 0.95rem;
}

.wh-places svg {
    color: var(--violet);
    flex-shrink: 0;
}

/* ── Calls to action ─────────────────────────────────────────────────── */
/* The portal's primary button is violet, the same as the cookie banner and the
   active filter. A black button here would have been a second primary style
   invented for two pages. */
.yd-cta,
.wh-cta {
    display: inline-block;
    background-color: var(--violet);
    border: 1px solid var(--violet);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.yd-cta:hover,
.wh-cta:hover {
    background-color: var(--violet-dark);
    border-color: var(--violet-dark);
}

.yd-cta:focus-visible,
.wh-cta:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 2px;
}

.wh-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 20px;
}

.yd-link,
.wh-link {
    color: var(--violet-dark);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.yd-link:hover,
.wh-link:hover {
    color: var(--violet);
}

@media (max-width: 600px) {
    .yd-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .wh-actions {
        gap: 14px;
    }
}
