/* Automation & IIoT Services, LLC: site styles
   One stylesheet for every page. Tokens first, then layout, then components. */

:root {
  --ink: #0f1722;          /* deep control-panel navy */
  --ink-2: #172231;
  --ink-3: #223146;
  --paper: #f5f4ef;        /* warm drawing-sheet white */
  --paper-2: #ebe9e1;
  --line: #d6d3c8;
  --line-dark: #2c3d54;
  --text: #18202b;
  --muted: #5a6573;
  --muted-dark: #9aa8b8;
  --on-dark: #e9eef4;
  --amber: #f0a500;        /* status-lamp amber: marks and highlights */
  --amber-ink: #8a5a00;    /* amber dark enough for text on paper */
  --green: #3ccf7e;        /* RUN lamp: live indicators only */
  --cyan: #5cc8e6;         /* data traces */
  --radius: 6px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 34, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 60px; width: auto; display: block; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; font-size: .95rem; color: var(--muted-dark);
  padding: 8px 12px; border-radius: var(--radius);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--ink-3); }
.nav a.cta { color: var(--ink); background: var(--amber); font-weight: 600; margin-left: 8px; }
.nav a.cta:hover { background: #ffbb26; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--on-dark);
  border-radius: var(--radius); padding: 8px 10px; font: 500 .9rem var(--mono); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
  .brand img { height: 50px; }
}

/* ---------- dark bands ---------- */
.dark { background: var(--ink); color: var(--on-dark); }
.dark p, .dark .lede { color: #c3cdd9; }
.dark a { color: #fff; }
.grid-bg {
  background-image:
    linear-gradient(rgba(92, 200, 230, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 200, 230, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  font: 500 .78rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-ink); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.dark .eyebrow { color: var(--amber); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
  padding: 13px 20px; border-radius: var(--radius); border: 1px solid transparent; font-size: 1rem;
}
.btn-primary { background: var(--amber); color: var(--ink) !important; }
.btn-primary:hover { background: #ffbb26; }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { background: var(--ink-3); }
.btn-dark { background: var(--ink); color: #fff !important; }
.btn-dark:hover { background: var(--ink-3); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* hero diagram: floor -> edge -> data */
.flow { width: 100%; height: auto; }
.flow .box { fill: var(--ink-2); stroke: var(--line-dark); stroke-width: 1.5; }
.flow .box-hi { stroke: var(--amber); }
.flow .lbl { font: 600 13px var(--sans); fill: #fff; }
.flow .sub { font: 400 10.5px var(--mono); fill: var(--muted-dark); }
.flow .trace { fill: none; stroke: var(--line-dark); stroke-width: 2; }
.flow .pulse { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 10 190; animation: dash 3.2s linear infinite; }
.flow .pulse.b { animation-delay: -1.1s; }
.flow .pulse.c { animation-delay: -2.2s; stroke: var(--amber); }
.flow .led { fill: var(--green); animation: blink 1.6s steps(2, start) infinite; }
.flow .led.off { fill: #39485c; animation: none; }
.flow .slot { fill: #1d2a3b; stroke: #33465f; }
@keyframes dash { to { stroke-dashoffset: -200; } }
@keyframes blink { 50% { opacity: .25; } }

/* live tag ticker under the diagram */
.tags {
  margin-top: 16px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  font: 400 .8rem/1.5 var(--mono); color: var(--muted-dark); background: rgba(23, 34, 49, .7);
}
.tags .row { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line-dark); }
.tags .row:first-child { border-top: 0; color: #6f8197; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.tags .v { color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.tags .q { color: var(--green); text-align: right; }

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid var(--line-dark); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 20px 30px; border-left: 1px solid var(--line-dark); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 600 clamp(1.8rem, 3.4vw, 2.5rem)/1 var(--sans); color: #fff; margin-bottom: 8px; letter-spacing: -.02em; }
.fact span { font-size: .9rem; color: var(--muted-dark); }
@media (max-width: 760px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); }
}

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark .section-head p { color: #c3cdd9; }
.alt { background: var(--paper-2); }

/* services grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--paper); padding: 30px 28px 32px; display: flex; flex-direction: column; }
.card .num { font: 500 .78rem var(--mono); color: var(--amber-ink); letter-spacing: .1em; margin-bottom: 18px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.card li, .chip {
  font: 500 .74rem var(--mono); padding: 4px 8px; border-radius: 4px;
  background: var(--paper-2); color: #3b4552; border: 1px solid var(--line);
}
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* approach: numbered steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.step { border-top: 2px solid var(--amber); padding-top: 18px; }
.step::before { counter-increment: s; content: "0" counter(s); font: 500 .8rem var(--mono); color: var(--amber); display: block; margin-bottom: 10px; }
.step h3 { color: #fff; }
.step p { font-size: .96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* principles callout */
.principle {
  margin-top: 56px; border: 1px solid var(--line-dark); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 22px 26px; background: var(--ink-2);
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
}
.principle .mono { color: var(--amber); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.principle p { margin: 0; color: var(--on-dark); }
@media (max-width: 620px) { .principle { grid-template-columns: 1fr; } }

/* case studies */
.cases { display: grid; gap: 28px; }
.case {
  display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.case-meta { background: var(--ink); color: var(--on-dark); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.case-meta .tag { font: 500 .74rem var(--mono); color: var(--amber); letter-spacing: .1em; text-transform: uppercase; }
.case-meta h3 { color: #fff; font-size: 1.3rem; margin: 0; }
.case-meta dl { margin: auto 0 0; font-size: .85rem; display: grid; gap: 10px; }
.case-meta dt { font: 500 .7rem var(--mono); color: #7d8ea3; text-transform: uppercase; letter-spacing: .08em; }
.case-meta dd { margin: 2px 0 0; color: #d5dde7; }
.case-body { padding: 28px 32px; }
.case-body h4 { font: 600 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); margin: 18px 0 6px; }
.case-body h4:first-child { margin-top: 0; }
.case-body p { color: #33404f; margin-bottom: .6em; }
.case-body ul { margin: 0 0 .6em; padding-left: 1.1em; color: #33404f; }
.case-body li { margin-bottom: 4px; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } .case-body { padding: 24px; } }

/* tools / lab */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tool { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px; background: var(--ink-2); position: relative; }
.tool.wide { grid-column: 1 / -1; border-color: rgba(240, 165, 0, .45); }
.tool h3 { color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool p { font-size: .97rem; }
.status { font: 500 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; border: 1px solid; }
.status.inuse { color: var(--green); border-color: rgba(60, 207, 126, .45); }
.status.dev { color: var(--amber); border-color: rgba(240, 165, 0, .45); }
.tool .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tool .chip { background: transparent; color: var(--muted-dark); border-color: var(--line-dark); }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }

/* platform matrix */
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.matrix > div { padding: 22px 22px 24px; border-left: 1px solid var(--line); }
.matrix > div:first-child { border-left: 0; }
.matrix h3 { font: 600 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 12px; }
.matrix ul { list-style: none; margin: 0; padding: 0; font-size: .94rem; }
.matrix li { padding: 5px 0; border-top: 1px dashed var(--line); }
.matrix li:first-child { border-top: 0; }
@media (max-width: 900px) { .matrix { grid-template-columns: 1fr 1fr; } .matrix > div:nth-child(3) { border-left: 0; } .matrix > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.matrix.three { grid-template-columns: repeat(3, 1fr); }
.matrix.three > div { border-top: 0; border-left: 1px solid var(--line); }
.matrix.three > div:first-child { border-left: 0; }
.matrix.three p { color: var(--muted); font-size: .88rem; margin: -4px 0 10px; }
@media (max-width: 900px) { .matrix.three { grid-template-columns: 1fr; } .matrix.three > div { border-left: 0; border-top: 1px solid var(--line); } .matrix.three > div:first-child { border-top: 0; } }
@media (max-width: 520px) { .matrix { grid-template-columns: 1fr; } .matrix > div { border-left: 0; border-top: 1px solid var(--line); } .matrix > div:first-child { border-top: 0; } }

/* about / timeline */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--amber-ink); }
.timeline li.now::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(240, 165, 0, .2); }
.timeline .yr { font: 500 .8rem var(--mono); color: var(--amber-ink); }
.timeline h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.timeline p { color: var(--muted); font-size: .96rem; margin: 0; }
.honors { display: grid; gap: 12px; margin-top: 28px; }
.honor { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.honor svg { width: 44px; height: 44px; }
.honor b { display: block; font-size: .98rem; }
.honor span { font-size: .88rem; color: var(--muted); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; padding: 26px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.5; color: #fff; }
.quote blockquote::before { content: "\201C"; color: var(--amber); font-size: 2.2rem; line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.quote figcaption { margin-top: auto; font: 400 .8rem var(--mono); color: var(--muted-dark); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* training list */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.course { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.course b { display: block; margin-bottom: 4px; }
.course span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .courses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .courses { grid-template-columns: 1fr; } }

/* page header for inner pages */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 18em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lines { display: grid; gap: 10px; margin-top: 24px; }
.contact-lines a, .contact-lines div {
  display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark);
}
.contact-lines .k { font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted-dark); }
.contact-lines .v { font-size: 1.1rem; color: #fff; word-break: break-word; }
.contact-lines a:hover .v { color: var(--amber); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding: 14px 16px 14px 44px; position: relative; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2); font-size: .97rem; }
.alt .checklist li, .checklist.ai li { background: #fff; border-color: var(--line); color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 12px; height: 12px; border: 2px solid var(--amber); border-radius: 2px; }

/* footer */
.site-footer { background: #0a1018; color: var(--muted-dark); padding: 48px 0 32px; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { width: 240px; height: auto; margin-bottom: 18px; }
.site-footer h4 { font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #6f8197; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: #c3cdd9; }
.site-footer a:hover { color: var(--amber); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #1c2836; padding-top: 20px; margin-top: 8px; font-size: .8rem; color: #6f8197; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow .pulse, .flow .led { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- product pages: SoftPLC diagram ---------- */
.diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.diagram svg { min-width: 760px; }
.flow .cap { font: 500 10px var(--mono); letter-spacing: .14em; fill: var(--amber); }
.flow .hdr { fill: #1f2d40; }
.flow .lbl.big { font-size: 16px; }
.flow .ring { fill: none; stroke: #33465f; stroke-width: 2; stroke-dasharray: 4 6; }
.flow .spin { transform-origin: 520px 192px; animation: spin 2.4s linear infinite; }
.flow .dot { fill: var(--amber); }
.flow .node { fill: #1d2a3b; stroke: #4a6080; }
.flow .nt { font: 500 11.5px var(--sans); fill: #fff; }
.flow .tagbox { fill: rgba(240, 165, 0, .12); stroke: rgba(240, 165, 0, .55); }
.flow .tg { font: 500 10.5px var(--mono); fill: #e9eef4; }
.flow .ok { font: 600 11px var(--mono); fill: var(--green); }
.flow .wheel { fill: #2a3a50; stroke: var(--muted-dark); }
.flow .part { fill: var(--cyan); opacity: .85; animation: travel 4s linear infinite; }
.flow .part.p2 { animation-delay: -2s; }
.flow .beam { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 3 3; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes travel { from { transform: translateX(-30px); opacity: 0; } 15% { opacity: .85; } 85% { opacity: .85; } to { transform: translateX(80px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow .spin, .flow .part { animation: none; } }

/* ---------- vendor strip ---------- */
.vendors { border-top: 1px solid var(--line-dark); padding: 18px 0 20px; }
.vendors .wrap { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.vendors .k { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
.vendors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.vendors li { font-size: .9rem; color: #c3cdd9; padding: 3px 10px; border: 1px solid var(--line-dark); border-radius: 99px; }
.vendors li.home { color: var(--ink); background: var(--amber); border-color: var(--amber); font-weight: 600; }

/* ---------- motto band ---------- */
.motto-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.motto-grid img { width: 100%; height: auto; }
@media (max-width: 860px) { .motto-grid { grid-template-columns: 1fr; } }

/* ---------- featured product ---------- */
.feature { border-top: 1px solid var(--line-dark); }
.feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.feature h2 { color: #fff; }
.shot { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--line-dark); background: #0b111a; }
.shot img { width: 100%; height: auto; }
a.shot { transition: transform .25s ease; }
a.shot:hover { transform: translateY(-3px); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- protocol tables ---------- */
.ptable { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.ptable th { text-align: left; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); padding: 12px 16px; }
.ptable td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.ptable td:first-child { font-weight: 600; }
.ptable td small { display: block; color: var(--muted); font-weight: 400; }
.ptable tr.sub th { background: var(--paper-2); color: var(--ink); font: 600 .8rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 14px 16px 10px; border-top: 2px solid var(--line); }
.table-h { font-size: 1.05rem; margin: 30px 0 10px; }
.table-h:first-child { margin-top: 0; }
.pill { display: inline-block; font: 500 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.pill.ok { color: #157a45; border-color: rgba(21, 122, 69, .45); background: rgba(60, 207, 126, .1); }
.pill.plan { color: var(--amber-ink); border-color: rgba(138, 90, 0, .4); background: rgba(240, 165, 0, .1); }
.pill.req { color: var(--muted); border-color: var(--line); }
.pill.iop { color: #1f5f8b; border-color: rgba(31, 95, 139, .4); background: rgba(31, 95, 139, .08); }
.pill.asm { color: #6b6355; border-color: rgba(107, 99, 85, .4); background: rgba(107, 99, 85, .07); }
.table-note { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.ptable + h3, .table-note + h3 { margin-top: 40px; }
@media (max-width: 640px) {
  .ptable thead { display: none; }
  .ptable tr { display: block; border-top: 1px solid var(--line); padding: 8px 0; }
  .ptable tr:first-child { border-top: 0; }
  .ptable td { display: block; border: 0; padding: 4px 16px; }
}
