/* OP HQ free resources (N3, 2026-12-01): /hq/free and its guides, on top of /hq/data/rooms.css (the office look) and
   /hq/rooms/room.css (room colors, tool cards, the paid call). Mobile first from 320 px, tap targets 40 px or more, no
   sideways page scroll, no inline styles. Printing a checklist prints only the lists. */
.fpage .wrap { gap:14px; }
.fpage .top .chipbtn, .fpage .back { min-height:40px; text-decoration:none; }
.fr-hero { align-items:start; }
.fr-hero .rkick { margin:0 0 2px; }
.fr-hero h1 { overflow-wrap:anywhere; }
.fr-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px !important; }
.fpage .card > p, .fpage .card li { overflow-wrap:anywhere; }
.fpage .card p { margin:0; }
.fpage .card h3 { margin-top:4px; }
.fpage .row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.fpage .row > .sbtn, .fpage .row > .cta { min-height:44px; text-decoration:none; }
@media (max-width:480px) { .fpage .row > .sbtn, .fpage .row > button.sbtn { flex:1 1 100%; justify-content:center; } }

/* lists with an icon per line */
.fr-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.fr-list li { display:grid; grid-template-columns:20px minmax(0,1fr); gap:8px; align-items:start; }
.fr-list li > svg.ic { width:20px; height:20px; color:var(--go); margin-top:2px; }
.fr-list li .fine { color:var(--muted); }
.fr-steps { margin:0; padding-left:22px; display:grid; gap:6px; }
.fr-wide { display:block; width:100%; height:auto; border-radius:12px; border:2px solid var(--line); background:#0b1838; }

/* the six styles */
.fr-styles { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr)); gap:14px; }
.fr-style { background:var(--panel); border:1.5px solid var(--edge); border-radius:14px; overflow:hidden; display:grid; grid-template-rows:auto 1fr; min-width:0; scroll-margin-top:12px; }
.fr-style:target { border-color:var(--rc); }
.fr-style img { display:block; width:100%; height:auto; aspect-ratio:16 / 9; background:#0b1838; }
.fr-sbody { padding:14px; display:flex; flex-direction:column; gap:10px; height:100%; }
.fr-sbody h3 { margin:0; display:flex; gap:8px; align-items:center; font:800 18px/1.2 var(--display); }
.fr-n { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--rc); color:#1b0f02; font:800 15px var(--display); flex:none; }
.fr-dl2 { margin:0; display:grid; gap:4px; font-size:14px; }
.fr-dl2 dt { font:800 12px var(--body); letter-spacing:.06em; text-transform:uppercase; color:var(--ink2); margin-top:4px; }
.fr-dl2 dd { margin:0; }
.fr-sbody .sbtn { align-self:flex-start; margin-top:auto; min-height:44px; text-decoration:none; white-space:normal; text-align:left; }

/* genre chips and the settings tables (cards on a phone) */
.fr-chips { display:flex; flex-wrap:wrap; gap:6px; }
.fr-chips a { display:inline-flex; align-items:center; min-height:40px; padding:8px 13px; border-radius:99px; background:var(--plum-2); border:1.5px solid var(--line); color:var(--cream); font:800 13px var(--body); text-decoration:none; }
.fr-chips a:hover { border-color:var(--rc); }
.fpage section[id] { scroll-margin-top:12px; }
table.fr-set { width:100%; border-collapse:collapse; font-size:14px; }
table.fr-set th, table.fr-set td { text-align:left; vertical-align:top; padding:8px 10px; border-bottom:1px solid var(--row); }
table.fr-set thead th { font:800 11.5px var(--body); letter-spacing:.05em; text-transform:uppercase; color:var(--ink2); }
table.fr-set tbody th { font-weight:800; color:var(--cream); }
table.fr-set td:first-child { color:var(--muted); font-size:13px; }
@media (max-width:700px) {
  table.fr-set thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  table.fr-set, table.fr-set tbody, table.fr-set tr, table.fr-set th, table.fr-set td { display:block; width:100%; }
  table.fr-set tr { background:var(--panel); border:1.5px solid var(--edge); border-radius:12px; padding:8px 12px; margin-bottom:8px; }
  table.fr-set th, table.fr-set td { border:0; padding:2px 0; }
  table.fr-set tbody th { font:800 16px/1.25 var(--display); order:-1; }
  table.fr-set td[data-l]::before { content:attr(data-l) ": "; color:var(--ink2); font-weight:800; font-size:12px; }
  table.fr-set td:first-child { font-size:12.5px; }
}

/* checklists */
.fr-part { font:800 17px/1.2 var(--display) !important; margin-top:10px !important; color:var(--lit); }
.fr-check { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.fr-check label { display:grid; grid-template-columns:26px minmax(0,1fr); gap:10px; align-items:start; background:var(--panel); border:1.5px solid var(--edge); border-radius:12px; padding:10px 12px; cursor:pointer; min-height:44px; }
.fr-check input { width:22px; height:22px; margin:1px 0 0; accent-color:var(--go); }
.fr-check label:has(input:checked) { border-color:#2f8f5b; background:#10331f; }
.fr-check label > span { overflow-wrap:anywhere; }
.fr-rules .fr-short { display:block; margin-top:3px; font-size:14px; color:var(--cream); }
.fr-rules .fine { display:block; margin-top:3px; }
.pill.fr-own { font-size:11px; padding:1px 8px; }
.fr-hire, .fr-fill { margin-top:6px; }
.fr-hire > b, .fr-fill > b { display:flex; align-items:center; gap:8px; }
.fr-zoom { display:block; }
.fr-zoom:focus-visible { outline:3px solid var(--lit); outline-offset:3px; border-radius:12px; }
.fr-hire .sbtn, .fr-fill .sbtn { justify-self:start; min-height:44px; text-decoration:none; }
.fr-count:empty { display:none; }

/* GDD sections */
.fr-secs { margin:0; padding-left:0; list-style:none; display:grid; gap:10px; }
.fr-secs > li { background:var(--panel); border:1.5px solid var(--edge); border-radius:12px; padding:10px 12px; }
.fr-secs ul { margin:6px 0 4px; padding-left:20px; color:var(--muted); font-size:14px; }

/* sources */
.fr-src ul { margin:0; padding-left:20px; display:grid; gap:6px; }
.fr-src li > a:first-child { display:inline-flex; align-items:center; min-height:40px; } /* 40 px tap targets on a phone */

/* index */
.fpage h2.rc-art .ic, .fpage h2.rc-forge .ic, .fpage h2.rc-qa .ic { color:var(--rc); }

/* print: the checklists only, black on white */
@media print {
  :root { color-scheme:light; } /* empty white boxes to tick with a pen, not dark ones */
  body { background:#fff !important; color:#000 !important; padding:0 !important; }
  #ophq-install { display:none !important; } /* the phone app install hint (public/hq/pwa.js) is not printed on every page */
  .fr-hero { display:block !important; background:#fff !important; border:0 !important; padding:0 !important; } /* the title gets the full width without the tile */
  .fr-hero h1, .fr-hero p { color:#000 !important; }
  .fpage .wrap, .fpage .card { display:block !important; } /* grid cards split across pages draw headings over list rows in Chrome */
  .fpage .card > * + * { margin-top:8px !important; }
  .fr-check { display:block !important; }
  .fr-check li { margin-bottom:6px; }
  .top, .fr-hero .tile, .fr-tags, .rcta, .rfoot, .fr-noprint, .fr-hire, #sources, .fr-chips { display:none !important; }
  .card { background:#fff !important; border:0 !important; padding:0 !important; break-inside:auto; }
  .fr-check label { background:#fff !important; border:1px solid #999 !important; break-inside:avoid; color:#000; }
  .fr-check label:has(input:checked) { background:#fff !important; }
  a { color:#000 !important; }
  .fine, .fr-part, .fr-rules .fr-short { color:#000 !important; }
}
