/* Keep fully loaded gallery images inside their grid track on a narrow phone. */
.device-inset { grid-template-columns: minmax(0, 1fr); }

/* The public guides share their masthead, type and palette with the home page. */
.doc-site { --wash: #e3efdb; --tab: #eca98c; --rule: #c9d2c2; background: var(--paper-light); }
.doc-terms { --wash: #eee5f2; --tab: #9d82ba; --rule: #d8cddc; }
.doc-delete { --wash: #fae4d5; --tab: #e99b78; --rule: #decebd; }
.doc-support, .doc-missing { --wash: var(--paper); }
.doc-site .masthead { background: var(--wash); }
.doc-site .primary-nav [aria-current="page"], .doc-site .footer [aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.doc-hero { background: var(--wash); border-bottom: 1px solid var(--rule); }
.doc-hero-inner { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.6fr); align-items: center; column-gap: 7%; padding-block: clamp(32px,4vw,70px) clamp(40px,5.1vw,79px); }
.doc-intro { min-width: 0; }
.doc-crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 15px; color: var(--quiet); font-size: .92rem; font-weight: 630; }
.doc-crumb { display: inline-flex; align-items: center; min-height: 44px; }
.doc-hero h1 { max-width: 18ch; font-size: clamp(2.6rem,5.45vw,5.4rem); line-height: .99; letter-spacing: -.066em; font-weight: 900; overflow-wrap: anywhere; }
.doc-hero h1 em { color: var(--red); font-family: Georgia, serif; font-weight: 500; }
.doc-lead { max-width: 58ch; margin-top: 21px; color: var(--body); font-size: clamp(1.08rem,1.6vw,1.33rem); line-height: 1.5; }
.doc-updated { margin-top: 20px; color: var(--quiet); font-size: .94rem; }
.doc-art { display: grid; min-width: 0; place-items: center; }
.doc-support .doc-hero-inner, .doc-missing .doc-hero-inner { grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); column-gap: 4%; padding-block: clamp(20px,2.3vw,42px) clamp(24px,3vw,48px); }
.doc-support .doc-art > img, .doc-missing .doc-art > img { width: 100%; max-height: 400px; object-fit: contain; }
.doc-support .doc-art > img { width: auto; border-radius: 22px 38px 23px 32px; }
.doc-support h1, .doc-missing h1 { font-size: clamp(3.05rem,6.2vw,6.1rem); max-width: 14ch; }
.doc-support h1 em { display: inline-block; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 26px; }
.doc-actions .underlink { min-height: 44px; display: inline-flex; align-items: center; }
.doc-status { color: var(--red); font: 800 1.1rem/1.3 var(--display); letter-spacing: .08em; margin-bottom: 15px; }
.doc-missing .doc-hero-inner { min-height: min(64vh, 620px); }
.doc-paper-scene { position: relative; width: min(100%, 240px); aspect-ratio: 1; }
.doc-sun { position: absolute; inset: 1% 2% 4% 4%; background: #ffffff55; border-radius: 52% 48% 43% 57%; transform: rotate(13deg); }
.doc-sheet, .doc-sheet-back { position: absolute; display: flex; flex-direction: column; align-items: start; inset: 10% 22% 12% 22%; border: 2px solid var(--ink); border-radius: 6% 8% 7% 5%; }
.doc-sheet-back { background: var(--tab); transform: translate(7%,7%) rotate(9deg); }
.doc-sheet { justify-content: center; padding: 10% 11%; background: #fffbef; transform: rotate(-9deg); box-shadow: 2px 3px 0 var(--ink); }
.doc-sheet img { width: 49%; margin-bottom: 16%; }
.doc-sheet i { width: 100%; margin-top: 8%; border-bottom: 2px solid #8b9c8b; }
.doc-sheet i:nth-of-type(3) { width: 71%; }
.doc-sheet i:last-child { width: 53%; }
.doc-tab { position: absolute; inset: 12% 27% auto auto; width: 12%; height: 21%; background: var(--yellow); border: 1.6px solid var(--ink); border-radius: 3px 3px 10px 10px; transform: rotate(-9deg); }
.doc-spark { position: absolute; right: 9%; bottom: 13%; color: var(--red); font-size: clamp(1.5rem,4vw,3.6rem); line-height: 1; }
.doc-grid { display: grid; align-items: start; grid-template-columns: minmax(170px, .6fr) minmax(0, 1.4fr); gap: clamp(35px,6.6vw,106px); padding-block: clamp(36px,4.8vw,80px) clamp(54px,7vw,106px); }
.doc-index { min-width: 0; }
.doc-desktop-index { border-left: 3px solid var(--tab); padding-left: clamp(16px,2.2vw,32px); }
.doc-desktop-index p, .doc-mobile-index summary { font-family: var(--display); font-weight: 800; font-size: 1.16rem; }
.doc-index ul { padding: 0; margin: 10px 0 0; list-style: none; }
.doc-index a { display: flex; align-items: center; min-height: 44px; line-height: 1.35; max-width: 32ch; padding-block: 7px; color: var(--body); text-decoration: none; }
.doc-index a:hover { text-decoration: underline; color: var(--red); }
.doc-mobile-index { display: none; }
.doc-article { width: 100%; max-width: 72ch; min-width: 0; color: var(--body); }
.doc-article section { margin: 0 0 36px; padding: 0 0 34px; border-bottom: 1px solid var(--rule); }
.doc-article section:last-child { border: 0; padding-bottom: 0; margin-bottom: 0; }
.doc-article h2 { margin-bottom: 16px; font-size: clamp(1.75rem,2.6vw,2.55rem); letter-spacing: -.05em; line-height: 1.13; color: var(--ink); overflow-wrap: anywhere; }
.doc-article h3 { font-size: 1.22rem; margin-block: 22px 9px; line-height: 1.22; }
.doc-article p, .doc-article li { font-size: 1.05rem; line-height: 1.69; overflow-wrap: anywhere; }
.doc-article p + p { margin-top: 14px; }
.doc-article p + ul, .doc-article p + ol { margin-top: 10px; }
.doc-article ul, .doc-article ol { padding-left: 1.5em; }
.doc-article li { padding-left: .2em; margin-block: 5px; }
.doc-article li::marker { color: var(--red); font-weight: 750; }
.doc-article a { color: #235343; font-weight: 630; text-decoration-thickness: 1.2px; }
.doc-article a:hover { color: var(--red); }
.doc-article .contact-panel { background: var(--wash); border: 1.4px solid var(--rule); border-radius: 24px 31px 24px 17px; padding: clamp(20px,2.8vw,38px); }
.doc-support .contact-panel { background: var(--sage); }
.doc-support .contact-panel a { display: inline-block; line-height: 44px; }
.doc-question { border-top: 1px solid var(--rule); }
.doc-question:last-child { border-bottom: 1px solid var(--rule); }
.doc-question summary, .doc-mobile-index summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding-block: 11px; cursor: pointer; list-style: none; }
.doc-question summary { color: var(--ink); font-weight: 750; font-size: 1.06rem; }
.doc-question summary::-webkit-details-marker, .doc-mobile-index summary::-webkit-details-marker { display: none; }
.doc-question p { padding: 0 0 16px; }
.doc-site .footer { border-top: 1px solid var(--rule); }
.doc-credit { padding: 0 0 22px; color: var(--quiet); font-size: .9rem; }

@media (min-width: 761px) and (min-height: 760px) {
  .doc-index { position: sticky; top: 22px; }
}
@media (max-width: 760px) {
  .doc-grid { display: block; padding-top: 22px; }
  .doc-index { margin-bottom: 28px; }
  .doc-desktop-index { display: none; }
  .doc-mobile-index { display: block; padding: 0 16px; border: 1px solid var(--rule); background: var(--wash); border-radius: 12px; }
  .doc-mobile-index ul { margin: 0 0 12px; }
  .doc-mobile-index a { max-width: none; }
  .doc-hero-inner { gap: 14px; }
  .doc-article { max-width: 100%; }
}
@media (max-width: 620px) {
  .doc-hero-inner, .doc-support .doc-hero-inner, .doc-missing .doc-hero-inner { grid-template-columns: minmax(0,1fr); gap: 0; padding-block: 24px 34px; }
  .doc-support .doc-hero-inner, .doc-missing .doc-hero-inner { gap: 14px; }
  .doc-support .doc-art, .doc-missing .doc-art { max-width: 320px; width: 92%; margin-inline: auto; }
  .doc-support .doc-art > img, .doc-missing .doc-art > img { max-height: 218px; }
  .doc-privacy .doc-art, .doc-terms .doc-art, .doc-delete .doc-art { display: none; }
  .doc-crumbs { margin-bottom: 10px; }
  .doc-lead { margin-top: 15px; }
  .doc-updated { margin-top: 13px; }
  .doc-actions { margin-top: 19px; }
  .doc-grid { padding-bottom: 40px; }
  .doc-article section { margin-bottom: 25px; padding-bottom: 23px; }
}
@media print {
  .doc-hero, .doc-grid { display: block; color: black; background: white; padding-block: 10px; }
  .doc-art, .doc-index, .doc-actions, .doc-crumbs { display: none; }
  .doc-hero-inner { display: block; padding: 0; }
  .doc-article { max-width: none; }
  .doc-article h2 { break-after: avoid; }
}
