/* Learn section (/learn/). Loaded after site.css on learn pages only. */

.page-hero .crumb { color: var(--sc-signal-green); text-decoration: none; }
.page-hero .crumb:hover { text-decoration: underline; }

/* "On this page" list in the aside */
.toc { margin: 4px 0 18px; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--sc-line); }
.toc a { display: flex; gap: 10px; padding: 9px 0; color: var(--sc-night-watch); font-size: 15px; font-weight: 500; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 600 14px/1.9 var(--sc-font-num); color: var(--sc-signal-deep); }
.toc a:hover { text-decoration: underline; }
.aside-checked { font: 500 14px/1.4 var(--sc-font-num); color: var(--sc-slate); margin: 0 0 14px; }

/* Day and night diagram: two cards, side by side, stacked on phones */
.flow { margin: 26px 0 30px; }
.flow-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.flow-card { border-radius: var(--sc-radius-panel); overflow: hidden; }
.flow-card svg { width: 100%; height: auto; }
.flow-day { background: var(--sc-white); border: 1px solid var(--sc-line); }
.flow-night { background: var(--sc-night-watch); }
.flow-card p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.5; }
.flow-day p { color: var(--sc-slate); }
.flow-night p { color: var(--sc-on-dark-muted); }
.prose .flow-night strong { color: var(--sc-white); }
.flow figcaption { margin-top: 12px; font-size: 14px; color: var(--sc-slate); }
.flow-arrow { stroke-dasharray: 7 7; animation: flow-run 1.4s linear infinite; }
@keyframes flow-run { to { stroke-dashoffset: -14; } }

/* Sample bill */
.bill { margin: 24px 0 8px; background: var(--sc-white); border: 1px solid var(--sc-line); border-radius: var(--sc-radius-card); box-shadow: var(--sc-shadow); overflow: hidden; }
.bill-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 16px 22px; background: var(--sc-sandstone); border-bottom: 1px solid var(--sc-line); }
.bill-head strong { font: 600 15px/1.3 var(--sc-font-head); color: var(--sc-night-watch); }
.bill-head span { font: 500 14px/1.6 var(--sc-font-num); color: var(--sc-slate); }
.bill-rows { margin: 0; padding: 6px 22px 10px; }
.bill-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed var(--sc-line); }
.bill-row:last-child { border-bottom: 0; }
.bill-row dt { font-size: 15px; color: var(--sc-ink); }
.bill-row dt small { display: block; font-size: 14px; color: var(--sc-slate); }
.bill-row dd { margin: 0; font: 600 15px/1.3 var(--sc-font-num); color: var(--sc-night-watch); text-align: right; white-space: nowrap; }
.bill-row.is-net { background: linear-gradient(90deg, rgba(45, 190, 116, .10), rgba(45, 190, 116, 0)); margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.bill-tag { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; background: var(--sc-night-watch); color: var(--sc-white); font: 600 14px/1 var(--sc-font-num); }
.bill-note { font-size: 14px; color: var(--sc-slate); margin: 10px 0 0; }
.prose .bill-key { margin: 18px 0 1em; }
.prose .bill-key li { padding-left: 38px; }
.prose .bill-key li::before { display: none; }
.prose .bill-key .bill-tag { position: absolute; left: 0; top: 2px; }

/* "Why your bill usually isn't $0": three reasons */
.prose .reasons { margin: 18px 0 1em; display: grid; gap: 12px; }
.prose .reasons li { padding: 16px 18px 16px 20px; margin: 0; background: var(--sc-white); border-radius: var(--sc-radius-card); border-left: 4px solid var(--sc-sky-deep); }
.prose .reasons li::before { display: none; }
.reasons h3 { font-size: 17px; margin: 0 0 4px; }
.reasons p { margin: 0; font-size: 16px; color: var(--sc-slate); }

/* Last checked */
.checked { margin: 48px 0 28px; padding: 20px 22px; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-card); background: var(--sc-white); }
.checked .eyebrow { margin-bottom: 8px; }
.checked p { font-size: 15px; color: var(--sc-slate); }
.checked p:last-child { margin-bottom: 0; }
.checked time { font-family: var(--sc-font-num); font-weight: 600; color: var(--sc-night-watch); }

/* /learn/ hub */
.learn-list { display: grid; gap: 16px; max-width: 820px; }
.learn-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; padding: 26px; background: var(--sc-white); border: 1px solid var(--sc-line); border-radius: var(--sc-radius-card); color: var(--sc-ink); text-decoration: none; transition: box-shadow .15s ease, border-color .15s ease; }
.learn-item:hover { box-shadow: var(--sc-shadow); border-color: transparent; }
.learn-item svg { width: 64px; height: 64px; }
.learn-item h2 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.learn-item p { color: var(--sc-slate); font-size: 16px; margin-bottom: 10px; }
.learn-meta { font: 500 14px/1.4 var(--sc-font-num); color: var(--sc-slate); }
.learn-more { margin-top: 28px; }

@media (max-width: 640px) {
  .flow-cards { grid-template-columns: 1fr; }
  .bill-head, .bill-rows { padding-left: 16px; padding-right: 16px; }
  .bill-row { grid-template-columns: 28px minmax(0, 1fr); }
  .bill-row dd { grid-column: 2; text-align: left; }
  .bill-row.is-net { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .learn-item { grid-template-columns: 1fr; padding: 22px; }
  .learn-item svg { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-arrow { animation: none; }
}
