/* afghanistan-india.com — tokens */
:root{
  --navy:#10213F;      /* India */
  --saffron:#EE8F1B;   /* India accent */
  --afg-red:#A3182C;   /* Afghanistan */
  --afg-green:#1B7A47; /* Afghanistan */
  --ink:#1B1F26;
  --mute:#5B6472;
  --line:#D9DEE6;
  --wash:#EEF1F5;
  --bg:#FFFFFF;
  --display:"Barlow Condensed","Arial Narrow",Impact,sans-serif;
  --body:"Barlow","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --max:72rem;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--body);font-size:1.0625rem;line-height:1.55;color:var(--ink);background:var(--bg)}
a{color:var(--navy);text-decoration-thickness:1px;text-underline-offset:2px}
a:hover{color:var(--afg-red)}
:focus-visible{outline:3px solid var(--saffron);outline-offset:2px}
.skip{position:absolute;left:-999px;top:0;background:var(--navy);color:#fff;padding:.5rem 1rem}
.skip:focus{left:1rem;z-index:10}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
h1,h2,h3{font-family:var(--display);font-weight:800;line-height:1.05;margin:0 0 .5rem;letter-spacing:-.01em}
h1{font-size:clamp(2.4rem,6vw,4.5rem)}
h2{font-size:clamp(1.6rem,3.4vw,2.4rem);margin-top:2.5rem}
h3{font-size:1.5rem;font-weight:600}
p{margin:.5rem 0 1rem;max-width:68ch}
main{max-width:var(--max);margin:0 auto;padding:0 1.25rem 3rem}
section{margin-top:2.5rem}

/* header */
.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;max-width:var(--max);margin:0 auto;padding:1rem 1.25rem;border-bottom:1px solid var(--line)}
.logo{font-family:var(--display);font-weight:800;font-size:1.35rem;text-decoration:none;display:inline-flex;align-items:center;gap:.4rem;color:var(--ink)}
.logo .afg,.logo .ind{display:inline-block;width:.75rem;height:1.25rem}
.logo .afg{background:linear-gradient(var(--afg-red) 50%,var(--afg-green) 50%)}
.logo .ind{background:linear-gradient(var(--saffron) 50%,var(--navy) 50%)}
.top nav{display:flex;gap:1.25rem;flex-wrap:wrap}
.top nav a{text-decoration:none;font-weight:600}

/* hero */
.hero{margin-top:2.5rem}
.kicker{color:var(--mute);margin:0 0 .25rem;font-weight:500}
.tally{display:flex;gap:2.5rem;flex-wrap:wrap;margin:1.5rem 0 2rem;font-family:var(--display)}
.tally div{display:flex;flex-direction:column;line-height:1}
.tally b{font-size:clamp(3.5rem,9vw,6.5rem);font-weight:800;letter-spacing:-.03em}
.tally span{font-size:1.1rem;font-weight:600;color:var(--mute);text-transform:none}
.tally .ind b{color:var(--navy)}
.tally .afg b{color:var(--afg-red)}

/* match ribbon — the one memorable element */
.ribbon{display:flex;gap:4px;overflow-x:auto;padding:.25rem 0 .75rem;scrollbar-width:thin}
.tile{flex:0 0 auto;width:3.75rem;height:4.5rem;display:flex;flex-direction:column;justify-content:flex-end;padding:.35rem .4rem;text-decoration:none;color:#fff;font-family:var(--display);line-height:1}
.tile span{font-size:.7rem;font-weight:600;opacity:.85}
.tile b{font-size:1.1rem;font-weight:800}
.tile:hover,.tile:focus-visible{transform:translateY(-3px)}
.w-ind.tile{background:var(--navy)}
.w-afg.tile{background:var(--afg-red)}
.w-tie.tile{background:var(--saffron);color:var(--ink)}
.w-nr.tile{background:var(--mute)}
.w-up.tile{background:var(--wash);color:var(--ink);border:1px dashed var(--mute)}
.legend{font-size:.9rem;color:var(--mute);display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.legend span{white-space:nowrap}
.legend i{display:inline-block;width:.85rem;height:.85rem;margin-right:.3rem;vertical-align:-1px}
.legend .w-ind{background:var(--navy)} .legend .w-afg{background:var(--afg-red)} .legend .w-tie{background:var(--saffron)} .legend .w-nr{background:var(--mute)} .legend .w-up{background:var(--wash);border:1px dashed var(--mute)}

.next{border-left:6px solid var(--saffron);padding:.25rem 1.25rem;background:var(--wash)}
.next h2{margin-top:.5rem}

/* tables */
table{border-collapse:collapse;width:100%;margin:1rem 0 1.5rem;font-size:1rem}
caption{text-align:left;color:var(--mute);font-size:.9rem;padding:0 0 .5rem}
th,td{text-align:left;padding:.55rem .75rem;border-bottom:1px solid var(--line);vertical-align:top}
thead th{font-family:var(--display);font-size:1.05rem;font-weight:600;border-bottom:2px solid var(--ink)}
.record td,.record th[scope=row]{font-family:var(--display);font-size:1.4rem;font-weight:600}
.record td:nth-child(3){color:var(--navy)}
.record td:nth-child(4){color:var(--afg-red)}
.tablewrap{overflow-x:auto}
.all{min-width:52rem}

/* season list */
.years{list-style:none;padding:0;margin:1rem 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}
.years li{background:var(--bg)}
.years a{display:block;padding:1.25rem;text-decoration:none;height:100%}
.years a:hover{background:var(--wash)}
.years b{font-family:var(--display);font-size:2.6rem;font-weight:800;display:block;line-height:1}
.years .yh{display:block;font-weight:600;margin:.4rem 0 .35rem}
.years .yr{display:block;color:var(--mute);font-size:.92rem;line-height:1.4}

/* season page */
.crumbs{max-width:var(--max);margin:1rem 0 0;font-size:.9rem;color:var(--mute)}
.crumbs ol{list-style:none;padding:0;margin:0;display:flex;gap:.5rem;flex-wrap:wrap}
.crumbs li+li::before{content:"/";margin-right:.5rem;color:var(--line)}
.season-head{margin-top:1.5rem}
.lede{font-size:1.2rem;max-width:62ch}
.summary{max-width:60rem}

.match{border:1px solid var(--line);border-top:6px solid var(--navy);padding:1.25rem 1.5rem;margin:1.5rem 0;max-width:60rem}
.match.w-afg{border-top-color:var(--afg-red)}
.match.w-tie{border-top-color:var(--saffron)}
.match.w-nr{border-top-color:var(--mute)}
.match header{margin-bottom:.75rem}
.match .meta{margin:0;color:var(--mute);font-size:.95rem}
.match .fmt{display:inline-block;margin-left:.5rem;padding:.05rem .45rem;border:1px solid var(--line);font-family:var(--display);font-weight:600;font-size:.9rem;color:var(--ink)}
.match h3{margin:.25rem 0 0}
.match .venue{margin:0;color:var(--mute)}
.scoreboard{max-width:34rem;margin:.75rem 0}
.scoreboard th{font-weight:600;width:11rem;border:0}
.scoreboard td{border:0}
.scoreboard .score{font-family:var(--display);font-size:1.9rem;font-weight:800;line-height:1;white-space:nowrap}
.scoreboard .ov{color:var(--mute);white-space:nowrap}
.result{font-family:var(--display);font-size:1.35rem;font-weight:600;margin:.5rem 0 .25rem}
.potm{margin:0 0 .5rem;color:var(--mute)}
.notes{margin:.5rem 0 0;padding-left:1.2rem;max-width:68ch}
.notes li{margin:.25rem 0}

.records{max-width:60rem;display:grid;grid-template-columns:minmax(10rem,14rem) 1fr;gap:.5rem 1.5rem}
.records dt{font-family:var(--display);font-weight:600;font-size:1.15rem}
.records dd{margin:0;padding-bottom:.5rem;border-bottom:1px solid var(--line)}
.timeline{padding-left:0;list-style:none;max-width:68ch;border-left:3px solid var(--line);margin-left:.5rem}
.timeline li{padding:.25rem 0 .75rem 1.25rem;position:relative}
.timeline li::before{content:"";position:absolute;left:-.55rem;top:.75rem;width:.8rem;height:.8rem;background:var(--navy);border-radius:50%}
.timeline b{font-family:var(--display);font-size:1.3rem;margin-right:.5rem}

.faq details{border-bottom:1px solid var(--line);padding:.5rem 0;max-width:68ch}
.faq summary{cursor:pointer;font-weight:600;padding:.35rem 0}
.faq summary::marker{color:var(--saffron)}
.pager{display:flex;justify-content:space-between;gap:1rem;margin-top:2.5rem;padding-top:1rem;border-top:2px solid var(--ink);font-family:var(--display);font-size:1.25rem;font-weight:600}
.pager a{text-decoration:none}

.bottom{border-top:1px solid var(--line);margin-top:2rem}
.bottom>*{max-width:var(--max);margin-left:auto;margin-right:auto;padding-left:1.25rem;padding-right:1.25rem}
.bottom p{color:var(--mute);font-size:.92rem;max-width:none}
.yearnav{padding-top:1.25rem;display:flex;gap:.75rem;flex-wrap:wrap;font-family:var(--display);font-weight:600;font-size:1.05rem}
.yearnav span{color:var(--mute)}

@media (max-width:640px){
  .tally{gap:1.25rem}
  .match{padding:1rem}
  .scoreboard th{width:7.5rem}
  .records{grid-template-columns:1fr}
  .records dt{margin-top:.5rem}
}
@media (prefers-reduced-motion:reduce){.tile:hover{transform:none}}
