/* Articles — container (resource 80) and article detail (template 39).
   Built from design/articles/container/ and design/articles/detail/, Ryan's zips
   of 2026-09-19. Decision record: docs/pages/articles.md.

   All rules scoped under .art so nothing here can reach another page. Site tokens
   are read with live-value fallbacks, as the other page stylesheets do.

   CONTRAST: the ICA theme sets h1/h2 colour directly, and a direct rule beats the
   design's inherited colour — that is what rendered home-page headings at 1.14:1.
   Every dark band below restates its own colours. Audit against the live page
   after the first push, never against the design export, which loads no theme. */

.art {
  --art-navy: #1e2d3b;
  --art-blue: var(--bs-primary-hex, #0072bc);
  --art-blue-hi: #0086dd;
  --art-sky: #80b7e3;
  --art-yellow: #ffd240;
  --art-wash: #f2f8fc;
  --art-line: #e1e8ee;
  --art-line-soft: #eef3f7;
  --art-ink: #212124;
  --art-muted: #495356;
  --art-meta: #8a949a;
  --art-accent: var(--art-blue);
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  color: var(--art-ink);
  background: var(--art-wash);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}
.art *, .art *::before, .art *::after { box-sizing: border-box; }
.art a { color: var(--art-blue); transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.art a:hover { color: var(--art-navy); }

.art-wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* --- Type ----------------------------------------------------------------- */
.art-h1 { font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; max-width: 20ch; text-wrap: balance; }
.art-h2 { font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.art-kicker { font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--art-blue); margin: 0 0 14px; }
.art-kicker--accent { color: var(--art-sky); }

.art-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 16px; text-decoration: none; color: #fff; background: var(--art-blue); border-radius: 999px; padding: 13px 24px; }
.art-btn:hover { color: #fff; background: var(--art-blue-hi); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,114,188,.3); }

/* --- Hero (shared by both pages) ------------------------------------------
   Base, glow, tiled mark behind a radial mask, blue/yellow bottom rule.
   The mark is ica-mark-white.svg from the Icons source: the design names
   ica-mark.svg, which 404s on this install (established on the transportation
   build). White at 12% over navy is what the design is asking for anyway. */
.art-hero { position: relative; background: var(--art-navy); color: #fff; overflow: hidden; }
.art-hero__glow { position: absolute; inset: 0; background: radial-gradient(120% 90% at 88% 12%, rgba(0,114,188,.55) 0%, rgba(0,114,188,0) 58%), radial-gradient(90% 80% at 6% 100%, rgba(128,183,227,.20) 0%, rgba(128,183,227,0) 62%); }
.art-hero__pattern { position: absolute; top: -20%; left: -20%; width: 140%; height: 140%; background-image: url('/assets/images/icons/ica-mark-white.svg'); background-repeat: repeat; background-size: 460px 460px; opacity: .12; transform: rotate(-12deg); pointer-events: none; -webkit-mask-image: radial-gradient(120% 100% at 80% 20%, #000 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 85%); mask-image: radial-gradient(120% 100% at 80% 20%, #000 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 85%); }
.art-hero__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--art-blue) 0 34%, var(--art-yellow) 34% 52%, rgba(255,255,255,.10) 52%); }
.art-hero__inner { position: relative; padding-top: 44px; padding-bottom: 40px; }

/* Theme collision: h1/h2 get their colour set directly by the ICA theme, which
   beats inheritance from .art-hero. Restated here, scoped. */
.art-hero .art-h1, .art-hero h1, .art-hero h2 { color: #fff; }
.art-hero__lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--art-wash); max-width: 60ch; margin: 0; text-wrap: pretty; }
.art-hero .art-kicker--accent { color: var(--art-sky); }

@keyframes icaHeroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.art-anim { animation: icaHeroIn .7s cubic-bezier(.2,.7,.3,1) both; }
.art-anim--1 { animation-duration: .6s; }
.art-anim--2 { animation-delay: .05s; }
.art-anim--3 { animation-delay: .1s; }
.art-anim--4 { animation-delay: .16s; }
.art-anim--5 { animation-delay: .22s; }

/* --- Detail hero additions ------------------------------------------------- */
.art-hero--detail .art-hero__inner { padding-top: 36px; padding-bottom: 44px; }
.art-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--art-sky); margin-bottom: 26px; }
.art-crumbs__link { color: var(--art-sky); text-decoration: none; }
.art-crumbs__link:hover { color: #fff; }
/* Separator is CSS, not a snippet property — see the chunk's note. */
.art-crumbs__link::after { content: '/'; margin-left: 8px; opacity: .5; }
.art-crumbs__here { color: #cfe0ee; }
.art-hero__split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 44px; align-items: end; }
.art-hero__text { min-width: 0; }
.art-hero--detail .art-h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; max-width: 18ch; }
.art-hero--detail .art-hero__lede { max-width: 52ch; margin-bottom: 26px; }
.art-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--art-yellow); color: var(--art-navy); font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; margin: 0 0 18px; }
.art-pill:empty { display: none; }
.art-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--art-sky); margin: 0; }
.art-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--art-yellow); }
.art-hero__media { position: relative; min-width: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 26px 60px rgba(0,0,0,.35); }
.art-hero__img { display: block; width: 100%; height: clamp(240px, 26vw, 330px); object-fit: cover; }
/* An article with no hero-img must not leave an empty shadowed box. */
.art-hero__media:has(img[src=""]), .art-hero__media:not(:has(img)) { display: none; }

/* --- Reading progress ------------------------------------------------------ */
.art-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: rgba(30,45,59,.10); z-index: 50; }
.art-progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--art-blue), var(--art-yellow)); }

/* --- Sections -------------------------------------------------------------- */
.art-sec { background: var(--art-wash); }
.art-sec--feature { padding-top: 44px; }
.art-sec--grid { padding-bottom: 72px; }
.art-sec--more { background: #fff; border-top: 1px solid var(--art-line); padding: 56px 0 72px; }
.art-sec--cta { padding: 0 0 8px; }

/* --- Chips ----------------------------------------------------------------- */
.art-chips { background: var(--art-wash); padding-top: 44px; }
.art-chips[hidden] { display: none; }
.art-chips__inner { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--art-line); }
.art-chip { font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; border: 1px solid #dbe5ec; background: #fff; color: var(--art-muted); cursor: pointer; }
.art-chip:hover { border-color: var(--art-blue); color: var(--art-blue); }
.art-chip.is-on { background: var(--art-navy); border-color: var(--art-navy); color: #fff; }

/* --- Featured card --------------------------------------------------------- */
.art-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); background: #fff; border: 1px solid var(--art-line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(30,45,59,.08); }
.art-feat__media { position: relative; min-height: 330px; }
.art-feat__img { display: block; width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.art-feat__pill { position: absolute; top: 20px; left: 20px; background: var(--art-yellow); color: var(--art-navy); font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.art-feat__body { padding: 38px 40px 36px; }
.art-feat__meta { display: flex; flex-wrap: wrap; gap: 14px; font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--art-meta); margin: 0 0 14px; }
.art-feat__topic { color: var(--art-blue); }
.art-feat__topic:empty { display: none; }
.art-feat__title { font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: clamp(26px, 3.1vw, 36px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 14px; text-wrap: balance; }
.art-feat__title a { color: var(--art-navy); text-decoration: none; }
.art-feat__title a:hover { color: var(--art-blue); }
.art-feat__dek { font-size: 17px; line-height: 1.55; color: var(--art-muted); margin: 0 0 24px; text-wrap: pretty; }
.art-feat__cta { margin: 0; }

/* --- Grid heading ---------------------------------------------------------- */
.art-gridhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin: 44px 0 26px; }
.art-sec--more .art-gridhead { margin-top: 0; }
.art-count { font-size: 15px; color: var(--art-meta); margin: 0; }
.art-all { font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 15px; color: var(--art-blue); text-decoration: none; }
.art-all:hover { color: var(--art-navy); }

/* --- Card grid ------------------------------------------------------------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.art-sec--more .art-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.art-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--art-line); border-top: 4px solid var(--art-accent); border-radius: 14px; padding: 26px 26px 24px; box-shadow: 0 10px 28px rgba(30,45,59,.05); }
.art-sec--more .art-card { background: var(--art-wash); padding: 24px 24px 22px; }
.art-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30,45,59,.12); border-color: #cfe0ee; border-top-color: var(--art-accent); }
.art-card[hidden] { display: none; }

/* Topic accent. The only topic signal besides the label, and what gives the grid
   its rhythm. The fourth bucket is Ryan's, 2026-09-21; navy is the palette's
   administrative tone and is distinct from the design's other three. */
.art-card[data-topic="Prevention"]            { --art-accent: #0072bc; }
.art-card[data-topic="Claims & recovery"]     { --art-accent: #ffd240; }
.art-card[data-topic="Physicals & testing"]   { --art-accent: #80b7e3; }
.art-card[data-topic="Compliance & programs"] { --art-accent: #1e2d3b; }

.art-card__meta { font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--art-blue); margin: 0 0 12px; }
.art-card__meta:empty { display: none; }
.art-card__title { font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.2; margin: 0 0 10px; text-wrap: balance; }
.art-sec--more .art-card__title { font-size: 21px; }
.art-card__title a { color: var(--art-navy); text-decoration: none; }
.art-card__title a:hover { color: var(--art-blue); }
.art-card__dek { font-size: 16px; line-height: 1.55; color: var(--art-muted); margin: 0 0 18px; text-wrap: pretty; }
.art-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--art-line-soft); }
.art-card__date { font-size: 14px; color: var(--art-meta); }
.art-card__more { font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 15px; color: var(--art-blue); }

/* --- Article body layout --------------------------------------------------- */
.art-sec--body { padding: 56px 0 72px; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 56px; align-items: start; }
.art-main { min-width: 0; max-width: 760px; }
.art-body { min-width: 0; }
.art-body > p:first-child { font-size: 20px; line-height: 1.6; color: var(--art-navy); margin: 0 0 32px; padding-left: 20px; border-left: 4px solid var(--art-blue); text-wrap: pretty; }
.art-body h2 { font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -.015em; margin: 36px 0 6px; scroll-margin-top: 90px; }
.art-body h3 { font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: 20px; line-height: 1.25; margin: 26px 0 6px; scroll-margin-top: 90px; }
.art-body p, .art-body li { font-size: 17px; line-height: 1.7; color: var(--art-muted); }
.art-body img { max-width: 100%; height: auto; border-radius: 12px; }

/* --- FAQ ------------------------------------------------------------------- */
.art-faq { margin-top: 44px; }
/* An article with no faq-migx rows renders the container but no rows: collapse it
   rather than leaving a stranded heading. */
.art-faq:not(:has(.art-faq__item)) { display: none; }
.art-faq .art-h2 { margin-bottom: 18px; }
.art-faq__list { display: flex; flex-direction: column; gap: 10px; }
.art-faq__item { background: #fff; border: 1px solid var(--art-line); border-radius: 12px; padding: 0 22px; }
.art-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 18px; color: var(--art-navy); list-style: none; cursor: pointer; }
.art-faq__q::-webkit-details-marker { display: none; }
.art-faq__plus { flex: none; font-size: 22px; color: var(--art-blue); transition: transform .2s ease; }
.art-faq__item[open] .art-faq__plus { transform: rotate(45deg); }
.art-faq__a { padding: 0 0 20px; max-width: 62ch; }
.art-faq__a, .art-faq__a p { font-size: 16px; line-height: 1.65; color: var(--art-muted); margin: 0; }

/* --- Aside ----------------------------------------------------------------- */
.art-aside { position: sticky; top: 34px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.art-toc { background: #fff; border: 1px solid var(--art-line); border-radius: 14px; padding: 22px 22px 18px; }
.art-toc[hidden] { display: none; }
.art-toc__title { font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--art-meta); margin: 0 0 14px; }
.art-toc__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.art-toc__list a { display: block; padding: 8px 0; font-size: 15px; line-height: 1.4; color: var(--art-navy); text-decoration: none; border-bottom: 1px solid var(--art-line-soft); }
.art-toc__list li:last-child a { border-bottom: 0; }
.art-toc__list a:hover { color: var(--art-blue); }

.art-aside-cta { background: var(--art-navy); color: #fff; border-radius: 14px; padding: 22px 22px 20px; }
.art-aside-cta__kicker { font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--art-yellow); margin: 0 0 10px; }
.art-aside-cta__text { font-size: 15px; line-height: 1.55; color: #cfe0ee; margin: 0 0 16px; text-wrap: pretty; }
.art-aside-cta__link { display: inline-flex; align-items: center; gap: 8px; font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 15px; color: var(--art-yellow); text-decoration: none; }
.art-aside-cta__link:hover { color: #fff; }

.art-share { background: #fff; border: 1px solid var(--art-line); border-radius: 14px; padding: 20px 22px; }
.art-share__title { font-family: 'Catamaran', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--art-meta); margin: 0 0 12px; }
.art-share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.art-share__btn { font-family: 'Catamaran', sans-serif; font-weight: 700; font-size: 14px; color: var(--art-navy); text-decoration: none; border: 1px solid #dbe5ec; border-radius: 8px; padding: 8px 14px; }
.art-share__btn:hover { border-color: var(--art-blue); color: var(--art-blue); }

/* --- Article CTA band ------------------------------------------------------ */
.art-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: var(--art-yellow); border-radius: 18px; padding: 30px 34px; }
.art-cta__text { min-width: 0; flex: 1 1 420px; }
.art-cta .art-h2 { color: var(--art-navy); margin-bottom: 8px; }
.art-cta__lede { font-size: 17px; line-height: 1.55; color: var(--art-navy); margin: 0; text-wrap: pretty; }
.art-cta__act { margin: 0; }
.art-cta .art-btn { background: var(--art-navy); }
.art-cta .art-btn:hover { background: #16222d; box-shadow: 0 10px 24px rgba(30,45,59,.3); }

/* --- Responsive ------------------------------------------------------------
   The design is intrinsic (auto-fit / auto-fill + clamp) everywhere except the
   article's two-column split, which the design itself breaks at 900px. */
@media (max-width: 900px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .art-aside { position: static; }
  .art-main { max-width: none; }
}
@media (max-width: 740px) {
  .art-feat__body { padding: 28px 24px 26px; }
  .art-feat__media, .art-feat__img { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .art *, .art *::before, .art *::after { animation: none !important; transition: none !important; }
  .art-card:hover, .art-btn:hover { transform: none; }
}

/* --- Button colour, restated at matching specificity -----------------------
   `.art a { color: var(--art-blue) }` is (0,1,1) and beats `.art-btn` (0,1,0),
   so every .art-btn inside .art rendered blue text on a blue fill — a 1:1
   contrast ratio, label invisible. Found on the live featured card 2026-10-05.
   The detail page's CTA band uses the same class and is only unaffected today
   because its cta-one-* TVs are empty on all 27 articles.
   Scoped to the anchor so it cannot leak to other components. */
.art a.art-btn,
.art a.art-btn:hover,
.art a.art-btn:focus { color: #fff; }

/* --- Card hit area ---------------------------------------------------------
   "Read more →" is a decorative <span>, not an anchor. That was deliberate: the
   design puts the link on the title ("titles are the links, no click here"), and
   a second anchor to the same URL is duplicate link text for a screen reader.
   But it renders Catamaran 700 in link blue, so it reads as a control — and a
   control that does nothing is worse than no control. Reported on the live
   Keep reading row 2026-10-06; identical on the articles/ index grid.

   Fixed by stretching the TITLE's anchor over the whole card rather than by
   adding a second one. One link per card, the whole card becomes the hit area,
   and "Read more" sits under it. Safe here because the card has exactly one
   anchor — nothing gets shadowed. The featured card is untouched: it is .art-feat
   and already has a real button.

   Trade-off: an overlay makes the dek unselectable. Accepted for a card grid.
   Focus is NOT suppressed — the title keeps its native ring, so keyboard users
   still see where they are. */
.art-card { position: relative; }
.art-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
