/* ==========================================================================
   Upcoming-features roadmap — SCOPED STYLESHEET
   ==========================================================================

   Included only on /roadmap/ and /product/ (see site_head() in inc/components.php).

   WHY A SEPARATE FILE RATHER THAN SITE.CSS:

   site.css is modified by the unaccepted Phase 2 visual upgrade, which is still dirty in the main
   source tree. Adding roadmap rules to it would create a second, avoidable overlap on top of the
   two files this task genuinely has to touch (data/roadmap.php and pages/product.php), and would
   make the later reconciliation harder for no benefit. Keeping the new rules in their own file
   means this increment cannot collide with Phase 2 styling at all, and the roadmap can be
   reverted independently.

   Every selector is namespaced up-/product-next so nothing here can affect another page even if
   both sheets are loaded. Colours come from the published brand tokens defined in site.css.

   TEXT AT 200%: `min-width:0` and `overflow-wrap` are set deliberately. Earlier in this project a
   grid item forced its column wider than the viewport at 200% text and produced horizontal
   scroll; long single words are the usual cause, and "infrastructure" and "subcontractor" are
   long. Measured at 320px with a doubled root font before this was accepted.
   ========================================================================== */

/* -------------------------------------------------------------- the section */
.section--upcoming{
  padding-top:44px;
}
.section--upcoming > .wrap > .eyebrow{
  margin-bottom:6px;
}
.upcoming-theme{
  margin-top:36px;
}
.upcoming-theme__title{
  margin:0 0 4px;
  font-size:1.16rem;
  letter-spacing:-.01em;
  color:var(--brand-dark);
  /* MEASURED DEFECT, FIXED. At 320px with 200% text this heading measured scrollWidth 305
     against clientWidth 284: "communications" in the theme name does not fit the column and had
     nowhere to go, so it pushed the document to 3px of horizontal scroll. Live /roadmap/ measured
     0px at the same setting before this change, so the overflow was mine. Long compounds are
     normal in this subject area, so the fix is to let the word break rather than to shorten the
     copy. */
  overflow-wrap:break-word;
  hyphens:auto;
}
.upcoming-theme__blurb{
  margin:0 0 18px;
  color:var(--text-muted);
  max-width:62ch;
  overflow-wrap:break-word;
}
/* The section heading and intro are the same shape of risk. */
.section--upcoming > .wrap > h2,
.section--upcoming > .wrap > .lede{overflow-wrap:break-word}

/* ------------------------------------------------------------------- cards */
/* A restrained two-column card grid on wide screens and one column below 760. Cards are equal
   height per row so the composition reads as a set rather than a ragged list. */
.upcoming-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.upcoming-card{
  position:relative;
  min-width:0;
  background:var(--surface);
  border:1px solid var(--border);
  border-left:3px solid var(--brand-royal);
  border-radius:12px;
  padding:18px 20px 16px;
}
.upcoming-card__status{
  margin:0 0 8px;
}
.upcoming-card__title{
  margin:0 0 6px;
  font-size:1rem;
  line-height:1.32;
  color:var(--brand-dark);
  overflow-wrap:break-word;
  hyphens:auto;
}
.upcoming-card__copy{
  margin:0;
  color:var(--text-muted);
  font-size:.95rem;
  overflow-wrap:break-word;
}

.upcoming-note{
  margin:34px 0 0;
  padding:16px 18px;
  background:var(--brand-paper);
  border:1px solid var(--border);
  border-radius:10px;
  color:var(--text-muted);
  font-size:.94rem;
  max-width:78ch;
}

/* ------------------------------------------- the product page "What's next" */
/* Deliberately quiet: a bordered note, not a panel, so it sits under the product story rather
   than competing with it. */
.product-next{
  margin:34px 0 0;
  min-width:0;
  padding:18px 20px;
  background:var(--brand-paper);
  border:1px solid var(--border);
  border-radius:12px;
  max-width:820px;
}
.product-next__status{
  margin:0 0 6px;
}
.product-next h3{
  margin:0 0 8px;
  font-size:1.05rem;
  color:var(--brand-dark);
}
.product-next p{
  margin:0 0 8px;
  color:var(--text-muted);
  font-size:.95rem;
}
.product-next__link{
  margin:10px 0 0;
}
.product-next__link a{
  color:var(--brand-royal);
  font-weight:600;
  display:inline-block;
  /* WCAG 2.5.8: a lone link needs a real target size, not a text-sized one. */
  padding:6px 0;
}

/* -------------------------------------------------------------- responsive */
@media (max-width:760px){
  .upcoming-grid{grid-template-columns:1fr}
  .upcoming-card{padding:16px 16px 14px}
}
@media (max-width:380px){
  .upcoming-card{padding:14px 14px 12px}
  .product-next{padding:16px 14px}
}

/* ----------------------------------------------------------------- motion */
/* Nothing here animates. No transitions are declared on these elements at all, so reduced motion
   is satisfied by construction; the rule below keeps that explicit so a later addition cannot
   quietly introduce movement without a reviewer noticing the missing guard. */
@media (prefers-reduced-motion: reduce){
  .upcoming-card,
  .product-next,
  .upcoming-note{transition:none!important;animation:none!important}
}
