/* Paper: an editorial broadsheet. Serif headlines, ink rules instead of glass, a numbered
   index, words instead of icons in the bar, sharp corners and a stamped card-stock shadow.
   Colours come from look.ts (Signature: cream and oxblood); nothing here is translucent. */

[data-style="paper"] {
  --font: "Haven Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--f-paper);
  --rule: rgb(var(--ink) / 0.9);
  --hair: rgb(var(--ink) / 0.18);
}
[data-style="paper"] body { background: var(--bg) radial-gradient(rgb(var(--ink) / 0.035) 1px, transparent 1px) 0 0 / 3px 3px; }
[data-style="paper"] .dash::before { background: none; }
[data-style="paper"] ::-webkit-scrollbar-thumb { border-radius: 0; background: rgb(var(--ink) / 0.25); }

/* Masthead */
[data-style="paper"] .brand { flex-direction: column; gap: 6px; }
[data-style="paper"] .brand img { display: none; }
[data-style="paper"] .brand span {
  padding: 2px 0 6px;
  border-bottom: 3px double var(--rule);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
}
[data-style="paper"] .brand::after { content: "Groomers' edition · Est. 2026"; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* Cards: stiff paper with a stamped shadow */
[data-style="paper"] .card {
  background: var(--glass);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 6px 6px 0 rgb(var(--ink) / 0.85);
  backdrop-filter: none;
}
[data-style="paper"] .overlay { background: var(--text); box-shadow: none; backdrop-filter: none; }
[data-style="paper"] .overlay-panel h3 { font-family: var(--font-display); font-size: 44px; font-weight: 400; font-style: italic; text-transform: none; letter-spacing: -0.01em; color: var(--bg); }
[data-style="paper"] .overlay-panel p { color: color-mix(in srgb, var(--bg) 82%, transparent); font-family: var(--font-display); font-size: 15px; }
[data-style="paper"] .overlay .pill { background: transparent; border-color: var(--bg); color: var(--bg); }
[data-style="paper"] .overlay .pill:hover:not(:disabled) { background: var(--bg); color: var(--text); }

/* Type */
[data-style="paper"] h2 { font-family: var(--font-display); font-size: 34px; font-weight: 400; font-style: italic; letter-spacing: -0.01em; line-height: 1.05; }
[data-style="paper"] .lead { font-family: var(--font-display); font-size: 15px; }
[data-style="paper"] .page-title h1 { font-family: var(--font-display); font-size: 40px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
[data-style="paper"] .page-title .muted-sm { font-family: var(--font-display); font-size: 14px; font-style: italic; font-weight: 400; }
[data-style="paper"] .view-title h2 { font-size: 30px; }
[data-style="paper"] .group summary { font-family: var(--font-display); font-size: 18px; font-weight: 500; font-style: italic; }
[data-style="paper"] .footer, [data-style="paper"] .switch { font-family: var(--font-display); font-style: italic; font-size: 14px; }

/* Fields: a line to write on */
[data-style="paper"] .field { border-bottom-color: var(--rule); padding: 8px 0; }
[data-style="paper"] .field input, [data-style="paper"] .field select, [data-style="paper"] .field textarea { font-family: var(--font-display); font-size: 17px; }
[data-style="paper"] .field:focus-within { border-bottom: 2px solid var(--accent); padding-bottom: 7px; }
[data-style="paper"] .check input { accent-color: var(--text); }

/* Buttons: ink blocks with wide capitals */
[data-style="paper"] .pill,
[data-style="paper"] #view-home .pill,
[data-style="paper"] #view-home .pill.compact {
  border-radius: 0;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: letter-spacing 0.3s, background 0.2s, color 0.2s;
}
[data-style="paper"] .pill .ico { stroke: currentColor; }
[data-style="paper"] .pill:hover:not(:disabled),
[data-style="paper"] #view-home .pill:hover:not(:disabled) { background: var(--text); border-color: var(--text); letter-spacing: 0.24em; }
[data-style="paper"] .pill.ghost,
[data-style="paper"] #view-home .pill.compact.ghost,
[data-style="paper"] .pill.danger,
[data-style="paper"] #view-home .pill.compact.danger { background: transparent; color: var(--text); border-color: var(--rule); }
[data-style="paper"] .pill.danger, [data-style="paper"] #view-home .pill.compact.danger { color: var(--danger); border-color: var(--danger); }
[data-style="paper"] #view-home .pill.compact.ghost:hover:not(:disabled) { background: rgb(var(--ink) / 0.06); }
[data-style="paper"] .link { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--accent); text-decoration-thickness: 1px; }
[data-style="paper"] .link:hover:not(:disabled) { color: var(--text); }
[data-style="paper"] .icon-btn { border-radius: 0; background: transparent; border: 1px solid var(--hair); }
[data-style="paper"] .icon-btn:hover { background: rgb(var(--ink) / 0.06); }

/* The bar: words, not icons */
[data-style="paper"] .rail {
  width: 92px;
  gap: 14px;
  border: 0;
  border-right: 3px double var(--rule);
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
}
[data-style="paper"] .rail-logo { display: none; }
[data-style="paper"] .rail::before { content: "G"; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
[data-style="paper"] .rail-apps { border-top: 0; padding-top: 0; }
[data-style="paper"] .rail-btn { width: 80px; height: auto; min-height: 36px; padding: 6px 2px; border-radius: 0; }
[data-style="paper"] .rail-btn .ico { display: none; }
[data-style="paper"] .rail-btn::after {
  content: attr(data-label);
  position: static;
  transform: none;
  opacity: 1;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
  transition: color 0.2s;
}
[data-style="paper"] .rail-btn:hover { background: none; transform: none; }
[data-style="paper"] .rail-btn:hover::after { color: var(--text); }
[data-style="paper"] .rail-btn.active { background: none; box-shadow: none; }
[data-style="paper"] .rail-btn.active::after { color: var(--text); text-decoration: underline double; text-underline-offset: 6px; }
[data-style="paper"] .rail-btn.active::before { display: none; }
[data-style="paper"] #btn-logout:hover { background: none; }
[data-style="paper"] .rail-badge { top: 0; right: 4px; box-shadow: none; border-radius: 0; }
[data-style="paper"][data-nav="bottom"] .rail { width: auto; border-right: 0; border-top: 3px double var(--rule); padding: 4px 8px; }
[data-style="paper"][data-nav="bottom"] .rail::before { display: none; }
[data-style="paper"][data-nav="bottom"] .rail-btn { width: auto; flex: 1 1 0; max-width: none; padding: 10px 2px; }
[data-style="paper"][data-nav="bottom"] .rail-btn::after { display: block; font-size: 9px; letter-spacing: 0.1em; }

/* Columns of print instead of tiles */
[data-style="paper"] .tile {
  border: 0;
  border-top: 2px solid var(--rule);
  border-radius: 0;
  background: var(--tile);
  box-shadow: none;
}
[data-style="paper"] .tile:hover { border-color: var(--rule); translate: none; box-shadow: none; }
[data-style="paper"] .hero { background: var(--tile); }
[data-style="paper"] .hero::after, [data-style="paper"] .swirl { display: none; }
[data-style="paper"] .tile-head { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

[data-style="paper"] .search { border-radius: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; }
[data-style="paper"] .search input { font-family: var(--font-display); font-size: 16px; font-style: italic; }
[data-style="paper"] .tabs { gap: 16px; padding: 0; border: 0; border-radius: 0; background: none; }
[data-style="paper"] .tab { padding: 4px 0; border-radius: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
[data-style="paper"] .tab.active { background: none; box-shadow: none; color: var(--text); border-bottom: 2px solid var(--text); }

/* The index */
[data-style="paper"] .item-list { gap: 0; counter-reset: entry; }
[data-style="paper"] .item-row { border-radius: 0; border-bottom: 1px solid var(--hair); padding: 11px 4px; }
[data-style="paper"] .item-row:hover { background: rgb(var(--ink) / 0.04); }
[data-style="paper"] .item-row.active { background: rgb(var(--ink) / 0.05); box-shadow: inset 3px 0 0 var(--accent); }
[data-style="paper"] .item-txt b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
[data-style="paper"] .avatar {
  border-radius: 50%;
  background: transparent !important;
  border: 1px solid var(--hair);
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
}
[data-style="paper"] .frow { border-top: 1px dotted rgb(var(--ink) / 0.35); }
[data-style="paper"] .frow dt { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
[data-style="paper"] .code { font-family: var(--font-display); font-weight: 600; }
[data-style="paper"] .note-title { font-family: var(--font-display); font-size: 30px; font-weight: 400; font-style: italic; border-bottom-color: var(--rule); }
[data-style="paper"] .note-body { font-family: var(--font-display); font-size: 17px; line-height: 1.7; }
[data-style="paper"] .file-ico, [data-style="paper"] .sys-ico { border-radius: 0; background: transparent; border: 1px solid var(--hair); }
[data-style="paper"] .file-ico i { border-radius: 0; }
[data-style="paper"] .empty.big .ico { stroke: var(--text); }

[data-style="paper"] .toast { border-radius: 0; border: 0; background: var(--text); color: var(--bg); box-shadow: 4px 4px 0 rgb(var(--ink) / 0.3); }
[data-style="paper"] .gm-dialog, [data-style="paper"] dialog { border-radius: 2px; border: 1px solid var(--rule); box-shadow: 8px 8px 0 rgb(var(--ink) / 0.8); background: var(--dialog-bg); }
[data-style="paper"] .gm-appt { border-radius: 2px; }
[data-style="paper"] .gm-input, [data-style="paper"] .gm-menu, [data-style="paper"] .gm-bill, [data-style="paper"] .gm-dog-card, [data-style="paper"] .gm-grid-scroll { border-radius: 2px; }
[data-style="paper"] .chip-opt, [data-style="paper"] .gm-badge, [data-style="paper"] .gm-pill, [data-style="paper"] .chip { border-radius: 2px; }
[data-style="paper"] .look-style, [data-style="paper"] .look-chip { border-radius: 2px; }
[data-style="paper"] .devices li, [data-style="paper"] .recovery-box { border-radius: 0; }
[data-style="paper"] .page { animation-name: paper-in; animation-duration: 0.7s; }
@keyframes paper-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  [data-style="paper"] .page { animation: none; }
}
[data-style="paper"][data-device="phone"] .rail-btn { flex: 1 1 auto; min-width: 0; max-width: none; padding: 10px 1px; }
[data-style="paper"][data-device="phone"] .rail-btn::after { font-size: 8.5px; letter-spacing: 0.04em; }
