/*
Theme Name: LTO Ultrium by Fortuna Data
Theme URI: https://www.ltoultrium.com
Author: Fortuna Data
Author URI: https://www.ltoultrium.com
Description: Custom WordPress theme for ltoultrium.com — LTO tapes, LTO-10 and LTO-9 tape, LTO tape storage, LTO tape libraries and LTO tape autoloaders. Includes built-in SEO (meta titles, descriptions, canonical, Open Graph, JSON-LD schema), a native quote request form, legacy URL 301 redirects and one-click site setup that creates every page and menu on activation.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ltoultrium
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	color-scheme: dark;
	--bg: #0a1120;
	--bg-alt: #0d1626;
	--surface: #131f34;
	--surface-2: #17253d;
	--border: #253855;
	--border-soft: #1c2c47;
	--ink: #eef3f9;
	--ink-soft: #c3d0e0;
	--muted: #8ea0b8;
	--muted-2: #647389;
	--orange: #ff7200;
	--orange-hi: #ff8b2e;
	--orange-ink: #1a0e04;
	--teal: #36bcbc;
	--teal-hi: #5fd6d6;
	--ok: #36bc7a;
	--danger: #ff6b6b;
	--container: 1160px;
	--radius-sm: 6px;
	--radius: 10px;
	--radius-lg: 18px;
	--font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background-color: var(--bg);
	background-image:
		radial-gradient(960px 480px at 85% -10%, rgba(255, 114, 0, .10), transparent 60%),
		radial-gradient(800px 416px at -10% 20%, rgba(54, 188, 188, .08), transparent 55%);
	background-repeat: no-repeat;
	color: var(--ink-soft);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-hi); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--orange-hi); }
p { margin: 0 0 1.1em; }
strong, b { color: var(--ink); font-weight: 600; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--ink);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.05rem; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2.5rem 0; }
code, kbd, pre { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--surface); border: 1px solid var(--border-soft); padding: .1em .4em; border-radius: 4px; color: var(--teal-hi); }
blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 3px solid var(--orange); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
::selection { background: rgba(255, 114, 0, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 3px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--surface); clip: auto !important; clip-path: none; color: var(--ink); display: block;
	height: auto; left: 8px; top: 8px; padding: 12px 20px; width: auto; z-index: 100000;
}
.skip-link { position: absolute; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ==========================================================================
   3. Buttons & small UI
   ========================================================================== */
.btn, .wp-block-button__link, button.btn, input[type="submit"].btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--font-display); font-weight: 700; font-size: .95rem;
	padding: .8em 1.45em; border-radius: var(--radius-sm); border: 1px solid transparent;
	cursor: pointer; text-decoration: none; line-height: 1.2;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-primary, .wp-block-button__link { background: var(--orange); color: var(--orange-ink); }
.btn-primary:hover, .btn-primary:focus, .wp-block-button__link:hover { background: var(--orange-hi); color: var(--orange-ink); transform: translateY(-1px); }
.btn-ghost, .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover, .btn-ghost:focus, .is-style-outline .wp-block-button__link:hover { border-color: var(--teal); color: var(--teal-hi); background: rgba(54, 188, 188, .06); }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--teal-hi); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--teal); }
.pill {
	display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
	padding: .3em .7em; border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
}
.pill-orange { color: var(--orange-hi); border-color: rgba(255, 114, 0, .4); background: rgba(255, 114, 0, .08); }
.pill-teal { color: var(--teal-hi); border-color: rgba(54, 188, 188, .4); background: rgba(54, 188, 188, .08); }
.text-orange { color: var(--orange-hi); }
.text-teal { color: var(--teal-hi); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.topbar { border-bottom: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--ink); }
.topbar-links { display: flex; gap: 22px; }
.topbar-note { display: flex; gap: 8px; align-items: center; }
.topbar-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(54, 188, 122, .2); }
@media (max-width: 700px) { .topbar-note { display: none; } .topbar .container { justify-content: center; } }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(10, 17, 32, .88);
	-webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--border-soft);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-branding { flex: 0 0 auto; display: flex; align-items: center; }
.site-branding img, .custom-logo { height: 30px; width: auto; max-width: 100%; }
@media (max-width: 420px) { .site-branding img, .custom-logo { height: 24px; } }
.site-branding .site-title { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.2rem; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; margin: 0; }
.main-nav a {
	display: block; padding: .6em .85em; color: var(--ink-soft);
	font-family: var(--font-display); font-weight: 600; font-size: .93rem; border-radius: var(--radius-sm);
}
.main-nav a:hover, .main-nav a:focus, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_item > a { color: var(--ink); background: var(--surface); }
.main-nav .menu-item-has-children > a::after, .main-nav .page_item_has_children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 2px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7;
}
.main-nav .sub-menu, .main-nav .children {
	position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu,
.main-nav li:hover > .children, .main-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a, .main-nav .children a { font-weight: 500; font-size: .9rem; padding: .55em .8em; }
.main-nav .sub-menu a:hover, .main-nav .children a:hover { background: var(--surface-2); }
.header-cta { flex: 0 0 auto; }

.nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius-sm);
	border: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.main-nav {
		position: fixed; inset: 109px 0 0 0; background: var(--bg); overflow-y: auto; padding: 16px 16px 40px;
		display: none; border-top: 1px solid var(--border-soft);
	}
	.admin-bar .main-nav { inset: 155px 0 0 0; }
	.nav-open .main-nav { display: block; }
	.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav a { padding: .85em .8em; font-size: 1rem; }
	.main-nav .sub-menu, .main-nav .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 14px; min-width: 0; border-left: 1px solid var(--border-soft); margin-left: 10px; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.main-nav .mobile-cta { display: block; margin-top: 18px; }
	.main-nav .mobile-cta a { background: var(--orange); color: var(--orange-ink); text-align: center; font-weight: 700; }
}
.main-nav .mobile-cta { display: none; }
@media (max-width: 1080px) { .main-nav .mobile-cta { display: block; } }

/* ==========================================================================
   5. Sections & layout
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); position: relative; }
.hero h1 { max-width: 15ch; }
.hero h1 .accent { color: var(--orange); }
.hero .lead { margin-top: 1.2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border-soft); max-width: 640px; }
.hero-stats .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--teal-hi); line-height: 1.1; }
.hero-stats .lbl { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) { .hero-stats { grid-template-columns: 1fr; gap: 16px; } }

/* Terminal-style tape panel (mirrors savedtocloud bucket table) */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.panel-head .dots { display: flex; gap: 6px; margin-right: 8px; }
.panel-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.panel-head .dots i:first-child { background: var(--orange); }
.panel-body { padding: 8px 6px; }
.tape-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: .85rem; }
.tape-row + .tape-row { border-top: 1px dashed var(--border-soft); }
.tape-row .name { color: var(--ink); display: flex; align-items: center; gap: 10px; }
.tape-row .name::before { content: ""; width: 22px; height: 16px; border-radius: 3px; background: linear-gradient(135deg, var(--surface-2), var(--border)); border: 1px solid var(--border); flex: 0 0 auto; }
.tape-row .cap { color: var(--muted); }
.tape-row.g10 .name::before { background: linear-gradient(135deg, #ff7200, #a34e0b); border-color: #ff8b2e; }
.tape-row.g9 .name::before { background: linear-gradient(135deg, #36bcbc, #1f6e6e); border-color: #5fd6d6; }
.panel-foot { padding: 14px 18px; border-top: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: .76rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--border-soft); }
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero .lead { color: var(--ink-soft); }

.breadcrumbs { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal-hi); }

/* ==========================================================================
   7. Cards
   ========================================================================== */
.card {
	background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
	padding: 26px; position: relative; transition: border-color .18s ease, transform .18s ease;
	display: flex; flex-direction: column;
}
.card:hover { border-color: var(--border); }
a.card { color: inherit; }
a.card:hover { transform: translateY(-2px); border-color: var(--teal); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
	width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
	background: rgba(255, 114, 0, .1); color: var(--orange-hi); border: 1px solid rgba(255, 114, 0, .25);
}
.card .icon.teal { background: rgba(54, 188, 188, .1); color: var(--teal-hi); border-color: rgba(54, 188, 188, .25); }
.card .icon svg { width: 22px; height: 22px; }
.card .more { margin-top: auto; padding-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--teal-hi); }
a.card:hover .more { color: var(--orange-hi); }

/* Product / generation cards */
.gen-card { padding: 0; overflow: hidden; }
.gen-card .gen-top { padding: 24px 24px 18px; border-bottom: 1px solid var(--border-soft); position: relative; }
.gen-card .gen-label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.gen-card .gen-name { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--ink); line-height: 1.1; margin: 4px 0 0; }
.gen-card .gen-badge { position: absolute; top: 22px; right: 22px; }
.gen-card .gen-specs { padding: 18px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gen-card .spec .v { font-family: var(--font-display); font-weight: 700; color: var(--teal-hi); font-size: 1.2rem; }
.gen-card .spec .k { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.gen-card .gen-body { padding: 0 24px 24px; display: flex; flex-direction: column; flex: 1; }
.gen-card .gen-body p { font-size: .93rem; }
.gen-card.featured { border-color: rgba(255, 114, 0, .55); box-shadow: 0 0 0 1px rgba(255, 114, 0, .15), var(--shadow); }
.gen-card.featured .spec .v { color: var(--orange-hi); }

/* Big stat band (mirrors savedtocloud pricing highlights) */
.stat-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.stat-band > div { padding: 34px 28px; }
.stat-band > div + div { border-left: 1px solid var(--border-soft); }
.stat-band .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--orange); line-height: 1; letter-spacing: -0.03em; }
.stat-band .big.teal { color: var(--teal-hi); }
.stat-band h3 { margin: 14px 0 6px; font-size: 1.08rem; }
.stat-band p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 820px) { .stat-band { grid-template-columns: 1fr; } .stat-band > div + div { border-left: 0; border-top: 1px solid var(--border-soft); } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
	background: rgba(54, 188, 188, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235fd6d6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat;
	border: 1px solid rgba(54, 188, 188, .35);
}

/* Brand strip */
.brand-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.brand-strip span {
	font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--muted);
	padding: .55em 1.1em; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--surface);
}

/* CTA band */
.cta-band {
	background: linear-gradient(135deg, rgba(255, 114, 0, .14), rgba(54, 188, 188, .08)), var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
	display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--ink-soft); }
.cta-band .btn-row { margin-top: 0; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ==========================================================================
   8. Tables
   ========================================================================== */
.table-wrap, .wp-block-table { position: relative; overflow-x: auto; margin: 0 0 1.8em; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table-wrap table, .wp-block-table table { min-width: 600px; }
td.mono { white-space: nowrap; }
.wp-block-table table { margin: 0; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.wp-block-table td, .wp-block-table th { border: 0; border-bottom: 1px solid var(--border-soft); }
thead th, .wp-block-table thead { background: var(--surface-2); }
th { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.wp-block-table thead { border-bottom: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .015); }
td strong { color: var(--ink); }
td.hl, tr.hl td { color: var(--orange-hi); }
tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.wp-block-table figcaption, .table-note { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); padding: 10px 16px; margin: 0; border-top: 1px solid var(--border-soft); }

/* ==========================================================================
   9. FAQ accordion
   ========================================================================== */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
	list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
	font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
	font-family: var(--font-mono); font-size: 1.3rem; color: var(--orange-hi); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--teal-hi); }
.faq .faq-a { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. Content (entry) styles — block editor output
   ========================================================================== */
.entry { padding: clamp(40px, 6vw, 72px) 0; }
.entry-content > * { max-width: 820px; }
.entry-content > .alignwide, .entry-content > .wp-block-table, .entry-content > .table-wrap, .entry-content > .lto-full,
.entry-content > .wp-block-columns, .entry-content > .wp-block-group.is-wide { max-width: var(--container); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content > p, .entry-content > ul, .entry-content > ol { font-size: 1.04rem; }
.entry-content ul li::marker { color: var(--teal); }
.entry-content ol li::marker { color: var(--orange-hi); font-family: var(--font-mono); }
.entry-content .lto-full { margin: 2.6rem 0; }
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 1.8em; }
.entry-content .wp-block-column { flex: 1 1 220px; min-width: 0; }
.entry-content .wp-block-column.is-card, .wp-block-group.is-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; }
.wp-block-group.is-card > *:last-child, .wp-block-column.is-card > *:last-child { margin-bottom: 0; }
.wp-block-group.is-callout { background: rgba(255, 114, 0, .07); border: 1px solid rgba(255, 114, 0, .35); border-radius: var(--radius); padding: 20px 24px; margin: 1.8em 0; }
.wp-block-group.is-callout > *:last-child { margin-bottom: 0; }
.wp-block-group.is-callout.teal { background: rgba(54, 188, 188, .07); border-color: rgba(54, 188, 188, .35); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-separator { border: 0; border-top: 1px solid var(--border-soft); margin: 2.5rem 0; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .82rem; color: var(--muted); }
.sticky, .gallery-caption, .bypostauthor { }

/* Front-page prose sections */
.prose { max-width: 860px; }
.prose > p, .prose > ul, .prose > ol { font-size: 1.04rem; }
.prose h3 { margin-top: 1.6em; }
.prose:has(> .prose-cols) { max-width: none; }
.prose-cols { columns: 2 340px; column-gap: 56px; max-width: none; }
.prose-cols h3 { break-after: avoid; margin-top: 0; }
.prose-cols p { margin-bottom: 1.8em; }
.prose-cols p { break-inside: avoid; }
.front-content > p:empty { display: none; }

/* Two-column page layout with sidebar */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.page-layout .entry-content > * { max-width: none; }
@media (max-width: 1000px) { .page-layout { grid-template-columns: minmax(0, 1fr); } }
.sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.sidebar .card { padding: 22px; }
.sidebar h3 { font-size: 1.05rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 0; border-top: 1px solid var(--border-soft); }
.sidebar li:first-child { border-top: 0; }
.sidebar li a { display: block; padding: 9px 0; color: var(--ink-soft); font-size: .93rem; }
.sidebar li a:hover, .sidebar li.current a { color: var(--orange-hi); }
.sidebar .contact-line { font-family: var(--font-mono); font-size: .85rem; margin: 0 0 6px; }
@media (max-width: 1000px) { .sidebar { position: static; } }

/* ==========================================================================
   11. Forms
   ========================================================================== */
.quote-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }
.quote-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.quote-form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .quote-form .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
label .req { color: var(--orange-hi); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
	width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-sm);
	padding: .75em .9em; font: inherit; font-size: .95rem; transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238ea0b8' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(54, 188, 188, .18); }
::placeholder { color: var(--muted-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .88rem; }
.check input { margin-top: .3em; accent-color: var(--orange); width: 16px; height: 16px; flex: 0 0 auto; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; font-size: .95rem; }
.form-alert.ok { background: rgba(54, 188, 122, .1); border: 1px solid rgba(54, 188, 122, .45); color: #b6f0d2; }
.form-alert.err { background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .45); color: #ffc9c9; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; margin: 0; }

/* Configurator */
.config-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.config-summary > div { background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.config-summary .k { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.config-summary .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--orange-hi); margin-top: 4px; }
.config-summary > div + div .v { color: var(--teal-hi); }
@media (max-width: 560px) { .config-summary { grid-template-columns: 1fr; } }

/* ==========================================================================
   12. Blog / posts
   ========================================================================== */
.post-card .meta { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-card h2, .post-card h3 { font-size: 1.2rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--orange-hi); }
.post-card .thumb { margin: -26px -26px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--ink-soft); font-family: var(--font-mono); font-size: .85rem; }
.page-numbers.current, .page-numbers:hover { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.entry-meta { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.comments-area { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border-soft); padding: 64px 0 0; margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 28px; width: auto; max-width: 100%; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.site-footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: var(--ink-soft); }
.site-footer li a:hover { color: var(--orange-hi); }
.footer-contact { font-family: var(--font-mono); font-size: .86rem; }
.footer-contact a { color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); }
.social a:hover { color: var(--ink); border-color: var(--teal); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { margin-top: 52px; border-top: 1px solid var(--border-soft); padding: 22px 0; font-family: var(--font-mono); font-size: .74rem; color: var(--muted-2); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); }

/* ==========================================================================
   14. Misc
   ========================================================================== */
.notfound { text-align: center; padding: 120px 0; }
.notfound .code { font-family: var(--font-mono); color: var(--orange); font-size: 1rem; letter-spacing: .2em; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 40; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .topbar, .site-footer, .sidebar, .back-to-top, .cta-band { display: none !important; } body { background: #fff; color: #000; } }
