/* AI & ERP Insights — article and hub styles.
   Extends styles.css; defines nothing that already exists there.
   All colour comes from the existing :root tokens so the hub cannot drift
   away from the rest of the site. */

.article-wrap{max-width:1180px;margin:0 auto;padding:0 24px;--measure:72ch}

/* One reading column, centred under the full-width hero. The hero and the
   related-articles grid are allowed to run wider; everything you actually read
   sits on the same measure. */
.crumbs,.article-head,.article-body,.article-cta,.faq{max-width:var(--measure);margin-left:auto;margin-right:auto}

/* Breadcrumb -------------------------------------------------------- */
.crumbs{font-size:.85rem;color:var(--muted);padding:26px 0 0}
.crumbs a{color:var(--muted);text-decoration:none;border-bottom:1px solid transparent}
.crumbs a:hover,.crumbs a:focus{color:var(--blue);border-bottom-color:currentColor}
.crumbs span[aria-current]{color:var(--ink)}
.crumbs .sep{padding:0 .5em;opacity:.5}

/* Article head ------------------------------------------------------ */
.article-head{padding:8px 0 28px}
.article-head h1{margin:.25em 0 .3em;line-height:1.12}
.article-head .lede{font-size:1.16rem;color:var(--muted);margin:0 0 18px;max-width:70ch}
.article-meta{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;font-size:.9rem;color:var(--muted)}
.pill{display:inline-block;padding:5px 12px;border-radius:999px;background:var(--ice);color:var(--navy2);
      font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;text-decoration:none}
a.pill:hover,a.pill:focus{background:var(--blue);color:#fff}

/* Hero -------------------------------------------------------------- */
.article-hero{margin:0 0 40px;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);background:var(--navy)}
/* The banner is a 4:1 band now, not a 16:9 panel. The hub cards still want a
   16:9 crop, so they cover rather than squash it. */
.article-hero img{display:block;width:100%;height:auto;aspect-ratio:40/7}

/* Body -------------------------------------------------------------- */
.article-body{font-size:1.05rem;line-height:1.72}
.article-body h2{margin:2.2em 0 .5em;line-height:1.2;font-size:1.62rem}
.article-body h3{margin:1.8em 0 .4em;font-size:1.16rem}
.article-body h2+p,.article-body h3+p{margin-top:0}
.article-body p{margin:0 0 1.15em}
.article-body ul,.article-body ol{margin:0 0 1.3em;padding-left:1.3em}
.article-body li{margin:.4em 0}
.article-body a{color:var(--blue);text-underline-offset:3px}
.article-body strong{color:var(--ink)}

/* A pulled-out question or principle. Replaces the draft's blockquote
   soup: used only where the line really is the point of the section. */
.article-body .ask{margin:1.5em 0;padding:16px 22px;border-left:4px solid var(--blue);
      background:var(--snow);border-radius:0 12px 12px 0;font-size:1.06rem;color:var(--ink)}

.callout{margin:2em 0;padding:22px 26px;border-radius:18px;background:var(--ice);border:1px solid var(--line)}
.callout .k{display:block;font-size:.74rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
      color:var(--green);margin-bottom:.5em}
.callout p:last-child{margin-bottom:0}

.article-body table{width:100%;border-collapse:collapse;margin:1.7em 0;font-size:.96rem}
.article-body th,.article-body td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.article-body th{background:var(--snow);font-size:.8rem;letter-spacing:.05em;text-transform:uppercase;color:var(--navy2)}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}

.article-body code{background:var(--snow);border:1px solid var(--line);border-radius:6px;
      padding:.12em .42em;font-size:.92em}

/* Figures and diagrams ---------------------------------------------- */
.figure{margin:2.2em 0}
.article-body .figure,.article-body .table-scroll{width:min(100%,860px)}
.figure svg{display:block;width:100%;height:auto;border-radius:18px;border:1px solid var(--line);background:#fff}
.figure figcaption{margin-top:.7em;font-size:.88rem;color:var(--muted)}

/* CTA --------------------------------------------------------------- */
.article-cta{margin:3em auto 0;padding:32px;border-radius:var(--radius);background:var(--navy);color:#fff}
.article-cta h2{margin:0 0 .5em;color:#fff;font-size:1.42rem}
.article-cta p{color:#cfe0f2;margin:0 0 1.2em;max-width:62ch}
.article-cta .cta{display:inline-block}

/* FAQ --------------------------------------------------------------- */
.faq{margin:3em auto 0}
.faq h2{margin-bottom:.6em}
.faq details{border-bottom:1px solid var(--line);padding:14px 0}
.faq summary{cursor:pointer;font-weight:700;color:var(--ink);list-style:none;display:flex;
      justify-content:space-between;gap:16px;align-items:baseline}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--blue);font-weight:800;font-size:1.2rem;line-height:1}
.faq details[open] summary::after{content:"\2013"}
.faq details p{margin:.7em 0 0;color:var(--muted)}

/* Cards / related --------------------------------------------------- */
.card-grid{display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));margin:0}
.post-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
      border-radius:var(--radius);overflow:hidden;text-decoration:none;color:inherit;
      transition:transform .18s ease,box-shadow .18s ease}
.post-card:hover,.post-card:focus-within{transform:translateY(-3px);box-shadow:var(--shadow)}
.post-card img{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:cover;background:var(--navy)}
.post-card .body{padding:20px 22px 24px;display:flex;flex-direction:column;gap:8px;flex:1}
.post-card h3{margin:0;font-size:1.08rem;line-height:1.32}
.post-card p{margin:0;color:var(--muted);font-size:.94rem}
.post-card .pill{align-self:flex-start}
.related{margin:3.4em 0 0}

/* Hub --------------------------------------------------------------- */
.hub-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 30px}
.hub-topics{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.hub-topics li{font-size:.82rem;color:var(--navy2);background:var(--ice);border-radius:999px;padding:5px 12px}

@media (max-width:640px){
  .article-body{font-size:1.02rem}
  .article-body h2{font-size:1.38rem}
  .article-cta{padding:24px}
}

/* ══ Run map ═════════════════════════════════════════════════════════════
   The stops in this strip are real anchors into the article, and every H2 it
   points at carries the same number and the same trail-difficulty glyph. That
   is the whole point: a reader should be able to look at a marker in the body
   and know exactly which stop on the map they are standing on.

   Difficulty follows the North American piste convention the rest of the site
   already uses — green circle (easy), blue square (intermediate), black
   diamond (hard) — so it doubles as an honest signal of how heavy a section
   is going to be. */
.runmap{margin:0 0 2.6em;padding:22px 22px 18px;border:1px solid var(--line);
  border-radius:18px;background:linear-gradient(180deg,#fff,var(--snow));
  position:relative;overflow:hidden}
.runmap::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 90% at 90% -10%,var(--accent-wash,rgba(11,95,197,.10)),transparent 60%)}
.runmap-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin:0 0 16px;position:relative;z-index:1}
.runmap-head strong{font-size:.82rem;letter-spacing:.09em;text-transform:uppercase;color:var(--accent,#0b5fc5)}
.runmap-head span{font-size:.85rem;color:var(--muted)}

.runmap ol{list-style:none;display:grid;gap:8px;margin:0;padding:0;position:relative;z-index:1;
  grid-template-columns:repeat(auto-fit,minmax(178px,1fr))}
.runmap li{margin:0}
.runmap a{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;height:100%;
  padding:11px 13px;border-radius:12px;border:1px solid transparent;
  background:rgba(255,255,255,.75);text-decoration:none;color:inherit;
  transition:border-color .15s ease,transform .15s ease,background .15s ease}
.runmap a:hover{border-color:var(--accent,#0b5fc5);transform:translateY(-2px);background:#fff}
.runmap .lbl{font-size:.87rem;font-weight:650;line-height:1.25}

/* Trail marker: the number sits inside the difficulty glyph. */
.marker{display:grid;place-items:center;width:28px;height:28px;flex:none;
  font-size:.76rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1;color:#fff}
.marker.green{background:#4b8b1f;border-radius:50%}
.marker.blue{background:#0b5fc5;border-radius:5px}
.marker.black{background:#101828;rotate:45deg;border-radius:4px}
.marker.black span{rotate:-45deg}

/* The same marker, inline beside a heading in the body. */
.article-body h2{display:flex;align-items:center;gap:12px;scroll-margin-top:96px}
.article-body h2 .marker{width:30px;height:30px;font-size:.8rem}

/* Per-article accent. Each article sets --accent/--accent-wash on .article-wrap,
   so pills, rules and links pick up its colour without any new classes. */
.article-body h2::after{content:"";flex:1;height:1px;min-width:18px;
  background:linear-gradient(90deg,var(--accent,#0b5fc5),transparent)}
.article-head .pill{background:var(--accent-wash,var(--ice));color:var(--accent-ink,var(--navy2))}
.article-body .ask{border-left-color:var(--accent,#0b5fc5)}
.article-body a{color:var(--accent,#0b5fc5)}

@media(max-width:620px){
  .runmap{padding:18px 16px 14px}
  .runmap ol{grid-template-columns:1fr}
}

/* ══ Après ═══════════════════════════════════════════════════════════════
   The lodge-side version of the article: the blunt summary you would
   actually say out loud once the skis are off. Deliberately styled as a warm,
   dark panel so it reads as a different room from the article above it. */
.apres{margin:3.2em 0 0;padding:30px 32px;border-radius:20px;color:#f3f7fb;
  background:linear-gradient(150deg,#10243f 0%,#0a1830 60%,#141d2e 100%);
  position:relative;overflow:hidden}
.apres::before{content:"";position:absolute;inset:auto -20% -60% -20%;height:120%;
  background:radial-gradient(60% 50% at 50% 0,var(--accent-wash,rgba(11,95,197,.28)),transparent 70%);
  pointer-events:none}
.apres > *{position:relative;z-index:1}
.apres .k{display:inline-flex;align-items:center;gap:9px;font-size:.78rem;font-weight:800;
  letter-spacing:.1em;text-transform:uppercase;color:#ffd28a;margin:0 0 12px}
.apres .k svg{width:17px;height:17px}
.apres h2{margin:0 0 10px;font-size:1.35rem;color:#fff;display:block}
.apres h2::after{display:none}
.apres p{margin:0 0 12px;color:#cfe0f0;font-size:1.02rem}
.apres p:last-child{margin-bottom:0}
.apres ul{margin:0;padding-left:1.1em;color:#cfe0f0}
.apres li{margin:0 0 7px}
.apres strong{color:#fff}
@media(max-width:620px){ .apres{padding:24px 20px} }

.hub-tagline{margin:6px 0 14px;font-size:1.12rem;font-weight:700;color:var(--navy2);max-width:62ch}
