/* MacSurf docs — shared styling for sub-pages. Matches the platinum theme of
   index.html but reads like documentation rather than a landing page. */
:root{
  --ink:#16223c;
  --ink-2:#2b3a5e;
  --paper:#e9e5d8;
  --paper-2:#f3f0e6;
  --platinum:#d8d5ca;
  --platinum-d:#bdb9ab;
  --white:#fcfbf6;
  --yellow:#ffce39;
  --orange:#e8771b;
  --rust:#c6371d;
  --line:#1a2440;
  --shadow:rgba(22,34,60,.22);
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Hanken Grotesk',-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(900px 520px at 78% -4%, rgba(255,206,57,.42), transparent 62%),
    repeating-linear-gradient(0deg, rgba(22,34,60,.045) 0 1px, transparent 1px 4px);
}
a{color:var(--rust);}
a:hover{color:var(--orange);}
img{display:block;max-width:100%;}

.wrap{max-width:880px;margin:0 auto;padding:0 28px;}

/* ---------- menu bar ---------- */
.menubar{
  position:sticky;top:0;z-index:80;
  background:var(--white);
  border-bottom:1.5px solid var(--line);
}
.menubar .wrap{display:flex;align-items:center;gap:26px;height:54px;max-width:1200px;}
.brand{display:flex;align-items:center;text-decoration:none;color:inherit;}
.brand img{display:block;height:30px;width:auto;}
.menu-links{display:flex;gap:6px;margin-left:auto;align-items:center;flex-wrap:wrap;}
.menu-links a{
  font-family:'Silkscreen',monospace;font-size:10px;
  text-decoration:none;color:var(--ink-2);
  padding:7px 11px;border-radius:5px;transition:.15s;
}
.menu-links a:hover{background:var(--paper);color:var(--ink);}
.menu-links a.active{background:var(--paper);color:var(--ink);}

/* ---------- doc shell ---------- */
.doc{
  background:var(--white);
  border:1.5px solid var(--line);
  border-radius:14px;
  box-shadow:0 12px 30px var(--shadow);
  padding:48px 56px;
  margin:36px auto 60px;
}
.eyebrow{
  font-family:'Silkscreen',monospace;font-size:10px;
  color:var(--rust);letter-spacing:.08em;text-transform:uppercase;
  margin-bottom:14px;
}
.doc h1{
  font-family:'Bricolage Grotesque',Georgia,serif;
  font-weight:800;font-size:38px;line-height:1.15;
  color:var(--ink);margin-bottom:12px;
  letter-spacing:-0.01em;
}
.doc .lede{font-size:18px;color:var(--ink-2);margin-bottom:28px;}
.doc h2{
  font-family:'Bricolage Grotesque',Georgia,serif;
  font-weight:700;font-size:24px;color:var(--ink);
  margin:36px 0 12px;padding-bottom:6px;
  border-bottom:1.5px solid var(--platinum-d);
}
.doc h3{
  font-family:'Bricolage Grotesque',Georgia,serif;
  font-weight:600;font-size:18px;color:var(--ink);
  margin:24px 0 8px;
}
.doc h4{font-size:16px;font-weight:600;margin:18px 0 6px;color:var(--ink-2);}
.doc p,.doc ul,.doc ol,.doc blockquote,.doc table{margin:12px 0;}
.doc ul,.doc ol{padding-left:24px;}
.doc li{margin:5px 0;}
.doc li > ul, .doc li > ol{margin:5px 0;}
.doc blockquote{
  border-left:3px solid var(--orange);
  background:var(--paper-2);
  padding:10px 18px;
  margin:16px 0;
  color:var(--ink-2);
  border-radius:0 6px 6px 0;
}
.doc hr{border:none;border-top:1px dashed var(--platinum-d);margin:28px 0;}

/* code */
.doc code{
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:.92em;
  background:var(--paper-2);
  color:var(--ink);
  padding:1px 6px;
  border-radius:3px;
  border:1px solid var(--platinum);
}
.doc pre{
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  background:#16223c;
  color:#e9e5d8;
  padding:16px 18px;
  border-radius:8px;
  overflow-x:auto;
  font-size:13px;
  line-height:1.55;
  margin:16px 0;
  box-shadow:0 0 0 1.5px var(--line),0 4px 12px var(--shadow);
}
.doc pre code{
  background:transparent;border:none;padding:0;color:inherit;font-size:inherit;
}

/* tables */
.doc table{
  border-collapse:collapse;width:100%;
  background:var(--white);
  border:1.5px solid var(--line);
  border-radius:6px;
  overflow:hidden;
}
.doc th,.doc td{
  padding:8px 12px;
  border-bottom:1px solid var(--platinum);
  text-align:left;
  vertical-align:top;
  font-size:14px;
}
.doc th{
  background:var(--paper-2);
  font-family:'Silkscreen',monospace;
  font-size:10px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ink-2);
}
.doc tr:last-child td{border-bottom:none;}

/* footer */
footer.foot{
  border-top:1.5px solid var(--line);
  background:var(--white);
  padding:24px 0;
  font-size:13px;
  color:var(--ink-2);
}
footer.foot .wrap{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center;}
footer.foot a{color:var(--ink-2);text-decoration:none;border-bottom:1px solid var(--platinum-d);}
footer.foot a:hover{color:var(--ink);border-bottom-color:var(--orange);}
footer.foot a.mpls-mark{display:inline-flex;align-items:center;gap:8px;border-bottom:none;}
footer.foot a.mpls-mark img{display:block;opacity:.85;transition:.15s;}
footer.foot a.mpls-mark:hover img{opacity:1;}
footer.foot a.mpls-mark strong{color:var(--ink);font-weight:600;}

@media (max-width:680px){
  .doc{padding:28px 22px;border-radius:10px;margin:20px 14px;}
  .doc h1{font-size:28px;}
}
