/* Custom page-scroll rail removed (24 Nov SPI-18). The browser's native page scrollbar is used instead. */
html { scrollbar-gutter: auto; }
body { box-sizing:border-box; }
/* Border on content-box images (start-here, industry photos) must not add 2px of page overflow now the rail gutter is gone. */
img { box-sizing: border-box; max-width: 100%; }

/* Phone typography, alignment, and thinner scrollbar (23 Nov 2026 preview). Desktop unchanged. */
@media (max-width: 640px) {
  /* 90% of the 17px root used between 601px and 820px. */
  html { font-size: 15.3px !important; }

  /* Leftover px type that would not follow the rem root (homepage phases strip, captions). */
  .phased h2 { font-size: 30.6px !important; }
  .phased .wp h3 { font-size: 20.7px !important; }
  .phased .wp p { font-size: 13.5px !important; }
  .phased .apps p,
  .phased .phased-cta p { font-size: 14.4px !important; }
  .phased .phased-cta h3 { font-size: 23.4px !important; }
  .phased .phased-cta form.ltf-form button { font-size: 14.4px !important; }
  .phased .eyebrow,
  .phased .codes,
  .phased .apps p.eyebrow,
  .phased-more,
  .yt-clip figcaption,
  .exp-cap figcaption { font-size: 11.7px !important; }
  .phased .wp .ph,
  .sm figcaption { font-size: 10.8px !important; }
  .phased .wp .st,
  .phased .fine,
  .exp-photo figcaption { font-size: 9.9px !important; }
  .exp-pair .ba .l { font-size: 9px !important; }

  /* Keep form fields at 16px so iOS does not zoom on focus. */
  input, select, textarea,
  .phased .phased-cta form.ltf-form input { font-size: 16px !important; }

  /* Tap targets at least 44px. */
  .btn,
  button,
  .flt button,
  .ind-bar button,
  nav .links a,
  .phased .phased-cta form.ltf-form button,
  input, select, textarea {
    min-height: 44px;
  }
  nav .links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  nav .links a.soc-ico {
    width: 44px;
    height: 44px;
    box-sizing: border-box;
  }
  .chk input {
    width: auto;
    min-width: 20px;
    min-height: 20px;
  }
  .chk label {
    min-height: 44px;
    display: flex;
    align-items: flex-start;
    text-align: left;
  }

  /* Centre headings, mono/eyebrow labels, taglines, short lines, buttons and nav. */
  h1, h2, h3, h4, h5, h6,
  .l, .eyebrow, .hero-tag, .ph, .draft, .meta, .codes, .fine, .phased-more,
  nav, nav .links, footer,
  .btn, button,
  .chips, .flt, .ind-bar,
  figcaption,
  .card .code,
  .stats b,
  label {
    text-align: center;
  }
  nav {
    justify-content: center;
    text-align: center;
  }
  nav .logo {
    margin-left: auto;
    margin-right: auto;
  }
  nav .links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  nav .links a { margin-left: 8px; margin-right: 8px; }
  .hero .btn, .hero .btn.p,
  .cta .btn, .wl .btn {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  #site-search {
    margin-left: auto;
    margin-right: auto;
  }

  /* Short hero supporting lines (one or two lines, plus the CTA under the button). */
  .hero p.mut,
  .hero p:has(> a) {
    text-align: center;
    font-size: 12.6px !important;
  }
  .hero p:has(> a) { font-size: inherit !important; }

  /* Long body paragraphs (about 3+ lines on a 412px phone) stay left-aligned. */
  p, li, dd, blockquote,
  .hero-sub,
  .card p,
  .mut,
  .phased .wp p,
  .phased .apps p,
  .phased .phased-cta p,
  article p, article li,
  .story p, .story li {
    text-align: left;
  }
  /* Short labelled lines that happen to be paragraphs. */
  p.l, p.eyebrow, p.hero-tag, p.ph, p.meta, p.fine, p.codes,
  .card p.l, .phased .apps p.eyebrow {
    text-align: center;
  }

  /* Forms stay usable: fields and checkbox rows left, short labels above fields centred. */
  input, select, textarea,
  .chk, .chk label {
    text-align: left;
  }
  form > label, .ltf-form > label, label.l, #site-search label {
    text-align: center;
  }

  table, th, td { text-align: left; }

}

/* Phones at or under 600px currently use mobile.css's 16px root; scale that by 90%. */
@media (max-width: 600px) {
  html { font-size: 14.4px !important; }
}

/* Header logo 1.5× more prominent (23 Nov 2026 preview). */
nav .logo a img {
  height: 57px !important;
  max-width: min(300px, 72vw) !important;
}
@media (max-width: 420px) {
  nav .logo a img { height: 48px !important; }
}
@media (max-width: 360px) {
  nav .logo a img { height: 45px !important; }
}



/* Hangar threat lists use .chk as a stack of .thr rows — they must not become a nowrap flex row. */
.chk:has(.thr) {
  display: block;
  flex-wrap: unset;
  align-items: stretch;
  gap: 0;
}

/* Privacy / waitlist checkboxes: input beside a wrapping label (not flex children for each word/link). */
.chk {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}
.chk > input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0.2em 0 0;
}
.chk > label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: break-word;
  white-space: normal !important;
}
.chk > label a { display: inline; white-space: normal; }
.chk .thr { display: block; max-width: 100%; min-width: 0; }
.chk .thr > label {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  min-width: 0;
  width: 100%;
  text-transform: none;
  letter-spacing: 0;
  font-size: .85rem;
  color: var(--muted);
}
.chk .thr > label > input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0.2em 0 0;
}

/* 24 Nov 2026 phone layout: use the width, wrap testimonials, Kit form tidy support. */
@media (max-width: 640px) {
  html, body { max-width: 100%; }
  html { scrollbar-gutter: auto !important; }
  body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .w {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
  main, .w main, .w > main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .card, .news, .bc, .wl, .phased-cta, blockquote, .journey .card,
  form.ltf-form, #crm-waitlist, .exp, .exp-photo, #dispatch .news {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .news, #dispatch .news, .phased-cta {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  .card ul, .card ol, .news ul, .news ol {
    padding-left: 1.15em !important;
    margin-left: 0;
  }
  #testimonials > div,
  #testimonials > div[style*="grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  #testimonials blockquote,
  #testimonials .card,
  #testimonials p,
  #testimonials footer,
  #testimonials cite {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal !important;
    box-sizing: border-box;
  }
  .formkit-form,
  .kit-embed .formkit-form {
    overflow: visible !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .formkit-form .formkit-fields,
  .formkit-form .formkit-field,
  .formkit-form .formkit-submit,
  .formkit-guarantee,
  .formkit-guarantee p {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .formkit-form .formkit-field,
  .formkit-form .formkit-submit {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  .formkit-form .formkit-submit,
  .formkit-form button,
  button.btn, a.btn, .btn { min-height: 44px; }
  input, select, textarea { max-width: 100%; box-sizing: border-box; }
}

/* Real-phone layout: stop mid-word breaks and right-edge overflow when system text is larger (24 Nov SPI-18). */
@media (max-width: 640px) {
  html {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
  p, li, dd, td, a, h1, h2, h3, h4, h5, h6, figcaption, code, span, label,
  button, .btn, .card, .mut, .trig, .l, .badge, .st, .codes {
    overflow-wrap: break-word !important;
    word-break: normal !important;
    word-wrap: break-word;
    max-width: 100%;
  }
  h1, .hero h1 {
    font-size: clamp(1.55rem, 6.8vw, 1.9rem) !important;
    max-width: 100%;
  }
  .phased {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }
  .phased h2 span,
  .phased .codes,
  .badge-note .src,
  .stop .badge {
    white-space: normal !important;
  }
  .btn, button, .st, .badge {
    box-sizing: border-box;
    white-space: normal;
    max-width: 100%;
  }
  .cols, .threats {
    grid-template-columns: 1fr !important;
  }
  .card, .news, .bc, .wl, .grid, .g2, .g3, .g4, .w, section, main, footer {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Oppo / large display-size can report 700–900px CSS width and get desktop 2–4 column grids (24 Nov SPI-18b). Screen only, so the A4 checklist keeps its print columns. Desktop above 900px is unchanged. */
@media screen and (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
  .hero,
  .g2, .g3, .g4,
  .stats,
  .story,
  .home-clips,
  .phased-head,
  .phased .fp,
  .phased .phased-cta,
  .exp-pair .ba-row,
  .cols,
  .threats,
  .hangar-grid,
  .v-roadmap,
  .lessons,
  .weekly {
    grid-template-columns: 1fr !important;
  }
  /* Testimonials and “For me / For my team” use an inline auto-fit grid that beats a class rule. */
  [style*="minmax(260px"] {
    grid-template-columns: 1fr !important;
  }
  /* .exp-cap spans 2 columns by default; that creates a skinny implicit track once .g3 is one column. */
  .exp-cap { grid-column: auto !important; }
  #dispatch .news, .news {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }
  #dispatch .news > *, .news > * {
    flex: 1 1 auto !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Vision / long-form: stack short amber codes above headings so body text can use the full width. */
  .v-pl,
  .v-cmd li {
    grid-template-columns: 1fr !important;
    gap: 0.2em 0 !important;
  }
  .v-code,
  .v-cmd .k { padding-top: 0 !important; }

  /* Tighten default list indent (~40–80px) so bullets sit close to the left edge. */
  .vision ul, .vision ol, .v-steps,
  .hack ul, .hack ol,
  main ul, main ol,
  article ul, article ol,
  .w > ul, .w > ol, .w section ul, .w section ol {
    padding-left: 1.2em !important;
    margin-left: 0 !important;
  }

  p, li, dd {
    line-height: 1.5 !important;
  }
  .vision > p {
    margin-bottom: 0.65em !important;
  }

  /* Start here timeline: the 32% year column squeezes the story on a phone. */
  .tl { width: 100% !important; max-width: 100%; table-layout: fixed; box-sizing: border-box; }
  .tl tr { display: block; margin: 0 0 0.7em; }
  .tl td, .tl th, .tl tbody th {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 0 !important;
  }
  .tl td:first-child, .tl tbody th:first-child {
    width: auto !important;
    max-width: 100% !important;
    padding-bottom: 2px;
    border-bottom: 0;
  }

  /* Footer links wrap more tightly. Leave the print checklist footer alone. */
  footer:has(.soc-icons),
  .sitefoot {
    line-height: 1.55 !important;
    padding-top: 24px;
    padding-bottom: 32px;
    text-align: center;
  }
  footer:has(.soc-icons) .w a,
  .sitefoot a {
    margin: 0 7px 2px;
    display: inline-block;
  }

  /* FOLLOW on its own centred line; five 40px icons in one centred row underneath. */
  footer .soc-icons,
  .sitefoot .soc-icons,
  footer .soc.soc-icons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100%;
    margin-top: 12px !important;
    line-height: 1.2 !important;
  }
  footer .soc-icons .l,
  .sitefoot .soc-icons .l {
    flex: 1 0 100%;
    margin: 0 0 2px !important;
    text-align: center;
  }
  footer .soc-icons a.soc-ico,
  .sitefoot .soc-icons a.soc-ico {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    flex: 0 0 40px;
    box-sizing: border-box;
  }
  footer .soc-icons a.soc-ico svg,
  .sitefoot .soc-icons a.soc-ico svg {
    width: 18px;
    height: 18px;
  }

  /* Hangar checklist builder: full-width fields and stacked threat rows (24 Nov SPI-18). */
  #hangar form#bf.card,
  #hangar form.card,
  form#bf.card {
    padding: 12px !important;
  }
  #hangar form#bf > label,
  #hangar form.card > label,
  form#bf > label {
    text-align: left !important;
    letter-spacing: .06em !important;
    margin: 10px 0 4px !important;
  }
  #hangar input:not([type="checkbox"]):not([type="radio"]),
  #hangar select,
  #hangar textarea,
  form#bf input:not([type="checkbox"]):not([type="radio"]),
  form#bf select,
  form#bf textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-indent: 0 !important;
    line-height: 1.35 !important;
    padding: 8px 10px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #hangar select,
  form#bf select,
  select.task-sel {
    font-family: "IBM Plex Mono", monospace !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    padding: 8px 32px 8px 10px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: var(--bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffb000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
  }
  .chk:has(.thr) {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100%;
  }
  .chk .thr,
  .chk:has(.thr) > .thr {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
  .chk .thr > label {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  #hangar .chk input[type="checkbox"],
  form#bf .chk input[type="checkbox"],
  .chk .thr > label > input[type="checkbox"] {
    display: inline-block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    margin: 0.15em 0 0 !important;
    padding: 0 !important;
    appearance: auto;
    -webkit-appearance: checkbox;
  }
  .chk .thr .trig {
    display: block !important;
    margin: 2px 0 0 30px !important;
    max-width: calc(100% - 30px) !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    letter-spacing: 0 !important;
    line-height: 1.45 !important;
  }

  /* Hangar builder actions + generated briefing card (24 Nov SPI-18). */
  #hangar .bf-actions,
  form#bf .bf-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 14px 0 4px !important;
  }
  #hangar .bf-actions .btn,
  form#bf .bf-actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    width: 11.6em !important;
    min-width: 11.6em !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }
  #hangar .bf-actions #b-msg,
  form#bf .bf-actions #b-msg {
    flex: 1 0 100%;
    text-align: center !important;
    margin: 2px 0 0 !important;
  }

  #card.bc,
  .bc#card {
    padding: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100%;
  }
  #card.bc > .l:first-child,
  #card > .l:first-child {
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
    text-align: center !important;
    max-width: 100% !important;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3 !important;
  }
  #card ul,
  #card ol,
  .bc ul,
  .bc ol {
    padding-left: 1.2em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #card li,
  .bc li {
    padding-left: 0 !important;
    margin-left: 0 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  a[href*="crm-preflight-checklist"],
  a.nowrap {
    white-space: nowrap !important;
  }

  footer:has(.soc-icons) .w a,
  .sitefoot a {
    white-space: nowrap;
  }
}


/* SPI-19 7-day challenge: compact overview rows and day-page pager. */
.ch-days {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 22px;
  max-width: 100%;
}
a.ch-day {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  column-gap: 14px;
  row-gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  background: var(--panel);
  text-decoration: none;
  color: var(--txt);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
a.ch-day .ch-num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--amber);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  grid-row: span 2;
  align-self: start;
  padding-top: 2px;
  white-space: nowrap;
}
a.ch-day h3 {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
a.ch-day h3 .ch-code,
a.ch-day h3 .ch-pillar {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-right: .7em;
}
a.ch-day p {
  margin: 0;
  color: var(--mut);
  font-size: .95rem;
  line-height: 1.4;
  grid-column: 2;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
a.ch-day:hover h3,
a.ch-day:focus-visible h3 { color: var(--amber-pale, #ffd98a); }

.day-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 32px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 100%;
}
.day-pager .btn {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  margin: 0;
}
.day-pager .btn-ghost {
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
  min-width: 8em;
}
.day-pager .day-overview {
  flex: 1 0 100%;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
}
.ch-week { padding-left: 1.2em; margin: 8px 0 0; }
.ch-week li { margin: 4px 0; overflow-wrap: break-word; }

@media screen and (max-width: 900px) {
  a.ch-day { padding: 12px; }
  .day-pager .btn {
    flex: 1 1 10em;
  }
  .day-pager .btn-ghost { display: none; }
}
@media screen and (max-width: 500px) {
  a.ch-day {
    grid-template-columns: 1fr;
  }
  a.ch-day .ch-num {
    grid-row: auto;
    font-size: .92rem;
  }
}

/* SPI-20 (24 Nov 2026): text-block cards run nearly full width on phones and tablets.
   Page gutter 12–16px, card padding ~14–16px, icons above headings, headings wrap between whole words only. Desktop above 900px unchanged. */
@media screen and (max-width: 900px) {
  /* Long-form pages whose <main> is the outer wrapper (start-here, industries, privacy) had 0px gutter at ≤640 or 28–70px at 700–900. */
  body > main {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }
  body:has(> main) { margin: 0 !important; }
  main.hack, main.challenge-day, main.challenge-overview {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Every text-block card: full column width, modest padding. */
  .card, blockquote.card, .wl, .bc, .news, a.ch-day, .v-roadmap > *, .phased .apps, .phased .phased-cta {
    width: auto;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  .grid > .card, .g2 > *, .g3 > *, .g4 > * { width: 100%; justify-self: stretch; }

  /* Shared page gutter: 14px on both .w shells and long-form mains, including 641–900px (was only ≤640 or 24–70px). */
  .w, .w.art {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  /* Homepage phase timeline: the rail used ~70px of the left side. Slimmer rail, cards take the rest. */
  .phased { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; box-sizing: border-box !important; }
  /* .phased already sits inside the page .w gutter — do not add a second 14px. */
  .phased .w { padding-left: 0 !important; padding-right: 0 !important; }
  .phased .fp { padding-left: 0 !important; margin-left: 0 !important; }
  .phased .wp { padding-left: 26px !important; }
  .phased .wp .dot { width: 16px !important; height: 16px !important; left: 0 !important; top: 18px !important; }
  .phased .fp::before { left: 7px !important; }
  .phased .fp::after { left: 6px !important; }

  /* Icons sit above the heading instead of squeezing it into a side column. */
  .card > :is(svg, img, .ico, .icon, .emoji):first-child {
    display: block;
    margin: 0 auto 8px;
  }
  .card :is(.card-head, .head, .title-row) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  /* Headings wrap between whole words; never split mid-word, never clip. Long words shrink a little instead. */
  h1, h2, h3, h4, .card h3, .card h2, .card .code, .card .l {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: manual !important;
    -webkit-hyphens: manual !important;
    white-space: normal;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    text-wrap: balance;
  }
  .card h3, .phased .wp h3 { font-size: clamp(1.05rem, 4.9vw, 1.35rem) !important; }
  .card p, .card li { overflow-wrap: break-word; word-break: normal; }
}

/* Narrowest phones (≤380px or big system text): slightly smaller card headings so long single words fit. */
@media screen and (max-width: 380px) {
  .card h3, .phased .wp h3 { font-size: 1.02rem !important; }
  body > main { padding-left: 12px !important; padding-right: 12px !important; }
}
