:root {
  font-family: "BIZ UDPGothic","Yu Gothic UI",Meiryo,sans-serif;
  color: #172c2e;
  background: #f5f6f1;
  line-height: 1.65;
  --green: #164c43;
  --line: #d9e0d8;
  --ink: #182f2b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

[hidden] {
  display: none!important;
}

a {
  color: #14594e;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 3px solid #b16826;
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 36px, 1060px);
  margin-inline: auto;
}

.hero {
  background: #173e36;
  color: #f7faf1;
  padding: clamp(1.2rem, 3.5vw, 2.35rem) 0;
  border-bottom: 4px solid #b5cc8d;
}

.eyebrow {
  font-size: .8rem;
  letter-spacing: .11em;
  font-weight: 700;
  color: #d1e7ae;
  margin: 0 0 .4rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.eyebrow span {
  width: .7rem;
  height: .7rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(1.65rem, 5vw, 3.15rem);
  letter-spacing: .01em;
  line-height: 1.14;
  margin: 0;
  font-weight: 800;
}

.hero h1 span {
  color: #d4e9b8;
}

.site-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .85rem;
  margin-top: .35rem;
}

.site-contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f7faf1;
  font-size: .85rem;
  text-underline-offset: .2em;
}

main {
  padding-block: 1.1rem 3rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .45rem;
}

.section-head h2 {
  font-size: 1.3rem;
  margin: 0;
}

.switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1rem;
  border: 1px solid #c38c43;
  border-left: 5px solid #ac6d22;
  border-radius: .5rem;
  background: #fff0ce;
  color: #49320f;
  cursor: pointer;
}

.switch:hover {
  background: #ffe9b7;
}

.switch:has(input:checked) {
  background: #fbe7b4;
  border-color: #936223;
}

.switch input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
  accent-color: #785018;
}

.switch-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .75rem;
}

.switch-copy strong {
  font-size: 1.04rem;
}

.switch-copy span {
  font-size: .82rem;
}

.switch-state {
  padding: .1rem .55rem;
  border-radius: .3rem;
  background: #fff8e8;
  font-size: .8rem;
  font-weight: 700;
}

.switch:has(input:checked) .switch-state {
  color: #fff;
  background: #694612;
}

.sections {
  display: grid;
  grid-template-columns: minmax(0, .75fr) repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-block: .9rem .45rem;
}

[data-group="all"] {
  --group-color: #31544a;
  --group-ink: #273e37;
  --group-tint: #e7eee7;
}

[data-group="watch"] {
  --group-color: #23559c;
  --group-ink: #163f7b;
  --group-tint: #e7efff;
}

[data-group="live"] {
  --group-color: #93502b;
  --group-ink: #713615;
  --group-tint: #f8ebe0;
}

[data-group="other"] {
  --group-color: #5c558c;
  --group-ink: #443a76;
  --group-tint: #eeebf8;
}

.sections button {
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--group-ink);
  background: #fff;
  line-height: 1.45;
  text-align: left;
}

.sections button:hover {
  background: var(--group-tint);
}

.sections button[aria-pressed="true"] {
  color: #fff;
  background: var(--group-color);
  border-color: var(--group-color);
}

.sections strong, .sections small {
  display: block;
}

.sections strong span {
  white-space: nowrap;
}

.sections small {
  font-size: .74rem;
  margin-top: .14rem;
}

.controls {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.controls label {
  font-weight: 700;
  font-size: .86rem;
}

.personal-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem .85rem;
  padding: .4rem .6rem;
  margin-bottom: .75rem;
  background: #eef2ef;
  border: 1px solid var(--line);
  border-radius: .4rem;
  color: #324e44;
}

.personal-checks-copy {
  font-size: .875rem;
  line-height: 1.45;
}

.personal-checks-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}

.personal-checks-actions button, .check-item {
  padding: .28rem .5rem;
  min-height: 32px;
  font-size: .8rem;
}

.check-item[aria-pressed="true"] {
  color: #40494a;
  background: #e6e8e8;
  border-color: #82898a;
}

#personal-checks-status {
  flex-basis: 100%;
  margin: 0;
  font-size: .8rem;
}

#personal-checks-status:empty {
  display: none;
}

button,select {
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #8b9e95;
  border-radius: .35rem;
  padding: .35rem .7rem;
}

button,select,summary {
  cursor: pointer;
}

button:hover {
  background: #e5eee5;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

.period {
  margin-top: .6rem;
}

.listing-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .15rem .7rem;
}

.listing-title time {
  color: #405c52;
  font-size: .85rem;
}

.upcoming > summary {
  padding: .5rem .65rem;
  border: 1px solid #b8d1c6;
  border-radius: .35rem;
  background: #eef6f2;
  color: var(--green);
  cursor: pointer;
}

.upcoming[open] > summary {
  margin-bottom: .5rem;
}

.upcoming:not([open]) .upcoming-when-open,
.upcoming[open] .upcoming-when-closed {
  display: none;
}

.period-date {
  margin-inline-start: .4rem;
  font-size: .84rem;
}

.listing-title time:empty, .period-date time:empty, .list-status:empty {
  display: none;
}

.list-status {
  font-size: .88rem;
  color: #405c52;
  margin: .35rem 0 .5rem;
}

.results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .44rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--group-color, var(--green));
  border-radius: .4rem;
  padding: .6rem .75rem;
  display: grid;
  grid-template-columns: 6.65rem minmax(0, 1fr) minmax(10rem, 24%);
  align-items: start;
  gap: .3rem .8rem;
}

.card.featured {
  background: #fff8fa;
}

.card.checked {
  background: #eff0f0;
  border-left-color: #a2a9aa;
}

.card.issue {
  border-left-color: #696e69;
  background: #e9ece6;
}

.date {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: #31554b;
  font-size: .86rem;
  line-height: 1.5;
}

.date small {
  font-weight: 500;
  color: #46594f;
  display: block;
  font-size: .7rem;
}

.card h3 {
  font-size: 1rem;
  line-height: 1.45;
  margin: 0 0 .22rem;
  overflow-wrap: anywhere;
}

.meta,.links {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .45rem;
}

.tag {
  font-size: .76rem;
  color: #21433c;
  background: #e8f0e8;
  padding: .03rem .35rem;
  border-radius: .25rem;
}

.tag.group-tag {
  color: #fff;
  background: var(--group-color);
  font-weight: 700;
}

.tag.featured-tag {
  background: #f6e1ea;
  color: #782948;
  font-weight: 700;
}

.tag.warn {
  background: #f5e9c9;
  color: #60430e;
}

.tag.issue-label {
  background: #d9ddd7;
  color: #313a33;
}

.card.checked :is(.date, .date small, .publisher, .links a) {
  color: #41494a;
}

.card.checked .tag:not(.warn, .issue-label) {
  color: #343d3e;
  background: #dfe2e2;
}

.publisher {
  margin: .18rem 0 0;
  color: #41594f;
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.card-actions {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-self: stretch;
}

.check-item {
  justify-self: end;
  align-self: end;
  margin-top: .25rem;
}

.links a {
  font-size: .86rem;
  font-weight: 700;
  padding: .1rem 0;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}

.report {
  margin-top: .25rem;
  color: #3c534b;
  font-size: .83rem;
}

.report form {
  margin-top: .4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.report select {
  max-width: 100%;
}

.report p {
  margin: .25rem 0;
}

.period-more {
  margin-top: .65rem;
}

.upcoming-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: .65rem 1rem;
}

.upcoming-actions .period-more {
  margin-top: 0;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 1rem 2rem;
  color: #455f56;
  font-size: .85rem;
}

footer p {
  margin: .25rem 0;
}

.viewer-form {
  margin-top: .7rem;
}

.viewer-form summary {
  width: fit-content;
  color: var(--green);
  text-underline-offset: .18em;
  text-decoration: underline;
}

.viewer-form form {
  display: grid;
  gap: .3rem;
  max-width: 30rem;
  margin-top: .6rem;
  align-items: start;
}

.viewer-form input, .viewer-form textarea {
  min-width: 0;
  margin-bottom: .2rem;
  padding: .4rem .55rem;
  border: 1px solid #8b9e95;
  border-radius: .35rem;
  font: inherit;
}

.viewer-form textarea {
  resize: vertical;
}

.viewer-form button {
  justify-self: start;
}

.viewer-form [role="status"]:empty {
  display: none;
}

.skip {
  position: absolute;
  transform: translateY(-150%);
  background: white;
  padding: .5rem;
}

.skip:focus {
  transform: none;
}

@media(max-width:720px) {
  .card {
    grid-template-columns: 6.65rem minmax(0, 1fr);
  }
  .card-actions {
    grid-column: 2;
    grid-template: "links links" auto "report check" auto / minmax(0, 1fr) auto;
    gap: .15rem .6rem;
  }
  .card-actions .links {
    grid-area: links;
  }
  .card-actions .report {
    grid-area: report;
  }
  .check-item {
    grid-area: check;
  }
}

@media(max-width:560px) {
  .sections {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .3rem;
  }
  .sections button {
    padding: .35rem .18rem;
    text-align: center;
    font-size: .8rem;
    overflow-wrap: anywhere;
  }
  .sections small {
    display: none;
  }
}

@media(max-width:460px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .switch {
    padding: .55rem .6rem;
    gap: .55rem;
  }
  .section-head h2 {
    font-size: 1.12rem;
  }
  .controls {
    font-size: .8rem;
  }
  .card {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-actions {
    grid-column: 1;
  }
  .date small {
    display: inline;
    margin-left: .5rem;
  }
}

