#tokyo-teams {
  --wt-rule: #d4dfce;
  color: #2a442b;
  margin: 0 0 clamp(36px,5vw,70px);
  padding: 0 0 clamp(28px,4vw,48px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5rem;
  font-variant-numeric: tabular-nums;
}
#tokyo-teams [hidden] { display: none; }
#tokyo-teams h2 { margin: 0; font: 680 clamp(1.55rem,3.2vw,2.6rem)/1.45 var(--serif); }
#tokyo-teams h3 { color: #26432b; font: 650 clamp(1.12rem,2vw,1.45rem)/1.5 var(--serif); }
#tokyo-teams p, #tokyo-teams dd, #tokyo-teams figcaption { line-height: 1.75; }
#tokyo-teams a, .wt-ward-download a { color: #385c36; text-decoration: underline; text-underline-offset: .18em; }
.wt-ward-download { margin: -18px 0 clamp(32px,4vw,54px); font-size: .9rem; }
.wt-intro { margin: .5rem 0 1rem; }
.wt-overview { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(0,1.35fr); gap: clamp(16px,2.8vw,38px); align-items: center; }
.wt-map { margin: 0; }
.wt-map img { display: block; width: 100%; height: auto; max-height: 430px; object-fit: contain; }
.wt-map figcaption { font-size: .75rem; text-align: center; color: #596d55; padding: .25rem .35rem; }
.wt-stages { min-width: 0; padding: clamp(16px,2.3vw,32px); border: 1px solid var(--wt-rule); border-radius: 14px; background: #f5f8f0; }
.wt-stages h3, .wt-calendar h3 { margin: 0 0 .7rem; }
.wt-options { display: flex; gap: .35rem; flex-wrap: wrap; }
.wt-options button {
  padding: .43rem .7rem; border-radius: 20px; border: 1px solid #c3d2bb;
  background: #fffefa; color: #385632; font: 650 .89rem/1.5 var(--sans); cursor: pointer;
}
.wt-options button[aria-pressed=true] { color: white; border-color: #315435; background: #315435; }
.wt-options button:hover:not([aria-pressed=true]) { background: #e7efdf; }
.wt-stage-stats { margin: .75rem 0; border-block: 1px solid var(--wt-rule); }
.wt-stage-stats div { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: baseline; gap: .5rem; padding: .45rem 0; }
.wt-stage-stats div + div { border-top: 1px solid #e2e9dc; }
.wt-stage-stats dt { font-size: .88rem; color: #53674c; }
.wt-stage-stats dd { margin: 0; font: 650 1.02rem/1.5 var(--sans); }
.wt-existing, .wt-inputs label { color: #3d5639; font-size: .88rem; font-weight: 600; }
.wt-existing { display: flex; align-items: center; gap: .4rem .8rem; flex-wrap: wrap; }
#tokyo-teams :is(input,select) { min-height: 38px; max-width: 100%; padding: .4rem .6rem; border: 1px solid #afc1a6; border-radius: 6px; background: #fff; color: #25442a; font: inherit; }
#tokyo-teams :is(button,input,select,summary,a):focus-visible { outline: 2px solid #39723e; outline-offset: 3px; }
.wt-stages .wt-help { margin: .4rem 0 0; color: #52664d; font-size: .85rem; }
.wt-table-title { margin: 1.65rem 0 .3rem; }
#wt-all-note { margin: .4rem 0 .85rem; }
.wt-table-wrap { border: 1px solid var(--wt-rule); border-radius: 10px; overflow: hidden; }
#tokyo-teams .wt-table { width: 100%; min-width: 0; border-collapse: collapse; border-spacing: 0; text-align: left; white-space: normal; background: #fffef9; color: #344c32; margin: 0; }
#tokyo-teams .wt-table thead th { background: #edf3e7; color: #445940; text-align: start; font-size: .84rem; }
#tokyo-teams .wt-table :is(th,td) { border: 0; border-bottom: 1px solid var(--wt-rule); padding: .7rem .65rem; color: inherit; vertical-align: middle; }
#tokyo-teams .wt-table :is(th,td):first-child { position: static; }
#tokyo-teams .wt-table tbody th { width: 21%; }
#tokyo-teams .wt-table tbody td:nth-child(2) { width: 31%; }
#tokyo-teams .wt-table tbody td:nth-child(3) { width: 15%; }
#tokyo-teams .wt-table tbody td:nth-child(n+4) { width: 11%; }
#tokyo-teams .wt-table tbody tr:last-child > * { border-bottom: none; }
.wt-table strong, .wt-table span { display: block; }
.wt-table strong { font-size: 1rem; line-height: 1.55; }
.wt-table span { margin-top: .15rem; font-size: .87rem; line-height: 1.58; font-weight: 450; color: #4c6148; }
.wt-table th strong::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 20%; margin-right: .35rem; background: var(--wt-team); }
.wt-table [data-team=jonan] { --wt-team: #94ba7e; }
.wt-table [data-team=josei] { --wt-team: #f3ce76; }
.wt-table [data-team=johoku] { --wt-team: #bbb2d6; }
.wt-table [data-team=johokuto] { --wt-team: #eaa694; }
.wt-table [data-team=toshin-joto] { --wt-team: #94c8d3; }
.wt-calendar { margin: 1.3rem 0; padding: 1rem clamp(15px,2vw,25px); background: #edf3e6; border-left: 3px solid #819863; }
.wt-calendar h3, .wt-calendar p { margin: 0 0 .4rem; }
.wt-calendar-years { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: .85rem 0 .2rem; }
.wt-calendar-years > div { padding-left: clamp(8px,1.8vw,22px); border-left: 1px solid #b7c7ab; }
.wt-calendar-years > div:first-child { padding-left: 0; border: 0; }
.wt-calendar-years dt { font-weight: 600; font-size: .87rem; }
.wt-calendar-years dd { margin: 0; }
.wt-calendar-years dd:first-of-type { font: 650 1.6rem/1.5 var(--serif); }
.wt-calendar-years dd:last-of-type { font-size: .82rem; color: #50634a; }
.wt-notes { margin-top: 1rem; border-top: 1px solid var(--wt-rule); }
.wt-notes details { padding: .65rem 0; border-bottom: 1px solid var(--wt-rule); }
.wt-notes summary { cursor: pointer; font-weight: 650; color: #345334; }
.wt-notes p { margin: .55rem 0; }
.wt-sources { display: flex; flex-wrap: wrap; gap: .45rem 1rem; font-size: .92rem; }
.wt-inputs { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin: .6rem 0; }
.wt-inputs label { display: grid; gap: .2rem; }
.wt-inputs input { width: 9rem; }
.wt-scenario { font-weight: 650; }
@media (max-width: 760px) {
  .wt-overview { grid-template-columns: 1fr; gap: .8rem; }
  .wt-map img { max-height: 370px; }
  .wt-table-wrap { border: 0; }
  #tokyo-teams .wt-table, #tokyo-teams .wt-table tbody { display: block; }
  #tokyo-teams .wt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #tokyo-teams .wt-table tbody tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--wt-rule); border-radius: 8px; margin-bottom: .55rem; padding: .8rem; gap: .6rem; }
  #tokyo-teams .wt-table tbody :is(th,td):nth-child(n) { display: block; width: auto; border: 0; padding: 0; text-align: start; }
  #tokyo-teams .wt-table tbody :is(th,td):nth-child(-n+3) { grid-column: 1/-1; }
  #tokyo-teams .wt-table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 500; color: #4e6549; margin-bottom: .12rem; }
  #tokyo-teams .wt-table tbody td:nth-child(3) :is(strong,span) { display: inline; font-size: .94rem; font-weight: 600; }
  #tokyo-teams .wt-table tbody td:nth-child(3) span { margin-left: .7rem; }
}
@media print {
  .wt-options, .wt-inputs, .wt-existing { display: none; }
  .wt-overview { grid-template-columns: .8fr 1.2fr; }
}
