/* The hail guide: its parts placed and sized with the tokens of system.css (the shared parts are in components.css). */

/* ---------- 1. the header: the headline over the hail-hit shingles, chalk rings drawing once (components.css) ---------- */
.guide-hero { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-y); }
.guide-hero__in { display: grid; justify-items: start; }
.guide-hero__crumb { margin: 0 0 var(--space-4); }
.guide-hero__crumb .link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.guide-hero__crumb .icon { width: 1em; height: 1em; }
.guide-hero__title { max-width: 18ch; font-size: clamp(2.4rem, 1.3rem + 3.2vw, 4.2rem); line-height: 1.02; color: var(--c-brand); text-wrap: balance; }
.guide-hero__line { max-width: 40rem; margin-top: var(--space-3); font-size: var(--fs-lead); line-height: 1.45; color: var(--c-ink-soft); }
.guide-hero__pic { position: relative; width: 100%; margin-top: var(--space-5); }
.guide-hero__pic .gable__media { aspect-ratio: 2752 / 1536; box-shadow: var(--shadow-l); }
.guide-hero__tag { position: absolute; z-index: 4; left: 1.2rem; bottom: 1.2rem; margin: 0; padding: 0.55rem 1rem 0.6rem; border-radius: 999px; font: 700 0.98rem/1.2 var(--font-ui); }
@media (max-width: 600px) {
  .guide-hero__pic .gable__media { aspect-ratio: 4 / 3; }
  .guide-hero__tag { position: static; display: inline-block; margin-top: 0.8rem; background: var(--c-brand); }
}

/* ---------- 2. the guide: a reading column and the side card ---------- */
.guide__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.guide__body { max-width: 42rem; font-size: 1.1rem; line-height: 1.65; color: var(--c-ink); }
.guide__body > * + * { margin-top: 1.1rem; }
.guide__body h2 { margin-top: 2.8rem; scroll-margin-top: calc(var(--header-h) + 20px); font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); line-height: 1.15; color: var(--c-brand); }
.guide__body h2 + * { margin-top: 0.8rem; }
.guide__lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--c-ink); }
.guide__body a:not(.btn) { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.guide__checks { list-style: none; margin-left: 0; padding: 0; display: grid; gap: 0.55rem; }
.guide__checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.guide__checks .icon { width: 28px; height: 28px; padding: 5px; box-sizing: border-box; border-radius: 50%; background: var(--c-brand); color: var(--c-accent); stroke-width: 2.6; }
.guide__steps { margin-left: 0; padding-left: 1.4rem; display: grid; gap: 0.6rem; }
.guide__steps li::marker { font-weight: 800; color: var(--c-accent-text); }
.guide__fig { margin: 1.8rem 0 0; }
.guide__fig .gable__media { aspect-ratio: var(--a, 4 / 3); box-shadow: var(--shadow-m); }
.guide__fig figcaption { margin-top: 0.7rem; font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft); }
/* the side card: the quiz's first question, each choice opening the estimate popup with it chosen */
.guide__side { position: sticky; top: calc(var(--header-h) + 24px); }
.guide__card { padding: 1.3rem; display: grid; gap: 0.9rem; }
.guide__card-kicker { margin: 0; font: 700 var(--fs-small)/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-accent-text); }
.guide__card-title { font-size: 1.35rem; line-height: 1.2; color: var(--c-brand); }
.guide__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.guide__tile { display: grid; gap: 0.4rem; padding: 0.4rem 0.4rem 0.6rem; border-radius: var(--radius-m); background: var(--c-paper-alt); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); font: 700 0.88rem/1.2 var(--font-ui); text-decoration: none; transition: box-shadow var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out); }
.guide__tile > span:last-child { padding-inline: 0.2rem; }
.guide__tile-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius-m) - 4px); }
.guide__tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .guide__tile:hover { box-shadow: inset 0 0 0 2px var(--c-accent); translate: 0 -2px; } }
.guide__tile:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.guide__card-or { display: grid; gap: 0.5rem; }
.guide__card-or .btn { justify-content: center; }
@media (max-width: 960px) {
  .guide__grid { grid-template-columns: 1fr; }
  .guide__side { position: static; max-width: 30rem; }
}

@media (prefers-reduced-motion: reduce) {
  .guide__tile { transition: none; }
}
