/* ------------------------------------------------------------
   CX Reports — site shell: header, section menus, home and
   section pages. Each report keeps its own styles in its folder.
   ------------------------------------------------------------ */
:root{
  color-scheme: light;
  --page:#faf7f2;
  --surface:#ffffff;
  --surface-2:#f2ecdf;
  --tan-box:#f0e6d3;
  --text-primary:#171714;
  --text-secondary:#454543;
  --text-muted:#848484;
  --border:rgba(23,23,20,0.10);
  --border-strong:rgba(23,23,20,0.18);
  --gold:#d5b279;
  --gold-ink:#976649;
  --good:#0a6e0a; --good-bg:#e3f3e3;
  --warn:#7a5a12; --warn-bg:#f6ecd4;
  --bad:#a42a2a;  --bad-bg:#fbeaea;
  --shadow: 0 1px 2px rgba(23,20,15,0.06), 0 8px 24px -16px rgba(23,20,15,0.22);
  --shadow-pop: 0 18px 40px -18px rgba(23,20,15,0.35), 0 2px 6px rgba(23,20,15,0.08);
  --serif: "Lucida Bright", Georgia, "Times New Roman", serif;
  --sans: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*{ box-sizing:border-box; }
html,body{ margin:0; background:var(--page); color:var(--text-primary); }
body{ font-family:var(--sans); font-size:14px; }
a{ color:inherit; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- header ---------- */
.shell-head{ position:sticky; top:0; z-index:50; background:var(--surface); border-bottom:1px solid var(--border); box-shadow:var(--shadow); }
.shell-bar{ max-width:1212px; margin:0 auto; padding:10px 16px; display:flex; align-items:center; gap:24px; }
.shell-brand{ display:flex; align-items:center; gap:11px; text-decoration:none; flex:none; }
.shell-mark{ width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:var(--text-primary); color:var(--page); font-family:var(--serif); font-weight:700; font-size:17px; }
.shell-owner{ display:block; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
.shell-title{ display:block; font-family:var(--serif); font-weight:700; font-size:17px; line-height:1.2; }

.shell-nav{ display:flex; align-items:center; gap:2px; margin-left:auto; }
.nav-item{ position:relative; }
.nav-top{
  font:inherit; font-size:14px; font-weight:600; color:var(--text-secondary); background:none; border:0; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px; padding:9px 14px; border-radius:999px; white-space:nowrap;
}
.nav-top:hover, .nav-item.open .nav-top{ background:var(--surface-2); color:var(--text-primary); }
.nav-top[aria-current="true"]{ color:var(--text-primary); box-shadow:inset 0 -2px 0 var(--gold-ink); border-radius:0; }
.nav-top .caret{ width:8px; height:8px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .15s ease; opacity:.7; }
.nav-item.open .caret{ transform:translateY(1px) rotate(225deg); }
.nav-top:focus-visible, .dd a:focus-visible, .shell-burger:focus-visible{ outline:2px solid var(--gold-ink); outline-offset:2px; }

.dd{
  position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%); min-width:300px; max-width:360px;
  background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-pop); padding:8px; display:none;
}
.dd::before{ content:""; position:absolute; top:-10px; left:0; right:0; height:10px; } /* hover bridge */
.nav-item.open .dd{ display:block; }
.nav-item:last-child .dd{ left:auto; right:0; transform:none; }
.dd-head{ padding:8px 10px 6px; font-size:12px; color:var(--text-muted); line-height:1.4; }
.dd a{ display:block; text-decoration:none; padding:9px 10px; border-radius:10px; }
.dd a:hover{ background:var(--page); }
.dd a[aria-current="page"]{ background:var(--tan-box); }
.dd .t{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-weight:700; font-size:13.5px; }
.dd .d{ display:block; font-size:12px; color:var(--text-muted); margin-top:2px; line-height:1.4; }
.dd .soon{ opacity:.65; }
.dd .all{ border-top:1px solid var(--border); margin-top:6px; padding-top:10px; font-size:12.5px; font-weight:700; color:var(--gold-ink); border-radius:0 0 10px 10px; }
.dd .empty{ padding:10px; font-size:12.5px; color:var(--text-muted); }
.pill{ font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; border-radius:999px; padding:2px 8px; white-space:nowrap; }
.pill.soon{ background:var(--surface-2); color:var(--text-muted); opacity:1; }
.pill.freq{ background:var(--surface-2); color:var(--text-secondary); text-transform:none; letter-spacing:0; font-weight:600; }

.shell-burger{ display:none; margin-left:auto; width:40px; height:40px; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface); cursor:pointer; position:relative; }
.shell-burger span[aria-hidden]{ position:absolute; left:11px; right:11px; top:19px; height:2px; background:var(--text-primary); box-shadow:0 -6px 0 var(--text-primary), 0 6px 0 var(--text-primary); }

.shell-crumbs{ max-width:1212px; margin:0 auto; padding:0 16px 9px; font-size:12.5px; color:var(--text-muted); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.shell-crumbs a{ color:var(--text-secondary); text-decoration:none; font-weight:600; }
.shell-crumbs a:hover{ color:var(--text-primary); text-decoration:underline; }
.shell-crumbs .sep{ opacity:.5; }
.shell-crumbs .sib{ margin-left:auto; display:flex; gap:4px; flex-wrap:wrap; }
.shell-crumbs .sib a{ font-weight:600; padding:3px 10px; border-radius:999px; background:var(--surface-2); }
.shell-crumbs .sib a[aria-current="page"]{ background:var(--text-primary); color:var(--surface); }

/* ---------- pages ---------- */
.shell-main{ display:block; }
#frame{ display:block; width:100%; border:0; min-height:calc(100vh - 110px); background:var(--page); }
.pg{ max-width:1212px; margin:0 auto; padding:28px 16px 64px; }
.eyebrow{ font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); }
.pg h1{ font-family:var(--serif); font-size:32px; margin:6px 0 8px; text-wrap:balance; }
.pg h2{ font-family:var(--serif); font-size:18px; margin:0; }
.lede{ font-size:15px; color:var(--text-secondary); max-width:68ch; line-height:1.55; margin:0; }
.block{ margin-top:30px; }
.block-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
.block-head .note{ font-size:12px; color:var(--text-muted); }

.hl-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; }
.hl{ display:flex; flex-direction:column; gap:6px; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:15px 16px; box-shadow:var(--shadow); text-decoration:none; min-width:0; transition:transform .12s ease, box-shadow .12s ease; }
a.hl:hover{ transform:translateY(-1px); box-shadow:var(--shadow-pop); }
.hl .k{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); display:flex; justify-content:space-between; gap:8px; }
.hl .v{ font-family:var(--serif); font-weight:700; font-size:30px; line-height:1.1; color:var(--gold-ink); }
.hl .v small{ font-family:var(--sans); font-size:12px; font-weight:600; color:var(--text-muted); margin-left:6px; }
.hl .s{ font-size:12.5px; color:var(--text-secondary); line-height:1.45; }
.hl .src{ font-size:11.5px; color:var(--text-muted); margin-top:auto; padding-top:6px; border-top:1px dashed var(--border-strong); }
.tag{ display:inline-flex; align-items:center; gap:6px; font-size:10.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; padding:3px 9px; border-radius:999px; align-self:flex-start; }
.tag::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.tag.good{ color:var(--good); background:var(--good-bg); } .tag.warn{ color:var(--warn); background:var(--warn-bg); } .tag.bad{ color:var(--bad); background:var(--bad-bg); } .tag.neutral{ color:var(--text-secondary); background:var(--surface-2); }
.up{ color:var(--good); font-weight:700; } .down{ color:var(--bad); font-weight:700; }
.hl.skeleton .v{ color:var(--surface-2); }

.sec-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; }
.sec{ background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow); padding:16px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.sec-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sec-top a{ font-family:var(--serif); font-weight:700; font-size:17px; text-decoration:none; }
.sec-top a:hover{ text-decoration:underline; }
.sec .count{ font-size:11.5px; color:var(--text-muted); white-space:nowrap; }
.sec p{ margin:0; font-size:12.5px; color:var(--text-muted); line-height:1.45; }
.sec ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; border-top:1px solid var(--border); padding-top:8px; }
.sec li a, .sec li span{ display:flex; justify-content:space-between; gap:8px; align-items:center; padding:6px 8px; margin:0 -8px; border-radius:8px; font-size:13px; font-weight:600; text-decoration:none; }
.sec li a:hover{ background:var(--page); }
.sec li a::after{ content:"→"; color:var(--text-muted); font-weight:400; }
.sec li .soon{ color:var(--text-muted); font-weight:500; }
.sec .none{ font-size:12.5px; color:var(--text-muted); font-style:italic; border-top:1px solid var(--border); padding-top:10px; }

.rep-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.rep{ background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow); padding:18px; display:flex; flex-direction:column; gap:10px; text-decoration:none; }
a.rep:hover{ box-shadow:var(--shadow-pop); }
.rep h3{ font-family:var(--serif); font-size:17px; margin:0; display:flex; justify-content:space-between; gap:8px; align-items:center; }
.rep p{ margin:0; font-size:13px; color:var(--text-secondary); line-height:1.5; }
.rep .open{ margin-top:auto; font-size:12.5px; font-weight:700; color:var(--gold-ink); }
.rep.soon{ box-shadow:none; background:transparent; border-style:dashed; }
.rep .hlmini{ background:var(--page); border-radius:10px; padding:10px 12px; font-size:12.5px; color:var(--text-secondary); display:flex; flex-direction:column; gap:4px; }
.rep .hlmini b{ font-family:var(--serif); font-size:20px; color:var(--gold-ink); }
.empty-sec{ border:1px dashed var(--border-strong); border-radius:14px; padding:28px; text-align:center; color:var(--text-secondary); }
.empty-sec b{ display:block; font-family:var(--serif); font-size:17px; color:var(--text-primary); margin-bottom:4px; }

/* ---------- mobile ---------- */
@media (max-width:860px){
  .shell-burger{ display:block; }
  .shell-nav{ display:none; position:absolute; left:0; right:0; top:100%; background:var(--surface); border-bottom:1px solid var(--border); box-shadow:var(--shadow-pop); flex-direction:column; align-items:stretch; padding:8px 12px 14px; max-height:calc(100vh - 70px); overflow:auto; }
  .shell-head.menu-open .shell-nav{ display:flex; }
  .nav-top{ width:100%; justify-content:space-between; border-radius:10px; padding:12px; font-size:15px; }
  .nav-top[aria-current="true"]{ box-shadow:none; background:var(--surface-2); }
  .dd{ position:static; transform:none; min-width:0; max-width:none; box-shadow:none; border:0; padding:0 0 6px 8px; }
  .nav-item:last-child .dd{ right:auto; }
  .shell-crumbs .sib{ margin-left:0; width:100%; }
  .pg h1{ font-size:26px; }
}
