/* Plainspoken Home: /fix/ articles. Loads after base.css + hw.css (reuses the pegboard hero, sign board, hanging cover,
   price tags, .pill, .stop, .peek). Only article parts live here. Accent = the DIY book blue. */
:root { --acc: #1d4f7a; --acc-bg: #e6edf3; --page: #e5e6e6; --navy: #1d3557; --cream: #fbf6ea; }
@font-face { font-family: "Patrick Hand"; font-weight: 400; font-display: swap; src: url(/fonts/patrick-hand.woff2) format("woff2"); }

/* hero: same pegboard aisle as the DIY page, the sign carries the search question */
.art-hero .board h1 { font-size: 30px; }
.art-hero .board h1 .h1-k { font-size: 17px; }
.art-hero .board p { max-width: 36ch; }
.art-hero .hang { width: 96px; }
.crumbs { font: 600 16px/1.3 var(--sans); color: var(--steel); padding-top: var(--s-4); }
.crumbs a { color: var(--steel); }
/* byline under the breadcrumb: who wrote it, when it last changed, how we write (12_SEO/tools/build_article.py) */
.byline { margin-top: var(--s-1); font: 400 16px/1.4 var(--sans); color: var(--steel); }
.byline a { color: var(--steel); }

/* two columns on desktop: the article, and the book card that stays in view */
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: var(--sec); }
.art-grid > * { grid-column: 1; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: var(--pad); margin-top: var(--s-5); }
.card > h2 { font-size: 24px; }
.card > h2 + * { margin-top: var(--s-3); }
.card p + p { margin-top: var(--s-3); }
.k-lbl { display: inline-block; font: 700 16px/1 var(--sign); text-transform: uppercase; letter-spacing: .05em; color: var(--acc); margin-bottom: var(--s-2); }

/* short answer */
.ans { }
.ans .lead { font-size: 20px; color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); list-style: none; padding: 0; }
.facts li { background: var(--acc-bg); color: var(--ink); border-radius: 4px; padding: 6px 10px; font: 600 16px/1.2 var(--sans); }
.facts b { font-weight: 700; }
/* one sourced line, from a source the book chapter names */
.ans .cite { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: 17px; color: var(--steel); }
.ans .cite a { color: var(--acc); }

/* the one diagram */
.dia { margin-top: var(--s-4); background: var(--cream); border: 2px solid #e4dcc6; border-radius: var(--r-in); padding: var(--s-2); }
.dia svg { display: block; width: 100%; height: auto; }
.dia figcaption { padding: var(--s-2) var(--s-2) var(--s-1); font-size: 16px; line-height: 1.35; color: var(--steel); }
.dia text { font-family: "Patrick Hand", "Comic Sans MS", cursive; }

/* safety first */
.safe { border: 2px solid var(--red); }
.safe h2 { color: var(--red); display: flex; align-items: center; gap: var(--s-2); }
.safe h2 svg { width: 26px; height: 26px; flex: none; }
.rows { list-style: none; padding: 0; margin-top: var(--s-3); display: grid; gap: var(--s-3); }
.rows li { display: grid; grid-template-columns: 34px 1fr; gap: var(--s-3); align-items: start; font-size: 18px; line-height: 1.4; color: var(--ink); }
.rows .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 19px/1 var(--sign); }
.safe .rows .n { background: var(--red); }

/* check cards */
.chk { position: relative; }
.chk .tag { position: absolute; top: calc(var(--pad) * -1 + -12px); left: var(--pad); transform: translateY(50%); }
.res { list-style: none; padding: 0; margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.res li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: var(--s-3) var(--s-4); border-radius: var(--r-in); background: #f3f4f4; border: 1px solid var(--line); font-size: 18px; line-height: 1.35; }
.res li b { color: var(--ink); }
.res li.go { border-color: #b7d8c0; background: var(--green-bg); }
.res li b::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--dot, var(--steel)); }
.res li.go { --dot: var(--green); } .res li.book { --dot: var(--acc); } .res li.no { --dot: var(--red); }
.res li.book { border-color: #c3d2df; background: var(--acc-bg); }
.res li.no { border-color: #efc9c4; background: #fdf0ee; }
.res li span { color: var(--body); }
.seen { margin-top: var(--s-3); font-size: 18px; color: var(--ink); }
.seen b { color: var(--green); }
.note { margin-top: var(--s-3); font-size: 17px; font-weight: 600; color: var(--ink); }   /* v2: notes often carry a stop line, so never muted grey */

/* what the book adds (mid-article and the desktop side card) */
.bk { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); margin-top: var(--s-6); }
.bk-h { background: var(--ink); color: #fff; padding: var(--s-4) var(--pad); }
.bk-h .k-lbl { color: var(--yellow); margin: 0; }
.bk-h .bk-t { color: #fff; font: 700 24px/1.15 var(--sans); letter-spacing: -.012em; margin-top: var(--s-1); text-wrap: balance; }   /* v2: a label, not an H2 */
.bk-in { padding: var(--pad); display: grid; gap: var(--s-4); }
.bk-pg { position: relative; display: block; border-radius: 4px; overflow: hidden; outline: 1px solid var(--line); box-shadow: 0 10px 20px -14px rgba(0,0,0,.6); }
.bk-pg span { position: absolute; left: 50%; bottom: var(--s-4); transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; border-radius: 4px; padding: 6px 12px; font: 700 16px/1 var(--sign); text-transform: uppercase; letter-spacing: .04em; }
.bk-cap { font-size: 16px; color: var(--steel); margin-top: calc(var(--s-2) * -1); }
.adds { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.adds li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-2); font-size: 17.5px; line-height: 1.35; color: var(--ink); }
.adds svg { width: 20px; height: 20px; margin-top: 2px; color: var(--acc); }
.bk-buy { display: grid; gap: var(--s-3); justify-items: start; }
.bk-buy .row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.bk-buy .row small { font-size: 16px; color: var(--steel); line-height: 1.3; }
.bk-buy .btn { width: 100%; }
.bk-free { font-size: 17px; font-weight: 600; }

/* stop box */
.art-stop { margin-top: var(--s-5); padding: var(--pad); border-radius: var(--r); background: #fdf0ee; border: 2px solid var(--red); }
.art-stop h2 { color: var(--red); font-size: 24px; }
.art-stop ul { margin-top: var(--s-3); padding-left: var(--s-5); display: grid; gap: var(--s-2); font-size: 18px; line-height: 1.4; color: var(--ink); }

/* FAQ + sources */
.art-faq { margin-top: var(--s-6); }
.art-faq h2 { font-size: 26px; }
.art-faq dl { margin-top: var(--s-3); border-top: 3px solid var(--ink); }
.art-faq dl > div { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.art-faq dt { font: 700 19px/1.3 var(--sans); color: var(--ink); }
.art-faq dd { margin-top: var(--s-1); font-size: 18px; }
.src { margin-top: var(--s-5); font-size: 16px; line-height: 1.4; color: var(--steel); }

@media (min-width: 760px) {
  .art-hero .board h1 { font-size: 40px; }
  .art-hero .board h1 .h1-k { font-size: 19px; }
  .art-hero .hang { width: 140px; }
  .rows, .res { max-width: 680px; }
}
@media (min-width: 1000px) {
  .art-hero .board { max-width: 660px; }
  .art-hero .board h1 { font-size: 50px; }
  .art-hero .hang { width: 180px; }
  .art-grid { grid-template-columns: minmax(0, 1fr) 390px; column-gap: var(--s-7); align-items: start; }
  .art-grid > .bk { grid-column: 2; grid-row: 1 / span 9; position: sticky; top: calc(var(--head) + var(--s-4)); margin-top: var(--s-5); }
  .card > h2 { font-size: 28px; }
}

/* diagram: cutaway + bottom view side by side from 600px, stacked on phones (labels stay readable) */
.d-row { display: grid; gap: var(--s-2); justify-items: center; }
.d-row .d-cut { max-width: 450px; }
.d-row .d-bot { width: 62%; max-width: 230px; }
@media (min-width: 600px) { .d-row { grid-template-columns: 450fr 230fr; align-items: end; } .d-row .d-bot { width: 100%; } }

/* FAQ folded behind one white card */
.art-faq details { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); }
.art-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--pad); min-height: 60px; }
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after { content: "+"; font: 700 30px/1 var(--sign); color: var(--acc); }
.art-faq details[open] summary::after { content: "\2013"; }
.art-faq summary h2 { font-size: 22px; }
.art-faq details dl { margin: 0 var(--pad) var(--s-3); }

/* round 2: the diagram has its own card; check 2 ends on a hand-off to the book */
.fig .dia { margin-top: 0; }
.fig svg { max-width: 520px; margin: 0 auto; }
.next { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-in); background: var(--acc-bg); border: 1px solid var(--line); display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; font-size: 18px; line-height: 1.4; color: var(--ink); }
.next svg { width: 24px; height: 24px; margin-top: 1px; color: var(--acc); }
.bk-more { font-size: 16.5px; color: var(--steel); }
.bk-more a { font-weight: 700; }

/* related fixes: one small link row between the stop box and the FAQ */
.rel { margin-top: var(--s-5); }
.rel ul { list-style: none; padding: 0; margin-top: var(--s-2); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rel a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 600 17px/1.2 var(--sans); color: var(--ink); text-decoration: none; }
.rel a:hover { border-color: var(--acc); color: var(--acc); }
/* taller diagrams (front + back views) stay a sensible size on desktop */
.fig svg[viewBox$=" 620"] { max-width: 400px; }

/* about page */
.about-in { padding-bottom: var(--sec); max-width: 860px; }
.about-in .card h2 { font-size: 26px; }
.about-in .card > h2 + * { margin-top: var(--s-3); }
.about-list { margin-top: var(--s-3); padding-left: var(--s-5); display: grid; gap: var(--s-2); font-size: 18px; }
.about-list + p { margin-top: var(--s-4); }
.about-in .rows + .note { margin-top: var(--s-4); }
.about-in .rows + p { margin-top: var(--s-4); }

/* /how-tos/ directory (template v2, 2026-11-16): every live how-to, grouped by hub, linked by its full question */
.dir-jump { margin-top: var(--s-3); font: 600 17px/1.4 var(--sans); color: var(--steel); }
.dir-jump a { display: inline-block; padding: 8px 0; font-weight: 700; }
.dir { margin-top: var(--s-6); }
.dir .ht-home-h a { font: 700 17px/1.3 var(--sans); }
.dir-list { list-style: none; padding: 0; border-top: 3px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s-6); }
.dir-list li { border-bottom: 1px solid var(--line); }
.dir-list a { display: block; padding: 12px 0; min-height: 44px; font: 600 18px/1.35 var(--sans); color: var(--ink); text-decoration: none; }
.dir-list a:hover { color: var(--acc); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 760px) { .dir-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dir .ht-home-h { flex-wrap: wrap; row-gap: var(--s-1); }

/* template v2: the header's neutral "Our guides" link (no priced button on articles, hubs and /how-tos/) */
.top-guides { display: inline-flex; align-items: center; min-height: 44px; font: 700 17px/1 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; white-space: nowrap; }
.top-guides:hover { text-decoration-color: var(--ink); }
@media (max-width: 420px) { .top-guides { font-size: 16px; } }
@media (max-width: 370px) { .top-guides { font-size: 15px; } }
/* listings on phones: smaller thumbnails so the full question has room; /how-tos/ shows 3 newest before the directory */
@media (max-width: 480px) { .hub-in .ht-card { grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-3); } }
@media (max-width: 759px) { .ht-newest li:nth-child(n+4) { display: none; } }
.dir-jump a { padding: 10px 4px; }
