/* partonmap.com — shared styles. Design language inherited from project docs:
   teal #0e7c7b · orange #d96c2c · ink #16222e · cream #fdfcfa · Georgia display */
:root {
  --teal: #0e7c7b; --teal-dark: #0e5453; --orange: #d96c2c;
  --ink: #16222e; --body: #37424e; --muted: #4a5866; --faint: #8a94a0;
  --bg: #fdfcfa; --panel: #f2efe9; --line: #d5cfc2; --line-soft: #e0dacd;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--body);
  font: 16px/1.6 "Helvetica Neue", -apple-system, Segoe UI, Arial, sans-serif; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav { border-top: 4px solid var(--teal); border-bottom: 1px solid var(--line);
  background: var(--bg); position: sticky; top: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: baseline; gap: 26px; padding: 14px 24px; flex-wrap: wrap; }
.brand { font-family: Georgia, serif; font-size: 21px; font-weight: 700; color: var(--ink); }
.brand .dot { color: var(--orange); }
.nav a.tab { font-size: 14px; letter-spacing: 0.4px; color: var(--muted); }
.nav a.tab.active { color: var(--orange); font-weight: 700; }
.nav .spacer { flex: 1; }
.nav .stamp { font-size: 12px; color: var(--faint); }

/* ---------- typography ---------- */
h1 { font-family: Georgia, serif; font-size: 40px; line-height: 1.12; color: var(--ink); }
h2 { font-family: Georgia, serif; font-size: 24px; color: var(--teal); margin: 34px 0 10px; }
h3 { font-family: Georgia, serif; font-size: 18px; color: var(--ink); margin: 18px 0 6px; }
.kicker { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--orange); font-weight: 700; margin-bottom: 10px; }
.lede { font-family: Georgia, serif; font-size: 20px; line-height: 1.55; color: var(--ink); }
p { margin-bottom: 12px; }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
code, .mono { font-family: "SF Mono", Menlo, monospace; font-size: 0.87em; color: var(--teal-dark); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .sub { max-width: 720px; font-size: 18px; color: var(--muted); margin-top: 14px; }

/* ---------- panels & cards ---------- */
.panel { background: var(--panel); border-radius: 12px; padding: 20px 22px; }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 20px 22px; }
.card h3 { margin-top: 0; }

/* result cards */
.rcard { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 22px 24px; margin-bottom: 20px; scroll-margin-top: 90px; }
.rcard .head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rid { font-family: Georgia, serif; font-weight: 700; font-size: 15px; color: #fff;
  background: var(--teal); border-radius: 6px; padding: 2px 10px; white-space: nowrap; }
.rcard.provisional .rid { background: var(--orange); }
.rcard.invalid .rid { background: var(--faint); }
.status { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; }
.status.verified { color: var(--teal); } .status.provisional { color: var(--orange); }
.status.lesson { color: var(--faint); }
.claim { font-family: Georgia, serif; font-size: 19px; color: var(--ink); margin: 8px 0 10px; }
.rcard img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; }
.numbers { display: flex; gap: 26px; flex-wrap: wrap; margin: 12px 0; }
.numbers .n { font-family: Georgia, serif; font-size: 24px; font-weight: 700; color: var(--ink); }
.numbers .l { font-size: 12.5px; color: var(--muted); max-width: 170px; line-height: 1.4; }
.prov { border-top: 1px solid var(--line-soft); margin-top: 14px; padding-top: 10px;
  font-size: 13px; color: var(--muted); }
.prov b { color: var(--ink); }

/* chips — the only sanctioned way to reference results */
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--teal-dark);
  background: #e7f0ef; border: 1px solid #c5dbda; border-radius: 20px;
  padding: 1px 11px; margin: 0 2px; white-space: nowrap; }
.chip:hover { background: #d8e9e8; text-decoration: none; }
.chip.doc { color: #6a4a9f; background: #eee9f6; border-color: #d8cdea; }

/* per-result tabs — folder-style */
.rtabs { display: flex; gap: 6px; margin: 16px 0 0; padding: 0 10px; position: relative; z-index: 1; }
.rtabs button { font: 700 13px/1 "Helvetica Neue", sans-serif; letter-spacing: 0.5px;
  color: var(--muted); background: var(--panel); cursor: pointer;
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 9px 9px 0 0; padding: 10px 20px 9px; margin-bottom: -1px; }
.rtabs button:hover { color: var(--teal-dark); }
.rtabs button.active { background: #fff; color: var(--orange);
  border-color: var(--line); box-shadow: 0 -2px 0 var(--orange) inset; }
.rtabs button.active { box-shadow: inset 0 3px 0 var(--orange); }
.rpane { display: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px 12px; background: #fff; }
.rpane.active { display: block; }
pre.codeblock { background: #f7f5f0; border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 14px 16px; font: 12.5px/1.55 "SF Mono", Menlo, monospace; color: #333f4a;
  overflow-x: auto; max-height: 340px; overflow-y: auto; margin: 8px 0; }
pre.codeblock .cm { color: #8a94a0; } pre.codeblock .hl { color: #b4530a; font-weight: 700; }
.codelinks { font-size: 13px; margin: 6px 0 2px; }
.codelinks a { margin-right: 14px; }

/* lab notes */
.note { border-left: 3px solid var(--teal); padding: 4px 0 4px 22px; margin: 26px 0; }
.note .date { font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); font-weight: 700; }
.note h3 { margin: 4px 0 8px; font-size: 20px; }

/* wiki */
.wentry { scroll-margin-top: 90px; border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.wentry dt { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: var(--ink); }
.wentry dd { margin-top: 4px; }
.wtoc a { display: inline-block; margin: 3px 6px 3px 0; }

/* tables */
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--teal); border-bottom: 2px solid var(--line); padding: 8px 10px 8px 0; }
table.data td { border-bottom: 1px solid var(--line-soft); padding: 9px 10px 9px 0; vertical-align: top; }
table.data td:first-child { font-weight: 700; color: var(--ink); }

/* stats strip */
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 26px 0; }
.stats .n { font-family: Georgia, serif; font-size: 34px; font-weight: 700; color: var(--ink); }
.stats .l { font-size: 13px; color: var(--muted); max-width: 180px; line-height: 1.4; }

.footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 22px 0 40px;
  font-size: 13px; color: var(--faint); display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; }

/* ---------- gate ---------- */
#gate { position: fixed; inset: 0; background: var(--bg); z-index: 999;
  display: flex; align-items: center; justify-content: center; }
#gate .box { text-align: center; max-width: 380px; padding: 24px; }
#gate input { font-size: 17px; padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: 8px; width: 100%; margin: 16px 0 10px; background: #fff; }
#gate button { font-size: 15px; font-weight: 700; color: #fff; background: var(--teal);
  border: 0; border-radius: 8px; padding: 10px 26px; cursor: pointer; }
#gate .err { color: var(--orange); font-size: 13.5px; min-height: 20px; margin-top: 8px; }
body.locked > :not(#gate) { display: none; }

@media (max-width: 640px) {
  h1 { font-size: 30px; } .hero { padding: 40px 0 24px; }
  .stats { gap: 22px; }
}

/* brand is a link */
a.brand { text-decoration: none; }
a.brand:hover { text-decoration: none; opacity: 0.85; }

/* results left-nav */
.rlayout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 34px; align-items: start; }
.sidenav { position: sticky; top: 76px; font-size: 13px; max-height: calc(100vh - 100px); overflow-y: auto; }
.sidenav .grp { font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700;
  color: var(--orange); margin: 16px 0 6px; }
.sidenav .grp:first-child { margin-top: 4px; }
.sidenav a { display: block; color: var(--muted); padding: 5px 10px; border-left: 2px solid var(--line-soft);
  line-height: 1.35; }
.sidenav a:hover { color: var(--teal-dark); text-decoration: none; }
.sidenav a.on { color: var(--teal-dark); font-weight: 700; border-left-color: var(--orange); background: #f7f4ee; }
.sidenav a .sid { font-weight: 700; }
.sidenav .soon { display: block; color: var(--faint); padding: 5px 10px; border-left: 2px dashed var(--line-soft);
  font-style: italic; }
.gheader { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  color: var(--orange); margin: 34px 0 12px; padding-top: 6px; scroll-margin-top: 90px; }
.gheader:first-child { margin-top: 6px; }
@media (max-width: 860px) { .rlayout { grid-template-columns: 1fr; } .sidenav { position: static; max-height: none; } }

/* notes as drop-downs */
details.ndd { border-left: 3px solid var(--teal); margin: 18px 0; background: #fff;
  border-radius: 0 10px 10px 0; border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
details.ndd summary { cursor: pointer; padding: 14px 18px; list-style: none; display: flex;
  gap: 14px; align-items: baseline; flex-wrap: wrap; }
details.ndd summary::-webkit-details-marker { display: none; }
details.ndd summary .date { font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--orange); font-weight: 700; white-space: nowrap; }
details.ndd summary .ttl { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: var(--ink); }
details.ndd summary::after { content: "▸"; margin-left: auto; color: var(--faint); }
details.ndd[open] summary::after { content: "▾"; }
details.ndd .body { padding: 0 18px 14px; }

/* red alert box */
.redbox { border: 2px solid #c0392b; background: #fdf0ee; border-radius: 10px;
  padding: 14px 18px; margin: 10px 0; }
.redbox .rhead { color: #c0392b; font-weight: 700; font-size: 12px;
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- library hub ---------- */
.libgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 26px 0; }
.libcard { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 22px; display: block; }
.libcard:hover { border-color: var(--teal); text-decoration: none; }
.libcard .lic { font-size: 26px; }
.libcard h3 { margin: 8px 0 6px; }
.libcard p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- study hub (quantsim pattern) ---------- */
.studylist { margin: 24px 0; }
.studyrow { display: flex; gap: 18px; align-items: baseline; padding: 18px 6px; border-bottom: 1px solid var(--line-soft); }
.studyrow:hover { background: #f7f4ee; text-decoration: none; }
.studyrow-n { font-family: Georgia, serif; font-size: 26px; font-weight: 700; color: var(--orange); min-width: 34px; text-align: center; }
.studyrow-tt { flex: 1; }
.studyrow-h { display: block; font-family: Georgia, serif; font-size: 19px; font-weight: 700; color: var(--ink); }
.studyrow-scope { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.studyrow-badge { font-size: 12px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.studyrow-badge.rdy { color: var(--teal-dark); }

/* ---------- tutorial pages ---------- */
.tutwrap { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 36px; align-items: start; }
.tutnav { position: sticky; top: 76px; font-size: 13px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 6px; }
.tutnav .tn-topic { display: block; font-weight: 700; color: var(--ink); padding: 6px 8px; margin-top: 8px; border-left: 2px solid var(--line-soft); }
.tutnav .tn-topic.on { color: var(--teal-dark); border-left-color: var(--orange); background: #f7f4ee; }
.tutnav .tn-sec { display: block; color: var(--muted); padding: 3px 8px 3px 20px; border-left: 2px solid var(--line-soft); line-height: 1.4; }
.tutnav .tn-sec:hover { color: var(--teal-dark); text-decoration: none; }
.tutnav .tn-sec.off { color: var(--faint); font-style: italic; }
.tut h1 { font-size: 33px; }
.tut .tutsub { color: var(--muted); font-size: 16px; max-width: 660px; margin-top: 10px; }
.tut section { margin: 40px 0; scroll-margin-top: 84px; }
.tut section > h2 { font-size: 23px; margin-bottom: 4px; }
.tut section > h2 .secnum { color: var(--orange); font-style: italic; margin-right: 10px; }
.tut h3 { font-size: 17.5px; margin: 22px 0 6px; }
.tut p { font-size: 15.5px; line-height: 1.7; max-width: 720px; }
.tut ul, .tut ol { font-size: 15.5px; line-height: 1.7; max-width: 700px; margin: 0 0 12px 22px; }
.tut li { margin-bottom: 6px; }
.eqbox { margin: 16px 0 16px 8px; padding: 10px 18px; overflow-x: auto; }
.tut .fig { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px; margin: 20px 0; max-width: 760px; }
.tut .fig .cap { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.tut .fig .cap b { color: var(--ink); }
.workex { border: 1.5px solid var(--teal); border-radius: 12px; margin: 22px 0; max-width: 740px; background: #fff; }
.workex .wxh { background: #e7f0ef; padding: 9px 16px; font-weight: 700; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--teal-dark); border-radius: 10px 10px 0 0; }
.workex .wxb { padding: 6px 18px 12px; }
.workex .wxb p { font-size: 14.5px; }
.keybox { background: var(--panel); border-radius: 10px; padding: 12px 18px; margin: 18px 0; max-width: 720px; font-size: 14.5px; }
.keybox b { color: var(--teal-dark); }
.tutfoot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 50px; padding-top: 16px; font-size: 14px; }
@media (max-width: 860px) { .tutwrap { grid-template-columns: 1fr; } .tutnav { position: static; max-height: none; } }

/* ---------- deep-tutorial blocks ---------- */
.callout { background: #f4effa; border-radius: 12px; padding: 16px 22px; margin: 22px 0; max-width: 740px; }
.callout .ch { color: #6a4a9f; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.callout p { font-size: 14.5px; }
.holdon { border-left: 3px solid var(--teal); padding: 4px 0 4px 18px; margin: 26px 0; font-style: italic;
  color: var(--muted); font-size: 15px; max-width: 720px; }
.eqkey { border: 1.5px solid var(--ink); border-radius: 8px; padding: 8px 20px; margin: 18px auto 18px 8px;
  display: table; background: #fff; }
.derive { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 4px 22px 10px;
  margin: 20px 0; max-width: 760px; }
.derive .dh { font-weight: 700; font-size: 14px; color: var(--ink); margin: 12px 0 4px; }
.secpager { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line);
  margin-top: 46px; padding-top: 16px; font-size: 14px; }
.seclist { margin: 20px 0; }
.seclist a { display: flex; gap: 14px; align-items: baseline; padding: 13px 6px; border-bottom: 1px solid var(--line-soft); }
.seclist a:hover { background: #f7f4ee; text-decoration: none; }
.seclist .sn { font-family: Georgia, serif; font-weight: 700; color: var(--orange); min-width: 44px; }
.seclist .st b { display: block; font-family: Georgia, serif; font-size: 17px; color: var(--ink); }
.seclist .st span { font-size: 13px; color: var(--muted); }
