/*
 * Layout: the airy structure of the app (D6 revision; originally "direction A"). Layers on tokens.css + components.css.
 * The skin (skin.css, decision 56 = B) sits on top of it.
 * Idea: the list shows only what decides a tap (score, title, category, time); everything else lives in the card,
 * and the card itself opens progressively (hero → one action → collapsible sections).
 */
:root {
  --row-pad: 20px;        /* vertical breathing per list row */
  --sec-gap: 28px;        /* between blocks on the card */
}

/* top bar: lighter, no rule */
.top { border-bottom-color: transparent; }
.brand-sub { display: none; }

/* ---- list header ---- */
.va-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-block: 8px 18px; }
.va-head h1 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.015em; }
.va-sub { margin: 6px 0 0; font-size: var(--t-sm); color: var(--muted); }
.va-sub b { color: var(--mint); font-weight: 700; }

/* ---- filters: quiet text tabs instead of outlined chips ---- */
.seg { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 0 6px; padding-block: 2px; border-bottom: 1px solid var(--line); }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; min-height: var(--tap); padding: 0 12px; font-size: var(--t-sm); font-weight: 600; color: var(--muted); position: relative; }
.seg button[aria-pressed="true"] { color: var(--fg); }
.seg button[aria-pressed="true"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--mint); }
.seg .n { font-size: 11.5px; color: var(--mint); font-weight: 800; margin-inline-start: 4px; }

/* ---- list rows: no boxes, just space ---- */
.lrows { list-style: none; margin: 0; padding: 0; }
.lrow { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: var(--row-pad); border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; position: relative; }
.lrow:last-child { border-bottom: 0; }
.lrow:hover .rl-title { color: var(--mint); }
.lrow.sel { background: linear-gradient(90deg, transparent, var(--mint-soft) 40%, transparent); }
.lrow.seen-not::before { content: ""; position: absolute; inset-inline-start: -10px; top: calc(var(--row-pad) + 18px); width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }  /* unread */
.lrow.expired { opacity: .5; }
.sc { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr;
  background: var(--surface-2); color: var(--fg-2); }
.sc.hi { background: var(--mint-soft); color: var(--mint); }
.sc.mid { background: var(--warn-soft); color: var(--warn); }
.sc.pend { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-ctl); color: var(--muted); }
.rl-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rl-title { font-size: var(--t-lg); font-weight: 700; line-height: 1.35; text-wrap: pretty; transition: color var(--dur-1); }
.rl-meta { font-size: 12.5px; color: var(--muted); }
.more-link { display: flex; align-items: center; justify-content: center; min-height: var(--tap); margin-top: 18px; color: var(--muted); font-size: var(--t-sm); }

/* ---- card ---- */
.ca { display: flex; flex-direction: column; gap: var(--sec-gap); max-width: 640px; margin-inline: auto; padding-block: 8px 40px; }
.ca-hero { display: grid; gap: 14px; }
.ca-kicker { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--muted); }
.ca-kicker .sc { width: 56px; height: 56px; font-size: 22px; }
.ca-kicker b { color: var(--fg-2); font-weight: 700; }
.ca-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.ca-angle { margin: 0; font-size: var(--t-lg); line-height: 1.6; color: var(--mint); font-weight: 600; }
.ca-state { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--fg-2); }
.ca-state .status { background: transparent; padding: 0; height: auto; }
.ca-cta { display: grid; gap: 10px; }
.ca-cta .btn.primary { min-height: 52px; font-size: var(--t-md); border-radius: 14px; }

/* progressive disclosure */
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; font-weight: 700; font-size: var(--t-md); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-2); margin-inline-end: 4px; }  /* down = closed */
.acc[open] > summary::after { transform: translateY(2px) rotate(-135deg); }                                                                                                            /* up = open */
.acc > summary .peek { font-weight: 500; font-size: 12.5px; color: var(--muted); margin-inline-start: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.acc-body { padding-block: 2px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.facts { display: grid; gap: 10px; margin: 0; font-size: var(--t-sm); }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--fg-2); }

/* bottom bar: one primary + three quiet icons */
.bar3 { position: sticky; bottom: 0; z-index: var(--z-sticky); padding-block: 10px calc(10px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); }
.bar3-in { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, var(--tap)); gap: 10px; max-width: 640px; margin-inline: auto; align-items: center; }
.bar3 .btn.primary { min-height: 50px; border-radius: 999px; font-size: var(--t-md); }
.ib { width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 18px; }
.ib:hover { background: var(--surface-3); }

@media (min-width: 960px) {
  .va-head h1 { font-size: 30px; }
  .pane-detail .d-body { max-width: 720px; }
}
