/* This Week only. All chart colors use the existing goblin.css token names. */
#view-this-week { padding-bottom: 16px; }
#view-this-week * { min-width: 0; letter-spacing: 0; }
#view-this-week .week-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 32px 0 24px; border-bottom: 1px solid var(--line); }
#view-this-week h1 { font-family: "Zilla Slab", Georgia, serif; font-size: 38px; line-height: 1.1; margin: 6px 0 12px; }
.week-header p, .week-period, .week-reference, .week-chart-detail, .week-tile-sub { color: var(--mute); font-size: 12px; }
.week-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#view-this-week .week-age { color: var(--mute); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: 12px; }
#view-this-week .week-age.is-stale { color: var(--monitor); border-color: var(--monitor); }
#view-this-week .week-download { color: var(--parch); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: 13px; }
.week-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.week-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
#view-this-week .week-tile h2 { font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 500; color: var(--mute); min-height: 36px; }
.week-tile-value { font-family: "JetBrains Mono", monospace; font-size: 24px; line-height: 1.3; margin: 12px 0 8px; overflow-wrap: anywhere; }
.week-positive { color: var(--research); }
.week-negative { color: var(--pass); }
#view-this-week .week-muted { color: var(--mute); }
.week-tile-sub { min-height: 36px; overflow-wrap: anywhere; }
.week-tile-value.week-sample-limited { font-size: 14px; }
.week-insufficient { grid-column: 2 / -1; font-size: 13px; overflow-wrap: anywhere; }
.week-narrative { list-style: none; margin: 12px 0; }
.week-narrative article, .week-narrative li { margin: 16px 0; overflow-wrap: anywhere; }
.week-narrative h3 { font-size: 14px; color: var(--parch); }
.week-narrative p { font-size: 14px; line-height: 1.6; }
.week-citations { display: flex; flex-wrap: wrap; gap: 8px; color: var(--mute); font-size: 11px; margin-top: 6px; }
.week-section, .week-chart { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
#view-this-week .sec-h { font-size: 14px; color: var(--parch); margin-bottom: 8px; }
.week-todos { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.week-todo { padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold-dim); border-radius: 4px; background: var(--panel); overflow-wrap: anywhere; }
.week-todo p { color: var(--mute); font-size: 13px; margin-top: 8px; }
.week-todo time { display: block; color: var(--mute); font-family: "JetBrains Mono", monospace; font-size: 11px; margin-bottom: 6px; }
.week-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.week-reference { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; }
.week-dash { display: inline-block; width: 20px; border-top: 1px dashed var(--gold); }
.week-chart-row, .week-chart-axis { display: grid; grid-template-columns: 155px minmax(0, 1fr) 90px; column-gap: 20px; align-items: center; }
.week-chart-axis { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--mute); margin: 12px 0 6px; }
.week-chart-axis > div { position: relative; display: flex; justify-content: space-between; }
.week-axis-zero { position: absolute; transform: translateX(-50%); }
.week-chart-axis > span:last-child { text-align: right; }
.week-chart-row { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.week-chart-label b { font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.week-chart-label small { display: block; color: var(--mute); font-size: 11px; }
.week-chart-value { text-align: right; font-family: "JetBrains Mono", monospace; font-size: 13px; }
.week-chart-detail { grid-column: 1 / -1; display: flex; gap: 16px; flex-wrap: wrap; margin-top: 3px; font-size: 11px; }
.week-chart-detail b { font-weight: 500; color: var(--parch); }
.week-bar-svg { display: block; width: 100%; height: 28px; overflow: visible; }
.week-bar-svg line, .week-bar-svg path { vector-effect: non-scaling-stroke; }
.week-zero { stroke: var(--mute); stroke-width: 1; }
.week-ref { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 3; }
.week-flat { stroke: var(--parch); stroke-width: 2; }
.week-positive-bar { fill: var(--research); }
.week-negative-bar { fill: var(--pass); }
.week-neutral-bar { fill: var(--gold-dim); }
.week-hatch-base { fill: var(--panel); }
.week-hatch-line { stroke: var(--mute); stroke-width: 1; }
.week-sample { color: var(--mute); font-size: 12px; margin-top: 12px; max-width: 90ch; }
.week-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.week-news-counts { color: var(--mute); font-size: 12px; margin-bottom: 16px; }
.week-news details { border-top: 1px solid var(--line); padding: 12px 0; }
.week-news summary { cursor: pointer; color: var(--parch); font-size: 14px; }
.week-news ul { list-style: none; }
.week-news li { padding: 12px 0; overflow-wrap: anywhere; }
.week-news a { text-decoration: underline; text-underline-offset: 3px; }
.week-news small { display: block; color: var(--mute); margin-top: 4px; }
.week-stock { padding: 24px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.week-stock h3 { font-size: 22px; margin-bottom: 8px; }
.week-stock h4 { font-size: 14px; margin: 20px 0 8px; }
.week-stock p { font-size: 14px; line-height: 1.6; }
.week-stock-chart { margin: 20px 0; }
.week-stock-chart figcaption { color: var(--mute); font-size: 12px; }
.week-stock-chart svg { width: 100%; aspect-ratio: 680 / 220; display: block; }
.week-stock-chart text { fill: var(--mute); font-size: 10px; }
.week-stock-grid { stroke: var(--line); stroke-width: 1; }
.week-stock-line { fill: none; stroke: var(--parch); stroke-width: 1.5; }
.week-stock-kill { stroke: var(--pass); stroke-width: 1; stroke-dasharray: 4 3; }
.week-stock-marker { stroke: var(--gold); fill: var(--cave); stroke-width: 1.5; }
.week-stock-marker.is-buy { fill: var(--gold); }
.week-stock-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); gap: 12px; margin: 20px 0; }
.week-stock-facts > div { background: var(--panel); padding: 12px; }
.week-stock-facts dt { color: var(--mute); font-size: 12px; }
.week-stock-facts dd { font-family: monospace; margin: 8px 0 0; }
@media (max-width: 1050px) { .week-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .week-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .week-tile { padding: 12px; }
  .week-chart-row, .week-chart-axis { grid-template-columns: 94px minmax(0, 1fr) 60px; column-gap: 10px; }
  .week-chart-value { font-size: 11px; }
  .week-axis-zero { display: none; }
  #view-this-week h1 { font-size: 32px; }
}
