/* ==========================================================================
   TroveGlint — section sheet
   order: masthead · baseline · notice · lede · shelf · matrix · queries ·
          reach · document pages
   ========================================================================== */

/* --- masthead ------------------------------------------------------------- */
.tg1-crest {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--tg1-paper);
}

.tg1-crest__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.tg1-crest__mark {
  font-family: 'Glint Display', Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--tg1-ink);
  text-decoration: none;
  padding: 8px 0;
}

.tg1-crest__mark em {
  font-style: normal;
  color: var(--tg1-accent);
}

.tg1-crest__mark:hover { color: var(--tg1-ink); }

.tg1-crest__nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.tg1-crest__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
  color: var(--tg1-ink);
  font-size: 0.97rem;
  text-decoration: none;
}

.tg1-crest__nav a:hover {
  color: var(--tg1-accent);
  text-decoration: underline;
}

.tg1-crest__toggle {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--tg1-ink);
  border-radius: 30% / 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.tg1-crest__toggle i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tg1-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tg1-crest__toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tg1-crest__toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.tg1-crest__toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 840px) {
  .tg1-crest__toggle { display: inline-flex; }

  .tg1-crest__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--tg1-paper);
    padding: 6px var(--tg1-pad) 22px;
  }

  .tg1-crest__nav.is-open { display: block; }

  .tg1-crest__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .tg1-crest__nav a {
    min-height: 54px;
    padding-inline: 0;
    font-size: 1.05rem;
  }
}

/* --- baseline ------------------------------------------------------------- */
.tg1-baseline {
  background: var(--tg1-ink);
  color: var(--tg1-paper);
  padding: 62px 0 34px;
}

.tg1-baseline__cols {
  display: grid;
  gap: 38px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .tg1-baseline__cols {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
  }
}

.tg1-baseline__mark {
  font-family: 'Glint Display', Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  color: var(--tg1-paper);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
}

.tg1-baseline__mark em {
  font-style: normal;
  opacity: 0.62;
}

.tg1-baseline p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  max-width: 36rem;
}

.tg1-baseline h2 {
  font-family: 'Glint Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.tg1-baseline ul { list-style: none; }

.tg1-baseline li { margin-bottom: 2px; }

.tg1-baseline a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tg1-paper);
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.tg1-baseline a:hover {
  color: var(--tg1-paper);
  text-decoration-color: var(--tg1-paper);
  text-decoration-thickness: 2px;
}

.tg1-baseline__foot {
  margin-top: 44px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.tg1-baseline__foot span { display: block; }

/* --- notice --------------------------------------------------------------- */
.tg1-notice {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 45;
  margin: 0 auto;
  max-width: 1000px;
  background: var(--tg1-paper);
  border: 2px solid var(--tg1-ink);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.tg1-notice[hidden] { display: none; }

.tg1-notice p {
  margin: 0;
  flex: 1 1 340px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--tg1-hush);
}

.tg1-notice__acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tg1-act--tight {
  min-height: 48px;
  padding: 10px 22px;
  font-size: 0.92rem;
}

/* --- lede ----------------------------------------------------------------- */
.tg1-lede { padding: 58px 0 86px; }

.tg1-lede__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}

@media (min-width: 940px) {
  .tg1-lede { padding: 76px 0 104px; }
  .tg1-lede__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 60px;
    align-items: end;
  }
}

.tg1-lede__title { max-width: 9em; }

.tg1-lede__note {
  margin-top: 26px;
  font-size: 1.1rem;
  color: var(--tg1-hush);
  max-width: 33rem;
}

.tg1-lede__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.tg1-lede__strip {
  list-style: none;
  display: grid;
  gap: 12px;
}

.tg1-lede__chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--tg1-rule);
  border-radius: 10px;
  text-decoration: none;
  color: var(--tg1-ink);
  min-height: 72px;
}

.tg1-lede__chip:hover {
  color: var(--tg1-ink);
  border-color: var(--tg1-accent);
}

.tg1-lede__chip img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex: none;
}

.tg1-lede__chip > span { display: block; }

.tg1-lede__chip b {
  display: block;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--tg1-ink);
}

.tg1-lede__chip em {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--tg1-hush);
  margin-top: 2px;
}

.tg1-crest__nav a:focus-visible,
.tg1-baseline a:focus-visible { outline-offset: 0; }

/* --- shelf ---------------------------------------------------------------- */
.tg1-shelf { padding: 8px 0 96px; }

.tg1-shelf__intro { margin-bottom: 40px; }

.tg1-shelf__intro h2 { max-width: 13em; }

.tg1-shelf__intro p { margin-top: 18px; }

.tg1-shelf__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.tg1-shelf__col {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

@media (min-width: 880px) {
  .tg1-shelf__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
  .tg1-shelf__col--drop { margin-top: var(--tg1-nudge); }
}

@media (max-width: 879px) {
  .tg1-shelf__grid { display: flex; flex-direction: column; }
  .tg1-shelf__col { display: contents; }
  .tg1-piece--drmzzz { order: 1; }
  .tg1-piece--jelly { order: 2; }
  .tg1-piece--cookiejam { order: 3; }
  .tg1-storenote { order: 4; }
}

.tg1-piece {
  background: var(--tg1-paper);
  border: 1px solid var(--tg1-rule);
  border-radius: 12px;
  padding: 24px;
}

.tg1-piece__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tg1-piece__head img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  flex: none;
}

.tg1-piece__head h3 { margin: 0; }

.tg1-piece__by {
  display: block;
  font-size: 0.86rem;
  color: var(--tg1-hush);
  margin-top: 3px;
}

.tg1-piece__still {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.tg1-piece__still--bleed {
  border-radius: 11px 11px 0 0;
  margin: -24px -24px 22px;
  width: calc(100% + 48px);
  max-width: none;
  aspect-ratio: 1 / 1;
}

.tg1-piece__prose {
  margin-top: 18px;
  font-size: 0.97rem;
}

.tg1-piece__prose:last-child { margin-bottom: 0; }

.tg1-piece__facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 18px;
  margin: 22px 0 0;
  font-size: 0.92rem;
}

.tg1-piece__facts dt { color: var(--tg1-hush); }

.tg1-piece__facts dd {
  margin: 0;
  font-weight: 500;
}

.tg1-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
}

.tg1-tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--tg1-rule);
  border-radius: 30% / 50%;
  font-size: 0.83rem;
  color: var(--tg1-hush);
}

.tg1-tag b {
  color: var(--tg1-ink);
  font-weight: 500;
}

.tg1-storenote {
  background: var(--tg1-tint);
  border-radius: 12px;
  padding: 26px 24px;
}

.tg1-storenote h3 { margin-bottom: 14px; }

.tg1-storenote p {
  font-size: 0.94rem;
  color: var(--tg1-hush);
}

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

.tg1-storenote strong {
  color: var(--tg1-ink);
  font-weight: 500;
}

/* --- matrix --------------------------------------------------------------- */
.tg1-compare { padding: 84px 0 92px; }

.tg1-compare__head {
  display: grid;
  gap: 20px;
  margin-bottom: 34px;
}

@media (min-width: 900px) {
  .tg1-compare__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 56px;
  }
}

.tg1-matrix__wrap {
  overflow-x: auto;
  background: var(--tg1-paper);
  border: 1px solid var(--tg1-rule);
  border-radius: 12px;
}

.tg1-matrix {
  width: 100%;
  min-width: 780px;
  font-size: 0.93rem;
}

.tg1-matrix caption {
  text-align: left;
  padding: 22px 22px 4px;
  font-size: 0.87rem;
  color: var(--tg1-hush);
}

.tg1-matrix th,
.tg1-matrix td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
}

.tg1-matrix thead th {
  font-family: 'Glint Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tg1-hush);
  border-bottom: 1px solid var(--tg1-ink);
  white-space: nowrap;
}

.tg1-matrix tbody th {
  font-family: 'Glint Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.97rem;
  min-width: 190px;
}

.tg1-matrix tbody tr + tr th,
.tg1-matrix tbody tr + tr td {
  border-top: 1px solid var(--tg1-rule);
}

.tg1-tick {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.tg1-tick svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
}

.tg1-compare__sign {
  margin: 24px 0 0;
  font-size: 0.94rem;
  color: var(--tg1-hush);
  max-width: 40rem;
}

/* --- queries -------------------------------------------------------------- */
.tg1-queries { padding: 96px 0 84px; }

.tg1-queries__intro { margin-bottom: 44px; }

.tg1-queries__list {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .tg1-queries__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
    row-gap: 40px;
  }
}

.tg1-queries__item h3 { margin-bottom: 12px; }

.tg1-queries__item p {
  margin: 0;
  color: var(--tg1-hush);
  font-size: 0.98rem;
}

/* --- reach ---------------------------------------------------------------- */
.tg1-reach { padding: 78px 0 104px; }

.tg1-reach__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .tg1-reach__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 72px;
  }
}

.tg1-reach__mail {
  font-family: 'Glint Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  display: inline-block;
  margin: 8px 0 22px;
  word-break: break-word;
}

.tg1-reach__dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
  padding: 26px 24px;
  background: var(--tg1-tint);
  border-radius: 12px;
}

.tg1-reach__dl dt {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tg1-hush);
  margin-bottom: 4px;
}

.tg1-reach__dl dd {
  margin: 0;
  font-size: 0.99rem;
}

/* --- document pages ------------------------------------------------------- */
.tg1-doc { padding: 54px 0 92px; }

.tg1-doc__title { max-width: 15em; }

.tg1-doc__stamp {
  margin: 18px 0 40px;
  font-size: 0.9rem;
  color: var(--tg1-hush);
}

.tg1-doc h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.62rem);
  margin: 46px 0 14px;
  max-width: 40rem;
}

.tg1-doc h3 {
  font-size: 1.12rem;
  margin: 30px 0 10px;
}

.tg1-doc p,
.tg1-doc li {
  max-width: 42rem;
  font-size: 1rem;
}

.tg1-doc ul,
.tg1-doc ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
}

.tg1-doc li { margin-bottom: 8px; }

.tg1-doc__box {
  overflow-x: auto;
  border: 1px solid var(--tg1-rule);
  border-radius: 12px;
  margin: 26px 0 32px;
}

.tg1-doc__grid {
  width: 100%;
  min-width: 720px;
  font-size: 0.92rem;
}

.tg1-doc__grid caption {
  text-align: left;
  padding: 20px 20px 4px;
  font-size: 0.87rem;
  color: var(--tg1-hush);
}

.tg1-doc__grid th,
.tg1-doc__grid td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}

.tg1-doc__grid thead th {
  font-family: 'Glint Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tg1-hush);
  border-bottom: 1px solid var(--tg1-ink);
}

.tg1-doc__grid tbody th {
  font-family: 'Glint Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
}

.tg1-doc__grid tbody tr + tr th,
.tg1-doc__grid tbody tr + tr td {
  border-top: 1px solid var(--tg1-rule);
}

/* --- lost page ------------------------------------------------------------ */
.tg1-lost {
  padding: 92px 0 120px;
  max-width: 40rem;
}

.tg1-lost p { color: var(--tg1-hush); margin-top: 22px; }

.tg1-lost__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
