/* field-guide.css — The Field Guide to Canadians */

/* Page link color override (design handoff) */
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-900); }

/* Sticky nav + ticker on desktop */
@media (min-width: 861px) {
  ctb-nav { position: sticky; top: 0; z-index: 60; }
  .fg-ticker { position: sticky; top: var(--masthead-h, 63px); z-index: 59; }
}

/* Ticker maple band */
.fg-ticker {
  background: var(--maple);
  color: oklch(0.98 0.005 27);
}

/* --- Hero --- */
.fg-hero { padding: 80px 0 56px; }

.fg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
}

.fg-hero-aside { order: 1; }

.fg-stamp {
  display: inline-block;
  font-family: var(--scrawl);
  font-weight: 800;
  border: 2px solid var(--maple);
  color: var(--maple-deep);
  background: var(--maple-tint);
  padding: 5px 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
  transform: rotate(-2deg);
  margin: 0 0 21px;
}

.fg-h1 {
  text-transform: uppercase;
  font-family: var(--shout);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 35px 0 0;
}
.fg-h1 span { display: block; }

.fg-intro {
  font-size: 17px;
  line-height: 28px;
  max-width: 58ch;
  margin: 42px 0 0;
}

/* --- Sections --- */
.fg-section { padding: 0 0 70px; }

/* --- Two-column layout --- */
.fg-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 42px clamp(28px, 5vw, 96px);
  align-items: start;
}

/* --- Section heading --- */
.fg-h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: 42px;
  letter-spacing: -0.015em;
  margin: 0;
}

/* --- Body text in columns --- */
.fg-body {
  font-size: 15.5px;
  line-height: 28px;
  margin: 28px 0 0;
  max-width: 48ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* --- Converter input row --- */
.fg-input-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  max-width: 380px;
  margin-top: 28px;
}
.fg-input-row .input { flex: 1; }

/* --- Result area --- */
.fg-result-label {
  margin: 0;
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.fg-result-main {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.2;
  margin: 14px 0 0;
  color: var(--color-accent-700);
}

.fg-result-detail {
  font-size: 15.5px;
  line-height: 28px;
  margin: 14px 0 0;
}

.fg-result-note {
  font-size: 15.5px;
  line-height: 28px;
  margin: 2px 0 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.fg-placeholder {
  font-size: 15.5px;
  line-height: 28px;
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  font-style: italic;
}

/* --- Range slider --- */
.fg-range {
  width: 100%;
  max-width: 380px;
  margin-top: 28px;
  accent-color: var(--color-accent);
}

/* --- Door-holding result --- */
.fg-door-ruling {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  margin: 14px 0 0;
}

/* --- Decorative divider (circle on rule) --- */
.fg-divider {
  position: relative;
  height: 30px;
  margin: 0 0 42px;
}
.fg-divider-rule {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  border: 0;
  border-top: 2px solid var(--maple);
  margin: 0;
}
.fg-divider-ring {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border: 2px solid var(--maple);
  border-radius: 50%;
  background: var(--color-bg);
}
.fg-divider-dot {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--maple);
}

/* --- Observations grid --- */
.fg-obs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 42px clamp(28px, 4vw, 64px);
}

.fg-obs-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  margin: 0;
}

.fg-obs-text {
  font-size: 15.5px;
  line-height: 28px;
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* --- CTA --- */
.fg-cta {
  margin: 42px 0 0;
  font-size: 15.5px;
  line-height: 28px;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .fg-hero-grid { display: block; }
  .fg-hero-aside { margin-top: 42px; }
  h1 { overflow-wrap: break-word; }
  .table { display: block; overflow-x: auto; max-width: 100%; }
}

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
}
