/*
 * SMC Shower — Spec Library
 * US B2B technical / documentation style. Deliberately unlike a marketing
 * site: no hero image, no card grid, no banners. One accent (steel blue),
 * off-white paper background, charcoal text, datasheet tables.
 */

:root {
	--smcs-bg: #fafaf8;
	--smcs-surface: #ffffff;
	--smcs-ink: #23272b;
	--smcs-ink-soft: #4a5158;
	--smcs-slate: #2b3138; /* header */
	--smcs-slate-ink: #eef1f4;
	--smcs-accent: #1f5fa8; /* steel blue — the single accent colour */
	--smcs-accent-dark: #174a84;
	--smcs-line: #d9dcd9;
	--smcs-line-strong: #b9beb9;
	--smcs-stripe: #f1f3f1;
	--smcs-measure: 760px;
	--smcs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--smcs-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--smcs-bg);
	color: var(--smcs-ink);
	font-family: var(--smcs-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--smcs-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--smcs-accent-dark); }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--smcs-slate); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header: compact dark-slate utility bar ---------- */

.site-header { background: var(--smcs-slate); color: var(--smcs-slate-ink); }
.header-inner {
	max-width: 1180px; margin: 0 auto; padding: 0 20px;
	min-height: 56px; display: flex; align-items: center; gap: 20px;
}
.site-branding { flex: 0 0 auto; }
.wordmark {
	color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em;
	font-size: 19px; white-space: nowrap;
}
.wordmark:hover { color: #fff; }
.site-branding img { max-height: 34px; width: auto; display: block; }
.header-rule { height: 3px; background: var(--smcs-accent); }

.primary-navigation { margin-left: auto; }
.nav-list {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: 4px;
}
.nav-list a {
	color: var(--smcs-slate-ink); text-decoration: none; font-size: 15px;
	padding: 7px 11px; border-radius: 3px; display: block;
}
.nav-list a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-list .current-menu-item > a { color: #fff; box-shadow: inset 0 -2px 0 var(--smcs-accent); border-radius: 0; }
/* "Request a Quote" button: give the menu item this class in WP Menus. */
.nav-list .menu-item--cta a {
	background: var(--smcs-accent); color: #fff; font-weight: 600; border-radius: 3px;
}
.nav-list .menu-item--cta a:hover { background: var(--smcs-accent-dark); }

.nav-toggle {
	display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.35);
	color: var(--smcs-slate-ink); padding: 6px 12px; border-radius: 3px; font: inherit; font-size: 14px;
	cursor: pointer;
}

/* ---------- Layout shells ---------- */

.site-main { display: block; }
.doc-wrap, .index-wrap { max-width: 980px; margin: 0 auto; padding: 34px 20px 56px; }
.reading-wrap { max-width: 1080px; margin: 0 auto; padding: 34px 20px 56px; }

/* ---------- Reading layout: sticky TOC + narrow measure ---------- */

.reading { display: grid; grid-template-columns: 210px minmax(0, var(--smcs-measure)); gap: 44px; justify-content: center; }
.reading-toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc-heading {
	margin: 6px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .09em;
	text-transform: uppercase; color: var(--smcs-ink-soft);
}
.toc-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--smcs-line); }
.toc-list li { margin: 0; }
.toc-list a {
	display: block; padding: 5px 10px; margin-left: -2px; border-left: 2px solid transparent;
	color: var(--smcs-ink-soft); text-decoration: none; line-height: 1.4;
}
.toc-list a:hover { color: var(--smcs-accent); }
.toc-list a.is-active { color: var(--smcs-accent); border-left-color: var(--smcs-accent); font-weight: 600; }

.entry-title { font-size: 32px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.entry-meta { color: var(--smcs-ink-soft); font-size: 14px; margin: 0 0 26px; }
.entry-cats { font-size: 13px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.entry-cats a { text-decoration: none; }

/* ---------- Content typography ---------- */

.entry-content h2 { font-size: 23px; line-height: 1.3; margin: 38px 0 12px; padding-top: 6px; }
.entry-content h3 { font-size: 19px; margin: 28px 0 8px; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 16px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { margin: 20px 0; }
.entry-content figcaption { font-size: 13.5px; color: var(--smcs-ink-soft); margin-top: 6px; }

.guide-lead {
	background: var(--smcs-surface); border: 1px solid var(--smcs-line);
	border-left: 4px solid var(--smcs-accent); padding: 16px 20px; margin: 0 0 26px;
}
.guide-lead p:last-child { margin-bottom: 0; }

.guide-quote-link { border-top: 1px solid var(--smcs-line); padding-top: 16px; margin-top: 34px; font-size: 15.5px; }

/* FAQ: native details/summary, styled flat */
.entry-content details {
	border: 1px solid var(--smcs-line); background: var(--smcs-surface);
	padding: 12px 16px; margin: 0 0 10px;
}
.entry-content details summary { font-weight: 600; cursor: pointer; }
.entry-content details p:last-child { margin-bottom: 4px; }

/* ---------- Datasheet tables ---------- */

.entry-content table,
.wp-block-table table {
	width: 100%; border-collapse: collapse; background: var(--smcs-surface);
	font-size: 15px; margin: 18px 0 24px;
	border: 1px solid var(--smcs-line-strong);
}
.entry-content th, .entry-content td,
.wp-block-table th, .wp-block-table td {
	border: 1px solid var(--smcs-line); padding: 8px 12px; text-align: left; vertical-align: top;
}
.entry-content thead th, .wp-block-table thead th {
	background: var(--smcs-slate); color: #fff; font-weight: 600; font-size: 13.5px;
	letter-spacing: .03em;
}
.entry-content tbody tr:nth-child(even), .wp-block-table tbody tr:nth-child(even) { background: var(--smcs-stripe); }
/* Mono numerals in data cells */
.entry-content td, .wp-block-table td { font-variant-numeric: tabular-nums; }
td.num, .num { font-family: var(--smcs-mono); font-size: 14px; }

/* ---------- Home: documentation index components (content classes) ---------- */

.doc-def { max-width: var(--smcs-measure); }
.doc-def h1 { font-size: 30px; line-height: 1.25; margin: 0 0 12px; }

.spec-strip {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
	border: 1px solid var(--smcs-line-strong); background: var(--smcs-surface); margin: 24px 0 8px;
}
.spec-strip .spec {
	padding: 13px 16px; border-left: 1px solid var(--smcs-line);
}
.spec-strip .spec:first-child { border-left: 0; }
.spec-strip .spec-value { display: block; font-family: var(--smcs-mono); font-size: 19px; font-weight: 700; color: var(--smcs-ink); }
.spec-strip .spec-label { display: block; font-size: 12.5px; color: var(--smcs-ink-soft); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

.doc-group { margin: 34px 0 0; }
.doc-group > h2 {
	font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--smcs-ink-soft);
	border-bottom: 2px solid var(--smcs-slate); padding-bottom: 7px; margin: 0 0 6px;
}
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { border-bottom: 1px solid var(--smcs-line); padding: 11px 2px; display: flex; gap: 14px; align-items: baseline; }
.doc-list a { font-weight: 600; text-decoration: none; flex: 0 0 auto; }
.doc-list a:hover { text-decoration: underline; }
.doc-list .doc-note { color: var(--smcs-ink-soft); font-size: 14.5px; }

.decoder-band {
	background: var(--smcs-slate); color: var(--smcs-slate-ink);
	padding: 20px 24px; margin: 36px 0 0;
}
.decoder-band h2 { color: #fff; margin: 0 0 6px; font-size: 20px; }
.decoder-band p { margin: 0; }
.decoder-band a { color: #9ec2e8; }

.cert-strip {
	display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0;
	padding: 13px 16px; border: 1px solid var(--smcs-line); background: var(--smcs-surface);
	font-size: 14px; color: var(--smcs-ink-soft);
}
.cert-strip strong { color: var(--smcs-ink); }

/* ---------- Index / archive lists (rows, not cards) ---------- */

.index-title { font-size: 28px; margin: 0 0 10px; }
.index-intro, .index-header { color: var(--smcs-ink-soft); max-width: var(--smcs-measure); }
.list { margin-top: 10px; }
.list-item { border-bottom: 1px solid var(--smcs-line); padding: 18px 0; }
.list-item-meta { font-size: 13.5px; color: var(--smcs-ink-soft); margin: 0 0 4px; }
.list-item-title { font-size: 20px; margin: 0 0 6px; }
.list-item-title a { text-decoration: none; color: var(--smcs-ink); }
.list-item-title a:hover { color: var(--smcs-accent); text-decoration: underline; }
.list-item-excerpt p { margin: 0; color: var(--smcs-ink-soft); }

.pagination, .nav-links { margin-top: 26px; font-size: 15px; }
.post-nav { max-width: var(--smcs-measure); margin: 30px auto 0; font-size: 15px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; }

/* Forms (Fluent Forms inherits these basics) */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
	font: inherit; padding: 9px 11px; border: 1px solid var(--smcs-line-strong);
	border-radius: 3px; background: #fff; max-width: 100%;
}
button, input[type="submit"] {
	font: inherit; background: var(--smcs-accent); color: #fff; border: 0;
	padding: 10px 18px; border-radius: 3px; cursor: pointer; font-weight: 600;
}
button:hover, input[type="submit"]:hover { background: var(--smcs-accent-dark); }

/* ---------- Footer ---------- */

.site-footer { background: var(--smcs-slate); color: var(--smcs-slate-ink); margin-top: 20px; }
.footer-inner {
	max-width: 1180px; margin: 0 auto; padding: 30px 20px 8px;
	display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; font-size: 14.5px;
}
.footer-wordmark { color: #fff; font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.footer-disclosure { margin: 0; max-width: 52ch; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0 0 7px; }
.site-footer a { color: #c8d6e4; }
.site-footer a:hover { color: #fff; }
.footer-base {
	max-width: 1180px; margin: 0 auto; padding: 12px 20px 22px;
	font-size: 13px; color: #9aa5ae;
}
.footer-base p { margin: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.reading { grid-template-columns: minmax(0, 1fr); }
	.reading-toc { display: none; } /* TOC is an enhancement; content stands alone */
	.spec-strip { grid-template-columns: repeat(2, 1fr); }
	.spec-strip .spec:nth-child(3) { border-left: 0; }
	.spec-strip .spec { border-top: 1px solid var(--smcs-line); }
	.spec-strip .spec:nth-child(-n+2) { border-top: 0; }
	.footer-inner { grid-template-columns: 1fr; gap: 20px; }
	.doc-list li { flex-direction: column; gap: 2px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.entry-title { font-size: 26px; }
	.nav-toggle { display: block; }
	.primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 59px; background: var(--smcs-slate); padding: 8px 20px 14px; z-index: 50; }
	.primary-navigation.is-open { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-header { position: relative; }
}
