/* Page-level styles for the news home, breakdown index, and method pages (Court Heat). */
.page[hidden] { display: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px max(16px, 3vw) 70px; }
.nav a.on { color: var(--yellow); border-bottom: 3px solid var(--yellow); padding-bottom: 2px; }

/* mascots as images */
.mascot-slot img { width: 100%; height: auto; display: block; }
.hero-mascot { width: min(330px, 78%); animation: bobImg 3s ease-in-out infinite; filter: drop-shadow(8px 10px 0 rgba(0,0,0,.25)); }
@keyframes bobImg { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
.hero-guide { width: 110px; flex: none; margin-bottom: -4px; animation: bobImg 3s ease-in-out infinite; }
.sec-mascot { width: 84px; margin: 0 6px -3px; flex: none; }
.head-mascot { width: 130px; flex: none; animation: bobImg 3s ease-in-out infinite; }
.side-mascot { width: 84px; float: right; margin: -26px -4px 0 10px; }
@media (prefers-reduced-motion: reduce) { .hero-mascot, .hero-guide, .head-mascot { animation: none; } }

/* slim landing hero */
.landing.slim { padding: 38px max(16px, 3vw) 96px; }
.landing.slim h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.landing.slim .landing-art { min-height: 340px; }
.landing.slim .art-hex.a1 { width: 270px; height: 245px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-primary, .btn-ghost { display: inline-block; text-decoration: none; font: 800 1.25rem var(--head); font-style: italic; text-transform: uppercase; letter-spacing: .04em; padding: 11px 24px; border-radius: 4px; }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 5px 5px 0 rgba(0,0,0,.3); }
.btn-primary:hover { background: #e8ff7d; }
.btn-ghost { border: 3px solid rgba(246,255,248,.6); color: var(--text); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* news */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; margin-top: 10px; align-items: start; }
@media (max-width: 980px) { .home-cols { grid-template-columns: 1fr; } }
.news-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 6px; }
@media (max-width: 800px) { .news-top { grid-template-columns: 1fr; } }
.n-side { display: grid; gap: 16px; }
.n-card, .n-row { display: block; text-decoration: none; color: var(--text); background: var(--panel); border: 2px solid rgba(246,255,248,.18); border-radius: 4px; overflow: hidden; transition: border-color .15s, transform .15s; }
.n-card:hover, .n-row:hover { border-color: var(--yellow); transform: translateY(-2px); }
.n-img { background: #0e3b2e center / cover; aspect-ratio: 16 / 9; }
.n-card.big .n-img { aspect-ratio: 16 / 8.5; }
.n-none { display: grid; place-items: center; color: var(--yellow); font-size: 3rem; }
.n-body { padding: 12px 16px 16px; }
.n-meta { font: 700 .8rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); }
.n-body h3 { font-size: 1.35rem; line-height: 1.1; margin: 5px 0 0; text-transform: none; font-style: italic; }
.n-card.big h3 { font-size: 2.1rem; }
.n-body p { color: var(--muted); font-size: .95rem; margin: 8px 0 0; }
.n-grid, .news-grid { display: grid; gap: 14px; }
.n-row { display: grid; grid-template-columns: 200px 1fr; }
.n-row .n-img { aspect-ratio: auto; min-height: 120px; height: 100%; }
@media (max-width: 560px) { .n-row { grid-template-columns: 1fr; } .n-row .n-img { aspect-ratio: 16/9; } }
.side { display: grid; gap: 18px; position: sticky; top: 84px; }
.side-box { background: var(--panel); border: 2px solid rgba(246,255,248,.2); border-left: 6px solid var(--yellow); border-radius: 4px; padding: 16px 18px 18px; }
.side-box h3 { margin: 0 0 12px; }
.side-list { display: grid; gap: 10px; }
.side-item { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.side-item img { width: 54px; height: 70px; object-fit: contain; background: rgba(0,0,0,.2); border-radius: 4px; }
.side-item b { display: block; font: 700 1.1rem/1.05 var(--head); font-style: italic; text-transform: uppercase; }
.side-item span { color: var(--muted); font-size: .85rem; }
.side-item:hover b { color: var(--yellow); }
.side-link { display: inline-block; margin-top: 12px; font: 800 1.05rem var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--yellow); text-decoration: none; }
.how-box p { color: #d6ecde; margin: 0; }
.side-box::after { content: ""; display: block; clear: both; }

/* breakdown index */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.lede-s { max-width: 40em; margin: 10px 0 0; font-size: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 14px 0 22px; }
#listSearch { background: #fff; color: #0b1a12; border: 0; border-radius: 4px; padding: 10px 14px; font: 600 15px var(--body); min-width: min(320px, 100%); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 4px 16px; font-size: 1.05rem; }
.chip-btn.on { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.paddle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.p-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--panel); border: 2px solid rgba(246,255,248,.2); border-radius: 4px; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.p-card:hover { border-color: var(--yellow); transform: translateY(-4px); box-shadow: 6px 6px 0 rgba(0,0,0,.3); }
.p-img { position: relative; height: 300px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #1f7357 0%, #14503d 70%); border-bottom: 3px solid var(--yellow); }
.p-img img { height: 270px; width: auto; max-width: 90%; object-fit: contain; filter: drop-shadow(8px 10px 0 rgba(0,0,0,.25)); transition: transform .3s; }
.p-card:hover .p-img img { transform: rotate(-6deg) scale(1.05); }
.p-badge { position: absolute; top: 12px; left: 12px; background: var(--yellow); color: var(--ink); font: 800 .85rem var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 2px 10px; transform: skewX(-10deg); }
.p-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-brand { font: 700 .85rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); }
.p-body h3 { font-size: 1.7rem; line-height: 1; margin: 0; }
.p-meta { display: flex; gap: 10px; align-items: baseline; }
.p-rate { color: var(--yellow); font: 800 1.2rem var(--head); }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-chips span { border: 1px solid rgba(246,255,248,.3); padding: 1px 8px; font-size: .8rem; border-radius: 2px; }
.p-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; }
.p-foot b { font: 800 1.5rem var(--head); font-style: italic; }
.p-go { font: 800 1rem var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--yellow); }

/* paddle page extras */
.back { display: inline-block; margin: 6px 0 4px; font: 800 1.05rem var(--head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.jump { margin-left: auto; display: flex; gap: 14px; }
.jump a { font: 800 1rem var(--head); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.page-paddle .hero { margin-top: 6px; }

/* method page */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 6px 0 12px; }
.steps.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.step { background: var(--panel); border: 2px solid rgba(246,255,248,.2); border-top: 6px solid var(--yellow); border-radius: 4px; padding: 16px 18px 18px; position: relative; }
.step-n { position: absolute; top: -4px; right: 14px; font: 800 3.2rem var(--head); font-style: italic; color: rgba(215,255,46,.25); line-height: 1; }
.step h3 { margin: 4px 0 8px; font-size: 1.5rem; }
.step p { margin: 0; color: #d6ecde; }
.metric-table { margin: 16px 0 10px; border: 2px solid rgba(246,255,248,.2); border-radius: 4px; overflow: hidden; }
.mt-row { display: grid; grid-template-columns: 1.1fr 1.4fr 2.4fr; gap: 18px; padding: 12px 18px; border-bottom: 1px solid rgba(246,255,248,.14); background: var(--panel); }
.mt-row:last-child { border-bottom: 0; }
.mt-row:nth-child(even) { background: rgba(20,80,61,.6); }
.mt-row b { font: 800 1.2rem var(--head); font-style: italic; text-transform: uppercase; color: var(--yellow); }
.mt-row span { color: #d6ecde; }
.mt-head { background: var(--court) !important; }
.mt-head span { font: 800 .95rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
@media (max-width: 760px) { .mt-row { grid-template-columns: 1fr; gap: 4px; } .mt-head { display: none; } }
.sources { padding-left: 20px; color: #d6ecde; } .sources li { margin: 8px 0; }

/* hero mascot: the Flow clip does its own bouncing, so no CSS bob */
.hero-mascot { animation: none; width: min(340px, 80%); }
.hero-mascot img { width: 100%; height: auto; }

/* index controls for a large catalogue */
.filters select { background: #fff; color: #0b1a12; border: 0; border-radius: 4px; padding: 10px 12px; font: 600 15px var(--body); }
.brand-row { margin: -8px 0 14px; }
.small { font-size: .85rem; }
.p-card { content-visibility: auto; contain-intrinsic-size: 520px; }

#sideEvents .side-item { grid-template-columns: 1fr; }
#sideEvents .side-item small { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }
#sideEvents .side-item b { font-size: 1rem; }

.foot-links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; margin-top: 8px; }
.foot-links a { color: var(--muted); text-decoration: none; } .foot-links a:hover { color: var(--yellow); }
#sideEvents { max-height: 340px; overflow-y: auto; padding-right: 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--yellow) transparent; }
