/* Why Use STPA? only (2026-11-05): styled like About STAMP and STPA in Depth, and the
   same look as Why Use CAST? (why-use-cast.css, wuc-), which was restyled the same day.
   The shared Why Use rules are in why-use.css; the overview, banner links and the
   "STPA in Depth" card borrow About STAMP's as- classes (about-stamp.css).
   An eyebrow over each part's heading, and the three benefits as numbered cards that
   jump to their evidence. */
.wus-page .prose .eyebrow { margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
.wus-page .prose .eyebrow + h2, .wus-page .prose .eyebrow + h3 { margin-top: 0; }
/* The three benefits: tall cards with a steel top edge, a large number and the benefit in the
   heading font, so they read as the part's main points (owner: the first version faded into the page). */
.wus-page ol.wus-reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0 8px; padding: 0; list-style: none; }
.wus-page .wus-reasons li { margin: 0; }
.wus-page .wus-reasons a { display: flex; flex-direction: column; height: 100%; min-height: 210px; padding: 24px 26px 22px; border: 1px solid var(--line); border-top: 5px solid var(--steel); border-radius: 14px; background: #fff; box-shadow: var(--shadow); color: var(--navy-text); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.wus-page .wus-reasons a:hover { transform: translateY(-2px); border-top-color: var(--navy-btn); box-shadow: 0 10px 28px rgb(20 32 56 / 12%); }
.wus-page .wus-reason-num { font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1; color: var(--steel); }
.wus-page .wus-reason-text { flex: 1; margin: 14px 0 18px; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.3; }
.wus-page .wus-reason-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--steel-text); }
.wus-page .wus-reason-more .icon { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .wus-page .wus-reasons a { transition: none; } .wus-page .wus-reasons a:hover { transform: none; } }

/* Case studies: the strongest in each group open as cards; the rest behind a "Show N more" button
   (a label for a hidden checkbox, so no script). */
.wus-page .wus-cases { display: grid; gap: 16px; margin: 20px 0 0; }
.wus-page .wus-case { padding: 24px 28px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.wus-page .prose .wus-case h4 { margin: 0 0 12px; font-family: var(--font-head); font-size: 20px; line-height: 1.35; color: var(--navy-text); }
.wus-page .prose .wus-case p, .wus-page .prose .wus-case li { font-size: 16px; }
.wus-page .prose .wus-case .wu-source { margin-bottom: 0; }
.wus-page .wus-more-cases { margin-top: 18px; text-align: center; }
.wus-page .prose .wus-more-list { margin: 0 0 18px; text-align: left; }
.wus-more-toggle:not(:checked) ~ .wus-more-list { display: none; }
.wus-more-toggle:checked ~ .wus-more-btn .wus-more-show,
.wus-more-toggle:not(:checked) ~ .wus-more-btn .wus-more-hide { display: none; }
.wus-more-toggle:focus-visible ~ .wus-more-btn { outline: 3px solid var(--steel); outline-offset: 2px; }
.wus-page .wus-more-btn { cursor: pointer; }
.wus-page .wus-reason-head { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.wus-page .prose .wus-reason-head h3 { margin: 0 0 8px; font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 26px); font-weight: 700; line-height: 1.3; }
/* Pointer to further reading after a group of case studies: a light tinted strip with a book icon,
   so it reads as "go deeper elsewhere", not as one more case study or as part of the Show more button.
   The whole strip is clickable. */
.wus-page .prose .wus-pagelink { position: relative; display: flex; align-items: center; gap: 14px; margin: 32px 0 0; padding: 14px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint); transition: border-color .15s, background-color .15s; }
.wus-page .wus-pagelink .icon-tile { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--steel-soft); color: var(--steel); font-size: 18px; }
.wus-page .prose .wus-pagelink a { text-decoration: none; }
.wus-page .wus-pagelink a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wus-page .wus-pagelink:hover { border-color: #b9d3ee; background: var(--steel-soft); }
.wus-page .wus-pagelink:focus-within { outline: 3px solid var(--steel); outline-offset: 2px; }
.wus-page .wus-pagelink a:focus-visible { outline: none; }
.wus-page .wus-deeper { max-width: 1024px; }
.wus-page .prose .wus-deeper h3 { margin: 0 0 6px; color: #fff; font-family: var(--font-head); font-size: 26px; }
.wus-page .prose .wus-deeper p { color: inherit; }
.wus-page .prose .wus-deeper .btn { text-decoration: none; }
@media (max-width: 900px) {
  .wus-page ol.wus-reasons { grid-template-columns: 1fr; gap: 12px; }
  .wus-page .wus-reasons a { display: grid; grid-template-columns: 30px 1fr; column-gap: 18px; min-height: 0; padding: 18px 20px; }
  .wus-page .wus-reason-num { grid-row: span 2; font-size: 38px; }
  .wus-page .wus-reason-text { margin: 0 0 8px; font-size: 20px; }
}
@media (max-width: 760px) {
  .wus-page .wus-reason-head { margin-top: 44px; }
  .wus-page .wus-case { padding: 20px 18px 14px; }
}

/* Banner: two quiet prompts side by side, "New to STPA?" and "Briefing your leadership?" */
.wus-hero-paths { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 48px; }

/* Part 1: headline numbers above the evidence table. */
.wus-page .wus-stats { grid-template-columns: repeat(4, 1fr); margin: 0 0 32px; }
.wus-page .prose .wus-stats-intro { margin: 0 0 18px; font-size: 17px; text-wrap: pretty; }
.wus-page .wus-stats .stat-tile { background: #fff; }
.wus-page .wus-stats .stat-tile-label { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text); }

/* Part 2: STPA's effort against the traditional analysis of the same system, one row per study. */
.wus-page .wus-effort { margin: 8px 0 32px; padding: 28px 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.wus-page .prose .wus-effort-title { margin: 0 0 6px; text-wrap: balance; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--navy-text); }
.wus-page .prose .wus-effort-key { display: flex; gap: 20px; margin: 0 0 18px; font-size: 14px; }
.wus-effort-key span { display: inline-flex; align-items: center; gap: 8px; }
.wus-effort-key i { display: inline-block; width: 22px; height: 12px; border-radius: 3px; }
.wus-key-trad { background: #c9d3e0; }
.wus-key-stpa { background: #2f6fb5; }
.wus-page .prose ol.wus-effort-rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.wus-page .prose .wus-effort-rows li { display: grid; grid-template-columns: 230px 1fr 250px; align-items: center; gap: 16px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.wus-effort-name { color: var(--navy-text); }
.wus-effort-name strong { display: block; font-size: 15px; }
.wus-effort-bar { position: relative; display: block; height: 14px; border-radius: 4px; background: #c9d3e0; }
.wus-effort-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 4px 0 0 4px; background: #2f6fb5; box-shadow: 2px 0 0 #fff; }
.wus-effort-nobar { height: auto; background: none; font-size: 13px; font-style: italic; color: #56687f; }
.wus-effort-val { color: var(--text); }
.wus-page .prose .wus-effort figcaption { margin-top: 14px; font-size: 14px; line-height: 1.55; text-align: left; text-wrap: pretty; }

/* Part 5: the two offers side by side. */
.wus-page .wus-brief { margin-top: 24px; }
.wus-brief-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.wus-page .prose .wus-brief-card h3 { margin: 20px 0 10px; font-family: var(--font-head); font-size: 22px; }
.wus-page .prose .wus-brief-card p { margin: 0 0 20px; font-size: 16px; }
.wus-page .prose .wus-brief-card .btn { margin-top: auto; text-decoration: none; }

@media (max-width: 1100px) {
  .wus-page .wus-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wus-hero-paths { flex-direction: column; align-items: center; }
  .wus-page .wus-effort { padding: 20px 18px 18px; }
  .wus-page .prose .wus-effort-rows li { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .wus-page .wus-brief-card { padding: 22px 20px; }
  .wus-page .prose .wus-brief-card .btn { align-self: stretch; }
}
@media (max-width: 760px) {
  .wus-page .wus-stats { gap: 10px; }
  .wus-page .wus-stats .stat-tile { padding: 16px 14px; }
  .wus-page .wus-stats .stat-tile-number { font-size: 28px; }
  .wus-page .wus-stats .stat-tile-label { font-size: 13px; line-height: 1.45; }
}


/* ---- Dark mode, generated by tools/darkmode.py when the site is built. Don't edit this part in site/; change the light rule in src/, or add a hand-written dark rule. ---- */
@media (prefers-color-scheme: dark) {
  .wus-page .wus-reasons a { border-top-color: #4892dc; background-color: #111620; }
  .wus-page .wus-reasons a:hover { border-top-color: #8ba5d4; box-shadow: 0 10px 28px rgb(0 0 0 / 46%); }
  .wus-page .wus-reason-num { color: #7ebaf9; }
  .wus-page .wus-case { background-color: #111620; }
  .wus-more-toggle:focus-visible ~ .wus-more-btn { outline-color: #4892dc; }
  .wus-page .wus-pagelink .icon-tile { color: #7ebaf9; }
  .wus-page .wus-pagelink:hover { border-color: #334353; }
  .wus-page .wus-pagelink:focus-within { outline-color: #4892dc; }
  .wus-page .prose .wus-deeper h3 { color: #ffffff; }
  .wus-page .wus-stats .stat-tile { background-color: #111620; }
  .wus-page .wus-effort { background-color: #111620; }
  .wus-key-trad { background-color: #353b43; }
  .wus-key-stpa { background-color: #2f6fb5; }
  .wus-effort-bar { background-color: #353b43; }
  .wus-effort-bar > span { background-color: #2f6fb5; box-shadow: 2px 0 0 #000000; }
  .wus-effort-nobar { color: #b1c5df; }
}
