/* Office Toolshed – site shell (mockup, phase 1) */
:root {
  --shed: #24453a;
  --shed-deep: #1a352c;
  --shed-ink: #eef3ec;
  --board: #d9dfd6;
  --hole: #b3beb1;
  --paper: #fbfcfa;
  --ink: #1c2420;
  --muted: #56625b;
  --line: #cdd5cb;
  --tape: #f2c744;
  --tape-edge: #d9ad2a;

  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --read: 41rem;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--shed); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-head { background: var(--shed); color: var(--shed-ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--shed-ink); text-decoration: none;
  font: 750 1.2rem/1 var(--sans); font-variation-settings: "wdth" 118; letter-spacing: -.01em;
}
.brand svg { flex: none; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--shed-ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 6px;
}
.site-nav a:hover { background: rgba(255,255,255,.1); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--tape); border-radius: 0; }

/* ---------- pegboard ---------- */
.board {
  background-color: var(--board);
  background-image: radial-gradient(circle at center, var(--hole) 0 3.2px, transparent 3.7px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  border-bottom: 1px solid #c3cbc1;
}

.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); }
.hero-intro {
  max-width: 40rem;
  background: var(--board);            /* lifts the text off the holes */
  box-shadow: 0 0 0 14px var(--board);
  border-radius: 2px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.hero h1 {
  font: 760 clamp(2rem, 4.4vw, 3.15rem)/1.06 var(--sans);
  font-variation-settings: "wdth" 104;
  letter-spacing: -.022em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
.hero-intro p { margin: 0; font-size: 1.12rem; line-height: 1.55; color: #33403a; max-width: 36rem; }

.racks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}
.rack h2 {
  display: inline-block;
  margin: 0 0 22px;
  padding: 5px 12px 6px;
  font: 650 .95rem/1.2 var(--sans);
  font-variation-settings: "wdth" 96;
  color: #2b2410;
  background: var(--tape);
  border-left: 1px dashed var(--tape-edge);
  border-right: 1px dashed var(--tape-edge);
  transform: rotate(-1.2deg);
  box-shadow: 0 1px 1px rgba(60,50,10,.18);
}
.rack:nth-child(2) h2 { transform: rotate(.9deg); }
.rack:nth-child(3) h2 { transform: rotate(-.6deg); }
.rack:nth-child(4) h2 { transform: rotate(1.3deg); }
.rack ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }

/* hang tag */
.tag {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  padding: 26px 16px 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px 10px 8px 8px;
  border: 1px solid #c5cdc3;
  box-shadow: 0 2px 0 rgba(28,36,32,.06), 0 6px 14px -8px rgba(28,36,32,.35);
  transform-origin: 50% 0;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
}
/* the punched hole, sitting on a peg */
.tag::before {
  content: "";
  position: absolute; top: 8px; left: 50%;
  width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%;
  background: var(--board);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}
.tag::after {             /* peg */
  content: "";
  position: absolute; top: 11px; left: 50%;
  width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%;
  background: #6f7a72;
}
li:nth-child(3n+1) > .tag { --tilt: -1.1deg; }
li:nth-child(3n+2) > .tag { --tilt: .8deg; }
li:nth-child(3n+3) > .tag { --tilt: -.4deg; }
.tag:hover, .tag:focus-visible {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 2px 0 rgba(28,36,32,.06), 0 14px 22px -10px rgba(28,36,32,.45);
}
.tag:focus-visible { outline-offset: 3px; border-radius: 10px 10px 8px 8px; }
.tag svg { grid-row: span 2; color: var(--shed); margin-top: 2px; }
.tag-name { font: 650 1.02rem/1.25 var(--sans); }
.tag-does { font-size: .88rem; line-height: 1.45; color: var(--muted); margin-top: 4px; }

/* ---------- home: guides ---------- */
.home-lower { padding: clamp(48px, 7vw, 88px) 0; }
.home-lower .guides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); }
.section-head h2 {
  font: 720 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--sans);
  font-variation-settings: "wdth" 104; letter-spacing: -.015em; margin: 0 0 .5em;
}
.section-head p { margin: 0; color: var(--muted); max-width: 22rem; }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 24px;
  padding: 20px 0; text-decoration: none; color: var(--ink);
}
.guide-list .g-title { font: 650 1.15rem/1.3 var(--sans); }
.guide-list a:hover .g-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.guide-list .g-sum { grid-column: 1; font: 1rem/1.55 var(--serif); color: #3d4842; margin-top: 6px; max-width: 38rem; }
.guide-list time { grid-row: 1; grid-column: 2; font-size: .88rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.tested {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 3px solid var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px);
}
.tested h2 { font: 720 1.35rem/1.2 var(--sans); margin: 0; }
.tested p { margin: 0 0 .8em; font: 1.06rem/1.65 var(--serif); max-width: 40rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--shed-deep); color: #c9d4cc; padding: 36px 0 44px; font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-foot a { color: var(--shed-ink); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot p { margin: 0; max-width: 32rem; }

/* ---------- article / prose ---------- */
.page-head { padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 28px); }
.crumb { font-size: .92rem; margin: 0 0 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.page-head h1 {
  font: 760 clamp(1.9rem, 4vw, 2.85rem)/1.1 var(--sans);
  font-variation-settings: "wdth" 100; letter-spacing: -.02em;
  margin: 0; max-width: 46rem; text-wrap: balance;
}
.page-head .lede { font: 1.2rem/1.55 var(--serif); color: #33403a; margin: 16px 0 0; max-width: 40rem; }
.page-head .meta { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }

.prose { max-width: var(--read); font: 1.125rem/1.72 var(--serif); padding-bottom: 72px; }
.prose > * + * { margin-top: 1em; }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose * + p, .prose * + ul, .prose * + ol { margin-top: 1em; }
.prose h2 {
  font: 700 1.6rem/1.2 var(--sans); font-variation-settings: "wdth" 102; letter-spacing: -.012em;
  margin: 2.2em 0 .5em;
}
.prose h3 { font: 650 1.2rem/1.3 var(--sans); margin: 1.8em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--muted); }
.prose code { font: .86em/1 "Cascadia Mono", Consolas, monospace; background: #edf1eb; padding: .15em .35em; border-radius: 4px; }
.prose img { display: block; border-radius: 8px; margin: 1.6em 0; border: 1px solid var(--line); }
.prose blockquote { margin: 1.4em 0; padding: 0 0 0 1.1em; border-left: 3px solid var(--tape); color: #33403a; }
.prose .table-wrap, .prose .pp-table-wrap, .prose .pm-tw { overflow-x: auto; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font: .95rem/1.45 var(--sans); }
.prose th { text-align: left; font-weight: 650; border-bottom: 2px solid var(--ink); padding: 8px 12px 8px 0; vertical-align: bottom; }
.prose td { border-bottom: 1px solid var(--line); padding: 9px 12px 9px 0; vertical-align: top; }
.prose details { border-top: 1px solid var(--line); padding: 12px 0; }
.prose details:last-of-type { border-bottom: 1px solid var(--line); }
.prose summary { cursor: pointer; font: 600 1.05rem/1.4 var(--sans); }
.prose details p { margin-top: .6em; }

/* boxes carried over from the old posts */
.prose .pp-box, .prose .note {
  margin: 1.6em 0; padding: 18px 20px; background: #eef2ec; border-radius: 8px; border-left: 4px solid var(--shed);
}
.prose .pp-box > :first-child { margin-top: 0; }
.prose .pp-toc { margin: 1.6em 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; font: .98rem/1.5 var(--sans); }
.prose .pp-toc ol, .prose .pp-toc ul { margin-top: .4em; }

/* related tools on article pages */
.related { border-top: 3px solid var(--ink); padding: 28px 0 0; margin-top: 56px; }
.related h2 { margin-top: 0; }
.related-board { margin: 20px calc(var(--gutter) * -1) 0; padding: 28px var(--gutter) 32px; border-radius: 0; }
.related-board ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.related-board .tag { font-family: var(--sans); }
.prose .related-board li + li { margin-top: 0; }

/* article + side rail (wide screens only) */
.rail { display: none; }
@media (min-width: 1100px) {
  .article-grid { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); }
  .rail { display: block; padding-bottom: 72px; }
  .rail-inner { position: sticky; top: 24px; max-width: 300px; }
  .rail h2 { font: 650 .98rem/1.3 var(--sans); margin: 0 0 12px; }
  .rail .board { padding: 22px 18px 24px; border-radius: 10px; border: 1px solid #c3cbc1; }
  .rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
  .rail .tag { grid-template-columns: 26px 1fr; padding: 22px 14px 13px; }
  .rail .tag svg { width: 24px; height: 24px; }
  .rail .tag-name { font-size: .95rem; }
  .rail .tag-does { font-size: .82rem; }
  .article-grid .related { display: none; }      /* the rail already shows these tools */
}

/* ---------- tool page ---------- */
.bench { padding: 36px 0 40px; }
.bench-inner { max-width: 1000px; margin: 0 auto; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .95rem; color: #33403a; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts svg { color: var(--shed); flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .racks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}
@media (max-width: 760px) {
  .home-lower .guides, .tested { grid-template-columns: 1fr; }
  .guide-list a { grid-template-columns: 1fr; }
  .guide-list time { grid-row: auto; grid-column: 1; margin-top: 8px; }
}
@media (max-width: 560px) {
  .site-head .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; min-height: 0; row-gap: 2px; }
  .site-nav { margin-left: -12px; }
  .racks { grid-template-columns: 1fr; row-gap: 32px; }
  .rack h2 { margin-bottom: 16px; }
  .rack ul { gap: 16px; }
  .tag { grid-template-columns: 26px 1fr; column-gap: 12px; padding: 21px 14px 12px; }
  .tag svg { width: 24px; height: 24px; }
  .tag::before { top: 6px; width: 10px; height: 10px; margin-left: -5px; }
  .tag::after { top: 8px; width: 5px; height: 5px; margin-left: -2.5px; }
  .tag-name { font-size: .98rem; }
  .tag-does { font-size: .85rem; margin-top: 2px; }
  .hero-intro { box-shadow: 0 0 0 10px var(--board); }
  .prose { font-size: 1.06rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tag { transition: none; }
}

/* ---------- header, big Tools menu, phone menu, search, footer, category pages ---------- */
.site-head { position: relative; z-index: 60; }
.head-in { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.site-head .brand span { white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-item { position: static; }
.nav-top {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px;
  background: transparent; color: var(--shed-ink); font: 550 .97rem/1 var(--sans); text-decoration: none; cursor: pointer;
}
.nav-top:hover, .nav-top[aria-expanded="true"] { background: rgba(255,255,255,.12); }
.nav-top[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-top svg { transition: transform .15s; }
.nav-top[aria-current="page"], .nav-top[data-current] { box-shadow: inset 0 -3px 0 var(--tape); border-radius: 8px 8px 0 0; }
.head-search, .menu-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px;
  background: transparent; color: var(--shed-ink); cursor: pointer;
}
.head-search:hover, .menu-btn:hover { background: rgba(255,255,255,.12); }
.menu-btn { display: none; gap: 4px; align-content: center; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* the big menu hangs from the bottom of the header like a sheet pinned to the wall */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); color: var(--ink);
  border-top: 3px solid var(--tape);
  box-shadow: 0 24px 48px -20px rgba(20,34,28,.45), 0 1px 0 rgba(0,0,0,.06);
  max-height: calc(100vh - 70px); overflow-y: auto;
}
.mega[hidden] { display: none; }
/* the header's own .wrap is a flex row; the panels inside the header need their own layout */
.site-head .wrap.mega-in { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; justify-content: stretch; padding-top: 26px; padding-bottom: 30px; min-height: 0; }
.site-head .phone-menu .wrap { display: grid; align-items: stretch; justify-content: stretch; min-height: 0; }
.mega-side { display: grid; gap: 14px; align-content: start; position: relative; }
.mega-note { margin: 0; font-size: .88rem; color: var(--muted); }
.site-head .mega-all { font-weight: 650; color: var(--shed); }
.site-head .mega a, .site-head .phone-menu a { text-decoration-color: rgba(36,69,58,.35); }
.mega-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; }
.mega-cat h3 { margin: 0 0 8px; font: 700 .98rem/1.3 var(--sans); }
.mega-cat h3 a { display: flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.mega-cat h3 a:hover { color: var(--shed); }
.mega-cat h3 span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.mega-cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-cat li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 7px; color: #2b3631; text-decoration: none; font-size: .95rem; }
.mega-cat li a:hover { background: #eef2ec; color: var(--ink); }
.mega-cat li svg { flex: none; color: var(--shed); }

/* search boxes (menu, phone menu, home, all-tools page) */
.mega-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; border: 1px solid #b9c3b6; border-radius: 10px; background: #fff; color: var(--muted); }
.mega-search:focus-within { border-color: var(--shed); box-shadow: 0 0 0 3px rgba(242,199,68,.55); }
.mega-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 1rem/1 var(--sans); color: var(--ink); }
.search-results { list-style: none; margin: 0; padding: 6px; border: 1px solid #c5cdc3; border-radius: 10px; background: #fff;
  box-shadow: 0 16px 32px -18px rgba(20,34,28,.5); display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.search-results[hidden] { display: none; }
.search-results a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.search-results a b { font-weight: 650; }
.search-results a small { color: var(--muted); font-size: .84rem; }
.search-results a[aria-selected="true"], .search-results a:hover { background: #fff3c4; }
.search-results .none { padding: 10px; color: var(--muted); font-size: .92rem; }
.hero-search { max-width: 32rem; margin-top: 22px; height: 52px; box-shadow: 0 10px 24px -16px rgba(20,34,28,.45); }
.hero-search input { font-size: 1.05rem; }
.hero-intro .search-results, .page-head .search-results { position: absolute; z-index: 20; width: min(32rem, calc(100vw - 2 * var(--gutter))); margin-top: 6px; }
.hero-intro, .page-head { position: relative; }
.page-search { max-width: 32rem; margin-top: 20px; }

/* phone menu */
.phone-menu { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 64px); overflow-y: auto; background: var(--paper); color: var(--ink); border-top: 3px solid var(--tape); }
.phone-menu[hidden] { display: none; }
.phone-menu .wrap { padding-top: 16px; padding-bottom: 40px; display: grid; gap: 4px; }
.phone-menu .search-results { margin: 4px 0 8px; }
.pm-top { display: block; padding: 14px 4px; font: 700 1.1rem/1.2 var(--sans); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.pm-group { display: grid; }
.pm-cat { border-bottom: 1px solid var(--line); }
.pm-cat summary { display: flex; align-items: center; gap: 12px; padding: 13px 4px; cursor: pointer; list-style: none; font: 600 1.02rem/1.2 var(--sans); }
.pm-cat summary::-webkit-details-marker { display: none; }
.pm-cat summary svg { color: var(--shed); }
.pm-cat summary em { margin-left: auto; font-style: normal; font-size: .85rem; color: var(--muted); }
.pm-cat summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 6px; transition: transform .15s; }
.pm-cat[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.pm-cat ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 36px; }
.pm-cat li a { display: block; padding: 9px 0; color: #2b3631; text-decoration: none; }
.pm-cat li:first-child a { font-weight: 650; color: var(--shed); }
body.menu-open { overflow: hidden; }

/* breadcrumbs */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; margin: 0 0 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb .sep { color: #9aa69f; }
.crumb [aria-current] { color: #3d4842; }

/* racks: three per row, each with a link to its category */
.racks { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
.rack h2 a { color: inherit; text-decoration: none; }
.rack h2 a:hover { text-decoration: underline; }
.rack-more { display: inline-block; margin-top: 16px; font-weight: 650; font-size: .92rem; color: var(--shed);
  background: rgba(251,252,250,.85); padding: 4px 8px; border-radius: 6px; }

/* all-tools page and category pages */
.cat-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cat-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.cat-jump a span { color: var(--muted); font-weight: 500; }
.cat-jump a:hover { border-color: var(--shed); }
.cat-jump svg { color: var(--shed); }
.cat-band { padding: 34px 0 40px; border-bottom: 0; }
.cat-band + .cat-band { border-top: 1px solid #c8d0c6; }
.cat-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 22px; }
.cat-band-head h2 { margin: 0; font: 720 1.45rem/1.2 var(--sans); background: var(--board); padding: 0 6px; margin-left: -6px; }
.cat-band-head h2 a { color: var(--ink); text-decoration: none; }
.cat-band-head h2 a:hover { text-decoration: underline; }
.cat-band-head p { margin: 0; color: #3d4842; background: var(--board); padding: 0 4px; }
.cat-tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px 22px; }
.cat-band-main { padding: 40px 0 48px; }
.other-cats { padding: 48px 0 72px; }
.other-cats h2 { font: 720 1.4rem/1.2 var(--sans); margin: 0 0 16px; }
.other-cats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.other-cats a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; }
.other-cats a:hover { border-color: var(--shed); }
.other-cats a svg { color: var(--shed); margin-top: 2px; }
.other-cats b { display: block; font-weight: 700; }
.other-cats span { font-size: .9rem; color: var(--muted); }
.other-cats em { font-style: normal; color: var(--muted); font-size: .88rem; }

/* footer with columns */
.site-foot { padding: 44px 0 50px; }
.foot-in { display: grid !important; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.foot-brand .brand { color: var(--shed-ink); }
.foot-brand p { margin: 12px 0 0; max-width: 24rem; }
.site-foot .foot-col { display: grid; align-content: start; gap: 8px; }
.foot-col h2 { margin: 0 0 4px; font: 700 .95rem/1.2 var(--sans); color: var(--shed-ink); }
.foot-col a { color: #c9d4cc; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1100px) { .mega-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-head .wrap.mega-in { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; } }
@media (max-width: 1000px) { .racks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .head-search { margin-left: auto; }
}
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .site-head .wrap.head-in { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; min-height: 60px; }
  .site-head .brand { font-size: 1.05rem; }
  .racks { grid-template-columns: 1fr; }
  .phone-menu { height: calc(100vh - 60px); }
}
@media (prefers-reduced-motion: reduce) { .menu-btn span, .nav-top svg { transition: none; } }

/* ---------- article system carried over from the Blogger theme (.pp-article), redrawn in Toolshed colours ----------
   Old posts set their own pieces on top of these variables, so the names stay the same. */
.pp-article {
  --a-ink: var(--ink); --a-soft: #3d4842; --a-mute: var(--muted); --a-rule: #cdd5cb;
  --a-acc: #2f6b55; --a-acc-ink: #24453a; --a-tint: #eaf1eb;
  --a-sans: var(--sans);
  --bg-ink: var(--ink);
}
.pp-article strong { font-weight: 650; }
.pp-article a { color: var(--a-acc-ink); }
.pp-article li::marker { color: var(--muted); font-family: var(--sans); }
.pp-article .pp-lead { font-size: 1.24rem; line-height: 1.6; color: var(--a-soft); margin: 0 0 1.2em; }

.pp-article .pp-box { position: relative; margin: 1.6em 0; padding: 18px 22px 18px 24px; border-radius: 10px;
  font: 1rem/1.7 var(--sans); background: #f1f5ef; border-left: 4px solid var(--shed); }
.pp-article .pp-box > strong:first-child { display: block; margin-bottom: 4px; font-weight: 700; color: var(--shed); }
.pp-article .pp-box > :last-child { margin-bottom: 0; }
.pp-article .pp-tip { background: #eef4f7; border-left-color: #2c6a8a; }
.pp-article .pp-tip > strong:first-child { color: #22566f; }
.pp-article .pp-warn { background: #fbf3e6; border-left-color: #b26b12; }
.pp-article .pp-warn > strong:first-child { color: #8a520c; }

.pp-article .pp-toc { margin: 1.6em 0 2em; padding: 16px 20px 10px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); }
.pp-article .pp-toc > strong:first-child { display: block; font-weight: 700; margin-bottom: 4px; }
.pp-article .pp-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; columns: 2 240px; column-gap: 28px; }
.pp-article .pp-toc li { counter-increment: toc; margin: 0; break-inside: avoid; }
.pp-article .pp-toc a { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; min-height: 40px; font-size: .98rem; font-weight: 550;
  line-height: 1.4; color: var(--ink); text-decoration: none; border-bottom: 1px solid #e3e8e1; }
.pp-article .pp-toc a::before { content: counter(toc); flex: none; min-width: 1.2em; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.pp-article .pp-toc a:hover { color: var(--shed); text-decoration: underline; }

.pp-article .pp-table-wrap { margin: 1.4em 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pp-article .pp-table-wrap > table { margin: 0; }
.pp-article .pp-table-wrap > table:has(tr > :nth-child(3)) { min-width: 540px; }
.pp-article .pp-table-wrap th, .pp-article .pp-table-wrap td { padding: 11px 14px; }
.pp-article .pp-table-wrap th { background: #eef2ec; border-bottom: 1px solid var(--line); }
.pp-article .pp-table-wrap tr:last-child td { border-bottom: 0; }

.pp-article .pp-img { display: block; max-width: 100%; height: auto; margin: 1.6em auto .6em; border-radius: 8px; border: 1px solid var(--line); }
.pp-article .pp-caption { margin: 0 auto 1.8em; max-width: 60ch; text-align: center; font: .9rem/1.5 var(--sans); color: var(--muted); }

.pp-article .pp-related { display: none; }      /* replaced by the related-tools board */
.pp-article .pp-disclaimer { margin: 2em 0 0; padding-top: 16px; border-top: 1px solid var(--line); font: .9rem/1.65 var(--sans); color: var(--muted); }
.pp-article .pp-note { font: .92rem/1.6 var(--sans); color: var(--muted); }

.pp-article .pp-quote { margin: .9em 0 1.3em; padding: 12px 18px 14px; border-radius: 4px 14px 14px 14px; background: #fff;
  border: 1px solid var(--line); font: 1rem/1.6 var(--sans); }
.pp-article .pp-quote .pp-who { display: flex; align-items: center; gap: 7px; width: fit-content; margin: 0 0 6px; padding: 2px 10px 2px 8px;
  border-radius: 999px; background: #eaf1eb; color: var(--shed); font-size: .8rem; font-weight: 700; }
.pp-article .pp-quote .pp-who::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--shed); }
.pp-article .pp-prompt { position: relative; margin: 1em 0 1.4em; padding: 38px 20px 16px; border-radius: 10px; background: var(--shed-deep); color: #eef3ec;
  font: .98rem/1.65 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-article .pp-prompt::before { content: 'Prompt to copy'; position: absolute; top: 12px; left: 20px; font-size: .8rem; font-weight: 700; color: var(--tape); }
.pp-article .pp-cmd { margin: .8em 0 1.2em; padding: 12px 16px; border-radius: 8px; background: #17241f; color: #e3ece6;
  font: .9rem/1.55 "Cascadia Mono", Consolas, monospace; overflow-x: auto; white-space: pre; }

.pp-article details > :not(summary) { font-size: 1rem; }
.pp-article .pp-video video { display: block; width: 100%; border-radius: 8px; }
.pp-article .pp-video-cap { font: .9rem/1.5 var(--sans); color: var(--muted); }

/* code blocks and table wrappers from the old tool articles scroll inside themselves on phones */
.prose pre { max-width: 100%; overflow-x: auto; margin: 1.2em 0; padding: 14px 16px; border-radius: 8px; background: #17241f; color: #e3ece6;
  font: .88rem/1.55 "Cascadia Mono", Consolas, monospace; }
.prose pre code { background: none; padding: 0; color: inherit; font: inherit; }
.prose [class$="-tw"], .prose [class*="-tw "] { max-width: 100%; overflow-x: auto; }

/* the tool pages' own article blocks, now outside their dark app */
.prose .tool-notes h2:first-child { margin-top: 0; }

/* ---------- toolkit: shared parts for the tools built for this site (2026-11) ----------
   A tool is a sheet of paper hung on the bench: white, a fine edge, one green action colour, yellow only for highlights. */
.tk {
  --tk-acc: var(--shed); --tk-acc-ink: #fff; --tk-line: #d3dbd1; --tk-soft: #f3f6f1;
  position: relative; background: var(--paper); color: var(--ink);
  border: 1px solid #c5cdc3; border-radius: 14px;
  box-shadow: 0 2px 0 rgba(28,36,32,.05), 0 22px 40px -26px rgba(28,36,32,.45);
  padding: clamp(16px, 2.6vw, 28px);
  font: 400 1rem/1.55 var(--sans);
}
.tk *, .tk *::before, .tk *::after { box-sizing: border-box; }
.tk h2, .tk h3 { font-family: var(--sans); color: var(--ink); margin: 0; }
.tk h3 { font-size: 1.05rem; font-weight: 700; }
.tk p { margin: 0; }
.tk-sub { color: var(--muted); font-size: .92rem; }

/* step headings inside a tool are a real sequence, so they are numbered */
.tk-step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.tk-step b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tk-acc); color: #fff; font-size: .85rem; font-weight: 700; }

/* segmented choice (radio buttons that look like a switch) */
.tk-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--tk-soft); border: 1px solid var(--tk-line); border-radius: 10px; }
.tk-seg label { position: relative; cursor: pointer; }
.tk-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tk-seg span { display: block; padding: 8px 14px; border-radius: 7px; font-weight: 600; font-size: .93rem; color: #3d4842; }
.tk-seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px var(--tk-line); }
.tk-seg input:focus-visible + span { outline: 3px solid var(--tape); outline-offset: 1px; }

/* drop zone */
.tk-drop {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 30px 18px; border: 2px dashed #b3c0b1; border-radius: 12px; background: var(--tk-soft);
  color: #3d4842; transition: background .15s, border-color .15s;
}
.tk-drop.is-over { background: #fff8db; border-color: #d9ad2a; }
.tk-drop svg { color: var(--tk-acc); }
.tk-drop strong { font-size: 1.05rem; color: var(--ink); }
.tk-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* buttons */
.tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--tk-acc);
  background: var(--tk-acc); color: var(--tk-acc-ink); font: 650 .95rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
}
.tk-btn:hover { filter: brightness(1.08); }
.tk-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.tk-btn.ghost { background: #fff; color: var(--ink); border-color: #b9c3b6; }
.tk-btn.ghost:hover { background: var(--tk-soft); filter: none; }
.tk-btn.small { min-height: 34px; padding: 6px 11px; font-size: .86rem; }
.tk-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #c5cdc3; background: #fff; color: var(--ink); cursor: pointer; padding: 0; }
.tk-icon:hover { background: var(--tk-soft); }
.tk-icon:disabled { opacity: .35; cursor: default; }
.tk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tk-row.end { justify-content: flex-end; }
.tk-sep { height: 1px; background: var(--tk-line); margin: 20px 0; border: 0; }

/* form fields */
.tk-field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.tk-field input[type=text], .tk-field input[type=number], .tk-field select, .tk-field textarea, .tk input.tk-input, .tk textarea.tk-input, .tk select.tk-input {
  font: 400 .98rem/1.45 var(--sans); padding: 9px 11px; border: 1px solid #b9c3b6; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.tk textarea.tk-input { font-family: "Cascadia Mono", Consolas, monospace; font-size: .9rem; resize: vertical; }
.tk-field small { font-weight: 400; color: var(--muted); }
.tk-check { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; }
.tk-check input { width: 18px; height: 18px; accent-color: var(--tk-acc); }
.tk input[type=range] { accent-color: var(--tk-acc); width: 100%; }

/* messages */
.tk-msg { padding: 10px 14px; border-radius: 9px; font-size: .93rem; background: #eef4f7; color: #22566f; border-left: 4px solid #2c6a8a; }
.tk-msg.ok { background: #edf6ef; color: #1e5a3f; border-left-color: #2f8a5c; }
.tk-msg.warn { background: #fbf3e6; color: #7a4a0c; border-left-color: #c47c16; }
.tk-msg.err { background: #fbeceb; color: #8d2b22; border-left-color: #c8453a; }
.tk-msg:empty { display: none; }

/* progress */
.tk-progress { height: 6px; border-radius: 3px; background: var(--tk-line); overflow: hidden; }
.tk-progress i { display: block; height: 100%; width: 0; background: var(--tk-acc); transition: width .2s; }

/* a list of files */
.tk-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-files li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--tk-line); border-radius: 10px; background: #fff; }
.tk-files .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-files .meta { color: var(--muted); font-size: .86rem; }

/* a grid of page or image thumbnails */
.tk-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.tk-thumb { position: relative; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--tk-line); border-radius: 10px; background: #fff; }
.tk-thumb.is-off { opacity: .4; }
.tk-thumb .pic { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--tk-soft); border-radius: 6px; overflow: hidden; }
.tk-thumb .pic canvas, .tk-thumb .pic img { max-width: 100%; max-height: 100%; box-shadow: 0 1px 3px rgba(0,0,0,.2); background: #fff; transition: transform .2s; }
.tk-thumb .cap { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); }
.tk-thumb .tools { display: flex; gap: 4px; justify-content: center; }
.tk-thumb .tools .tk-icon { width: 28px; height: 28px; border-radius: 6px; }
.tk-thumb .badge { position: absolute; top: 4px; left: 4px; min-width: 22px; padding: 1px 6px; border-radius: 6px; background: var(--tape); color: #2b2410; font-size: .75rem; font-weight: 700; text-align: center; }
.tk-thumb.is-dragging { opacity: .5; }
.tk-thumb.drop-before { box-shadow: -4px 0 0 var(--tape); }

/* a stat line */
.tk-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .93rem; color: #33403a; }
.tk-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }

.tk-hidden { display: none !important; }
@media (max-width: 560px) {
  .tk-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-seg { display: flex; width: 100%; }
  .tk-seg label { flex: 1; }
  .tk-seg span { text-align: center; padding: 8px 6px; }
}

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--tape); color: #2b2410; font-weight: 700; border-radius: 6px; }
.skip:focus { left: 8px; }
.hero-plain { padding: 40px 0 56px; }
.rack-col { display: grid; gap: 40px; align-content: start; }
.rack-col .rack:nth-child(2) h2 { transform: rotate(1.1deg); }
@media (max-width: 1000px) { .rack-col { display: contents; } }
.tool-frame { display: block; width: 100%; min-height: 720px; border: 0; border-radius: 14px; background: transparent; }
.guides-page { padding-bottom: 80px; max-width: 52rem; }
.tool-notes-wrap .meta { margin-top: 2.4em; font: .9rem/1.5 var(--sans); color: var(--muted); }
.contact-form { display: grid; gap: 14px; margin: 1.6em 0; font-family: var(--sans); }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form textarea { font: 1rem/1.5 var(--sans); padding: 10px 12px; border: 1px solid #b9c3b6; border-radius: 8px; background: #fff; color: var(--ink); }
.contact-form button { justify-self: start; font: 700 1rem/1 var(--sans); padding: 12px 18px; border: 0; border-radius: 8px; background: var(--shed); color: #fff; }
.contact-form button:disabled { opacity: .55; cursor: not-allowed; }
