.tile-guide-page {
  --guide-ink: #193434;
  --guide-muted: #495e58;
  --guide-paper: #f7f5ed;
  --guide-table: #eeeee5;
  --guide-rule: #c6cdc0;
  --guide-selected: #dfe7dc;
  --guide-mark: #365c50;
  background: var(--guide-paper);
  color: var(--guide-ink);
}

.tile-guide-page .wrap {
  width: min(calc(100% - clamp(2.5rem, 8vw, 7rem)), 70rem);
  padding-inline: 0;
}

.tile-guide-hero {
  padding-block: clamp(1.55rem, 4.2vw, 3.75rem) clamp(1.4rem, 3.4vw, 2.9rem);
  border-bottom: 1px solid var(--guide-rule);
}

.tile-guide-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem clamp(1.5rem, 5vw, 5.5rem);
}

.tile-guide-hero .guide-eyebrow,
.guide-fact .guide-family-label {
  margin: 0;
  color: var(--guide-mark);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.45;
}

.tile-guide-page .tile-guide-hero h1 {
  margin: .3rem 0 0;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.tile-guide-hero .guide-deck {
  max-width: 32ch;
  margin: 0 0 .2em;
  color: var(--guide-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.53;
}

.tile-guide-page .guide-content {
  padding-block: clamp(1.4rem, 3vw, 2.55rem) clamp(2.75rem, 7vw, 6rem);
}

.tile-guide-page .v10-guide-case { margin: 0; }

.tile-guide-page .guide-content h2 {
  margin: 0 0 .7em;
  color: var(--guide-ink);
  font-size: clamp(1.32rem, 2.3vw, 1.85rem);
  line-height: 1.24;
  letter-spacing: -.02em;
}

.guide-explorer {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(.8rem, 2.3vw, 1.6rem);
  border: 1px solid var(--guide-rule);
  border-radius: .8rem;
  background: var(--guide-table);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) repeat(3, minmax(0, .37fr));
  grid-template-rows: repeat(2, minmax(min-content, 1fr));
  gap: .36rem .45rem;
}

.guide-choice {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 44px;
  align-content: start;
  justify-items: center;
  gap: .32rem;
  padding: .48rem .3rem .55rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  color: var(--guide-ink);
  cursor: pointer;
  font-family: var(--journal-text);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
}

.guide-choice:nth-of-type(3n + 1) { grid-column: 2; }
.guide-choice:nth-of-type(3n + 2) { grid-column: 3; }
.guide-choice:nth-of-type(3n) { grid-column: 4; }
.guide-choice:nth-of-type(-n + 3) { grid-row: 1; }
.guide-choice:nth-of-type(n + 4) { grid-row: 2; }

.guide-choice-name {
  max-width: 100%;
  text-wrap: balance;
}

.guide-choice .tile-reading {
  display: block;
  margin-top: .12em;
  color: var(--guide-muted);
  font-size: .86em;
}

.guide-choice img,
.guide-portrait img {
  display: block;
  max-width: 100%;
  height: auto;
}

.guide-choice img { width: clamp(2.75rem, 5.1vw, 4.5rem); }

@media (hover: hover) {
  .guide-choice:hover { background: #e6e9df; }
}

.tile-choice:checked + .guide-choice {
  border-color: #647c6d;
  background: var(--guide-selected);
}

.tile-choice:checked + .guide-choice::after {
  position: absolute;
  top: .53rem;
  right: .57rem;
  width: .52rem;
  height: .29rem;
  border: solid var(--guide-mark);
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg);
}

.tile-choice:focus-visible + .guide-choice {
  outline: 2px solid var(--guide-ink);
  outline-offset: 2px;
}

.guide-fact {
  display: none;
  grid-area: 1 / 1 / 3 / 2;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-width: 0;
  align-items: center;
  align-self: stretch;
  gap: clamp(.85rem, 2.4vw, 2rem);
  margin-inline-end: clamp(.5rem, 1.7vw, 1.5rem);
  padding: .3rem clamp(.9rem, 2.2vw, 2rem) .3rem 0;
  border-inline-end: 1px solid var(--guide-rule);
}

.tile-choice:checked + .guide-choice + .guide-fact { display: grid; }

.guide-portrait {
  display: grid;
  min-width: 0;
  align-self: center;
  justify-items: center;
  margin: 0;
  padding: .2rem 0;
}

.guide-portrait img { width: min(100%, 12.25rem); }

.tile-guide-page .guide-fact h3 {
  margin: .22em 0 .33em;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.tile-guide-page .guide-fact p:not([class]) {
  max-width: 30ch;
  margin: 0;
  color: var(--guide-muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.52;
}

.guide-families { margin-top: clamp(1.75rem, 4vw, 3.75rem); }

.guide-family-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--guide-rule);
}

.guide-family-list > div {
  min-width: 0;
  padding: clamp(.7rem, 2vw, 1.45rem) clamp(.6rem, 2.5vw, 1.75rem);
}

.guide-family-list > div:first-child { padding-inline-start: 0; }
.guide-family-list > div:last-child { padding-inline-end: 0; }
.guide-family-list > div + div { border-inline-start: 1px solid var(--guide-rule); }

.guide-family-list dt {
  margin: 0 0 .36em;
  font-family: var(--journal-heading);
  font-size: clamp(1.1rem, 1.65vw, 1.36rem);
  font-weight: 600;
  line-height: 1.35;
}

.tile-guide-page .guide-family-list dd {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.55;
}

.guide-families .bird-note {
  max-width: 66ch;
  margin-top: 1rem;
  color: var(--guide-muted);
  font-size: .98rem;
}

.guide-families .bird-note a {
  display: inline;
  margin-inline-start: 0;
}

.tile-guide-page .guide-content a:focus-visible {
  outline: 2px solid var(--guide-ink);
  outline-offset: 3px;
}

.tile-guide-page .guide-content .set-gallery {
  --article-line: var(--guide-rule);
  max-width: none;
  margin-block: clamp(1.6rem, 4.6vw, 3.4rem) 0;
  padding: .95rem 0 0;
  border: 0;
  border-top: 1px solid var(--guide-rule);
  background: transparent;
}

.tile-guide-page .guide-content .set-gallery h3 {
  margin: 0 0 .25rem;
  font-size: clamp(1.22rem, 2.1vw, 1.65rem);
}

.tile-guide-page .guide-content .set-gallery details { border-color: var(--guide-rule); }
.tile-guide-page .guide-content .set-gallery summary { min-height: 44px; }
.tile-guide-page .guide-content .set-gallery details[open] summary {
  color: var(--guide-ink);
  background: var(--guide-selected);
}
.tile-guide-page .guide-content .mag-prose { max-width: 65ch; }
.tile-guide-page .guide-content .mag-related li { background: var(--guide-selected); }

.tile-guide-page:lang(zh-Hans) :is(.guide-eyebrow, .guide-family-label, h1, h2, h3),
.tile-guide-page:lang(ja) :is(.guide-eyebrow, .guide-family-label, h1, h2, h3),
.tile-guide-page:lang(th) :is(.guide-eyebrow, .guide-family-label, h1, h2, h3) {
  letter-spacing: normal;
}

.tile-guide-page:lang(th) :is(.guide-choice, .guide-fact p:not([class]), .guide-deck) {
  line-height: 1.65;
}

.tile-guide-page:lang(th) .guide-choice { font-size: .9375rem; }
.tile-guide-page:lang(ja) .tile-reading { font-size: .8125rem; }
.tile-guide-page:is(:lang(zh-Hans), :lang(ja)) .guide-deck {
  max-inline-size: 28ic;
  text-wrap: pretty;
}

.tile-guide-page:lang(th) .tile-guide-hero h1,
.tile-guide-page:lang(th) .guide-fact h3 {
  line-height: 1.35;
}

@media (max-width: 57rem) {
  .tile-guide-hero .wrap { grid-template-columns: 1fr; gap: .65rem; }
  .tile-guide-hero .guide-deck { max-width: 48ch; }
}

@media (max-width: 47rem) {
  .guide-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: .28rem .35rem;
  }

  .guide-choice:nth-of-type(3n + 1) { grid-column: 1; }
  .guide-choice:nth-of-type(3n + 2) { grid-column: 2; }
  .guide-choice:nth-of-type(3n) { grid-column: 3; }
  .guide-choice { padding-block: .38rem .46rem; }
  .guide-choice img { width: clamp(2.75rem, 13vw, 3.8rem); }

  .guide-fact {
    grid-area: 3 / 1 / 4 / -1;
    grid-template-columns: minmax(0, .52fr) minmax(0, 1fr);
    gap: clamp(.65rem, 3vw, 1.2rem);
    margin-inline-end: 0;
    margin-top: .53rem;
    padding: .63rem .12rem .04rem;
    border: 0;
    border-block-start: 1px solid var(--guide-rule);
  }

  .guide-portrait img { width: min(100%, 6.75rem); }
  .guide-fact .guide-family-label { font-size: .76rem; }
  .tile-guide-page .guide-fact h3 { font-size: clamp(1.22rem, 5vw, 1.65rem); }
  .guide-family-list { grid-template-columns: 1fr; }
  .guide-family-list > div { padding: .82rem 0; }
  .guide-family-list > div + div { border: 0; border-top: 1px solid var(--guide-rule); }
}

@media (forced-colors: active) {
  .tile-choice:checked + .guide-choice { border-color: CanvasText; }
  .tile-choice:checked + .guide-choice::after { border-color: CanvasText; }
  .tile-choice:focus-visible + .guide-choice { outline-color: Highlight; }
}

