/* PunchMan public pages — Swiss style.
   White paper ruled with a faint red modular grid, one grotesk family set flush-left in big contrasts
   of weight (light lowercase over heavy display), a mono for captions and indices, and a single
   accent: the blue of the PunchMan mark. Loaded after styles.css, scoped to .swiss (the <body> on public pages, a wrapper inside the manager guide). */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800&display=swap');

.swiss {
  --ink: #111111; --paper: #ffffff; --blue: #3434e0; --blue-ink: #2424b4; --blue-soft: #ececfd;
  --grid: rgba(214, 48, 49, .15); --grid-strong: rgba(214, 48, 49, .28);
  --muted: #5c5c5c; --line: #e2e2e2; --soft: #f6f6f4; --ok: #0f6d5b; --warn: #b3261e;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --maxw: 1320px; --pad: 32px; --gut: 24px; --row: 96px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* Horizontal rules come in pairs, like the reference sheet: a row line and a gutter line. */
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: 100% var(--row), 100% var(--row);
  background-position: 0 0, 0 var(--gut);
}
.swiss main :is(h1, h2, h3, h4) { font-family: var(--sans); letter-spacing: -.02em; }
.swiss main a, .sw-nav a { color: inherit; }
.swiss ::selection { background: var(--blue); color: #fff; }
.swiss :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Vertical rules: the 12 columns of the layout itself, so the grid you see is the grid in use. */
.sw-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.sw-grid .cols { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); }
.sw-grid .cols i { border-left: 1px solid var(--grid); border-right: 1px solid var(--grid); }
.sw-grid .cols i:first-child { border-left-color: var(--grid-strong); }
.sw-grid .cols i:last-child { border-right-color: var(--grid-strong); }
.swiss main, .swiss header, .swiss section { position: relative; z-index: 1; }

.sw-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.lt { font-weight: 300; letter-spacing: -.02em; text-transform: lowercase; }
.blue { color: var(--blue); }

/* Buttons are rectangles. */
.sw-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff !important; border: 1px solid var(--ink); padding: 14px 20px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 0; transition: background .15s, transform .15s var(--ease); cursor: pointer; font-family: var(--sans); }
.sw-btn:hover { background: var(--blue); border-color: var(--blue); }
.sw-btn.ghost { background: transparent; color: var(--ink) !important; }
.sw-btn.ghost:hover { background: var(--ink); color: #fff !important; }
.sw-btn.blue { background: var(--blue); border-color: var(--blue); }
.sw-btn.blue:hover { background: var(--ink); border-color: var(--ink); }
.sw-btn.sm { padding: 9px 14px; font-size: 14px; }
.sw-btn .ar { transition: transform .2s var(--ease); }
.sw-btn:hover .ar { transform: translateX(4px); }

/* ---- Nav ------------------------------------------------------------------------------------ */
.sw-nav { position: sticky !important; top: 0; z-index: 40 !important; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ink); }
.sw-nav .row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.sw-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wm { font-size: 22px; letter-spacing: -.03em; font-weight: 400; line-height: 1; }
.wm b { font-weight: 800; color: var(--blue); }
.sw-nav .links { display: flex; gap: 22px; }
.sw-nav .links a { text-decoration: none; font-size: 14px; font-weight: 500; display: flex; gap: 6px; align-items: baseline; }
.sw-nav .links a i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.sw-nav .links a:hover, .sw-nav .links a.on { color: var(--blue); }
.sw-nav .act { display: flex; align-items: center; gap: 18px; }
.sw-nav .act > a:not(.sw-btn) { text-decoration: none; font-weight: 500; font-size: 14px; }
.sw-nav .act > a:not(.sw-btn):hover { color: var(--blue); }
@media (max-width: 1080px) { .sw-nav .links { display: none; } }

/* ---- Section scaffolding ---------------------------------------------------------------------- */
.sec { padding-top: 24px; padding-bottom: 120px; }
.sec-h { border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 56px; align-items: start; }
.sec-h h2 { grid-column: 1 / 9; margin: 0; font-size: clamp(40px, 5.2vw, 76px); line-height: .92; font-weight: 700; letter-spacing: -.045em; }
.sec-h h2 .lt { display: block; font-size: .5em; letter-spacing: -.02em; margin-bottom: .2em; }
.sec-h p { grid-column: 9 / 13; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.sec-h p b { color: var(--ink); font-weight: 600; }
.cap { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); margin-top: 12px; text-transform: uppercase; }
.cap b { color: var(--ink); font-weight: 500; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* Panel: the one "card" in the system — a white box, a hairline, square corners. */
.panel { background: #fff; border: 1px solid var(--ink); }
.panel-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--ink); gap: 12px; }
.panel-h .mono { color: var(--muted); }
.panel-b { padding: 18px; }

/* Tables */
.tb { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tb th { text-align: left; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px; border-bottom: 1px solid var(--ink); }
.tb td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb .n { text-align: right; }
.tb tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--ink); }

/* Segmented control */
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { background: #fff; border: 0; border-right: 1px solid var(--ink); padding: 10px 16px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.seg button:last-child { border-right: 0; }
.seg button i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.seg button[aria-selected="true"], .seg button.on { background: var(--ink); color: #fff; }
.seg button[aria-selected="true"] i, .seg button.on i { color: #bbb; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border: 1px solid currentColor; }
.tag.ok { color: var(--ok); }
.tag.blue { color: var(--blue); }
.tag.mute { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }
.dot.live { animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }

@media (max-width: 900px) {
  .swiss { --pad: 20px; --gut: 12px; }
  .sw-grid .cols { grid-template-columns: repeat(4, 1fr); }
  .sw-grid .cols i:nth-child(n+5) { display: none; }
  .sw-grid .cols i:nth-child(4) { border-right-color: var(--grid-strong); }
  .g12 > * { grid-column: 1 / -1 !important; }
  .sec { padding-bottom: 80px; }
  .sec-h { margin-bottom: 36px; row-gap: 14px; }
  .sw-nav .act > a.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .swiss *, .swiss *::before, .swiss *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .rv { opacity: 1; transform: none; }
}

/* The Trinect footer sits on the PunchMan page itself: white paper and the red grid, not trinect.org's
   warm grey. Its rules turn ink so they read against the grid lines. */
.swiss .tn-foot { background: transparent; border-top: 2px solid var(--ink); }
.swiss .tn-foot .base { border-top-color: var(--ink); }
