.editorial-standings {
    --forest:#102b21; --deep:#08201a; --paper:#faf7ef; --line:#dcd5c6; --gold:#a6782c; --ink:#201d18;
    --serif: Georgia, "Times New Roman", serif;
    color:var(--ink); max-width:1440px; margin-inline:auto;
}
.editorial-standings-page { background:#f4f0e8; }
.editorial-standings a { color:inherit; }
.standing-hero { padding:clamp(22px,5vw,60px) clamp(18px,3vw,40px); border:1px solid var(--line); border-radius:16px; color:var(--ink);
    background-color:var(--paper); background-position:right center; background-size:cover; }
.standing-hero-fantasy { background-image:linear-gradient(90deg,#f9f6ed 19%,rgba(249,246,237,.93) 39%,rgba(249,246,237,.16) 100%),url('fantasy-rugby-huddle.jpg'); }
.standing-hero-rankings { background-image:linear-gradient(90deg,#faf7ef 25%,rgba(250,247,239,.9) 46%,rgba(250,247,239,.07) 100%),url('rankings-touchline.jpg'); }
.standing-hero h1 { font:700 clamp(34px,5vw,66px)/1.03 var(--serif); margin:.15em 0; letter-spacing:-.04em; }
.standing-hero p { margin:.4em 0 0; max-width:56ch; }
.standing-kicker { color:#79541c; font-size:.76rem; font-weight:750; letter-spacing:.17em; text-transform:uppercase; }
.standing-spotlight,.standing-columns { display:grid; gap:18px; margin:18px 0; align-items:start; }
.standing-spotlight { grid-template-columns:1fr 1fr; align-items:end; }
.standing-columns { grid-template-columns:minmax(0,3fr) minmax(230px,1fr); }
.standing-main,.standing-sidebar { min-width:0; }
.standing-sidebar { display:grid; gap:14px; }
.standing-position { background:linear-gradient(150deg,#274d39,var(--deep) 75%); border:1px solid #427059; border-bottom:3px solid #ad8439; color:#fff8e9; border-radius:12px; }
.standing-position-head { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #ffffff37; padding:12px 18px; }
.standing-position-head h2,.standing-panel h2,.standings-ratings-head h2 { font:700 1.45rem/1.1 var(--serif); margin:0; }
.standing-position-head span { font-size:.82rem; padding:4px 8px; border:1px solid #ffffff40; border-radius:999px; }
.standing-position dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; padding:16px 8px; text-align:center; }
.standing-position dl div + div { border-left:1px solid #ffffff37; }
.standing-position dt { font-size:.73rem; color:#e2d5bc; }
.standing-position dd { font:700 clamp(1.2rem,3vw,2.25rem)/1.15 var(--serif); margin:4px 0; }
.standing-podium { display:flex; align-items:end; justify-content:center; gap:6px; padding:6px 0 0; }
.standing-podium-wide { grid-column:1/-1; }
.standing-podium-card { width:min(32%,175px); text-align:center; display:grid; justify-items:center; gap:3px; padding:12px 6px; border:1px solid #aaa49a; border-bottom:5px solid #99938b; border-radius:18px 18px 4px 4px; background:linear-gradient(145deg,#faf9f5,#c6c2ba); overflow-wrap:anywhere; }
.standing-podium-1 { order:1; padding-block:16px; border-color:#b18b45; background:linear-gradient(145deg,#fff0ba,#d6ad59); }
.standing-podium-2 { order:0; }
.standing-podium-3 { order:2; border-color:#a98162; background:linear-gradient(145deg,#f7dfca,#cfa27c); }
.standing-podium-title { font:700 1.9rem/1 var(--serif); }
.standing-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:0 0 11px; border-bottom:1px solid var(--line); margin:16px 0; }
.standing-tabs a,.standing-outline,.standing-button { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:8px; padding:8px 13px; font-weight:650; text-decoration:none; background:var(--paper); }
.standing-tabs a[aria-current],.standing-button { background:var(--forest); color:#fff9ec; border-color:var(--forest); }
.standing-outline { border-color:#b58c49; color:#6b4816!important; }
.standing-panel,.editorial-standings .ranking-panel { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:15px; box-shadow:0 3px 10px #2720100a; }
.standing-panel p { margin:.55em 0; }
.standing-school-list,.standings-movers { list-style:none; padding:0; margin:10px 0; }
.standing-school-list li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; padding:8px 0; border-top:1px solid var(--line); font-size:.85rem; }
.standing-school-list li a,.standing-school-name,.standings-movers li { display:flex; gap:7px; align-items:center; }
.standing-school-list strong { text-align:right; }
.standing-school-list small,.standing-expanded small { display:block; font-weight:500; color:#765420; }
.standing-notice { display:flex; flex-wrap:wrap; gap:6px 14px; border:1px solid #cfaa63; background:#fff4db; border-radius:8px; padding:10px 13px; font-size:.91rem; margin:0 0 12px; }
.standing-filters { display:grid; grid-template-columns:1.5fr 1fr 1fr auto; align-items:end; gap:8px; margin-bottom:12px; }
.standing-filters label,.editorial-standings .ranking-filters label { display:grid; gap:4px; min-width:0; font-size:.8rem; font-weight:650; }
.standing-filters input,.standing-filters select { min-width:0; width:100%; padding:8px; color:var(--ink); background:#fffefa; border:1px solid var(--line); border-radius:7px; font:inherit; min-height:40px; }
.standing-manager-table { padding:0; }
.standing-manager-grid { display:grid; grid-template-columns:3rem minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr) 5rem 3.5rem 10px; align-items:center; gap:8px; padding:7px 11px; overflow-wrap:anywhere; }
.standing-table-labels { font-size:.68rem; text-transform:uppercase; font-weight:750; letter-spacing:.045em; }
.standing-manager-row { border-top:1px solid var(--line); }
.standing-manager-row summary { cursor:pointer; list-style:none; font-size:.88rem; }
.standing-manager-row summary::-webkit-details-marker { display:none; }
.standing-manager-row summary::after { content:'⌄'; font-size:1rem; }
.standing-manager-row[open] summary::after { content:'⌃'; }
.standing-you,.standing-manager-row[open] { background:#e9eddf; }
.standing-rank { font-weight:750; border-radius:5px; padding:3px 5px; justify-self:start; }
.standing-rank-1 { background:#efd498; }.standing-rank-2 { background:#e4e2dc; }.standing-rank-3 { background:#e9c7aa; }
.standing-up { color:#237341; }.standing-down { color:#a42d24; }.standing-position .standing-up { color:#9ce8ae; }.standing-position .standing-down { color:#ffada4; }
.standing-expanded { padding:12px; display:grid; grid-template-columns: minmax(105px,1fr) minmax(0,4fr); gap:12px; font-size:.85rem; }
.standing-expanded a { display:block; }
.standing-expanded ul { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); list-style:none; padding:0; margin:0; gap:6px; }
.standing-expanded li { display:grid; justify-items:center; align-content:start; gap:5px; text-align:center; padding:8px 4px; border:1px solid var(--line); border-radius:9px; background:var(--paper); overflow-wrap:anywhere; }
.standing-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.editorial-standings .standings-ratings { padding:0; }
.standings-ratings-head { background:linear-gradient(110deg,#234634,var(--deep)); color:#fff9ea; padding:15px; border-radius:11px 11px 0 0; }
.standings-ratings-head p { margin:.35em 0 0; }
.standings-ratings > p,.standings-ratings .ranking-filters { margin:12px 15px; }
.standings-ratings .ranking-table { margin:0; }
.standings-overview { margin:10px 0 0; font-size:.85rem; }
.standings-overview div { display:flex; justify-content:space-between; gap:8px; border-top:1px solid var(--line); padding:8px 0; }
.standings-overview dd { margin:0; text-align:right; }
.standings-movers li { padding:7px 0; border-top:1px solid var(--line); }
.standings-simulator { text-decoration:none; background:linear-gradient(125deg,#234634,var(--deep)); color:#fff9ea!important; display:grid; gap:5px; }
@media (max-width:960px) {
    .standing-columns { grid-template-columns:1fr; }
}
@media (max-width:650px) {
    .standing-spotlight { grid-template-columns:1fr; }
    .standing-hero-rankings { background-position:65% center; }
    .standing-hero-fantasy { background-position:60% center; }
    .standing-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .standing-manager-grid { grid-template-columns:2.3rem minmax(0,1fr) auto 10px; }
    .standing-optional { display:none; }
    .standing-expanded { grid-template-columns:1fr; }
    .standing-expanded ul { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.standings-ratings .ranking-table th,.standings-ratings .ranking-table td { padding-inline:6px; }
.standing-form { display:inline-flex; gap:2px; }
.standing-form span { display:inline-grid; place-items:center; width:1.18em; min-height:1.3em; border-radius:3px; background:#e6d8bd; color:#2b2417; font-size:.76rem; font-weight:700; }
.standing-form .standing-form-W { background:#246442; color:white; }
.standing-form .standing-form-L { background:#a73132; color:white; }
@media (max-width:1180px) and (min-width:961px), (max-width:800px) {
    .standings-ratings .ranking-table .ranking-form-stat { display:none; }
}

/* Public school rankings */
.standings-ratings .ranking-baseline { font-size: .8rem; color: var(--rugby-muted-text); }
.standings-ratings .ranking-rating-list { table-layout: fixed; }
.standings-ratings .ranking-rating-list th, .standings-ratings .ranking-rating-list td {
    padding: 12px 8px; vertical-align: top; border-color: var(--rugby-border);
}
.ranking-rating-list thead { background: #e9eee5; font-size: .75rem; color: var(--rugby-green); }
.ranking-rating-list thead th:first-child { width: 3.3rem; }
.ranking-rating-list thead th:nth-child(3) { width: 5.7rem; }
.ranking-rating-list thead th:last-child { width: 4.1rem; }
.ranking-rating-list tbody tr:hover { background: #f2f5ee; }
.ranking-rating-list .ranking-school { text-decoration: none; line-height: 1.2; overflow-wrap: anywhere; }
.ranking-rating-list .ranking-school:hover, .ranking-rating-list .ranking-school:focus-visible { text-decoration: underline; }
.ranking-place, .ranking-change {
    display: inline-block; padding: 3px 5px; border-radius: 6px;
    font-size: .8rem; font-weight: 750; background: #e9eee5;
}
.ranking-place-1 { background: #eed9a9; }
.ranking-place-2 { background: #e6e5e0; }
.ranking-place-3 { background: #efddcd; }
.ranking-rating-value strong { font-size: 1.05rem; }
.ranking-rating-value small { display: block; font-size: .73rem; }
.ranking-level, .ranking-row-details { font-size: .75rem; color: var(--rugby-muted-text); }
.ranking-row-details summary { cursor: pointer; min-height: 32px; padding-block: 5px; }
.ranking-row-details summary .standing-form { margin-inline-start: 5px; }
.ranking-row-details dl { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0; }
.ranking-row-details dt { font-weight: 500; }
.ranking-row-details dd { margin: 2px 0 0; color: var(--rugby-ink); }
@media (max-width: 500px) {
    .standings-ratings .ranking-rating-list th, .standings-ratings .ranking-rating-list td { padding-inline: 4px; }
    .ranking-rating-list thead th:first-child { width: 2.5rem; }
    .ranking-rating-list thead th:nth-child(3) { width: 4rem; }
    .ranking-rating-list thead th:last-child { width: 2.6rem; }
    .ranking-rating-list .ranking-school { font-size: .88rem; }
    .ranking-row-details summary .standing-form { display: flex; margin: 4px 0 0; }
}
