@charset "UTF-8";

:root {
  --forest: #244a38;
  --forest-deep: #143226;
  --forest-soft: #3d6a50;
  --moss: #6b8f74;
  --paper: #faf6ee;
  --paper-2: #f1e8d6;
  --cream: #fffdf8;
  --text: #26231c;
  --muted: #5c564a;
  --wood: #8a5b3a;
  --leaf: #d7e4cf;
  --line: #e2d7c3;
  --max: 1040px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.1rem;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(800px 420px at 100% 0%, #e4edd8 0%, transparent 46%),
    var(--paper);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

main,
.page,
.welcome,
.care-guide,
.supplied,
.supplied section,
article,
.comparison,
.task-figure,
.flow-diagram {
  min-width: 0;
  max-width: 100%;
}

[hidden] { display: none !important; }

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-underline-offset: 4px;
}

a:hover { color: var(--wood); }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

button,
input,
summary {
  font: inherit;
  touch-action: manipulation;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75em;
  color: var(--forest-deep);
}

h1 { font-size: clamp(2.05rem, 4vw, 3.1rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

.page {
  width: min(calc(100% - 3.2rem), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.85rem;
  background: var(--cream);
}

.skip:focus { top: 0.8rem; }

.kicker {
  margin: 0 0 0.6rem;
  color: var(--forest-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  min-height: 3.5rem;
  position: relative;
}

.identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--forest-deep);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.22rem;
}

.identity-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identity em {
  font-style: italic;
  color: var(--forest-soft);
  font-size: 0.92em;
}

.identity-mark { flex: none; }

.brand-short,
.action-short { display: none; }

.desk-nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.92rem;
}

.desk-nav a {
  color: var(--forest);
  text-decoration: none;
  padding: 1rem 0;
}

.desk-nav a[aria-current="true"] {
  box-shadow: inset 0 -3px 0 var(--forest);
}

.look,
.drawer {
  position: relative;
  flex: none;
}

.look summary,
.drawer summary {
  cursor: pointer;
  list-style: none;
  color: var(--forest);
  font-weight: 650;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

.look summary::-webkit-details-marker,
.drawer summary::-webkit-details-marker,
.contents-fold summary::-webkit-details-marker { display: none; }

.look summary::after,
.drawer summary::after { content: " +"; color: var(--wood); }

.look[open] summary::after,
.drawer[open] summary::after { content: " −"; }

.look-panel,
.drawer nav {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 8;
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 18px 36px #244a3820;
}

.drawer { display: none; }

.drawer nav {
  width: 16rem;
  display: flex;
  flex-direction: column;
}

.drawer nav a {
  padding: 0.7rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.look-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.look-controls {
  display: flex;
  gap: 0.45rem;
}

.look-controls input {
  flex: 1;
  min-width: 0;
  min-height: 2.85rem;
  border: 1px solid #cfc3ac;
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem 0.75rem;
  color: var(--text);
}

.look-controls button {
  min-height: 2.85rem;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 10px;
  background: var(--forest);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.look-controls [type="reset"] {
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
}

.look-status,
.look-empty {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.6rem 0 0.75rem;
}

.look-label {
  margin: 0.65rem 0 0.2rem;
  color: var(--forest-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.look-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.look-index a {
  display: block;
  padding: 0.42rem 0;
  text-decoration: none;
  color: var(--forest-deep);
  border-bottom: 1px solid var(--line);
}

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.4rem;
  align-items: center;
  padding: 2.2rem 0 1.4rem;
}

.direct-answer {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--forest-deep);
  max-width: 28em;
  margin-bottom: 1rem;
}

.mast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin: 0.15rem 0 0;
}

.mast-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
}

.mast-actions a:hover { color: #fff; }

.family-photo {
  max-width: 22rem;
}

.family-photo {
  margin: 0;
}

.family-photo img {
  width: 100%;
  height: auto;
  max-height: 14rem;
  object-fit: contain;
  border-radius: 18px;
}

.family-photo figcaption,
.task-figure figcaption,
.flow-diagram figcaption,
.gamebook-figure figcaption,
.sprite-panel figcaption {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.contents {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 1.1rem;
  padding: 0.4rem 0 1.4rem;
}

.contents-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contents-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
}

.contents-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--leaf);
  font-size: 0.92rem;
}

.contents-fold { display: none; }

.supplied section {
  margin: 2rem 0 0;
  padding-top: 0.4rem;
  scroll-margin-top: 1rem;
}

.supplied h2 { max-width: 18em; }

.supplied p,
.supplied li { max-width: 42em; }

.supplied ul,
.supplied ol { padding-left: 1.2rem; }

.supplied li + li { margin-top: 0.7rem; }

.supplied ol.steps {
  list-style: none;
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  counter-reset: care-step;
}

.supplied ol.steps > li {
  counter-increment: care-step;
  position: relative;
  margin: 0 0 0.9rem;
  padding: 1.05rem 1.15rem 1.1rem 4.1rem;
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid var(--line);
  max-width: 46em;
}

.supplied ol.steps > li::before {
  content: counter(care-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1rem;
}

.comparison {
  margin: 1.2rem 0 1.5rem;
}

.flow-diagram .comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.85rem;
  overflow: visible;
}

.comparison > article {
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--forest);
  padding: 1.15rem 1.2rem 1.2rem;
  margin-bottom: 0.9rem;
}

.comparison > table,
.comparison table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
}

.table-wrap,
.supplied *:has(> table) {
  overflow-x: auto;
  max-width: 100%;
  margin: 1.2rem 0;
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus,
.supplied *:has(> table):focus {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

th {
  color: var(--forest);
  font-size: 0.8rem;
}

.task-figure,
.flow-diagram {
  margin: 1.4rem 0 1.7rem;
}

.task-figure > a { display: block; }

.task-figure,
.gamebook-figure,
.sprite-panel {
  overflow: visible;
}

.flow-diagram {
  overflow-x: auto;
  max-width: 100%;
}

.task-figure img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.task-figure svg,
.flow-diagram svg,
.process-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.task-figure svg,
.flow-diagram svg:not(.process-svg) {
  background: #edf3e9;
  border-radius: 16px;
}

.process-svg {
  background: transparent;
}

.gamebook-figure,
.sprite-panel {
  background: var(--forest-deep);
  color: #eef5ec;
  margin: 1.4rem 0 1.7rem;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 18px;
}

.gamebook-figure .sprite-panel {
  margin: 0;
  padding: 0.4rem;
  background: transparent;
}

.task-figure.gamebook-figure img,
.task-figure .sprite-panel img,
.gamebook-figure img,
.sprite-panel img {
  width: auto;
  max-width: min(100%, 16rem);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  background: transparent;
  border-radius: 0;
}

.sprite-panel img,
.task-figure .sprite-panel img { max-width: min(100%, 14rem); }

.gamebook-figure figcaption,
.sprite-panel figcaption {
  color: #d5e4d4;
}

.callout {
  background: #f4ebe0;
  border-left: 5px solid var(--forest);
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.2rem;
  max-width: 42em;
  margin: 1.2rem 0 1.4rem;
}

.callout p:last-child { margin-bottom: 0; }

kbd {
  font: 0.88em ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--cream);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.05em 0.4em;
}

.household {
  margin: 2.6rem 0 3.2rem;
  padding-top: 0.4rem;
}

.household-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.household-group a {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.household-group a span {
  color: var(--muted);
  font-size: 0.92rem;
}

.trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  padding: 1.3rem 0 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.trail > * + *::before {
  content: "/";
  margin-right: 0.55rem;
  opacity: 0.65;
}

.trail a { color: var(--muted); text-decoration: none; }
.trail a:hover { text-decoration: underline; }

.care-guide,
.note {
  max-width: 46rem;
  padding-bottom: 3.4rem;
}

.care-head { padding-bottom: 0.4rem; }

.page-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.next-tasks {
  margin-top: 2.4rem;
  padding-top: 0.4rem;
}

.next-tasks ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.next-tasks a {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.next-tasks a span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92rem;
}

.colophon {
  background: var(--forest-deep);
  color: #d5e4d4;
  padding: 1.8rem 0;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.colophon p { font-size: 0.84rem; max-width: 36em; }

.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.colophon a { color: #e7f0e2; }

.analytics-consent {
  width: min(calc(100% - 3.2rem), var(--max));
  margin: 0 auto;
  padding: 1.4rem 0 2.2rem;
}

.analytics-consent h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.analytics-consent p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 40em;
}

.analytics-consent button {
  min-height: 2.85rem;
  margin: 0.3rem 0.45rem 0.3rem 0;
  padding: 0.5rem 1rem;
  border: 1px solid var(--forest);
  border-radius: 10px;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.analytics-consent [data-analytics-reject] {
  background: transparent;
  color: var(--forest);
}

.analytics-consent [data-analytics-reset] {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  text-decoration: underline;
  font-weight: 600;
}

.analytics-consent button:focus-visible {
  outline: 3px solid var(--wood);
  outline-offset: 3px;
}

::selection {
  background: var(--leaf);
  color: var(--forest-deep);
}

@media (max-width: 860px) {
  .welcome {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-top: 1.5rem;
  }

  .contents { display: none; }

  .contents-fold { display: block; margin-bottom: 1.2rem; }

  .contents-fold summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--forest);
    padding: 0.7rem 0;
  }

  .contents-fold nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-bottom: 0.8rem;
  }
}

@media (max-width: 760px) {
  .page,
  .analytics-consent { width: calc(100% - 1.5rem); }

  .desk-nav { display: none; }

  .look { margin-left: auto; }

  .drawer { display: block; }

  .look,
  .drawer {
    position: static;
  }

  .look-panel,
  .drawer nav {
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
  }

  .header-bar { min-height: 3.35rem; gap: 0.3rem; }

  .brand-long { display: none; }
  .brand-short { display: inline; }
  .action-long { display: none; }
  .action-short { display: inline; }
  .identity { font-size: 1.08rem; }

  .family-photo { max-width: 100%; }
  .family-photo img { max-height: 10rem; }

  .flow-diagram .comparison { grid-template-columns: 1fr; }

  .supplied ol.steps > li { padding: 0.95rem 0.95rem 1rem 3.7rem; }

  .footer-bar { flex-direction: column; }
}

@media (max-width: 360px) {
  .page { width: calc(100% - 1.15rem); }

  h1 { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .gamebook-figure img,
  .sprite-panel img { mix-blend-mode: normal; }
}
