/* badmintonapi.com: the tournaments page. Now and next, the season month by month, and every series on one time line. */
@keyframes trpulse { 50% { opacity: .25; } }
.tr { background: #F4F1E8; }
.tr-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tr code { font: 500 .9em "IBM Plex Mono", ui-monospace, monospace; }
.tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tr-over { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lt); font-weight: 700; }
.tr-over::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.tr-over2 { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tr-over2::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

/* ------------------------------------------------------------------ the top band */
.tr-top { color: #fff; border-bottom: 1px solid var(--gold); background: radial-gradient(50% 90% at 88% 0%, rgba(34,150,112,.42) 0%, rgba(34,150,112,0) 70%), radial-gradient(40% 70% at 0% 100%, rgba(226,199,127,.12) 0%, rgba(226,199,127,0) 70%), linear-gradient(170deg, #0B4A3E 0%, #072E27 100%); }
.tr-top-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-top: 40px; padding-bottom: 104px; }
.tr-top h1 { margin: 14px 0 0; font: 700 44px/1.1 "Shippori Mincho", serif; letter-spacing: -.01em; }
.tr-top p { margin: 12px 0 0; max-width: 560px; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.74); }
.tr-facts { display: grid; grid-template-columns: repeat(4, auto); margin: 0 0 4px; flex: none; }
.tr-facts div { padding: 0 22px; border-left: 1px solid rgba(226,199,127,.25); }
.tr-facts div:first-child { padding-left: 0; border-left: 0; }
.tr-facts dt { font: 700 26px/1.1 "Shippori Mincho", serif; color: #fff; font-variant-numeric: tabular-nums; }
.tr-facts dd { margin: 4px 0 0; font-size: 12.5px; color: rgba(255,255,255,.58); white-space: nowrap; }

/* ------------------------------------------------------------------ now and next, lifted over the band */
.tr-now-in { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; margin-top: -72px; }
.tn { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 0 rgba(10,63,53,.04), 0 30px 50px -36px rgba(10,63,53,.35); }
.tn-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tn-over { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.tn-over i { width: 7px; height: 7px; border-radius: 50%; background: #FF7A4D; box-shadow: 0 0 0 4px rgba(255,122,77,.16); animation: trpulse 1.6s ease-in-out infinite; }
.tn-more { font-size: 13px; font-weight: 700; color: var(--deep); border-bottom: 1px solid rgba(10,63,53,.3); }
.tn-more:hover { border-color: var(--deep); }
.tn h2 { margin: 12px 0 0; font: 700 23px/1.2 "Shippori Mincho", serif; color: var(--deep); }
.tn-meta { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.tn-quiet { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.tn-list { list-style: none; margin: 16px 0 0; padding: 0; }
.tn-list li { display: grid; grid-template-columns: 124px minmax(0, 1fr) 34px; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.tn-ev { font-size: 12.5px; color: var(--muted); }
.tn-who { min-width: 0; font-weight: 700; line-height: 1.4; color: var(--ink); }
.tn-list small { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); text-align: right; }
.tn-runs { list-style: none; margin: 14px 0 0; padding: 0; }
.tn-runs li { padding: 12px 0; border-top: 1px solid var(--hair); }
.tn-runs li:first-child { border-top: 0; padding-top: 4px; }
.tn-run-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tn-run-hd b { font: 700 16.5px/1.3 "Shippori Mincho", serif; color: var(--deep); }
.tn-run-hd span { flex: none; font-size: 12.5px; font-weight: 700; color: #B24A22; }
.tn-bar { display: block; height: 4px; margin: 9px 0 7px; border-radius: 2px; background: #F1ECDF; overflow: hidden; }
.tn-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--gold), #FF7A4D); }
.tn-run-p { font-size: 12.5px; color: var(--muted); }
.tn-in { margin: 12px 0 0; font: 700 34px/1.05 "Shippori Mincho", serif; color: var(--gold); }
.tn-next h2 { margin-top: 8px; }
.tn-after { list-style: none; margin: 22px 0 0; padding: 0; }
.tn-after li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 13px; }
.tn-after b { font-weight: 700; color: var(--ink); }
.tn-after span { flex: none; color: var(--muted); }

/* ------------------------------------------------------------------ the season */
.tr-cal { padding: 72px 0 24px; }
.tr-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 26px; }
.tr-hd h2 { margin: 14px 0 0; font: 700 34px/1.15 "Shippori Mincho", serif; color: var(--deep); }
.tr-hd p { margin: 10px 0 0; max-width: 620px; font-size: 15px; line-height: 1.65; color: #4A544F; }
.tr-legend { display: flex; gap: 20px; list-style: none; margin: 0 0 6px; padding: 0; font-size: 13px; color: #4A544F; }
.tr-legend li { display: flex; align-items: center; gap: 8px; }
.tr-legend i { width: 14px; height: 10px; border-radius: 3px; }
.k-done { background: #E4EDE8; border: 1px solid #C9DBD2; }
.k-on { background: #FFF1EA; border: 1px solid #FF9A73; }
.k-ahead { background: #fff; border: 1px dashed #CDBF95; }
.tc { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgba(10,63,53,.04), 0 24px 48px -32px rgba(10,63,53,.25); }
.tc-half { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tc-half + .tc-half { border-top: 1px solid var(--line); }
.tc-m { min-width: 0; padding: 16px 14px 20px; }
.tc-list { display: flex; flex-direction: column; gap: 8px; }
.tc-m + .tc-m { border-left: 1px solid var(--hair); }
.tc-m.now { background: linear-gradient(180deg, #FFF8EC 0%, #FFFDF8 100%); box-shadow: inset 0 2px 0 var(--gold); }
.tc-m h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font: 700 17px/1.2 "Shippori Mincho", serif; color: var(--deep); }
.tc-m.past h3 { color: #6E7B74; }
.tc-m h3 span { font: 700 10px/1 "Zen Kaku Gothic New", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--gold); border-radius: 4px; padding: 4px 6px; }
.tc-none { margin: 0; font-size: 12.5px; color: #A7ADA9; }
.tc-e { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 10px; border-radius: 10px; border: 1px solid transparent; transition: border-color .15s ease, box-shadow .15s ease; }
.tc-e b { font-size: 13.5px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.tc-e span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.tc-done { background: #F1F6F3; border-color: #DCE8E1; }
.tc-done b { color: #2F4A40; }
.tc-on { background: #FFF1EA; border-color: #FF9A73; box-shadow: 0 8px 18px -12px rgba(255,122,77,.6); }
.tc-on b { color: #8E3A17; }
.tc-on span { color: #A6562F; }
.tc-ahead { background: #fff; border: 1px dashed #D8CCA8; }
a.tc-e:hover { border-color: var(--gold); box-shadow: 0 10px 22px -14px rgba(10,63,53,.4); }
a.tc-e:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.tc-und { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ the series */
.tr-ser { padding: 72px 0 96px; }
.tr-find { flex: none; }
.tr-find input { width: 300px; height: 44px; padding: 0 16px 0 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B736E' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") 14px 50% no-repeat; font: 500 14px "Zen Kaku Gothic New", sans-serif; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.tr-find input:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px rgba(14,94,78,.12); }
.tg + .tg { margin-top: 48px; }
.tg[hidden] { display: none; }
.tg-hd { display: flex; align-items: baseline; gap: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tg-hd h3 { margin: 0; flex: none; font: 700 21px/1.2 "Shippori Mincho", serif; color: var(--deep); }
.tg-hd p { margin: 0; font-size: 13.5px; color: var(--muted); }
.tg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ts { display: flex; flex-direction: column; min-width: 0; padding: 20px 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ts:hover { border-color: #D2C39A; box-shadow: 0 18px 34px -24px rgba(10,63,53,.4); transform: translateY(-1px); }
.ts:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.ts[hidden] { display: none; }
.ts-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ts h4 { margin: 0; font: 700 18.5px/1.25 "Shippori Mincho", serif; color: var(--deep); }
.ts-grd { flex: none; margin-top: 2px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #8A6D24; background: #FBF4E2; border: 1px solid #EBDDB4; border-radius: 4px; padding: 3px 7px; }
.ts-n { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ts-strip { display: block; width: 100%; height: 22px; margin-top: 16px; }
.ts-base { stroke: #E6DFCC; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ts-yr { stroke: var(--jade); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ts-ax { display: flex; justify-content: space-between; margin-top: 4px; font: 500 10.5px "IBM Plex Mono", monospace; color: #A7ADA9; }
.ts-last { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.ts-last p { margin: 0; font-size: 13px; color: var(--muted); }
.ts-last p b { font-weight: 700; color: var(--ink); }
.ts-last .ts-ch { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; margin-top: 5px; }
.ts-ch span { font-size: 12.5px; color: var(--muted); }
.ts-ch b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.tr-nomatch { margin: 0; padding: 28px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 10px; font-size: 14.5px; color: var(--muted); }

/* the way into the API */
.tr-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding: 30px 34px; border-radius: 10px; color: #fff; background: radial-gradient(60% 120% at 100% 0%, #115446 0%, #0A3F35 50%, #072E27 100%); border: 1px solid rgba(226,199,127,.3); }
.tr-cta h2 { margin: 0; font: 700 24px/1.3 "Shippori Mincho", serif; color: #fff; }
.tr-cta p { margin: 8px 0 0; max-width: 600px; font-size: 14.5px; color: rgba(255,255,255,.72); }
.tr-cta code { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.07); color: var(--gold-lt); }
.tr-cta-go { display: flex; align-items: center; gap: 12px; flex: none; }
.tr-key { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 18px 0 6px; border-radius: 10px; background: var(--gold); color: var(--deeper); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .01em; transition: background-color .15s ease; }
.tr-key:hover { background: #D4B25F; }
.tr-key:focus-visible, .tr-doc:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 2px; }
.tr-g { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #fff; }
.tr-g svg { width: 17px; height: 17px; }
.tr-doc { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 14px; font-weight: 700; transition: border-color .15s ease; }
.tr-doc:hover { border-color: var(--gold-lt); }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1100px) {
.tr-top-in { flex-direction: column; align-items: flex-start; gap: 28px; }
.tc-half { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-m:nth-child(4) { border-left: 0; }
.tc-m:nth-child(n+4) { border-top: 1px solid var(--hair); }
}
@media (max-width: 960px) {
.tr-now-in { grid-template-columns: 1fr 1fr; }
.tn-champ { grid-column: 1 / -1; }
.tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tr-hd { flex-direction: column; align-items: flex-start; gap: 18px; }
.tr-find, .tr-find input { width: 100%; }
.tr-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
.tr-in { padding: 0 16px; }
.tr-top-in { padding-top: 28px; padding-bottom: 88px; }
.tr-top h1 { font-size: 32px; }
.tr-facts { grid-template-columns: repeat(2, auto); row-gap: 16px; }
.tr-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
.tr-facts dt { font-size: 22px; }
.tr-now-in { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: -64px; }
.tn { padding: 20px 18px; }
.tn-list li { grid-template-columns: 96px minmax(0, 1fr) 30px; gap: 8px; font-size: 13.5px; }
.tr-cal { padding-top: 52px; }
.tr-hd h2 { font-size: 27px; }
.tr-legend { flex-wrap: wrap; gap: 10px 16px; }
.tc-half { grid-template-columns: minmax(0, 1fr); }
.tc-half + .tc-half { border-top: 0; }
.tc-m, .tc-m + .tc-m { border-left: 0; border-top: 1px solid var(--hair); }
.tc-half:first-child .tc-m:first-child { border-top: 0; }
.tc-m { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
.tc-m h3 { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; margin: 8px 0 0; font-size: 16px; }
.tc-none { padding: 9px 0; }
.tr-ser { padding: 56px 0 72px; }
.tg-hd { flex-direction: column; gap: 4px; }
.tg-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tr-cta { padding: 24px 20px; }
.tr-cta h2 { font-size: 21px; }
.tr-cta-go { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
.tn-over i { animation: none; }
.ts, .ts:hover { transform: none; }
}
