/* inRange styles for every page except the home page. Linked after site.css.
   Owned by the page builders. Use the components and tokens from site.css;
   see docs/redesign/COMPONENTS.md. No inline styles anywhere (CSP). */

/* ------------------------------------------------------------ Page heads */

.page-hero { min-height: clamp(400px, 56svh, 560px); }
.page-hero .photo-hero__inner { padding-top: 40px; padding-bottom: 64px; }
.page-hero .photo-hero__copy { max-width: 44rem; }
.page-hero h1, .page-head h1, .guide-head h1 { font-size: clamp(2.5rem, 8.6vw, 4.75rem); line-height: .96; }
.page-hero .lede { margin-bottom: .8em; }
.meta { margin: 0; color: #C3D0CA; font-size: .9375rem; }

.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lede { margin-bottom: 0; }

.crumbs { margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font: 600 .875rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #C3D0CA; }

.closing { min-height: clamp(420px, 40vw, 560px); }
.closing h2 { margin-bottom: 28px; }

/* ----------------------------------------------------------- Reading text */

.read { max-width: 68ch; color: var(--fg); }
.read > p, .read > ul, .read > ol { color: var(--fg); }
.read p, .read li { font-size: 1.0625rem; line-height: 1.75; }
.read h2 { margin: 1.9em 0 .5em; font-size: clamp(2rem, 5vw, 2.8rem); }
.read > h2:first-child, .read > :first-child { margin-top: 0; }
.read h3 { margin: 1.6em 0 .4em; font-size: 1.55rem; letter-spacing: .02em; }
.read li { margin-bottom: .6em; }
.read li::marker { color: var(--fg-mute); }
.read a:not(.btn) { color: var(--link); }
.read strong { font-weight: 600; }
.read--article p, .read--article li { font-size: 1.125rem; line-height: 1.78; }
.read--wide { max-width: 760px; }
.section--dark .read a:not(.btn), .section--spruce .read a:not(.btn) { color: var(--bone); }

.checks { margin: 0 0 1.4em; padding: 0; list-style: none; }
.checks li { position: relative; margin-bottom: .8em; padding-left: 36px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--spruce) url("/img/icons/check.svg") center / 12px no-repeat;
}

.callout {
  margin: 0 0 2.2em;
  padding: 22px 26px 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--spruce-light);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: var(--surface);
}
.section--light .callout { box-shadow: 0 18px 34px -26px rgba(20, 24, 26, .3); }
.callout__label {
  margin: 0 0 .5em !important;
  font: 700 .9375rem/1 var(--head) !important;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-mute) !important;
}
.callout p:not(.callout__label) { color: var(--fg); }

/* ----------------------------------------------------------- Feature split */

.fsplit { display: grid; gap: 40px; align-items: start; }
.fsplit__art { min-width: 0; }
.fsplit__cap { margin: 14px 0 0; text-align: center; color: var(--fg-mute); font-size: .875rem; }
.fnote__feature { margin: 18px 0 0; color: var(--fg-mute); font-size: .9375rem; line-height: 1.6; }
.fsplit .stage { padding: 40px 16px; }
@media (min-width: 900px) {
  .fsplit { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 72px; }
  .fsplit__art { position: sticky; top: calc(var(--header-h) + 24px); }
  .fsplit .read { max-width: none; }
  .fsplit .read > .callout, .fsplit .read > p, .fsplit .read > ul { max-width: 62ch; }
}

/* ------------------------------------------------------- Cards and grids */

.fgrid { gap: 28px; }
.fgrid > li { display: flex; }
.fcard { flex: 1; padding: 0; overflow: hidden; }
.fcard__shot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 250px;
  padding-top: 28px;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 30%, rgba(44, 84, 67, .9), transparent 75%),
    linear-gradient(180deg, var(--spruce), var(--charcoal));
}
.fcard__shot::before { content: ""; position: absolute; inset: 0; background: url("/img/topo-a.svg") center / cover no-repeat; opacity: .14; }
.fcard__shot .device { position: relative; width: 190px; border-radius: 30px; padding: 6px; transition: transform 500ms var(--ease); }
.fcard__shot .device__screen { border-radius: 25px; }
.fcard:hover .device { transform: translateY(-8px); }
.fcard__body { padding: 24px 26px 28px; }
.fcard__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fcard__head .card__kicker { margin: 0; }
.fcard__head img { flex: none; }
.fcard .card__title { font-size: 1.75rem; }

.mini { gap: 0; padding: 24px; height: 100%; }
.mini__icon { margin-bottom: 18px; }
.mini .card__title { font-size: 1.4rem; }
.mini .card__text { font-size: .9375rem; }
.card-row { grid-auto-columns: min(280px, 78vw); }
.card-row > li { display: flex; }
.card-row > li > .card { flex: 1; }

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pgrid .card--photo .card__body { padding: 16px; }
.pgrid .card--photo .card__title { font-size: 1.2rem; line-height: 1.08; }
.pgrid .card--photo .card__kicker { margin-bottom: 8px; font-size: .8125rem; }
.readmore { display: grid; gap: 28px; align-items: center; }

.readmore__body { max-width: 36rem; }
.readmore__body .lede { margin-bottom: 1.4em; }
@media (min-width: 720px) { .readmore { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; } }
.pgrid--few { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
@media (min-width: 760px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .pgrid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pgrid .card--photo .card__title { font-size: 1.4rem; }
  .pgrid .card--photo .card__body { padding: 20px; }
}
@media (min-width: 1100px) {
  .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pgrid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pgrid .card--photo .card__title { font-size: 1.3rem; }
}
.pgrid.pgrid--few { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.pgrid--few .card--photo .card__title { font-size: 1.5rem; }
.section--light .card--photo { box-shadow: 0 24px 40px -28px rgba(20, 24, 26, .6); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a, .chips--plain li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: .9375rem;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.chips--plain li { min-height: 38px; padding: 0 14px; font-size: .9375rem; line-height: 1.2; }
.chips a:hover { border-color: var(--fg); background: var(--ghost-hover); }
.chips__title { margin: 2em 0 .7em; font-size: 1.35rem; letter-spacing: .06em; color: var(--fg); }
.section__head + .pgrid + .statelist .chips__title:first-child { margin-top: 3em; }
.statelist { margin-top: 3.5em; }
.statelist .chips__title:first-child { margin-top: 0; }
.section--light .chips__title, .section--light .chips a { color: var(--fg); }

.facts { margin: 0 0 clamp(36px, 5vw, 56px); }
.facts--text .fact__value { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.1; text-transform: uppercase; }
.facts--text { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ------------------------------------------------------------- Guide page */

.guide-head { padding: clamp(32px, 5vw, 64px) 0; overflow: hidden; }
.guide-head__grid { display: grid; gap: 28px; align-items: center; }
.guide-head h1 { margin-bottom: .4em; }
.guide-head__photo {
  position: relative;
  order: -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9);
}
.guide-head__photo > :is(img, .ph) { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 900px) {
  .guide-head { padding: clamp(48px, 6vw, 88px) 0; }
  .guide-head__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; }
  .guide-head__photo { order: 0; aspect-ratio: 2 / 3; }
}

.guide-layout { display: grid; gap: 32px; }
.toc2 { align-self: start; }
.toc2__label { margin: 0 0 12px; font: 700 .9375rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-mute); }
.toc2 ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc2 li { margin: 0; }
.toc2 a { display: block; padding: 8px 0 8px 16px; color: var(--fg-mute); font-size: .9375rem; line-height: 1.35; text-decoration: none; }
.toc2 a:hover { color: var(--fg); }
.section--light .toc2 a:not([class]) { color: var(--fg-mute); }
.section--light .toc2 a:hover { color: var(--fg); }
@media (max-width: 1099px) {
  .guide-layout .toc2 { max-width: 68ch; padding: 18px 20px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .guide-layout .toc2 ol { border-left: 0; }
  .guide-layout .toc2 a { padding-left: 0; min-height: 44px; display: flex; align-items: center; }
}
@media (min-width: 1100px) {
  .guide-layout { grid-template-columns: 220px minmax(0, 68ch); gap: 80px; justify-content: center; }
  .toc2 { position: sticky; top: calc(var(--header-h) + 24px); }
}

.fnote {
  display: grid;
  gap: 0;
  margin: 3em 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.25);
  background: var(--surface);
  box-shadow: 0 24px 44px -28px rgba(20, 24, 26, .4);
}
.fnote__shot {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 230px;
  padding-top: 24px;
  overflow: hidden;
  background: radial-gradient(70% 80% at 50% 20%, var(--spruce-light), var(--spruce) 70%, var(--charcoal));
}
.fnote__shot .device { width: 190px; border-radius: 30px; padding: 6px; }
.fnote__shot .device__screen { border-radius: 25px; }
.fnote__body { padding: 26px; }
.fnote__label { display: flex; align-items: center; gap: 10px; margin: 0 0 .8em !important; font: 700 .9375rem/1 var(--head) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-mute); }
.fnote__body h3 { margin: 0 0 .3em; font-size: 1.9rem; }
.fnote__body p:not(.fnote__label) { font-size: 1.0625rem; line-height: 1.6; }
@media (min-width: 640px) {
  .fnote { grid-template-columns: 260px minmax(0, 1fr); align-items: stretch; }
  .fnote__shot { height: auto; min-height: 280px; padding-top: 32px; }
  .fnote__body { align-self: center; padding: 32px; }
}

.pns { display: grid; gap: 14px; margin: 0 0 clamp(48px, 7vw, 88px); }
.pn { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 108px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); text-decoration: none; transition: border-color 200ms ease, transform 260ms var(--ease); }
.pn:hover { border-color: var(--fg); transform: translateY(-2px); }
.pn--next { text-align: right; }
.pn__dir { font: 700 .875rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-mute); }
.pn__title { font: 700 1.5rem/1.1 var(--head); text-transform: uppercase; }
@media (min-width: 720px) { .pns { grid-template-columns: 1fr 1fr; } .pns > span:empty { display: block; } }

/* ------------------------------------------------------------------ FAQ */

.faqs h2 { margin-bottom: 20px; font-size: clamp(2rem, 5vw, 3rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.faqs__item { border-bottom: 1px solid var(--line); }
.faqs h2 + .faqs__item { border-top: 1px solid var(--line); }
.faqs__item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 16px 56px 16px 4px;
  color: var(--fg);
  font: 600 1.125rem/1.35 var(--body);
  list-style: none;
  cursor: pointer;
}
.faqs__item summary::-webkit-details-marker { display: none; }
.faqs__item summary::before, .faqs__item summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform 260ms var(--ease), opacity 200ms ease;
}
.faqs__item summary::after { transform: rotate(90deg); }
.faqs__item[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faqs__item summary:hover { opacity: .8; }
.faqs__a { padding: 0 56px 24px 4px; }
.faqs__a p { max-width: 62ch; margin: 0; color: var(--fg-mute); font-size: 1.0625rem; line-height: 1.7; }
.section--light .faqs__a p { color: #3A4440; }

.faq-layout { display: grid; gap: 32px; }
.faq-groups { display: grid; gap: clamp(48px, 7vw, 80px); max-width: 820px; }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 80px; }
  .faq-layout .toc2 { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 899px) { .faq-layout .toc2 ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; } .faq-layout .toc2 a { padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; } }

/* ------------------------------------------------- Property lines table */

.hub-note { margin-bottom: 48px; }
.cov { margin: 0 0 clamp(40px, 6vw, 64px); }
.cov table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cov caption { padding: 0 0 14px; text-align: left; font: 700 clamp(1.7rem, 4vw, 2.2rem)/1 var(--head); letter-spacing: .01em; text-transform: uppercase; color: var(--fg); }
.cov th, .cov td { padding: 14px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; vertical-align: top; text-align: left; font-size: .9375rem; line-height: 1.4; overflow-wrap: anywhere; }
.cov thead th {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  background: var(--charcoal);
  color: var(--bone);
  font: 700 .875rem/1.2 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 0;
}
.cov thead th:first-child { border-top-left-radius: calc(var(--radius) - 1px); }
.cov thead th:last-child { border-top-right-radius: calc(var(--radius) - 1px); }
.cov tbody th { font-weight: 600; }
.cov tbody tr:last-child > * { border-bottom: 0; }
.cov tbody tr:hover > * { background: rgba(31, 58, 46, .06); }
.cov a { display: inline-block; padding: 10px 6px 10px 0; min-height: 44px; min-width: 44px; box-sizing: border-box; font-weight: 600; }
.cov th, .cov td { padding: 12px 10px; }
.cov th:nth-child(1) { width: 39%; }
.cov th:nth-child(3) { width: 19%; }
.cov tbody th { font-size: .9rem; }
@media (min-width: 720px) {
  .cov th, .cov td { padding: 14px 22px; font-size: 1rem; }
  .cov th:nth-child(1) { width: 30%; }
  .cov th:nth-child(3) { width: 18%; }
}

/* ----------------------------------------------------- Legal and utility */

.legal .read { max-width: 760px; }
.legal h2 { margin-top: 1.8em; font-size: clamp(1.7rem, 4vw, 2.1rem); }
.legal h3 { font-size: 1.35rem; }
.legal .draft { background: #FFF; border-color: #B53A27; box-shadow: 0 18px 34px -26px rgba(20, 24, 26, .4); }
.legal .draft p { color: var(--fg); }
.legal .draft__title { color: #A12F1D; }
.legal mark.blank { color: var(--light-ink); border-color: #B53A27; background: #FFF4E5; }
.legal code { padding: 1px 6px; border-radius: 6px; background: rgba(20, 24, 26, .07); }

.join { padding: 0; }
.join::before { display: none; }
.join__body { padding-top: clamp(40px, 6vw, 72px); }
.join .join__panel { background: linear-gradient(180deg, var(--slate), var(--slate-2)); }
.join .read h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.join .read .steps { padding-left: 1.4em; }
.join .read p, .join .read li { color: #DAD8CF; }
.join .read .muted { color: var(--muted); }
.read .placeholder { margin-bottom: 1.6em; }
.read .placeholder--wide { min-height: 180px; }

/* The tenth feature card spans the row on desktop so the grid ends square. */
@media (min-width: 900px) {
  .fgrid > li:last-child { grid-column: 1 / -1; }
  .fgrid > li:last-child .fcard { flex-direction: row; }
  .fgrid > li:last-child .fcard__shot { flex: 0 0 min(36%, 420px); height: auto; min-height: 250px; }
  .fgrid > li:last-child .fcard__body { align-self: center; max-width: 52ch; padding: 32px 40px; }
}
@media (max-width: 639px) {
  .fsplit .device--lg { width: min(260px, 70vw); }
  .fsplit .stage { padding: 28px 16px; }
}

.join .join__panel .join__label { margin: 0 0 6px; font: 600 1rem/1 var(--head); color: var(--muted); }
.join .join__panel p.join__code { margin: 0 0 22px; font-size: clamp(3.2rem, 17vw, 6rem); line-height: 1; color: var(--bone); }
.join .join__panel .join__status { font-size: 1.0625rem; line-height: 1.5; }

.pgrid.pgrid--one { grid-template-columns: minmax(0, 300px); max-width: 300px; }
.legal th { background: var(--charcoal); color: var(--bone); }
.legal td { background: var(--light-card); }
.legal th, .legal td { border-color: var(--light-line); }

/* Photo crops: the heroes are wide, short crops of 16:9 photos, so each slot says which height to keep. */
.photo-hero__media > img[src$="hero-ridge.jpg"] { object-position: 72% 66%; }
.photo-hero__media > img[src$="feature-blood-trail-tool.jpg"] { object-position: 50% 55%; }
.photo-hero__media > img[src$="feature-gpx-import-export.jpg"] { object-position: 50% 40%; }
.photo-hero__media > img[src$="feature-hunting-journal.jpg"] { object-position: 50% 62%; }
.photo-hero__media > img[src$="feature-hunting-maps.jpg"] { object-position: 50% 60%; }
.photo-hero__media > img[src$="feature-landowner-permission-tracker.jpg"] { object-position: 50% 55%; }
.photo-hero__media > img[src$="feature-offline-maps.jpg"] { object-position: 50% 58%; }
.photo-hero__media > img[src$="feature-property-lines.jpg"] { object-position: 50% 75%; }
.photo-hero__media > img[src$="feature-trail-camera-log.jpg"] { object-position: 50% 65%; }
.photo-hero__media > img[src$="feature-waypoints-and-tracks.jpg"] { object-position: 50% 45%; }
.photo-hero__media > img[src$="feature-weather-and-wind.jpg"] { object-position: 50% 42%; }
.photo-hero__media > img[src$="notfound.jpg"] { object-position: 50% 62%; }
