/* Private pages (/pps/...): link row, slim heading band and cards, from the prototype (web/template.html). */
.tn-sf { color:var(--teal-ink); }
.hdr-nav { display:flex; gap:2px; align-items:center; width:100%; overflow-x:auto; scrollbar-width:none; padding-top:8px; margin-top:2px;
  background:linear-gradient(90deg,var(--teal) 0 32px,var(--frame) 32px) top left / 100% 2px no-repeat; }
.hdr-nav a, .hdr-nav button { display:inline-flex; align-items:center; gap:6px; color:var(--muted); background:none; border:0; cursor:pointer;
  text-decoration:none; font:inherit; font-weight:600; font-size:.85rem; padding:6px 9px; border-radius:8px; white-space:nowrap; }
.hdr-nav svg, .ph svg, .page .tn svg { fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.hdr-nav svg { width:16px; height:16px; }
.hdr-nav a:hover, .hdr-nav button:hover { background:var(--frame); color:var(--ink); }
.hdr-nav a[aria-current="page"] { background:color-mix(in srgb,var(--teal) 16%,transparent); color:var(--teal-ink); }
.hdr-nav a[href="/pps"] { margin-left:auto; }

.hero.slim { flex:none; display:block; padding:22px 0 24px; }
.hero.slim h1 { display:flex; align-items:center; max-width:none; margin:12px 0 8px; font-size:clamp(1.8rem,1.2rem + 2.4vw,2.7rem); }
.hero.slim p { margin:0; font-size:1rem; }
.ph { display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:13px; margin-right:12px; flex:none;
  background:color-mix(in srgb,var(--teal) 16%,transparent); border:1px solid color-mix(in srgb,var(--teal) 50%,transparent); color:var(--teal-ink); }
.ph svg { width:25px; height:25px; }

.app-main { flex:1; padding-top:28px; padding-bottom:40px; }
.pages { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:16px; }
/* six cards on the signed-in home page, three to a row (the class name dates from when there were four) */
.pages.four { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:1100px) { .pages.four { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .pages.four { grid-template-columns:minmax(0,1fr); } }
.page { display:flex; flex-direction:column; gap:6px; text-decoration:none; color:inherit; background:var(--card); border:1px solid var(--rule);
  border-radius:18px; padding:18px 20px 16px; box-shadow:var(--shadow); transition:transform .15s, border-color .15s; }
a.page:hover, a.page:focus-visible { transform:translateY(-3px); border-color:var(--teal); }
.page .tn { display:flex; flex-wrap:wrap; align-items:flex-start; gap:6px 11px; }
.page .tn svg { width:30px; height:30px; color:var(--teal-ink); }
.page .tn-b { margin:4px 0 0 auto; flex:none; font-size:.64rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted);
  border:1px solid var(--frame); border-radius:20px; padding:3px 9px; white-space:nowrap; }
a.page:hover .tn-b { border-color:var(--teal); color:var(--teal-ink); }
.page h3 { margin:0; color:var(--ink); font-size:1.2rem; font-weight:800; line-height:30px; letter-spacing:-.02em; }
.page p { margin:0; font-size:.88rem; color:var(--muted); }
.page.soon .tn svg { color:var(--muted); }
.page.soon .tn-b { background:var(--amber-soft); border-color:transparent; color:var(--amber-ink); }
@media (prefers-reduced-motion: reduce) { .page { transition:none; } a.page:hover { transform:none; } }

/* Projects tracker */
.period { background:var(--teal-soft); color:var(--text); border:1px solid var(--rule); border-left:4px solid var(--teal); border-radius:12px;
  padding:10px 15px; font-size:.9rem; margin:0 0 20px; }
.hl { margin-bottom:30px; }
.hlhead { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 14px; margin:0 0 12px; }
.hlhead h2 { margin:0; color:var(--teal-ink); font-weight:800; font-size:clamp(1.5rem,1.2rem + 1vw,1.95rem); line-height:1.15; letter-spacing:-.02em; }
.hlhead p { margin:0; color:var(--muted); font-size:.9rem; }
.sub { color:var(--muted); font-size:.93rem; margin:0 0 8px; }
.card { background:var(--card); border:1px solid var(--frame); border-radius:14px; padding:18px 20px 13px; min-width:0; box-shadow:var(--shadow); }
.filter { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.nomine { margin:10px 0 0; }
.chip { font:inherit; font-weight:700; font-size:.8rem; color:var(--muted); background:transparent; border:1px solid var(--frame); border-radius:999px;
  padding:5px 13px; cursor:pointer; }
.chip:hover { color:var(--ink); }
.chip[aria-pressed="true"] { background:var(--teal); border-color:var(--teal); color:#fff; box-shadow:0 4px 12px rgba(13,148,136,.35); }
.scroll { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:.82rem; }
th, td { text-align:left; vertical-align:top; padding:6px 7px; border-bottom:1px solid var(--rule); }
th { font-size:.64rem; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); font-weight:700; white-space:nowrap; }
.proj td:first-child { font-weight:800; color:var(--teal-ink); width:5rem; }
.proj td:nth-child(2) { min-width:14rem; }
.proj td:nth-child(3) { white-space:nowrap; }
.tag { display:inline-block; font-weight:700; font-size:.6rem; letter-spacing:.08em; text-transform:uppercase; border-radius:6px; padding:2px 7px; }
.tag.prop { background:var(--amber-soft); color:var(--amber-ink); }
@media (max-width:480px) { .hdr-nav { flex-wrap:wrap; overflow:visible; } }
.proj td:nth-child(3), .proj td:nth-child(4), .proj td:nth-child(5) { white-space:nowrap; }
.tbr { color:var(--muted); font-style:italic; }
.chip.mine { margin-left:auto; }
@media (max-width:640px) { .chip.mine { margin-left:0; } }
.proj td a { color:inherit; text-decoration:underline; text-decoration-color:var(--frame); text-underline-offset:3px; }
.proj td a:hover { color:var(--teal-ink); text-decoration-color:var(--teal); }
.ghost.sm { font-size:.74rem; padding:3px 10px; margin-left:8px; }
