/* Piku Print Club, the site. The two plain reading pages (/privacy/ and /support/). Loaded after base.css (tokens, the focus ring, the skip link).
   "The same brand, turned down": paper and ink, ONE accent (teal), everything straight (nothing tilted except the wordmark sticker, which is
   tilted on every page), no motion, no dots. DynaPuff only for the page title; Nunito for everything else.
   The pages have no script. The table of contents is plain anchors. Order of the rules: frame, top block, contents, sections, table, footer,
   then the responsive and print blocks at the end. */

/* ============ frame: header, main and footer share one centred width ============ */
.pg-head,.pg,.pg-foot{width:100%;max-width:1080px;margin-inline:auto;padding-inline:clamp(16px,4vw,40px)}
.pg-head{padding-top:clamp(18px,3vw,28px)}
.pg-logo{display:block;width:clamp(120px,14vw,156px);rotate:-3deg}
.pg-logo img{display:block;width:100%;height:auto}
.pg{padding-top:clamp(14px,3vw,30px);padding-bottom:clamp(40px,7vw,80px)}

/* ============ top block: back link, the title, the date, the one-paragraph promise ============ */
.pg-back{display:inline-flex;align-items:center;gap:.55em;min-height:44px;font-size:1.0625rem;font-weight:800}
.pg-back::before{content:"";width:.55em;height:.55em;border-left:3px solid currentColor;border-bottom:3px solid currentColor;rotate:45deg;translate:.2em 0}
.pg h1{margin:.12em 0 .18em;font-size:clamp(2.75rem,8vw,4.25rem);line-height:1.02;text-shadow:-.03em .03em 0 var(--teal)}
.pg-updated{font-size:1.0625rem;font-weight:700;color:var(--ink78)}
.pg-lead{max-width:41rem;margin-top:1.1rem;font-size:clamp(1.25rem,2.6vw,1.5rem);font-weight:600;line-height:1.45}
.pg-updated+.pg-lead{margin-top:1.4rem}

/* placeholders the owner still has to fill (the contact address, the date): loud on purpose, never to be shipped */
.todo{display:inline-block;padding:.05em .4em .1em;border:2px dashed var(--ink);border-radius:8px;background:var(--pink-tint);color:var(--ink);font-weight:800;line-height:1.3;overflow-wrap:anywhere}

/* ============ the grid: contents on the left (wide screens), the text in one readable column ============ */
.pg-grid{display:grid;gap:clamp(28px,4vw,40px);margin-top:clamp(26px,4vw,48px)}
.pg-body{max-width:68ch;font-size:1.125rem;line-height:1.65}

/* contents: wrapping pills on a phone, a plain list beside the text on wide screens */
.toc-h{margin-bottom:.7rem;font-size:.875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink78)}
.toc ul{display:flex;flex-wrap:wrap;gap:8px}
.toc a{display:inline-flex;align-items:center;min-height:44px;padding:.3em 1.05em .36em;border:1px solid var(--hair);border-radius:999px;background:#fff;font-size:1rem;font-weight:800;line-height:1.25;color:var(--ink);text-decoration:none}
.toc a:hover{border-color:var(--teal);box-shadow:inset 0 -3px 0 var(--teal)}

/* ============ sections: a thin teal rule, a Nunito 800 heading, calm sentences ============ */
.sec{padding-top:1.15rem;border-top:2px solid var(--teal)}
.sec+.sec,.sec+.pg-end{margin-top:clamp(28px,4vw,40px)}
.pg-body h2{margin:0 0 .65rem;font-family:var(--font-body);font-variation-settings:normal;font-weight:800;font-size:clamp(1.375rem,3vw,1.625rem);line-height:1.22}
.pg-body h3{margin:0 0 .3rem;font-family:var(--font-body);font-variation-settings:normal;font-weight:800;font-size:1.1875rem;line-height:1.3}
.pg-body p+p,.pg-body p+ul,.pg-body ul+p,.pg-body p+.perm,.pg-body .perm+p{margin-top:1rem}
.pg-body ul{display:grid;gap:.75rem;margin-top:1rem}
.pg-body li{position:relative;padding-left:1.5em}
.pg-body li::before{content:"";position:absolute;left:.15em;top:.68em;width:.5em;height:.5em;border-radius:50%;background:var(--teal)}
.pg-body b{font-weight:800}
.pg-body a{font-weight:800;text-underline-offset:.18em;text-decoration-thickness:2px}
.qa+.qa{margin-top:1.4rem}
.pg-end{display:flex}

/* ============ the permissions table: a white card on wide screens, one card per permission on a phone ============ */
.perm{width:100%;margin-top:1rem;border-collapse:separate;border-spacing:0;border:1px solid var(--hair);border-radius:14px;background:#fff;overflow:hidden;font-size:1.0625rem;line-height:1.5}
.perm th,.perm td{padding:.95rem 1.05rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--hair)}
.perm thead th{background:var(--tile);font-size:.9375rem;font-weight:800;line-height:1.3}
.perm tbody th{width:8.6rem;font-weight:800}
.perm tbody tr:last-child>*{border-bottom:0}

/* ============ footer: the same small block as the main page ============ */
.pg-foot{display:flex;flex-direction:column;align-items:center;gap:16px;padding-top:clamp(30px,4vw,44px);padding-bottom:48px;border-top:1px solid var(--hair);text-align:center}
.pg-foot-logo{width:150px;height:auto}
.pg-foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 26px}
.pg-foot-links a{display:inline-flex;align-items:center;min-height:44px;font-size:1.0625rem;font-weight:800;color:var(--ink)}
.pg-foot-links a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--teal);text-decoration-thickness:3px;text-underline-offset:.22em}
.pg-foot-fine{max-width:38rem;font-size:1rem;font-weight:600;line-height:1.5;color:var(--ink78)}

/* ============ responsive (in this order: wide first, then phone) ============ */
@media (min-width:980px){
  .pg-grid{grid-template-columns:15rem minmax(0,1fr);gap:clamp(40px,5vw,72px)}
  .toc{position:sticky;top:24px;align-self:start}
  .toc ul{display:block}
  .toc a{display:flex;align-items:center;min-height:44px;padding:.3em .6em;margin-inline:-.6em;line-height:1.3;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ink78)}
  .toc a:hover{color:var(--ink);text-decoration:underline;text-decoration-color:var(--teal);text-decoration-thickness:3px;text-underline-offset:.22em;box-shadow:none}
}
@media (min-width:980px) and (max-height:640px){
  .toc{position:static}
}
@media (max-width:640px){
  .pg-body{font-size:1.0625rem}
  /* the table becomes one card per permission (its roles keep it a table for screen readers) */
  .perm,.perm tbody,.perm tr,.perm th,.perm td{display:block}
  .perm thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .perm tbody tr{padding:1rem 1.05rem 1.1rem;border-bottom:1px solid var(--hair)}
  .perm tbody tr:last-child{border-bottom:0}
  .perm th,.perm td{padding:0;border:0}
  .perm tbody th{width:auto;font-size:1.25rem;line-height:1.25}
  .perm td::before{content:attr(data-label);display:block;margin:.85rem 0 .15rem;font-size:.875rem;font-weight:800;letter-spacing:.04em;color:var(--ink78)}
}

/* ============ print: plain text, no contents, links spelled out ============ */
@media print{
  .skip,.toc,.pg-back,.pg-foot-logo{display:none!important}
  .pg-grid{display:block}
  .pg h1{text-shadow:none}
  .pg-body a[href^="/"]::after{content:" (" attr(href) ")";font-weight:600}
  .sec{break-inside:avoid}
}
