/* ASCC project site. Styled after ascconline.org: Lato, the ASCC red, the dark
   concrete band. One stylesheet for every page. */
:root {
  --red: #b6161c;
  --red-deep: #6e0d10;
  --red-soft: #fbeaea;
  --ink: #1f1f1f;
  --text: #3d3d3d;
  --mut: #6f6f6f;
  --line: #e2e2e2;
  --soft: #f5f5f4;
  --card: #ffffff;
  --page: #fbfbfa;
  --char: #121212;
  --ok: #1f7a3a;
  --ok-soft: #e7f4ea;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --info: #1d4f91;
  --info-soft: #e8f0fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.6 Lato, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--red); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; }
h1 { font-weight: 900; font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; text-wrap: balance; }
h2 { font-weight: 900; font-size: 26px; margin: 48px 0 8px; scroll-margin-top: 104px; }
h3 { font-weight: 700; font-size: 19px; margin: 28px 0 6px; scroll-margin-top: 104px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 6px; }
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--soft); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.ui { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Header: the concrete band, logo, and the site's sections. */
.site-header { background: var(--char) url("https://ascconline.org/Portals/ASCC/ThemePluginPro/uploads/2020/11/25/concrete-footer.jpg") center / cover; color: #fff; position: sticky; top: 0; z-index: 10; }
.hd { display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.hd .logo img { height: 40px; width: auto; }
.hd .title { font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #e8e8e8; border-left: 1px solid rgba(255,255,255,.3); padding-left: 16px; }
.nav { border-top: 1px solid rgba(255,255,255,.12); }
.nav ul { list-style: none; margin: 0; padding: 0 16px; display: flex; overflow-x: auto; }
.nav li { margin: 0; }
.nav a { display: block; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a[aria-current="page"] { background: var(--red); }

.page-head { background: #fff; border-bottom: 1px solid var(--line); }
.page-head .wrap { padding: 32px 16px 28px; }
.eyebrow { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; margin-bottom: 12px; }
.lede { font-size: 18px; max-width: 64ch; color: var(--text); margin: 0; }
.asof { font-size: 13px; color: var(--mut); margin-top: 10px; }

main { padding: 8px 0 64px; }

/* Two-column layout with an on-page contents list. */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 110px; align-self: start; padding-top: 40px; font-size: 14px; }
.toc h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; color: var(--text); text-decoration: none; padding: 5px 12px; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--red); }
.toc a.on { color: var(--red); border-left-color: var(--red); font-weight: 700; }
.content { min-width: 0; max-width: 780px; }

/* Cards, callouts, steps. */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 18px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.path { display: block; text-decoration: none; color: var(--text); border-top: 4px solid var(--red); }
.path:hover { border-color: var(--red-deep); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.path strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.path span { font-size: 14px; }
.path em { display: block; font-style: normal; font-size: 13px; color: var(--red); font-weight: 700; margin-top: 8px; }

.callout { border-left: 4px solid var(--red); background: var(--red-soft); padding: 12px 16px; border-radius: 0 4px 4px 0; margin: 16px 0; }
.callout.ok { border-color: var(--ok); background: var(--ok-soft); }
.callout.warn { border-color: #c78a00; background: var(--warn-soft); }
.callout.info { border-color: var(--info); background: var(--info-soft); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--ink); }

.big-idea { background: var(--char); color: #eee; border-radius: 6px; padding: 22px 24px; margin: 28px 0 8px; }
.big-idea strong { color: #fff; font-size: 20px; display: block; margin-bottom: 6px; }
.big-idea p { margin: 0; }

ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 48px; margin: 0; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 15px; }
ol.steps > li::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
ol.steps > li:last-child::after { display: none; }
ol.steps > li > strong:first-child { display: block; color: var(--ink); font-size: 17px; padding-top: 4px; margin-bottom: 4px; }

table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; margin: 12px 0 18px; display: block; overflow-x: auto; }
thead, tbody { display: table; width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); color: var(--ink); font-size: 13px; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.you { background: var(--warn-soft); color: var(--warn); }
.pill.run { background: var(--info-soft); color: var(--info); }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.no { background: var(--red-soft); color: var(--red-deep); }
.pill.mut { background: var(--soft); color: var(--mut); }

.check { list-style: none; padding: 0; }
.check li { padding-left: 30px; position: relative; }
.check li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border: 2px solid var(--red); border-radius: 3px; background: #fff; }

details.faq { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin: 8px 0; }
details.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--ink); }
details.faq > div { padding: 0 16px 12px; }

/* Status + decisions lists. */
.items { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 10px; }
.items > li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin: 0; }
.items h4 { margin: 0 0 4px; font-size: 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.items p { margin: 0; font-size: 15px; }
.items .meta { font-size: 13px; color: var(--mut); margin-top: 6px; }

.timeline { list-style: none; padding: 0; margin: 14px 0 20px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 22px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.now::before { background: var(--red); border-color: var(--red); }
.timeline .when { font-weight: 700; color: var(--ink); }

/* Try it page. */
.tabs { display: flex; border-bottom: 3px solid var(--red); overflow-x: auto; margin-top: 24px; }
.tab { appearance: none; border: 0; background: var(--soft); color: var(--ink); font: 700 14px Lato, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 13px 22px; cursor: pointer; white-space: nowrap; border-right: 1px solid #fff; }
.tab:hover { background: #e8e8e8; }
.tab[aria-selected="true"] { background: var(--red); color: #fff; }
.tab:focus-visible { outline: 3px solid #ed1c24; outline-offset: -3px; }
.panel { border: 1px solid var(--line); border-top: 0; background: #fff; }
.panel[hidden] { display: none; }
.panel .lead { padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--line); background: #fafafa; font-size: 15px; }
.panel iframe { display: block; width: 100%; border: 0; }
.panel .fallback { padding: 10px 18px 14px; font-size: 13px; margin: 0; }

.site-footer { background: var(--char); color: #a9a9a9; font-size: 13px; }
.site-footer .wrap { padding: 20px 16px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: #ddd; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 600px) {
  .hd .title { display: none; }
  .hd .logo img { height: 34px; }
  td:first-child { white-space: normal; }
  .tab { flex: 1; padding: 12px 6px; font-size: 12px; }
}
@media print {
  .site-header, .toc, .site-footer { display: none; }
  .layout { display: block; }
  body { background: #fff; font-size: 12pt; }
  h2 { break-after: avoid; }
  ol.steps > li, .card, table { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
