/* Lookout: This week. The pine band carries the week: the headline and the movement grid,
   glowing on the dark ground. Below, quiet paper: the stories, the news, a rail of the week's
   other news. Significance on the dark band uses steps checked with the dataviz validator
   (High #d4587b, Medium #bd8418, Low #47a07a on #0b3832), with size as a second cue. */

.wk-band {
  --hi: #d4587b; --med: #bd8418; --low: #47a07a;
  background: radial-gradient(120% 90% at 85% -10%, #14524a 0%, var(--pine) 48%, #072823 100%);
  color: #e6efe9;
}
.wk-band .in { max-width: 1240px; margin: 0 auto; padding: 14px 20px 34px; }
.wk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(162, 205, 156, 0.16); margin-bottom: 26px; flex-wrap: wrap; }
.wk-step { color: #cfe0d6; text-decoration: none; font-size: 0.86rem; border: 1px solid rgba(230, 239, 233, 0.28); border-radius: 999px; padding: 4px 13px; }
.wk-step:hover { color: var(--pine); background: var(--chartreuse); border-color: var(--chartreuse); }
.wk-step.off { opacity: 0.32; }
.wk-now { text-align: center; }
.wk-now b { display: block; font-family: var(--serif); font-size: 1.08rem; color: #fff; }
.wk-now span { font-size: 0.8rem; color: #9fb8ac; }

.wk-head { max-width: 900px; }
.wk-band h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.022em; }
.wk-lede { font-family: var(--serif); font-size: 1.24rem; line-height: 1.55; color: #dce9e1; max-width: 42em; margin: 0 0 16px; }
.wk-counts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; font-size: 0.9rem; color: #a9c2b6; }
.wk-counts b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }
.wk-counts b.hi { color: #f4a9bd; }

/* the movement grid, on the band */
.wk-gridwrap { position: relative; margin-top: 30px; padding: 18px 20px 14px; border-radius: 14px;
  background: rgba(3, 25, 21, 0.38); box-shadow: inset 0 0 0 1px rgba(162, 205, 156, 0.14); }
.wk-gridhead { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.wk-gridhead h2 { color: #fff; margin: 0; font-size: 1.3rem; }
.wk-gridhead p { margin: 0; color: #9fb8ac; font-size: 0.84rem; }
.wg { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 880px; font-size: 0.86rem; }
.wg thead th { font-weight: 600; color: #c4d8cd; font-size: 0.74rem; text-align: center; vertical-align: bottom; padding: 0 2px 8px; height: 84px; }
.wg thead th span { display: block; line-height: 1.15; }
.wg thead th small { display: block; color: #7f9c91; font-size: 0.7rem; font-weight: 400; margin-top: 2px; min-height: 1em; }
.wg thead th i { display: block; width: 56%; margin: 0 auto 7px; height: 38px; position: relative; }
.wg thead th i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); min-height: 2px; background: linear-gradient(180deg, #b9dcb3, #6fae78); border-radius: 3px 3px 0 0; opacity: .85; }
.wg thead th.hl-col span { color: #fff; }
.wg thead th.hl-col i::after { background: var(--chartreuse); opacity: 1; }
.wg th.wg-firm { text-align: left; white-space: nowrap; padding: 6px 14px 6px 0; font-weight: 500; width: 210px; }
.wg th.wg-firm a { color: #e6efe9; text-decoration: none; }
.wg th.wg-firm a:hover { color: #fff; text-decoration: underline; }
.wg .dot { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); }
.wg td { text-align: center; border-top: 1px solid rgba(162, 205, 156, 0.1); padding: 5px 2px; height: 36px; }
.wg tbody th { border-top: 1px solid rgba(162, 205, 156, 0.1); }
.wg tbody tr:first-child td, .wg tbody tr:first-child th { border-top: 0; }
.wg tr.us th.wg-firm a { font-weight: 700; color: #fff; }
.wg tr.us td, .wg tr.us th { background: rgba(183, 201, 88, 0.08); }
.wg tr.us th.wg-firm { box-shadow: inset 3px 0 0 var(--chartreuse); padding-left: 8px; }
.wg tr.hl-row td, .wg tr.hl-row th { background: rgba(162, 205, 156, 0.1); }
.wg td.wg-on { cursor: pointer; }
.wg td.wg-on:hover, .wg td.wg-on:focus { outline: 1.5px solid var(--chartreuse); outline-offset: -3px; border-radius: 7px; }
.wg .wg-n { width: 60px; text-align: right; color: #c4d8cd; padding-left: 10px; font-weight: 600; }
.wg thead .wg-n { vertical-align: bottom; }
.wk-band .marks { display: inline-flex; justify-content: center; align-items: center; gap: 3px; text-decoration: none; }
.wk-band .marks em { font-style: normal; font-size: 0.72rem; color: #9fb8ac; margin-left: 2px; font-variant-numeric: tabular-nums; }
.wk-band .m.High { width: 12px; height: 12px; background: var(--hi); color: var(--hi); box-shadow: 0 0 10px rgba(212, 88, 123, .55); }
.wk-band .m.Medium { width: 9px; height: 9px; background: var(--med); color: var(--med); }
.wk-band .m.Low { width: 6px; height: 6px; background: var(--low); color: var(--low); }
.wk-band .marks.ring .m, .wk-band .wg-key .ring .m { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.wk-band .wg-key .solid .m { background: var(--med); }
.wk-band .m.x::before, .wk-band .m.x::after { background: #f4a9bd; }
.wg-key { display: flex; flex-wrap: wrap; gap: 6px 20px; color: #a9c2b6; font-size: 0.8rem; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(162, 205, 156, 0.12); align-items: center; }
.wg-key span { display: inline-flex; align-items: center; gap: 7px; }
.wk-band .scroll { overflow-x: auto; }

/* marks used anywhere (tooltip, rail, lists) */
.m { display: inline-block; border-radius: 50%; flex: none; }
.m.High { width: 11px; height: 11px; background: var(--rose); color: var(--rose); }
.m.Medium { width: 8px; height: 8px; background: var(--amber); color: var(--amber); }
.m.Low { width: 6px; height: 6px; background: #6f9a85; color: #6f9a85; }
.m.r { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.m.x { width: 10px; height: 10px; border-radius: 0; background: none; position: relative; }
.m.x::before, .m.x::after { content: ""; position: absolute; left: 4px; top: -1px; width: 2px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.m.x::after { transform: rotate(-45deg); }

.wg-tip { position: absolute; z-index: 5; top: 0; left: 0; width: 340px; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 14px 40px rgba(2, 20, 17, 0.45); padding: 12px 14px; font-size: 0.84rem; line-height: 1.4; pointer-events: none; opacity: 0; transition: opacity .12s; }
.wg-tip.on { opacity: 1; }
.wg-tip b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--pine-deep); }
.wg-tip > span { color: var(--muted); font-size: 0.8rem; }
.wg-tip ul { list-style: none; padding: 0; margin: 8px 0 6px; }
.wg-tip li { display: grid; grid-template-columns: 16px 1fr; align-items: start; gap: 4px; margin: 4px 0; }
.wg-tip li .m { margin-top: 4px; }
.wg-tip em { font-style: normal; color: var(--accent); font-size: 0.8rem; }

/* below the band */
.wk-cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .wk-cols { grid-template-columns: 1fr; gap: 10px; } }
.wk-note { color: var(--muted); font-size: 0.88rem; margin: -2px 0 10px; }
.kicker { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 6px; font-size: 0.84rem; }
.kicker a { font-weight: 700; color: var(--pine-deep); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.story.lead { padding: 6px 0 22px; border-bottom: 1px solid var(--line); }
.story.lead h3 { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.22; color: var(--pine-deep); margin: 4px 0 14px; letter-spacing: -0.01em; }
.story.lead blockquote { margin: 0 0 10px; padding: 2px 0 2px 18px; border-left: 4px solid var(--chartreuse); font-family: var(--serif); font-size: 1.16rem; line-height: 1.6; color: var(--ink-soft); }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list .story { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.story-list h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); margin: 0 0 4px; }
.story-list blockquote { margin: 6px 0; padding-left: 12px; border-left: 3px solid var(--sage); font-family: var(--serif); color: var(--ink-soft); }
.s-quote > summary { font-size: 0.82rem !important; }
.s-mark { display: inline-block; border-radius: 50%; margin-top: 7px; justify-self: center; }
.s-mark.High { width: 12px; height: 12px; background: var(--rose); }
.s-mark.Medium { width: 9px; height: 9px; background: var(--amber); }
.s-mark.Low { width: 7px; height: 7px; background: #6f9a85; }

/* in the news */
.wk-news { margin-top: 34px; }
.nw-wire { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; border-top: 2px solid var(--pine-deep); }
.nw-item { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.nw-meta { display: flex; gap: 10px; margin: 0 0 4px; font-size: 0.78rem; color: var(--muted); }
.nw-item h3 { font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; margin: 0 0 6px; }
.nw-item h3 a { color: var(--ink); text-decoration: none; }
.nw-item h3 a:hover { color: var(--accent); text-decoration: underline; }
.nw-firms { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.nw-firms a { font-size: 0.78rem; font-weight: 600; color: var(--pine-deep); background: var(--accent-soft); border-radius: 5px; padding: 1px 7px; text-decoration: none; }
.nw-facts { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.nw-facts li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; margin: 4px 0; }
.nw-facts .s-mark { margin-top: 5px; }

/* the rail */
.wk-side { padding-top: 6px; }
.rail { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.rail h3 { font-size: 1.06rem; margin: 0 0 10px; }
.rail-empty { color: var(--muted); font-size: 0.86rem; margin: 0; }
.rail-foot { font-size: 0.84rem; color: var(--ink-soft); margin: 10px 0 0; }
.rail-list { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.rail-list li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; margin: 4px 0; }
.rail-list.dropped li { display: block; }
.rail-list.dropped s { color: var(--ink-soft); text-decoration-color: var(--rose); }
.rail-firms { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.rail-firms a { font-size: 0.82rem; border: 1px solid var(--line); border-radius: 5px; padding: 1px 8px; text-decoration: none; color: var(--ink); background: var(--card); }
.rail-firms a:hover { border-color: var(--accent); }
.rail-law { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 14px; }
.law-tl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--sage); }
.law-tl li { position: relative; padding: 0 0 13px 6px; font-size: 0.88rem; line-height: 1.4; }
.law-tl li::before { content: ""; position: absolute; left: -23px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); }
.law-date { display: block; font-size: 0.76rem; color: var(--muted); margin-bottom: 2px; }
.law-tl .rg-chip { margin-right: 4px; }
.law-title { color: var(--ink); font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.law-title:hover { color: var(--accent); text-decoration: underline; }
.law-src { display: block; font-size: 0.78rem; color: var(--muted); }
.wk-ask form { display: grid; gap: 8px; }
.wk-ask textarea { width: 100%; resize: vertical; font-size: 0.92rem; }
.wk-ask button { justify-self: start; }

/* everything new */
.wk-all { margin-top: 18px; }
details.wk-firm { border-bottom: 1px solid var(--line); padding: 8px 0; }
details.wk-firm summary { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; gap: 16px; align-items: center; }
details.wk-firm summary .name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--pine-deep); }
.wk-firm-bar { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.wk-firm-bar i { display: block; border-radius: 50%; }
.wk-firm-bar i.High { width: 9px; height: 9px; background: var(--rose); color: var(--rose); }
.wk-firm-bar i.Medium { width: 7px; height: 7px; background: var(--amber); color: var(--amber); }
.wk-firm-bar i.Low { width: 5px; height: 5px; background: #6f9a85; color: #6f9a85; }
.wk-firm-bar i.r { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (max-width: 760px) { details.wk-firm summary { grid-template-columns: 1fr; gap: 4px; } }
details.wk-firm[open] summary { margin-bottom: 4px; }
.wk-sub { margin: 14px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* panels */
.wk-cols { margin-top: 26px; gap: 24px; }
.wk-news { margin-top: 0; }
.story-list .story:last-child { border-bottom: 0; padding-bottom: 2px; }
.wk-side { padding-top: 0; }
.rail, .rail-law { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; margin: 0 0 16px; }
.rail h3 { margin-top: 0; }
.wk-all { margin-top: 2px; }
.wk-all details.wk-firm:last-of-type { border-bottom: 0; }
.nw-wire .nw-item:last-child { border-bottom: 0; }


/* the stories panel: a title that says what it is, and each fact as one sentence */
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 30px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.st-head h2 { margin: 0 0 4px; }
.st-why { margin: 0; color: var(--ink-soft); max-width: 58ch; font-size: 0.92rem; line-height: 1.5; }
.st-count { margin: 4px 0 0; text-align: right; color: var(--muted); font-size: 0.84rem; }
.st-count b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--pine-deep); line-height: 1.1; }
.st-count a { display: block; margin-top: 2px; }
.st .story.lead { padding: 16px 0 20px; }
.st .story.lead h3 { margin-top: 8px; }
.st-firm { color: var(--pine-deep); font-weight: 700; }
.st .story.lead .st-firm { font-weight: 700; }
.st-line { margin: 0; }
.st-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); }
.st-meta a { color: var(--accent); }
.st .story-list .story { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.st .story-list .story > .sig { justify-self: start; margin-top: 2px; }
.st .story-list h3 { font-size: 1rem; font-weight: 400; line-height: 1.45; }
.st .story-list h3 .st-firm { font-weight: 700; }
.st .s-quote { margin-top: 4px; }
