/* Public topic pages and the homepage directory. */
.home-topics {
  background: var(--mint);
  padding-block: clamp(56px, 8vw, 96px);
  scroll-margin-block-start: 92px;
}

.home-topics .section-subtitle { margin-bottom: 26px; }

.topic-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding: 22px 54px 22px 22px;
  border-radius: 17px;
  border: 1px solid #a9c0b4;
  background: var(--bg);
  text-decoration: none;
}

.topic-card:hover { background: #fff; color: var(--petrol); border-color: var(--petrol); }
.topic-card strong { font-family: var(--font-display); font-size: clamp(1.12rem, 2vw, 1.42rem); line-height: 1.22; }
.topic-card span { color: var(--ink-soft); }
.topic-card .topic-arrow { position: absolute; inset: 20px 22px auto auto; color: var(--petrol); font-size: 1.25rem; }

.home-resource-strip { padding-block: 27px; background: var(--bg-alt); }
.home-resource-strip .container { display: flex; flex-wrap: wrap; gap: 7px 28px; }
.home-resource-strip a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-weight: 650; text-underline-offset: 4px; }

.guide-main { padding-top: clamp(110px, 14vw, 154px); padding-bottom: clamp(54px, 9vw, 100px); }
.guide-heading { margin-bottom: clamp(30px, 5vw, 52px); }
.guide-crumb { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-bottom: 22px; font-size: .92rem; color: var(--ink-soft); }
.guide-heading h1 { font-size: clamp(2rem, 6vw, 4.2rem); max-width: 19ch; overflow-wrap: anywhere; }
.guide-lead { max-width: 66ch; margin-top: 18px; color: var(--ink-soft); font-size: clamp(1.06rem, 2vw, 1.25rem); }
.guide-date { margin-top: 16px; color: var(--ink-soft); font-size: .92rem; }

.guide-copy { max-width: 810px; }
.guide-copy section { margin-top: 34px; scroll-margin-block-start: 96px; }
.guide-copy h2 { margin-bottom: 12px; font-size: clamp(1.38rem, 4vw, 1.95rem); }
.guide-copy p + p, .guide-copy li + li { margin-top: 12px; }
.guide-copy ul, .guide-copy ol { padding-inline-start: 1.35rem; }
.guide-copy blockquote { border-inline-start: 4px solid var(--petrol); padding: 12px 16px; background: var(--bg-alt); margin-top: 16px; }
.guide-summary { font-size: 1.13rem; }
.guide-note { color: var(--ink-soft); margin-top: 22px; font-size: .95rem; }

.guide-panel { padding: clamp(18px, 4vw, 32px); background: #fff; border: 1px solid #aebfb6; border-radius: var(--radius-sm); }
.guide-form:not([hidden]) { display: grid; gap: 15px; margin-top: 20px; }
.guide-form label { display: grid; gap: 6px; font-weight: 650; min-width: 0; }
.guide-form select { width: 100%; min-width: 0; min-height: 46px; background: var(--bg); font: inherit; color: var(--ink); border: 1px solid #718c7e; border-radius: 8px; padding: 8px; }
.guide-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.guide-form-actions button { min-height: 44px; }
.guide-form-actions .btn { padding: 11px 17px; }
.guide-reset { color: var(--petrol); background: none; border: 0; text-decoration: underline; font-size: 1rem; }
.guide-result { margin-top: 18px; padding: 16px; background: var(--mint); color: var(--ink); border-radius: 8px; }
.guide-result h3 { font-size: 1.2rem; margin-bottom: 6px; }

.guide-news .news-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-news h2 { font-size: clamp(1.18rem, 2.2vw, 1.62rem); margin-bottom: 10px; }
.guide-news h2 a { text-underline-offset: 3px; }
.guide-news .news-featured h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.guide-news .news-card-body p { margin: 0; }
.guide-news .news-card-body .news-more { margin-top: 12px; }

@media (max-width: 640px) {
  .topic-directory { grid-template-columns: 1fr; }
  .topic-card { min-height: auto; }
  .home-resource-strip .container { display: grid; }
}


/* News links use a foreground intended for each card background. */
.guide-news .news-featured-body h2 a,
.guide-news .news-featured-body .news-more {
  color: #F7F6F1;
  text-decoration-color: #FFC3AE;
}

.guide-news .news-featured-body a:is(:hover, :focus-visible) { color: #FFC3AE; }
.guide-news .news-card .news-more { color: #A5361B; }
.guide-news .news-card a:is(:hover, :focus-visible) { color: #A5361B; }
.guide-news .news-card .news-more:is(:hover, :focus-visible),
.guide-news .news-featured-body .news-more:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-news :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.app-news-cover { margin: 28px 0; }
.app-news-cover img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.app-news-cover figcaption { margin-top: 8px; color: var(--ink-soft); font-size: .85rem; }

.guide-download { background: var(--mint); }
.guide-download .btn { margin-top: 6px; padding-inline: 18px; }
.guide-download .guide-note { margin-top: 12px; }
