/* Catalog K1, tag page, service pages S3 (task 05). Prototype:
   design/projects/nav/proto/n3.html (.strip, .sec, .tiles, .pager, .tdesc, .svc,
   .toc, .mail ...); corrections: design/FOR_ARCHITECT_review-fixes.md. Tiles,
   pills and chips are shared - main.css. */

/* ---------- the tag strip: sticky, scrolls sideways on a phone, the current chip white ---------- */
.strip { position: sticky; top: 0; z-index: 20; background: var(--st); }
.strip.stuck { box-shadow: inset 0 -1px 0 var(--glass2); }
.strip ul {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad) 12px; scroll-padding-inline: var(--pad);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.strip ul::-webkit-scrollbar { display: none; }
.strip li { flex: none; }

/* ---------- headings shared by the lists and the service pages ---------- */
.list, .svc { padding-bottom: 8px; }
.h1 { padding-top: 14px; font-size: 34px; line-height: 1.04; font-weight: 900; letter-spacing: -.025em; overflow-wrap: normal; }
.meta { margin-top: 6px; font-size: 15px; color: var(--soft); }

/* ---------- catalog and tag page ---------- */
.tdesc { max-width: 34em; margin: 10px 0 18px; font-size: 17px; line-height: 1.42; font-weight: 700; color: var(--soft); text-wrap: pretty; }
.sec { margin-top: 30px; }
.sech { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sech h2 { min-width: 0; font-size: 22px; line-height: 1.12; font-weight: 900; letter-spacing: -.01em; }
.sech h2 a { text-decoration: none; }
.sech .cnt { font-size: 14px; font-weight: 800; color: var(--soft); white-space: nowrap; }
/* pager (/page/N/ is the engine's): back · numbers · next; empty places keep the numbers still */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 22px; }
.pager ol { display: flex; gap: 6px; }
.pager ol a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 22px; background: var(--glass); font-size: 16px; font-weight: 900; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color .12s; }
.pager ol a[aria-current="page"] { background: var(--tx); color: var(--st); }
.pbtn { display: inline-flex; align-items: center; gap: 4px; min-width: 96px; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--glass); font-size: 16px; font-weight: 900; text-decoration: none; transition: background-color .12s; }
.pbtn:last-child { justify-content: flex-end; }
.pbtn.off { background: none; }
.pbtn svg { width: 16px; height: 16px; }

/* ---------- service pages S3: the page's text, a table of contents from four H2s ---------- */
.upd { margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--soft); }
.mail { display: flex; align-items: center; gap: 12px; max-width: 34em; min-height: 56px; margin-top: 18px; padding: 8px 14px 8px 10px; border-radius: 16px; background: var(--glass); font-size: 17px; font-weight: 900; text-decoration: none; transition: background-color .12s; }
.mail .ic { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tx); color: var(--st); }
.mail .ic svg { width: 20px; height: 20px; }
.mail .ad { min-width: 0; overflow-wrap: anywhere; }
.mail > svg { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--tx); }
.lead { max-width: 34em; margin-top: 18px; font-size: 19px; line-height: 1.42; color: var(--tx); }
.lead a { color: var(--tx); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.rich { display: grid; gap: 12px; max-width: 34em; margin-top: 18px; color: var(--soft); line-height: 1.5; }
.rich h2 { margin-top: 14px; font-size: 22px; line-height: 1.15; font-weight: 900; letter-spacing: -.01em; color: var(--tx); scroll-margin-top: 20px; }
.rich h3 { margin-top: 4px; font-size: 19px; line-height: 1.2; font-weight: 900; color: var(--tx); }
.rich ul, .rich ol { display: grid; gap: 6px; padding-left: 1.2em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li::marker { color: var(--soft); }
.rich a { color: var(--tx); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.rich strong, .rich b { color: var(--tx); font-weight: 900; }
/* cookie and key names in the privacy text: the site's font, white, not a code box */
.rich code { font: inherit; font-weight: 800; color: var(--tx); overflow-wrap: anywhere; }
.svc.toc-on .rich { counter-reset: h; }
.svc.toc-on .rich h2::before { counter-increment: h; content: counter(h) "."; margin-right: 8px; color: var(--soft); font-variant-numeric: tabular-nums; }
.toc { margin-top: 18px; padding: 12px 16px 6px; border-radius: 16px; background: var(--glass); }
.toc .tl { font-size: 14px; font-weight: 900; color: var(--tx); }
.toc ol { margin-top: 2px; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; font-size: 16px; line-height: 1.2; font-weight: 800; text-decoration: none; }
.toc a i { flex: none; width: 22px; font-style: normal; color: var(--tx); font-variant-numeric: tabular-nums; }

@media (min-width: 600px) {
  .h1 { font-size: 44px; }
  .pager { justify-content: center; gap: 14px; }
}
@media (min-width: 1000px) {
  .strip ul { flex-wrap: wrap; overflow: visible; margin: 0; padding: 6px 0 14px; -webkit-mask-image: none; mask-image: none; }
  .h1 { padding-top: 18px; font-size: 56px; }
  .tdesc { font-size: 19px; }
  .sec { margin-top: 38px; }
  .svc .rich { max-width: 680px; font-size: 18px; }
  .svc .lead { max-width: 680px; font-size: 20px; }
  .svc .mail { max-width: 440px; }
  .svc.toc-on .cols { display: grid; grid-template-columns: 260px minmax(0, 680px); gap: 64px; align-items: start; }
  .svc.toc-on .toc { position: sticky; top: 24px; margin-top: 26px; padding: 2px 0 2px 18px; border-radius: 0; background: none; box-shadow: inset 2px 0 0 var(--glass2); }
  .svc.toc-on .toc a { color: var(--soft); }
  .svc.toc-on .toc a i { color: inherit; }
  .svc.toc-on .toc a[aria-current] { color: var(--tx); }
}

@media (hover: hover) and (pointer: fine) {
  .sech h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
  .pager ol a:hover, a.pbtn:hover, .mail:hover { background: var(--glassh); }
  .pager ol a[aria-current="page"]:hover { background: var(--tx); }
  .toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
