/* Process Technology of Pennsylvania — site styles. No external dependencies. */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #14202e;
  --muted: #4f5d6d;
  --line: #d9e0e8;
  --brand: #0d3b66;        /* deep navy */
  --brand-ink: #ffffff;
  --logo: #0d3b66;         /* navy PT mark */
  --accent: #1f6fd1;       /* links; evolved from the original #3399ff */
  --accent-soft: #e6f0fc;
  --cta: #d9661b;          /* safety orange, used only for calls to action */
  --cta-hover: #b9530f;
  --panel: #ffffff;        /* product images are scans on white; keep them on white in every theme */
  --radius: 10px;
  --shadow: 0 1px 2px rgb(16 32 51 / 6%), 0 4px 16px rgb(16 32 51 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151d;
    --surface: #16202b;
    --ink: #e6ecf2;
    --muted: #a3b0be;
    --line: #2a3745;
    --brand: #0a2540;
    --logo: #9cc3f5;       /* navy would vanish on the dark header */
    --accent: #6aa8ff;
    --accent-soft: #1a2c44;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; fill: var(--logo); }
.brand-name { font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--muted); }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 10px; border-radius: 6px;
}
.main-nav a:hover { background: var(--accent-soft); }
.main-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.main-nav .nav-phone {
  margin-left: 6px; background: var(--brand); color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}
.main-nav .nav-phone:hover { background: var(--accent); }

.crumbs {
  max-width: 1160px; margin: 0 auto; padding: 18px 16px 0;
  font-size: 0.9rem; color: var(--muted); display: flex; gap: 8px;
}
@media (min-width: 720px) { .crumbs { padding-left: 32px; padding-right: 32px; } }
.crumbs a { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; border: 2px solid transparent;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; line-height: 1.2;
}
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-hover); }
.btn-outline { border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgb(255 255 255 / 10%); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home hero ---------- */

.hero {
  background-color: var(--brand);
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero .eyebrow { color: #9cc3f5; }
.hero h1 { max-width: 20ch; }
.hero .lead { color: #d4e2f2; max-width: 60ch; font-size: 1.15rem; }
.hero .btn-row { margin-top: 28px; }

.eyebrow {
  display: block; margin-bottom: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
  margin: 40px 0 0; padding: 0; list-style: none;
}
.facts li { border-left: 3px solid var(--cta); padding: 2px 0 2px 14px; color: #d4e2f2; font-size: 0.95rem; }
.facts strong { display: block; color: #fff; font-size: 1.05rem; }

/* ---------- Sections and cards ---------- */

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 70ch; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

.page-head { padding: 28px 0 8px; }
.page-head .lead { color: var(--muted); max-width: 65ch; font-size: 1.1rem; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-img {
  background: var(--panel); display: grid; place-items: center;
  height: 200px; padding: 16px; border-bottom: 1px solid var(--line);
}
.card-img img { max-height: 168px; width: auto; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin-bottom: 4px; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .series { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.card-body .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }

.line-card { padding: 24px; }
.line-card h3 { font-size: 1.3rem; }
.line-card p { color: var(--muted); }

/* ---------- Product pages ---------- */

.product-hero {
  display: grid; gap: 28px; align-items: center; padding: 20px 0 32px;
}
@media (min-width: 860px) { .product-hero { grid-template-columns: 1.4fr 1fr; } }
.product-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.product-hero .btn-row { margin-top: 20px; }
.product-hero .btn-outline { color: var(--accent); }
.product-hero .btn-outline:hover { background: var(--accent-soft); }

.photo {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px;
  min-height: 260px;
}
.product-hero > * { min-width: 0; }
.photo img { max-height: 380px; width: auto; }

.key-specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 0 0 8px;
}
.key-specs div { background: var(--surface); padding: 14px 16px; }
.key-specs dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.key-specs dd { margin: 4px 0 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.product-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 64px; }
/* Let wide tables scroll inside their box instead of stretching grid columns. */
.product-body > *, .split > * { min-width: 0; }
@media (min-width: 960px) {
  .product-body { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .product-body aside { position: sticky; top: 20px; }
}

.block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); margin-bottom: 20px;
}
.block > h2 { font-size: 1.3rem; padding-bottom: 10px; border-bottom: 2px solid var(--accent-soft); margin-bottom: 16px; }
.block > :last-child { margin-bottom: 0; }

.split { display: grid; gap: 24px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

.checks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 6px 24px; }
@media (min-width: 640px) { .checks.cols { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 0.5em;
  width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

figure { margin: 0 0 1em; }
.figure {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px;
}
.figure img { margin: 0 auto; }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; text-align: center; }
.figure figcaption { color: #4f5d6d; }

.spec-list { margin: 0; display: grid; gap: 0; }
.spec-list div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-list div:first-child { padding-top: 0; }
.spec-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list dt { color: var(--muted); font-size: 0.88rem; }
.spec-list dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.order-code {
  font-family: var(--mono); font-size: 1rem; font-weight: 600;
  background: var(--accent-soft); color: var(--ink); padding: 3px 8px; border-radius: 5px; white-space: nowrap;
}

.note { font-size: 0.92rem; color: var(--muted); }
.callout {
  border-left: 4px solid var(--cta); background: var(--surface);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 0 0 1em;
}

aside .block h2 { font-size: 1.1rem; }
.quote-box { background: var(--brand); color: #fff; border-color: var(--brand); }
.quote-box > h2 { border-bottom-color: rgb(255 255 255 / 15%); }
.quote-box p { color: #d4e2f2; font-size: 0.95rem; }
.quote-box a:not(.btn) { color: #fff; }
.quote-box .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a { font-weight: 600; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 0.97rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--accent-soft); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }
td.num, th.num { text-align: right; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }

.frac { white-space: nowrap; }
.frac sup, .frac sub { font-size: 0.72em; line-height: 0; }
.frac sup { vertical-align: 0.45em; }
.frac sub { vertical-align: -0.05em; }

/* ---------- Selection guide ---------- */

.guide td:first-child { font-weight: 600; }
.guide td small { display: block; font-weight: 400; color: var(--muted); }
.guide ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Article (technical notes) ---------- */

.article { max-width: 760px; padding: 20px 0 64px; }
.article .lead { color: var(--muted); font-size: 1.15rem; }
.article h2 { margin-top: 1.6em; font-size: 1.35rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 0.4em; }
.calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 20px; margin: 0 0 1.2em; font-variant-numeric: tabular-nums;
}
.calc p { margin: 0 0 0.4em; }
.calc .result { font-weight: 800; font-size: 1.2rem; color: var(--ink); margin: 0; }

.note-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.note-list .card-body h3 { font-size: 1.1rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 20px; padding-bottom: 64px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
address { font-style: normal; }
.contact-big { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */

.site-footer { background: var(--brand); color: #c6d4e3; font-size: 0.95rem; margin-top: 24px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-name { font-weight: 700; color: #fff; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.footer-name .brand-mark { width: 32px; height: 32px; fill: #fff; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / 12%); padding-top: 18px; padding-bottom: 24px; font-size: 0.85rem; }
.footer-legal p { margin: 0; }

/* ---------- Print: product pages print as clean data sheets ---------- */

@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #333; --line: #bbb; --accent-soft: #eee; }
  body { font-size: 10.5pt; }
  .site-header .main-nav, .crumbs, .btn-row, .quote-box, .skip, .site-footer .footer-grid > div:last-child { display: none; }
  .site-header { border-bottom: 2px solid #000; }
  .site-footer { background: none; color: #000; }
  .site-footer a, .site-footer h2, .footer-name { color: #000; }
  .block, .card, .figure, .photo { box-shadow: none; break-inside: avoid; }
  .product-body { display: block; }
  a { color: inherit; text-decoration: none; }
  .hero { background: none; color: #000; padding: 12pt 0; }
}

/* ---------- Utilities ---------- */

.mt { margin-top: 16px; }
.quote-box .btn-row .btn { width: auto; margin-bottom: 0; }
