/* Keep the direction page in the football sweep research visual family. */
body.ratio-research-page {
    --bg: #f2f4f0;
    --text: #182d27;
    --sub: #74817b;
    --border: #e0e6df;
    --blue: #0f5b44;
    --blue-soft: #e9f2ed;
    --blue-soft-2: #dcebe2;
    --radius: 8px;
    --shadow: none;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding-top: calc(62px + env(safe-area-inset-top, 0px));
}

.ratio-research-page .app { padding: 16px 16px 26px; }
.ratio-research-page .site-app-header {
    background: #243b53;
    border: 0;
    box-shadow: 0 2px 10px rgba(24, 45, 39, .12);
}
.ratio-research-page .site-app-logo-text strong { color: #fff; }
.ratio-research-page .site-app-logo-text small { color: #b7cad8; }
.ratio-research-page .page-nav-button {
    background: transparent;
    border-color: rgba(255,255,255,.2);
    color: #e0ebf0;
    box-shadow: none;
}
.ratio-research-page .page-nav-button:hover { background: rgba(255,255,255,.1); }
.ratio-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #1e6c54;
    border-radius: 8px;
    background: linear-gradient(115deg, #0d493c, #12634c);
    color: #fff;
    box-shadow: 0 10px 28px rgba(23,64,48,.08);
}
.ratio-pitch {
    position: absolute;
    z-index: -1;
    width: 74%;
    height: 100%;
    top: -12%;
    right: -5%;
    transform: rotate(-16deg);
    fill: none;
    stroke: rgba(211,237,222,.07);
    stroke-width: 1;
    pointer-events: none;
}
.ratio-heading { padding: 23px 22px 16px; }
.ratio-eyebrow { margin: 0 0 8px; color: #afcdbd; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.ratio-heading h2 { margin: 0; color: #fff; font-size: 25px; line-height: 1.35; font-weight: 800; }
.ratio-subtitle { margin: 8px 0 0; color: #b6d1c2; font-size: 12px; }
.ratio-research-page .hero-control-panel {
    padding: 0 22px 20px !important;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.ratio-research-page .hero-control-main { grid-template-columns: auto minmax(96px,112px) minmax(0,1fr); }
.ratio-research-page .modelInlineLabel { color: #b6d1c2; }
.ratio-research-page .hero-control-panel .select-compact { color: #0f5b44; background: #f4f8f3; border-color: #c8dacd; }
.ratio-research-page .hero-control-panel .modelDescInline {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b6d1c2;
    white-space: normal;
}
.ratio-research-page .hero-tool-btn { border-radius: 5px; font-weight: 600; box-shadow: none; }
.ratio-research-page #btnDownloadData { background: #e8d491; border-color: #e8d491; color: #294737; box-shadow: none; }
.ratio-research-page #btnDownloadData:hover { background: #f1dfa7; border-color: #f1dfa7; }
.ratio-research-page .hero-tool-btn:disabled { opacity: .5; cursor: not-allowed; }
.ratio-research-page .filter-card {
    padding: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(220,240,226,.12);
    border-radius: 0;
    background: rgba(0,35,26,.15);
    box-shadow: none;
}
.ratio-research-page .tabsWrap { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; scrollbar-color: #467e66 transparent; }
.ratio-research-page .tabsWrap::-webkit-scrollbar-thumb { background: #467e66; }
.ratio-research-page .tabs { gap: 0; padding: 0; }
.ratio-research-page .tab {
    min-width: 96px;
    min-height: 67px;
    padding: 12px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    transform: none;
}
.ratio-research-page .tab::after { display: none; }
.ratio-research-page .tab.today:not(.active) { background: transparent; box-shadow: none; }
.ratio-research-page .tab:hover, .ratio-research-page .tab.active { background: rgba(255,255,255,.065); box-shadow: none; transform: none; }
.ratio-research-page .tab.active::after {
    display: block;
    top: auto;
    bottom: 0;
    left: 12px;
    right: 12px;
    width: auto;
    height: 3px;
    border: 0;
    border-radius: 2px 2px 0 0;
    background: #e1c573;
    transform: none;
}
.ratio-research-page .tab .dow { color: #c4dbce; font-family: inherit; font-size: 12px; }
.ratio-research-page .tab .date { justify-content: center; color: #96b8a6; font-family: inherit; font-size: 11px; font-weight: 400; }
.ratio-research-page .tab.active .dow { color: #fff; }
.ratio-research-page .tab.active .date { color: #e4d69d; }
.ratio-research-page .today-badge { background: rgba(225,197,115,.15); color: #e8d491; border-radius: 3px; }
.ratio-research-page .list-section > .section-head { padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.ratio-research-page .section-head h3 { color: var(--text); font-size: 14px; }
.ratio-research-page .view-switch { border-color: #dce5dc; border-radius: 5px; background: #f4f7f1; }
.ratio-research-page .view-switch-btn { border-radius: 3px; color: #65786c; }
.ratio-research-page .view-switch-btn.active { background: #0f5b44; color: #fff; }
.ratio-research-page .card, .ratio-research-page .compactMatch { border-color: var(--border); border-radius: 8px; box-shadow: none; }
.ratio-research-page .deepMatch { border: 1px solid #e4c9c1 !important; border-left: 3px solid #c58e80 !important; box-shadow: none !important; }
.ratio-research-page .cardHead { padding: 15px 18px 16px; background: #fff; border-bottom-color: #edf0ea; }
.ratio-research-page .dot { width: 6px; height: 6px; margin-top: 10px; box-shadow: none; }
.ratio-research-page .leftInfo { grid-template-columns: 6px minmax(0,1fr); gap: 8px; }
.ratio-research-page .league { padding: 2px 6px; border: 1px solid #e2e8de; border-radius: 4px; background: #f5f7f1; color: #5f735e; font-size: 11px; }
.ratio-research-page .lottery, .ratio-research-page .time { color: #8b968c; font-family: inherit; font-size: 11px; }
.ratio-research-page .teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 16px; margin-top: 9px; color: var(--text); font-size: 15px; }
.ratio-research-page .team-logo { width: 30px; height: 30px; border-color: #e0e6df; background: #fff; }
.ratio-research-page .teams .mid { color: #59705f; font-size: 18px; white-space: nowrap; }
.ratio-research-page .teams .away { text-align: right; }
.ratio-research-page .cardBody { padding: 13px 18px; background: #f8faf6; }
.ratio-research-page .decisionMain { color: #264d3a; font-size: 16px; }
.ratio-research-page .decisionSub, .ratio-research-page .quickMeta { color: #7a887c; }
.ratio-research-page .decisionBar, .ratio-research-page .detailFold { border-color: #e5ebe2; }
.ratio-research-page .commentaryText { color: #53675a; }
.ratio-research-page .detailFold > summary { padding: 10px 0; background: transparent; color: #0f5b44; }
.ratio-research-page .compactMatch { padding: 14px 18px; }
.ratio-research-page .compactMatch:hover { border-color: #b6cdbe; background: #f8faf6; }
.ratio-research-page .compactTeams, .ratio-research-page .compactPick { color: #264d3a; }
.ratio-research-page .compactMeta, .ratio-research-page .compactTime { color: #7a887c; }
.ratio-research-page .compactTeams .team-logo { width: 24px; height: 24px; }
.ratio-research-page .site-footer { border-color: #e0e6df; background: transparent; }
.ratio-research-page .loading-circle { border-color: #dcebe2; border-top-color: #0f5b44; }
.ratio-research-page .action-btn.primary { background: #0f5b44; border-color: #0f5b44; }
.ratio-research-page .detailChip::after {
    content: "";
    display: inline-block;
    vertical-align: -2px;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5b44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ratio-research-page .template-item.active { border-color: #0f5b44; background: #e9f2ed; }
.ratio-research-page :is(button, a, select, input, summary, .tab):focus-visible { outline: 2px solid #b99a46; outline-offset: 3px; }

@media (max-width: 720px) {
    body.ratio-research-page { padding-top: calc(56px + env(safe-area-inset-top, 0px)); }
    .ratio-research-page .app { padding: 12px 12px 22px !important; }
    .ratio-research-page .site-app-header-inner { padding-left: 12px; padding-right: 12px; }
    .ratio-heading { padding: 18px 16px 14px; }
    .ratio-heading h2 { font-size: 21px; }
    .ratio-research-page .hero-control-panel { padding: 0 16px 16px !important; }
    .ratio-research-page .hero-actions { justify-content: flex-start; }
    .ratio-research-page .tab { min-width: 88px; min-height: 63px; }
    .ratio-research-page .list-section > .section-head { flex-wrap: wrap; padding: 10px 12px; }
    .ratio-research-page .card { padding: 0 !important; }
    .ratio-research-page .cardHead, .ratio-research-page .cardBody, .ratio-research-page .compactMatch { padding: 13px; }
    .ratio-research-page .teams { font-size: 14px; gap: 9px; }
    .ratio-research-page .teams .mid { font-size: 16px; }
    .ratio-research-page .team-logo { width: 26px; height: 26px; }
}
@media (max-width: 480px) {
    .ratio-research-page .hero-control-main { grid-template-columns: auto minmax(0,1fr); }
    .ratio-research-page .hero-control-panel .modelDescInline { grid-column: 1 / -1; }
    .ratio-research-page .hero-actions { display: flex; }
    .ratio-research-page .hero-tool-btn { flex: 1; }
    .ratio-research-page .line1 { grid-template-columns: 1fr; gap: 5px; }
    .ratio-research-page .line1-tail { justify-self: end; }
    .ratio-research-page .site-app-logo-text small { display: none; }
}
