
:root{
  --bg:#FDFDFC; --paper:#ffffff; --ink:#111111;
  --ink-85:rgba(0,0,0,.85); --ink-78:rgba(0,0,0,.78); --ink-65:rgba(0,0,0,.65);
  --muted:rgba(0,0,0,.5); --faint:rgba(0,0,0,.35); --ghost:rgba(0,0,0,.25);
  --hair:rgba(0,0,0,.08); --border:rgba(0,0,0,.12);
  --accent:#1a7f37; --accent-soft:rgba(26,127,55,.10);
  --card:#F6F5F4; --green:#1a7f37; --amber:#9a5b09; --blue:#2480ED;
  --mono:"SF Mono",SFMono-Regular,ui-monospace,"Cascadia Code",Consolas,monospace;
  --serif:"IBM Plex Serif",Georgia,"Times New Roman",serif;
  /* Page title only. Two variable grotesques: Bricolage is the display face
     (tight, slightly quirky), Geist is the fallback if Bricolage fails to load. */
  --display:"Bricolage Grotesque Variable","Bricolage Grotesque","Geist Variable",Geist,var(--sans);
  --sans:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--sans); font-size:15px; line-height:1.65;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
a{color:inherit}
::selection{background:rgba(26,127,55,.16)}

/* ---------- layout ---------- */
.wrap{
  max-width:812px; margin:0 auto; padding:52px 28px 120px;
  display:grid; grid-template-columns:166px minmax(0,1fr); gap:54px;
}
/* Sticky rail, capped to the viewport so a tall nav scrolls on its own instead
   of pinning its bottom off-screen. The scrollbar stays invisible until you
   hover or focus inside the rail, then a soft pill thumb fades in. */
.rail{
  position:sticky; top:52px; align-self:start;
  max-height:calc(100vh - 72px); overflow-y:auto; overscroll-behavior:contain;
  padding-right:6px;
  scrollbar-width:thin; scrollbar-color:transparent transparent;
  transition:scrollbar-color .25s ease;
}
.rail:hover,.rail:focus-within{scrollbar-color:var(--border) transparent}
/* WebKit: reserve the track always (no layout shift), fade the thumb in. */
.rail::-webkit-scrollbar{width:8px}
.rail::-webkit-scrollbar-track{background:transparent}
.rail::-webkit-scrollbar-thumb{
  background:transparent; border-radius:100px; border:2px solid transparent;
  background-clip:padding-box; transition:background-color .25s ease;
}
.rail:hover::-webkit-scrollbar-thumb,
.rail:focus-within::-webkit-scrollbar-thumb{background:rgba(0,0,0,.22)}
.rail:hover::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.34)}
.content{min-width:0}

/* ---------- brand + nav ---------- */
.brand{display:block; text-decoration:none; line-height:0; margin-bottom:30px}
.brand-logo{display:block; width:80px; max-width:100%; height:auto}
/* Hamburger (two bars). Hidden on desktop; toggles the rail nav on mobile. */
.menu-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:36px; height:36px; padding:0; border:none; background:none; cursor:pointer;
}
.menu-toggle span{display:block; width:20px; height:2px; background:var(--ink); border-radius:2px; transition:transform .2s ease}
.rail.open .menu-toggle span:first-child{transform:translateY(3.5px) rotate(45deg)}
.rail.open .menu-toggle span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
nav{font-size:14px}
.nav-group{margin-bottom:20px}
.nav-group > .grp{
  font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ghost); margin:0 0 8px;
}
.nav-link{
  display:flex; justify-content:space-between; align-items:baseline; gap:8px;
  text-decoration:none; color:var(--muted); padding:3px 0; transition:color .12s;
}
.nav-link:hover{color:var(--ink)}
.nav-link.active{color:var(--ink); font-weight:500}
.nav-link .ct{font-family:var(--mono); font-size:10.5px; color:var(--ghost)}
.rail-foot{margin-top:26px; font-family:var(--mono); font-size:10.5px; color:var(--ghost); line-height:1.6}

/* ---------- sidebar email opt-in ---------- */
.optin{width:100%; margin:4px 0 22px; background:var(--card); padding:12px; border-radius:20px}
.optin-lead{font-size:12px; color:var(--ink-78); line-height:1.45; margin:0 0 9px}
.optin-form{display:flex; flex-direction:column; gap:7px; margin-bottom:0}
.optin-input{
  width:100%; font-family:var(--sans); font-size:12.5px; color:var(--ink); background:var(--paper);
  border:1px solid var(--border); border-radius:8px; padding:8px 10px;
}
.optin-input::placeholder{color:var(--faint)}
.optin-input:focus{outline:none; border-color:var(--ghost); box-shadow:0 0 0 3px rgba(0,0,0,.03)}
.optin-btn{
  font-family:var(--sans); font-size:12.5px; font-weight:500; color:#fff; background:var(--accent);
  border:none; border-radius:100px; padding:9px 12px; cursor:pointer; transition:opacity .12s;
}
.optin-btn:hover{opacity:.9}
.optin-done{font-size:12px; color:var(--ink-78); line-height:1.45; margin:0}
.optin-done b{color:var(--accent); font-weight:600}

/* ---------- hero ---------- */
/* Share card reused at the top of the homepage. Full-bleed to the content
   column, 20px rounded corners, and a hairline so the white artwork doesn't
   dissolve into the white page. aspect-ratio matches the file (1200x630) so
   the space is reserved before it decodes and the h1 never jumps. */
.hero{
  display:block; width:100%; height:auto; aspect-ratio:1200/630;
  border-radius:20px; border:1px solid var(--hair);
  margin:0 0 26px; background:var(--paper);
}
@media (max-width:640px){ .hero{border-radius:14px; margin-bottom:20px} }

h1{
  font-family:var(--display); font-weight:600; font-size:32px; line-height:1.14;
  color:var(--ink-85); margin:0; letter-spacing:-.021em;
}
.ul{text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:4px}
.lede{color:var(--ink-65); font-size:15px; margin:18px 0 0; max-width:62ch}

/* ---------- toolbar (sort + category filter) ---------- */
/* Nested-radius rule: outer = inner + padding. Inner controls are 8px and the
   toolbar padding is a uniform 8px, so the toolbar radius is 16px and both
   dropdowns stay concentric with the toolbar's corners. */
.toolbar{
  display:flex; justify-content:space-between; align-items:center; gap:10px 16px; flex-wrap:wrap;
  background:var(--card); border-radius:16px; padding:8px; margin:24px 0 6px;
}
.filter{
  font-family:var(--sans); font-size:13px; color:var(--ink-78); background:var(--paper);
  border:1px solid var(--border); border-radius:8px; height:32px; padding:0 30px 0 11px; cursor:pointer;
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat; background-position:right 11px center;
}
.filter:focus{outline:none; border-color:var(--ghost); box-shadow:0 0 0 3px rgba(0,0,0,.03)}
.activefilter{font-size:12.5px; color:var(--muted); margin:14px 0 0}
.activefilter b{color:var(--ink-78); font-weight:600}
.activefilter a{color:var(--accent); text-decoration:none; margin-left:8px}
.activefilter a:hover{text-decoration:underline}

/* Quick-answer + table-of-contents box — same gray-card treatment as the old
   filter bar, so the whole "answer plus jump-to-section index" block reads as
   one distinct unit, separate from the article content below it. */
.toc-box{background:var(--card); border-radius:16px; padding:16px 18px; margin:24px 0 6px}
.toc-box .section-head{margin-bottom:2px}
.toc-box > .section-head:not(.toc-sub) h2{font-size:16px; font-weight:600; color:var(--ink-85); letter-spacing:normal}
.toc-box .toc-sub{margin-top:16px; padding-top:14px; border-top:1px solid var(--border)}
.toc-box .sitemap-list{columns:180px; column-gap:20px}
.toc-box .prose{max-width:none}

/* Emoji glyph followed by text — consistent 4px gap everywhere. */
.emoji{display:inline-block; margin-right:4px}

/* Related-searches strip — small inline pill links at the foot of a page. */
.related-list{list-style:none; margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px}
.related-list a{
  display:inline-block; font-size:12.5px; color:var(--ink-78); background:var(--card);
  border:1px solid var(--border); border-radius:100px; padding:5px 12px; text-decoration:none;
  transition:border-color .12s, color .12s;
}
.related-list a:hover{border-color:var(--accent); color:var(--accent)}
/* "More collections" sidebar link — muted, no count. */
.nav-more{color:var(--faint); font-size:13px}

/* ---------- section ---------- */
.section{border-top:1px solid var(--hair); padding-top:16px; margin-top:34px}
.section:first-of-type{margin-top:28px}
/* Per-category heading + blurb on a dimension page: a thin green left rail
   instead of a top divider, scoped to just the title/description, not the
   row list below it. */
.cat-intro{border-left:2px solid var(--accent); padding-left:12px}
/* About FAQ: no divider lines, spacing only. */
.section.faq{border-top:none; padding-top:0}
/* "More in …" heading: a light uppercase label, no divider. */
.section.more{border-top:none; padding-top:0}
.section.more h2{font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--faint)}
.section-head h2 a{color:inherit; text-decoration:none}
.section-head h2 a:hover{color:var(--accent)}
/* Sitemap page lists. */
.sitemap-list{list-style:none; margin:8px 0 0; padding:0; columns:200px; column-gap:28px}
.sitemap-list li{margin:0 0 5px; break-inside:avoid}
.sitemap-list a{color:var(--ink-65); text-decoration:none; font-size:14px}
.sitemap-list a:hover{color:var(--accent); text-decoration:underline}
.section-head{display:flex; justify-content:space-between; align-items:baseline; gap:12px}
.section-head h2{font-size:13px; font-weight:550; color:var(--ink-78); margin:0; letter-spacing:.01em}
/* FAQ sub-questions (h3, nested under a section's h2) — same look as h2. */
.section-head h3{font-size:13px; font-weight:550; color:var(--ink-78); margin:0; letter-spacing:.01em}
.section-more{font-size:12px; color:var(--muted); text-decoration:none; white-space:nowrap}
.section-more:hover{color:var(--accent)}
.section-blurb{color:var(--faint); font-size:13px; margin:4px 0 6px}

/* ---------- favicon + potential box (shared squared style) ---------- */
.fav{
  width:24px; height:24px; border-radius:3px; border:1px solid var(--hair);
  background:var(--paper); object-fit:contain; flex:0 0 auto; vertical-align:middle; padding:4px;
}
.fav-lg{width:24px; height:24px; border-radius:4px; vertical-align:-4px; margin-right:6px}
.pot2{
  display:inline-flex; align-items:center; gap:3px; white-space:nowrap;
  font-family:var(--mono); font-size:11px; line-height:1.4; padding:2px 5px;
  border:1px solid var(--border); border-radius:5px; color:var(--ink-78);
}
.pot2 .l{font-size:11px; letter-spacing:.02em; color:var(--faint)}
/* Monochrome potential score — darker shade = higher score. */
.pot2.t1{border-color:rgba(0,0,0,.16); color:var(--ink)}
.pot2.t2{color:var(--ink-78)}
.pot2.t3{background:transparent; color:var(--muted)}

/* ---------- method rows ---------- */
.row{padding:15px 0; border-top:1px solid var(--hair)}
.rows .row:first-child{border-top:none}
.row-title{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.row-title a.name{font-size:15px; font-weight:500; color:var(--ink); text-decoration:none}
.row-title a.name:hover{text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:3px}
.row-title .dom{font-family:var(--mono); font-size:11px; color:var(--faint)}
.ext{display:inline-flex; align-items:center; color:var(--faint); text-decoration:none; margin-left:-3px; transition:color .12s}
.ext:hover{color:var(--accent)}
.ext svg{display:block}
.row-desc{color:var(--ink-65); font-size:13.5px; line-height:1.55; margin:6px 0 0}
.row-meta{display:flex; align-items:center; gap:4px; flex-wrap:wrap; margin-top:9px}

/* ---------- chips ---------- */
.chip{
  font-family:var(--sans); font-size:11px; line-height:1.4; padding:2px 7px; border-radius:5px;
  border:1px solid var(--border); color:var(--muted); background:var(--paper); white-space:nowrap;
}
a.chip{text-decoration:none; cursor:pointer; transition:border-color .12s, color .12s}
a.chip:hover{border-color:var(--ghost); color:var(--ink-78)}
/* Monochrome chips — meaning comes from the label, not colour.
   "no skill required" is a filled grey flag, like badge_required on the original. */
.chip.noskill{color:var(--ink-78); border-color:var(--ghost); background:var(--card)}
/* Scope chip. Amber rather than the accent green: it marks a restriction ("you
   can only do this in Pakistan"), not a feature, and shouldn't read as a
   positive badge next to the green potential box. */
.chip.local{color:var(--amber); border-color:rgba(154,91,9,.28); background:rgba(154,91,9,.06)}
a.chip.local:hover{border-color:rgba(154,91,9,.5)}

/* ---------- prose / detail ---------- */
.crumb{font-size:12px; color:var(--faint); margin-bottom:18px}
.crumb a{color:var(--muted); text-decoration:none}
.crumb a:hover{color:var(--accent)}
h1 .pot2{vertical-align:middle; margin-left:10px}
.prose{color:var(--ink-65); font-size:15px; max-width:62ch}
.prose p{margin:14px 0}
/* Buttons echo the logo: green pill, white label. */
.btn{
  display:inline-flex; align-items:center; gap:7px; margin-top:20px;
  background:var(--accent); color:#fff; text-decoration:none;
  font-family:var(--sans); font-size:13.5px; font-weight:500;
  padding:10px 18px; border-radius:100px; border:none; cursor:pointer; transition:opacity .12s;
}
.btn:hover{opacity:.9}
/* Detail page: Get started + Suggest a change share a row, flush under the text. */
.detail-actions{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap}
.detail-actions .btn{margin-top:0}
.suggest-edit{color:var(--accent); text-decoration:underline; text-underline-offset:3px; font-size:13px; white-space:nowrap}
.suggest-edit:hover{opacity:.8}

/* ---------- form (submit page) ---------- */
.form{max-width:54ch; margin-top:26px}
.field{margin-bottom:16px}
.field label{display:block; font-size:12.5px; font-weight:500; color:var(--ink-78); margin-bottom:6px}
.field .opt{color:var(--faint); font-weight:400}
.input,.textarea{
  width:100%; font-family:var(--sans); font-size:14px; color:var(--ink); background:var(--paper);
  border:1px solid var(--border); border-radius:8px; padding:9px 12px;
}
.input::placeholder,.textarea::placeholder{color:var(--faint)}
.input:focus,.textarea:focus{outline:none; border-color:var(--ghost); box-shadow:0 0 0 3px rgba(0,0,0,.03)}
.textarea{min-height:92px; line-height:1.5; resize:vertical}
.form .field:last-of-type{margin-bottom:6px}
.form .btn{margin-top:2px}
.facts{margin-top:28px}
.fact{display:flex; justify-content:space-between; gap:16px; padding:11px 0; border-bottom:1px solid var(--hair); font-size:13.5px}
.fact:last-child{border-bottom:none}
.fact .k{color:var(--faint)}
.fact .v{color:var(--ink-78); text-align:right}
.fact .v a{text-decoration:underline; text-decoration-color:var(--ghost); text-underline-offset:3px; transition:text-decoration-color .12s, color .12s}
.fact .v a:hover{text-decoration-color:var(--accent); color:var(--accent)}

/* ---------- footer ---------- */
.foot{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-top:30px; padding-top:18px; border-top:1px solid var(--hair);
  font-size:12px; color:var(--faint)}
.foot a{color:var(--muted); text-decoration:none}
.foot a:hover{color:var(--accent)}
.note{font-size:12px; color:var(--faint); background:var(--card); border:1px solid var(--hair);
  border-radius:9px; padding:11px 13px; margin-top:20px; line-height:1.55}

/* ---------- responsive ---------- */
@media (max-width:720px){
  .wrap{grid-template-columns:1fr; gap:0; padding:20px 20px 80px}
  .rail{position:static; margin-bottom:24px; max-height:none; overflow:visible; padding-right:0}
  .rail-head{display:flex; justify-content:space-between; align-items:center}
  .brand{margin-bottom:0}
  .menu-toggle{display:flex}
  nav{display:none; margin-top:22px}
  .rail.open nav{display:block}
  h1{font-size:26px}
}
