/* Full guides: the look of a full-guide page (guides/<slug>/full/) and the print layout that the hosted PDF is made from.
   Also loaded by the two guide pages that are their own full guide (Off-Ball Screening, Transition).
   Everything print-related is scoped to body.guide-doc, so other pages are untouched. */

body.guide-wide { --max: 820px; }

/* Buttons row under the title: Print / save as PDF (a button) and Download PDF (a link) */
.fg-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.75rem; }
.fg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--lime);
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  transition: all 0.2s;
}
.fg-btn:hover { background: var(--lime-dk); border-color: var(--lime-dk); transform: translateY(-2px); }
.fg-btn.ghost { background: transparent; color: var(--lime); }
.download-card .btn + .fg-btn { margin-left: 0.6rem; }
.fg-btn.ghost:hover { background: rgba(181,227,42,0.1); }

/* On this page */
.toc {
  margin: 0 0 2.25rem;
  padding: 1.1rem 1.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.toc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 0.5rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.3rem; break-inside: avoid; }
.toc a { color: var(--chalk); text-decoration: none; }
.toc a:hover { color: var(--lime); text-decoration: underline; }
article h2 { scroll-margin-top: 5rem; }
.lede a, article p a, article li a { color: var(--lime); }
article sup a { text-decoration: none; }

/* Boxes from the Word guides: a quote with its credit, or a callout with a title */
.box {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--lime);
  break-inside: avoid;
}
.box > :last-child { margin-bottom: 0; }
.box-title { font-weight: 600; color: var(--chalk); margin-bottom: 0.4rem; }
.box-text { font-style: italic; color: var(--chalk); margin-bottom: 0.5rem; }
.box-attr { font-size: 0.85rem; color: #a6b3a2; margin-bottom: 0; }
.box.junior { background: rgba(181,227,42,0.07); border-left-width: 4px; }
.box.junior .box-title { color: var(--lime); font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.box.try { border-left-color: var(--lime); }
.box.avoid { border-left-color: #e8956a; background: rgba(232,149,106,0.07); }
.box.avoid .box-title { color: #e8956a; }
.box.try .box-title { color: var(--lime); }
.box.template { background: rgba(255,255,255,0.05); break-inside: auto; }
.box.template .box-text { font-style: normal; color: var(--chalk-dk); }
.box-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--lime); margin: 1rem 0 0.2rem; text-transform: uppercase; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.two-col .box { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; }
.table-wrap:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.fg-table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.fg-table th, .fg-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.1); color: var(--chalk-dk); }
.fg-table th { color: var(--lime); font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.fg-table td:first-child { color: var(--chalk); font-weight: 600; }

.fg-about { font-size: 0.85rem; font-style: italic; color: #a6b3a2; margin-bottom: 1.75rem; }
.print-only { display: none; }

@media (max-width: 600px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .toc ol { columns: 1; }
}

/* Print: white page, no site chrome, boxes and rows kept whole. The PDF is made from this layout. */
@media print {
  @page {
    size: A4;
    margin: 16mm 15mm 18mm;
    @bottom-center { content: "junior.basketball  ·  page " counter(page); font-size: 8pt; color: #555; }
  }
  body.guide-doc { background: #fff !important; color: #111; font-size: 10.5pt; line-height: 1.45; }
  body.guide-doc::before { display: none !important; }
  body.guide-doc .site-header, body.guide-doc .crumbs, body.guide-doc .fg-actions, body.guide-doc footer,
  body.guide-doc .download-card, body.guide-doc .no-print { display: none !important; }
  body.guide-doc .print-only { display: block; }
  body.guide-doc main { max-width: 100%; padding: 0; }
  body.guide-doc h1 { color: #1a3a2a; font-size: 26pt; margin-bottom: 0.4rem; }
  body.guide-doc .guide-eyebrow { color: #555; }
  body.guide-doc .guide-eyebrow::before { background: #1a3a2a; }
  body.guide-doc .lede { color: #222; font-size: 11.5pt; margin-bottom: 1rem; }
  body.guide-doc article h2 { color: #1a3a2a; font-size: 16pt; margin: 1.4rem 0 0.5rem; break-after: avoid; }
  body.guide-doc article h3 { color: #1a3a2a; break-after: avoid; }
  body.guide-doc article p, body.guide-doc article ul, body.guide-doc article ol, body.guide-doc article li { color: #111; }
  body.guide-doc article strong { color: #000; }
  body.guide-doc a { color: #111; text-decoration: none; }
  body.guide-doc article a, body.guide-doc .lede a { color: #1a5c2e !important; text-decoration: underline; }
  body.guide-doc article sup a { text-decoration: none; }
  body.guide-doc .print-title { margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #1a3a2a; font-size: 9pt; letter-spacing: 0.1em; text-transform: uppercase; color: #555; }
  body.guide-doc .print-title strong { color: #1a3a2a; }
  body.guide-doc .toc { background: none; border: 1px solid #ccc; padding: 0.6rem 1rem; margin-bottom: 1rem; break-inside: avoid; }
  body.guide-doc .toc-title { color: #1a3a2a; }
  body.guide-doc .toc a { color: #111; }
  body.guide-doc .box { background: #f3f3ee !important; border-left: 3px solid #1a3a2a; padding: 0.6rem 0.9rem; margin-bottom: 0.8rem; }
  body.guide-doc .box.junior { background: #eef5d8 !important; }
  body.guide-doc .box.template { break-inside: auto; }
  body.guide-doc .box.template .box-text { color: #111; }
  body.guide-doc .box-label { color: #1a3a2a; break-after: avoid; }
  body.guide-doc .box.avoid { background: #faeee6 !important; border-left-color: #b4572c; }
  body.guide-doc .box.avoid .box-title { color: #b4572c; }
  body.guide-doc .box.try .box-title { color: #1a3a2a; }
  body.guide-doc .box-title, body.guide-doc .box-text { color: #111; }
  body.guide-doc .box.junior .box-title { color: #1a3a2a; }
  body.guide-doc .box-attr { color: #444; }
  body.guide-doc .fg-table th { color: #1a3a2a; border-bottom: 1.5px solid #1a3a2a; }
  body.guide-doc .fg-table td { color: #111; border-bottom: 1px solid #ccc; }
  body.guide-doc .fg-table td:first-child { color: #000; }
  body.guide-doc .fg-table tr { break-inside: avoid; }
  body.guide-doc .related, body.guide-doc .attrib { color: #333; border-top: 1px solid #ccc; margin-top: 1.4rem; padding-top: 0.8rem; }
  body.guide-doc .related h2 { color: #1a3a2a; font-size: 12pt; margin: 0 0 0.3rem; }
  body.guide-doc .fg-about, body.guide-doc .attrib { color: #333; }
  body.guide-doc .gym-quote { background: #f3f3ee !important; border-left: 3px solid #1a3a2a; padding: 0.7rem 1rem; margin: 0 0 1rem; break-inside: avoid; }
  body.guide-doc .gym-quote p { color: #111 !important; }
  body.guide-doc .gym-quote-attr { color: #444 !important; }
  body.guide-doc .gym-quote-lens strong { color: #1a3a2a !important; }
  body.guide-doc .gym-quote-note { color: #555 !important; }
  body.guide-doc .two-col { gap: 0.6rem; }
}
