/* /gundog-stud-services-uk. Scoped under .stud-* so nothing here reaches the legacy
   stylesheets. v2 tokens come from home.css (loaded on every page); the listing cards and
   pager come from dogsforsale.css. No "advert" in any class or id: content blockers hide
   [class*="advert"]. */

.stud-page {
    --stud-green: var(--v2-primary, #2d5a3d);
    --stud-green-dark: var(--v2-primary-hover, #1e3f2a);
    --stud-gold: var(--v2-accent, #d4a847);
    --stud-gold-dark: var(--v2-accent-hover, #b8912f);
    --stud-tint: #eaf1ea;
    --stud-line: #e6e0d4;
    --stud-ink: #1c1c1a;
    --stud-text: #3a372f;
    --stud-muted: #5f5b52;
    background: var(--v2-bg, #f8f6f2);
    font-family: var(--v2-font);
    color: var(--stud-ink);
    padding-bottom: 56px;
}

.stud-page a { color: var(--stud-green); }
.stud-page a:hover { color: var(--stud-green-dark); }

/* ── Buttons ─────────────────────────────────────────── */
.stud-page .stud-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.stud-page .stud-btn-gold { background: var(--stud-gold); color: var(--stud-ink); }
.stud-page .stud-btn-gold:hover { background: var(--stud-gold-dark); color: var(--stud-ink); }
.stud-page .stud-btn-green { background: var(--stud-green); color: #fff; }
.stud-page .stud-btn-green:hover { background: var(--stud-green-dark); color: #fff; }
.stud-page .stud-btn-outline { background: transparent; color: #fff; border-color: #fff; }
.stud-page .stud-btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.stud-page .stud-btn-ghost { background: #fff; color: var(--stud-green); border-color: var(--stud-green); }
.stud-page .stud-btn-block { width: 100%; }
.stud-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Type ────────────────────────────────────────────── */
.stud-page .stud-h2 {
    font-family: var(--v2-font);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--stud-ink);
    margin: 0 0 14px;
}
.stud-page .stud-body { font-size: 17px; line-height: 1.7; color: var(--stud-text); margin: 0 0 16px; }
.stud-page .stud-lead { font-weight: 700; color: var(--stud-ink); }
.stud-measure { max-width: 760px; }
.stud-page .stud-kicker {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stud-muted);
    margin: 22px 0 10px;
}
.stud-page .stud-kicker-gold { color: #8a6a1e; margin: 0; }

/* ── Green intro band ────────────────────────────────── */
.stud-hero { background: var(--stud-green); color: #fff; }
.stud-hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-end;
    padding-top: 28px;
    padding-bottom: 48px;
}
.stud-hero-main { flex: 999 1 560px; min-width: 0; }
.stud-page .stud-crumbs { font-size: 14px; color: #cfe0d2; margin-bottom: 18px; }
.stud-page .stud-crumbs a { color: #cfe0d2; text-decoration: none; }
.stud-page .stud-crumbs a:hover { color: #fff; text-decoration: underline; }
.stud-hero h1 {
    font-family: var(--v2-font);
    margin: 0 0 10px;
    font-size: 52px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}
.stud-page .stud-hero-sub { font-size: 22px; font-weight: 700; color: #f3d98c; margin: 0 0 16px; }
.stud-page .stud-hero-intro { margin: 0 0 26px; font-size: 18px; line-height: 1.65; color: #e9f1ea; max-width: 680px; }
.stud-hero-intro strong { color: #fff; }
.stud-hero-stats { flex: 1 1 280px; display: grid; gap: 10px; }
.stud-stat {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: 14px 18px;
}
.stud-stat strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.25; }
.stud-stat span { font-size: 14px; color: #cfe0d2; }

/* ── Listings ────────────────────────────────────────── */
.stud-listings { padding-top: 40px; scroll-margin-top: 16px; }
.stud-listings-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.stud-listings-head .stud-h2 { margin-bottom: 4px; }
.stud-page .stud-listings-meta { font-size: 15px; color: var(--stud-muted); margin: 0; }

.stud-filters {
    background: #fff;
    border: 1px solid var(--stud-line);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 20px;
}
.stud-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #4a463e;
    flex: 1 1 160px;
    margin: 0;
}
.stud-field select,
.stud-field input {
    min-height: 44px;
    border: 1px solid #d5cfc2;
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
    font-weight: 400;
    font-size: 15px;
    background: #fff;
    color: var(--stud-ink);
    width: 100%;
}
.stud-checks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    flex: 1 1 100%;
}
.stud-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--stud-text);
    min-height: 44px;
    margin: 0;
}
.stud-checks input { width: 18px; height: 18px; accent-color: var(--stud-green); }
.stud-filter-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.stud-page .stud-clear { font-weight: 600; }

.stud-empty {
    background: #fff;
    border: 1px solid var(--stud-line);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}
.stud-empty p { font-size: 16px; color: var(--stud-text); margin: 0 0 16px; }

/* ── Stud dogs by breed ──────────────────────────────── */
.stud-breeds { padding-top: 56px; }
.stud-breed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.stud-breed-grid { grid-auto-rows: 1fr; }
.stud-page .stud-breed-card {
    background: #fff;
    border: 1px solid var(--stud-line);
    border-radius: 12px;
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--stud-ink);
}
.stud-page .stud-breed-card:hover { border-color: var(--stud-green); color: var(--stud-ink); }
.stud-breed-card strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.stud-breed-card span { font-size: 13px; color: var(--stud-muted); }
.stud-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stud-page .stud-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--stud-line);
    background: #fff;
    color: #4a463e;
    font-size: 14px;
    text-decoration: none;
}
.stud-page .stud-pill:hover { border-color: var(--stud-green); color: var(--stud-green); }

/* ── Guide + aside ───────────────────────────────────── */
.stud-guide {
    padding-top: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.stud-guide-main {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.stud-guide-main > [id] { scroll-margin-top: 16px; }

.stud-panel {
    background: #fff;
    border: 1px solid var(--stud-line);
    border-radius: 14px;
    padding: 22px 24px;
}
.stud-panel-lg { border-radius: 18px; padding: 32px; }

.stud-page .stud-ticks {
    list-style: none;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.stud-page .stud-ticks.stud-panel { padding: 22px 24px; }
.stud-ticks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 17px;
    line-height: 1.55;
    color: var(--stud-text);
}
.stud-ticks svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; color: var(--stud-green); }
.stud-page .stud-ticks-sm { padding: 0; gap: 10px; margin-bottom: 20px; }
.stud-ticks-sm li { font-size: 15px; }
.stud-ticks-sm svg { flex-basis: 18px; width: 18px; height: 18px; }

.stud-page .stud-asks {
    list-style: none;
    counter-reset: stud-ask;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stud-ask {
    counter-increment: stud-ask;
    position: relative;
    background: #fff;
    border: 1px solid var(--stud-line);
    border-radius: 14px;
    padding: 22px 24px 22px 78px;
}
.stud-ask::before {
    content: counter(stud-ask);
    position: absolute;
    left: 24px;
    top: 22px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--stud-tint);
    color: var(--stud-green);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stud-page .stud-ask h3 {
    font-family: var(--v2-font);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.35;
    color: var(--stud-ink);
    margin: 6px 0 8px;
}
.stud-ask p { font-size: 17px; line-height: 1.7; color: var(--stud-text); margin: 0; }
.stud-ask p + .stud-table-wrap { margin-top: 14px; }

.stud-table-wrap { border: 1px solid var(--stud-line); border-radius: 10px; overflow-x: auto; }
.stud-table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 420px; }
.stud-table th,
.stud-table td { padding: 10px 14px; text-align: left; vertical-align: top; }
.stud-table thead tr { background: #f1eee7; }
.stud-table thead th { font-weight: 700; }
.stud-table tbody tr { border-top: 1px solid var(--stud-line); }
.stud-table tbody th { font-weight: 600; }
.stud-table td { color: var(--stud-text); }
.stud-table td span { color: var(--stud-muted); }

.stud-fee-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.stud-fee-box {
    flex: 0 1 220px;
    background: var(--stud-green);
    color: #fff;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stud-fee-box span { font-size: 14px; color: #cfe0d2; }
.stud-fee-box strong { font-size: 32px; font-weight: 800; line-height: 1.15; margin-top: 4px; white-space: nowrap; }
.stud-fee-text { flex: 1 1 320px; min-width: 0; }
.stud-fee-text .stud-body:last-child { margin-bottom: 0; }

.stud-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.stud-facts div { background: var(--v2-bg, #f8f6f2); border-radius: 12px; padding: 16px; }
.stud-facts strong { display: block; font-size: 22px; font-weight: 800; color: var(--stud-green); }
.stud-facts span { font-size: 14px; color: var(--stud-muted); }
.stud-panel-lg .stud-btn { margin-top: 6px; }

.stud-faqs { display: flex; flex-direction: column; gap: 10px; }
.stud-faqs details {
    background: #fff;
    border: 1px solid var(--stud-line);
    border-radius: 12px;
    padding: 0 22px;
}
.stud-faqs summary {
    cursor: pointer;
    list-style: none;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.stud-faqs summary::-webkit-details-marker { display: none; }
.stud-page .stud-faqs summary h3 {
    font-family: var(--v2-font);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    color: var(--stud-ink);
    margin: 14px 0;
}
.stud-faqs summary i { color: var(--stud-green); transition: transform .15s ease; }
.stud-faqs details[open] summary i { transform: rotate(180deg); }
.stud-faqs details p { font-size: 16px; line-height: 1.7; color: var(--stud-text); margin: 0 0 18px; }

.stud-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stud-aside-card { background: #fff; border: 1px solid var(--stud-line); border-radius: 16px; padding: 24px 20px; }
.stud-page .stud-aside-feature .stud-btn { padding: 0 14px; font-size: 15px; white-space: nowrap; }
.stud-aside-feature { border: 2px solid var(--stud-gold); }
.stud-page .stud-aside-title { font-size: 24px; font-weight: 800; margin: 8px 0 4px; color: var(--stud-ink); }
.stud-page .stud-aside-title-sm { font-size: 18px; margin: 0 0 6px; }
.stud-page .stud-aside-price { font-size: 36px; font-weight: 800; color: var(--stud-green); margin: 0; }
.stud-page .stud-aside-note { font-size: 15px; color: var(--stud-muted); margin: 0 0 16px; }
.stud-toc { display: flex; flex-direction: column; gap: 8px; font-size: 15px; padding: 20px 24px; }
.stud-page .stud-toc .stud-kicker { margin: 0 0 2px; }

/* ── Closing band ────────────────────────────────────── */
.stud-closing { padding-top: 40px; }
.stud-closing-band {
    background: var(--stud-green);
    color: #fff;
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}
.stud-closing-band > div:first-child { flex: 1 1 320px; }
.stud-page .stud-closing-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.stud-closing-band p { font-size: 16px; color: #cfe0d2; margin: 0; }

/* ── Small screens ───────────────────────────────────── */
@media (max-width: 640px) {
    .stud-hero h1 { font-size: 36px; }
    .stud-page .stud-hero-sub { font-size: 19px; }
    .stud-page .stud-h2 { font-size: 24px; }
    .stud-hero-inner { padding-bottom: 36px; gap: 28px; }
    .stud-listings-head .stud-btn,
    .stud-btn-row .stud-btn { width: 100%; }
    .stud-filter-actions { margin-left: 0; width: 100%; justify-content: space-between; }
    .stud-panel-lg { padding: 22px 18px; }
    .stud-ask { padding: 18px 16px 18px 64px; }
    .stud-ask::before { left: 16px; top: 18px; }
    .stud-closing-band { padding: 26px 20px; }
    .stud-page .stud-closing-title { font-size: 23px; }
    .stud-guide { padding-top: 48px; }
    .stud-fee-box { flex-basis: 100%; }
}
