/* Answers: full articles behind the questions people actually search.
   Same full-width wrap and header pattern as every other page. Prose caps
   its own line length. Readability first: travelers on phones, older eyes.
   Pills come only from the canonical chip system in app.css. */

.answer-head { margin: 0 0 1.2rem; }
.answer-head .crumbs {
  font-family: var(--font-clock);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.9rem 0 0.5rem;
}
.answer-head .crumbs a {
  color: var(--muted);
  text-decoration: none;
  min-height: var(--target);
  display: inline-flex;
  align-items: center;
}
.answer-head .crumbs a:hover { color: var(--amber); text-decoration: underline; }

/* The question is the headline. Big, like a corridor heading — not the
   small muted .tag line. Older readers on phones must not squint. */
.answer-head h1.tag {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
  margin: 0 0 0.5rem;
}
.answer-head .updated {
  color: var(--muted);
  font-size: 0.92rem;
  font-family: var(--font-clock);
  margin: 0;
}

.answer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: 1.5rem 3rem;
  align-items: start;
}
@media (max-width: 980px) {
  .answer-layout { grid-template-columns: 1fr; }
}

/* The first box is the answer. Everything else is support.
   It spans the whole content column — the answer is the hero. */
.answer-first {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 0 0 1rem;
}
.answer-first p {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--paper);
  max-width: 75ch;
}
.answer-first p:last-child { margin-bottom: 0; }

/* Body: question cards in a grid, same pattern as the help page's
   .faq-grid, so a wide screen fills with cards instead of dead space. */
.answer-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 1150px) {
  .answer-body { grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); }
  .answer-body .qa.wide { grid-column: 1 / -1; }
}
.answer-body .qa {
  margin: 0;
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  scroll-margin-top: 5.5rem;
}
.answer-body .qa h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  line-height: 1.25;
  color: var(--paper);
  margin: 0 0 0.55rem;
}
.answer-body p,
.answer-body li {
  color: var(--paper);
  /* Inherit the 17px body size — rem would shrink it against the 16px root. */
  font-size: inherit;
  line-height: 1.6;
  max-width: 65ch;
}
.answer-body p { margin: 0 0 0.85rem; }
.answer-body .qa > p:last-child,
.answer-body .qa > ul:last-child,
.answer-body .qa > ol:last-child { margin-bottom: 0; }
.answer-body ol, .answer-body ul { padding-left: 1.3rem; margin: 0 0 0.9rem; }
.answer-body li { margin: 0 0 0.45rem; }

/* Current official stills inside an article. Same honesty rules as the desks:
   the picture links to the live section, the caption names the agency. */
.answer-cams {
  display: grid;
  /* auto-fit: two pictures stretch to fill the row instead of leaving
     empty tracks. Big road pictures are the point. */
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 0.85rem;
  margin: 0.9rem 0 0.4rem;
}
.answer-cams figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.answer-cams figure:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.answer-cams a.fig-frame {
  display: block;
  position: relative;
  aspect-ratio: 8 / 5;
  background: #000;
  overflow: hidden;
}
.answer-cams img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}
.answer-cams a.fig-frame:hover img { transform: scale(1.035); }
.answer-cams .fig-stamp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-clock);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.answer-cams figcaption {
  padding: 0.55rem 0.7rem 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.answer-cams figcaption a { color: var(--paper); }
.fig-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.35rem 0 1.1rem;
  max-width: 65ch;
}

/* Sources and related questions. */
.answer-sources {
  border-top: 1px solid var(--line);
  margin-top: 1.8rem;
  padding-top: 1rem;
  max-width: 65ch;
}
.answer-sources h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.answer-sources ul { list-style: none; padding: 0; margin: 0; }
.answer-sources li {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Related answers: canonical pills (.asks), stacked in the side rail on
   desktop, one wrapping row above the footer on phones. */
.answer-aside { position: sticky; top: 1rem; }
@media (max-width: 980px) { .answer-aside { position: static; } }
.answer-aside h2 {
  font-family: var(--font-clock);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.answer-aside .asks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.answer-aside .asks a { white-space: normal; }
@media (min-width: 981px) {
  .answer-aside .asks { flex-direction: column; align-items: stretch; }
}

/* Answer cards: the hub page and the home discovery section. */
.answer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.4rem;
}
.answer-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
  min-height: var(--target);
}
.answer-card {
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.answer-card:hover {
  border-color: var(--amber);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.answer-card strong { font-size: 1.1rem; font-weight: 650; line-height: 1.3; }
.answer-card span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.answer-card:hover span { color: var(--paper); }
.answer-card .read {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--amber);
  font-size: 0.85rem;
  font-family: var(--font-clock);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .answer-cams figure,
  .answer-cams img,
  .answer-card { transition: none; }
  .answer-cams figure:hover,
  .answer-card:hover { transform: none; }
  .answer-cams a.fig-frame:hover img { transform: none; }
}

/* ————————————————————————————————————————————————————————————————
   Haze gallery (js/haze.js): a full-screen modal for flicking through
   the official smoke cameras. Stage on top, filmstrip below, honesty
   line always visible. Pills come from the canonical chip system;
   only container layout is set here. */
.haze-modal {
  border: 0;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  background: var(--bg);
  color: var(--paper);
}
.haze-modal[open] { display: flex; flex-direction: column; }
.haze-modal::backdrop { background: rgba(0, 0, 0, 0.72); }

.haze-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem var(--gutter) 0.5rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.haze-title { min-width: 0; flex: 0 1 auto; }
.haze-title strong {
  display: block;
  font-family: var(--font-display);
  /* A real headline on desktop — the camera name is the page title here. */
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.haze-title .haze-sub {
  display: block;
  font-family: var(--font-clock);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Group pills: one scrolling row, never a second line. */
.haze-groups {
  margin: 0 0 0 auto;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
}
.haze-groups::-webkit-scrollbar { display: none; }
.haze-count { color: inherit; opacity: 0.55; font-size: 0.8em; }
.haze-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target);
  min-height: var(--target);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--paper);
  cursor: pointer;
}
.haze-close:hover { border-color: var(--amber); }

.haze-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #000;
  touch-action: none;
  cursor: zoom-in;
}
.haze-stage.zoomed { cursor: grab; }
.haze-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.haze-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-clock);
  font-size: 0.85rem;
  pointer-events: none;
}
.haze-stamp {
  position: absolute;
  left: 0.75rem;
  bottom: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  font-family: var(--font-clock);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  pointer-events: none;
  max-width: calc(100% - 1.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.haze-step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target);
  height: calc(var(--target) + 12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 13, 11, 0.72);
  color: var(--paper);
  cursor: pointer;
}
.haze-step:hover { border-color: var(--amber); color: var(--amber); }
.haze-prev { left: 0.6rem; }
.haze-next { right: 0.6rem; }

/* Filmstrip: live thumbs, north to south. The open camera glows amber. */
.haze-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.55rem var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.haze-thumb {
  flex: 0 0 auto;
  width: 9.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.haze-thumb img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
  background: #000;
}
.haze-thumb span {
  display: block;
  padding: 0.3rem 0.45rem 0.35rem;
  font-family: var(--font-clock);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.haze-thumb:hover { border-color: var(--amber); color: var(--paper); }
.haze-thumb[aria-selected="true"] {
  border-color: var(--amber);
  color: var(--paper);
  box-shadow: 0 0 0 1px var(--amber);
}

.haze-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.2rem;
  flex-wrap: wrap;
  padding: 0.5rem var(--gutter) calc(0.55rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.haze-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.haze-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem 1rem;
  flex-wrap: wrap;
}
.haze-actions a,
.haze-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: var(--target);
  border: 0;
  padding: 0;
  background: none;
  color: var(--amber);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.haze-actions a:hover,
.haze-actions button:hover { text-decoration: underline; }
.haze-actions .material-symbols-outlined { font-size: 1.15rem; }

@media (max-width: 700px) {
  .haze-top { flex-wrap: wrap; padding-bottom: 0.4rem; }
  .haze-title { flex: 1 1 auto; order: 1; }
  .haze-close { order: 2; }
  .haze-groups { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .haze-note { flex-basis: 100%; }
}
