.racing-price-study {
    --study-panel: var(--guide-code);
    --study-border: var(--guide-line);
    --study-accent: var(--guide-accent);
}
.racing-price-study .racing-guide-layout { grid-template-columns: 188px minmax(0, 860px); gap: 56px; }
.racing-price-study .racing-guide-header { padding-bottom: 28px; }
.racing-price-study .racing-guide-header h1 { max-width: 790px; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.2; }
.racing-price-study .racing-guide-header h1 span { color: var(--study-accent); }
.racing-price-study .racing-guide-intro { max-width: 690px; font-size: 18px; line-height: 1.65; }
.price-study-sample { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; color: var(--guide-body); font-size: 14px; }
.price-study-sample strong { color: var(--guide-text); font-weight: 650; }
.racing-price-study .feed-prose > section { padding-top: 40px; }
.racing-price-study .feed-prose > section + section { margin-top: 40px; }
.racing-price-study .feed-prose > section:first-child { padding-top: 20px; }
.price-study-figure { margin: 28px 0 24px; padding: 24px 24px 16px; border: 1px solid var(--study-border); background: var(--study-panel); border-radius: 4px; }
.price-study-figure figcaption { color: var(--guide-text); font-weight: 600; font-size: 16px; line-height: 1.5; }
.price-study-figure picture { display: block; margin-top: 16px; }
.price-study-figure img { display: block; width: 100%; height: auto; }
.racing-price-study .feed-prose .price-study-caption { margin: 12px 0 0; font-size: 13px; line-height: 1.65; }
.price-study-table-wrap { position: relative; max-width: 100%; overflow-x: auto; border: 1px solid var(--study-border); border-radius: 4px; margin-block: 20px; scrollbar-color: var(--guide-body) var(--study-panel); }
.price-study-table-wrap:focus-visible { outline: 2px solid var(--study-accent); outline-offset: 3px; }
.price-study-table { width: 100%; border-collapse: collapse; color: var(--guide-body); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.price-study-table caption { padding: 14px 16px; color: var(--guide-body); font-size: 12px; text-align: left; border-bottom: 1px solid var(--study-border); }
.price-study-table th, .price-study-table td { padding: 14px 16px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--study-border); }
.price-study-table th:first-child { text-align: left; }
.price-study-table thead th { color: var(--guide-text); background: var(--study-panel); font-size: 12px; font-weight: 600; }
.price-study-table tbody th { color: var(--guide-text); font-weight: 500; }
.price-study-table tr:last-child > * { border-bottom: 0; }
.price-study-table tfoot th, .price-study-table tfoot td { border-top: 1px solid var(--study-border); color: var(--guide-body); font-size: 12px; }
.price-study-table tfoot th { font-weight: 500; }
.price-study-data-details { margin: 12px 0 24px; }
.price-study-data-details > summary { display: list-item; min-height: 44px; padding-block: 10px; cursor: pointer; color: var(--guide-body); font-size: 14px; }
.price-study-data-details > summary::marker { color: var(--study-accent); }
.price-study-data-details > summary:hover { color: var(--guide-text); }
.price-study-data-details > summary:focus-visible, .price-study-race > summary:focus-visible { outline: 2px solid var(--study-accent); outline-offset: 3px; }
.price-study-example { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 24px 0; border-block: 1px solid var(--study-border); padding-block: 20px; }
.price-study-example > div { display: grid; gap: 6px; }
.price-study-example span { font-size: 13px; color: var(--guide-body); }
.price-study-example strong { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.racing-price-study .feed-prose .price-study-best { color: var(--study-accent); font-weight: 650; }
.price-study-races { border-top: 1px solid var(--study-border); }
.price-study-race { border-bottom: 1px solid var(--study-border); }
.price-study-race > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 68px; padding: 16px 28px 16px 4px; position: relative; cursor: pointer; list-style: none; }
.price-study-race > summary::-webkit-details-marker { display: none; }
.price-study-race > summary::after { content: "+"; position: absolute; right: 4px; color: var(--study-accent); font-size: 21px; font-weight: 400; }
.price-study-race[open] > summary::after { content: "−"; }
.price-study-race > summary > span:first-child { color: var(--guide-text); font-weight: 600; }
.price-study-race > summary > span:last-child { color: var(--guide-body); font-size: 13px; }
.price-study-race .price-study-table-wrap { margin-top: 0; }
.price-study-runner-table { font-size: 13px; }
.price-study-runner-table th, .price-study-runner-table td { padding: 13px 12px; }
.price-study-runner-table tbody th { min-width: 180px; white-space: normal; }
.price-study-runner-number { display: inline-block; min-width: 22px; margin-right: 4px; color: var(--guide-body); font-size: 12px; }
.price-study-downloads { display: flex; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--study-border); padding-top: 24px; margin-top: 24px; }
.price-study-downloads a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.racing-price-study .feed-prose .price-study-data-note { margin-top: 16px; font-size: 13px; }
@media (max-width: 980px) {
    .racing-price-study .racing-guide-layout { display: block; }
    .racing-price-study .racing-guide-main { max-width: 860px; margin-inline: auto; }
}
@media (max-width: 600px) {
    .racing-price-study .racing-guide-header h1 { font-size: 30px; }
    .racing-price-study .racing-guide-intro { font-size: 16px; }
    .price-study-sample { gap: 8px 16px; font-size: 13px; }
    .price-study-sample > span:last-child { width: 100%; }
    .price-study-figure { margin: 24px 0; padding: 16px 12px 12px; }
    .price-study-figure figcaption { font-size: 15px; padding-inline: 4px; }
    .racing-price-study .feed-prose .price-study-caption { font-size: 12px; padding-inline: 4px; }
    .price-study-figure img { aspect-ratio: 430 / 365; }
    .price-study-table { font-size: 13px; }
    .price-study-table th, .price-study-table td { padding: 12px; }
    .price-study-example { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
    .price-study-example strong { font-size: 22px; }
    .price-study-race > summary { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .price-study-runner-table { min-width: 660px; }
    .price-study-runner-table th:first-child { position: sticky; left: 0; background: var(--guide-bg); border-right: 1px solid var(--study-border); min-width: 160px; }
    .price-study-runner-table thead th:first-child { background: var(--study-panel); }
}
