:root {
  color-scheme: light;
  --accent: #075e4d;
  --tint: #edf7f3;
  --line: #cddfd8;
  font-family: system-ui, "Yu Gothic", "Hiragino Sans", sans-serif;
  color: #182e2a;
  line-height: 1.8;
}
* { box-sizing: border-box; }
body { margin: 0; background: white; }
.wrap { width: min(100% - 2rem, 50rem); margin-inline: auto; }
header { background: var(--accent); color: white; padding-block: clamp(2rem, 6vw, 4rem); }
.header-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); }
.header-mascot { display: block; width: clamp(5rem, 18vw, 10.5rem); height: auto; clip-path: circle(37.25% at 49.85% 48.35%); }
header p { margin: 0; max-width: 40rem; }
.subtitle, h1 span { font-weight: 750; }
h1 span { white-space: nowrap; }
h1, h2, h3, h4 { line-height: 1.45; }
h1 { font-size: clamp(1.65rem, 4.5vw, 2.65rem); margin: .3rem 0 .8rem; }
h2 { font-size: 1.25rem; margin: 0 0 .8rem; }
main { padding-block: 2rem 3.5rem; }
main > * + * { margin-top: 2rem; }
.panel { border-radius: .8rem; padding: 1rem 1.25rem; background: var(--tint); }
#recent { border-inline-start: .25rem solid var(--accent); }
.panel ul, .panel p { margin: 0 0 .65rem; }
.panel ul { padding-inline-start: 1.3rem; }
a { color: var(--accent); text-underline-offset: .2em; }
.filters { display: grid; grid-template-columns: 2fr 1fr; gap: .85rem; }
label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 650; }
input, select, button { font: inherit; color: inherit; }
input, select { width: 100%; min-height: 2.75rem; font-size: 1rem; padding: .4rem .7rem; background: white; border: 1px solid #829b93; border-radius: .5rem; }
:focus-visible { outline: 3px solid #087963; outline-offset: 3px; }
#status, .meta { color: #45605a; }
#status { margin: .85rem 0 .65rem; }
details { border: 1px solid var(--line); border-radius: .8rem; margin-block: .75rem; scroll-margin-top: 1rem; }
summary { cursor: pointer; padding: 1rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .65rem; border-radius: inherit; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
details[open] summary::after { content: "−"; }
details[open] summary { background: #f6faf8; border-radius: .8rem .8rem 0 0; }
.marker { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; background: var(--tint); color: var(--accent); font-weight: 750; border-radius: .4rem; }
.answer .marker, .question-marker { background: var(--accent); color: white; }
.question-marker { width: auto; min-width: 1.8rem; padding-inline: .45rem; white-space: nowrap; font-size: .875rem; }
.title { display: block; font-size: 1.08rem; font-weight: 750; }
.meta { display: flex; flex-wrap: wrap; column-gap: .8rem; margin-top: .3rem; font-size: .875rem; }
.content { padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.content h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1rem; }
.content h4 { color: var(--accent); margin: 1.5rem 0 .45rem; font-size: 1.04rem; }
.content p, .content ul { margin: .65rem 0; }
.answer { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.2rem; }
.sharing { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.2rem; }
.sharing .sharing-help { flex-basis: 100%; margin: 0; color: #45605a; font-size: .875rem; }
.button, .copy { border: 1px solid var(--accent); border-radius: .5rem; padding: .45rem .9rem; min-height: 2.75rem; font-weight: 650; cursor: pointer; }
.button { display: inline-block; background: var(--accent); color: white; text-decoration: none; }
.copy { color: var(--accent); background: white; }
@media (max-width: 36rem) {
  header { padding-block: 1rem; }
  .header-layout { row-gap: .3rem; }
  .header-copy { display: contents; }
  .header-copy .subtitle { grid-area: 1 / 1; align-self: end; line-height: 1.5; }
  .header-copy h1 { grid-area: 2 / 1; align-self: start; margin: 0; line-height: 1.3; }
  .header-copy p:last-child { grid-column: 1 / -1; line-height: 1.55; }
  .header-mascot { grid-area: 1 / 2 / 3 / 3; }
  .filters { grid-template-columns: 1fr; }
}
