/*
Theme Name: TCPEL Original
Theme URI: https://tcpelpelletmachine.com/
Author: TCPEL
Description: Original, editable block theme for TCPEL equipment and production line planning.
Requires at least: 6.6
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcpel-original
Tags: block-patterns, full-site-editing, custom-logo, editor-style, wide-blocks
*/

:root {
  --tcpel-navy: #163642;
  --tcpel-blue: #006fa8;
  --tcpel-green: #246b50;
  --tcpel-paper: #fff;
  --tcpel-soft: #f3f6f5;
  --tcpel-ink: #213c45;
  --tcpel-muted: #52636a;
  --tcpel-border: #dce4e0;
  --tcpel-width: 1240px;
  --tcpel-gutter: clamp(20px, 3vw, 40px);
  --tcpel-space: clamp(44px, 6vw, 80px);
  --tcpel-radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { text-underline-offset: .18em; text-decoration-thickness: .065em; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--tcpel-blue); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
h1, h2, h3, h4 { overflow-wrap: break-word; text-wrap: balance; }
p, li, dd, label { overflow-wrap: break-word; }
h1 { max-width: 21ch; }
.wp-site-blocks > *, .tcpel-main, .tcpel-main > .wp-block-post-content { margin-block-start: 0; }
.tcpel-main { min-height: 45vh; }
.tcpel-main > .wp-block-post-content > :first-child { margin-block-start: 0; }
.tcpel-main > .wp-block-post-content > :last-child { margin-block-end: 0; }
.tcpel-skip-link { position: fixed; top: -100px; left: 16px; z-index: 100000; padding: 12px 18px; background: var(--tcpel-paper); color: var(--tcpel-navy); box-shadow: 0 2px 16px #16364225; }
.tcpel-skip-link:focus { top: 12px; }
.tcpel-reading { padding: var(--tcpel-space) var(--tcpel-gutter); }
.tcpel-reading .wp-block-post-title { margin-bottom: 2rem; }
.tcpel-reading .wp-block-post-content > h2 { margin-top: 2.75rem; }
.tcpel-reading .wp-block-post-content > h3 { margin-top: 2rem; }
.tcpel-reading .wp-block-post-content > p { max-width: 68ch; }

/* Header uses WordPress Navigation's built-in dialog, focus and Escape handling. */
.tcpel-site-header { border-bottom: 1px solid var(--tcpel-border); background: var(--tcpel-paper); }
.tcpel-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--tcpel-navy); color: var(--tcpel-paper); padding: 7px max(var(--tcpel-gutter), calc((100% - var(--tcpel-width)) / 2)); font-size: 12px; line-height: 1.5; }
.tcpel-topbar p { margin: 0; }
.tcpel-topbar a { color: inherit; text-decoration: none; }
.tcpel-header-inner { max-width: calc(var(--tcpel-width) + var(--tcpel-gutter) * 2); padding: 14px var(--tcpel-gutter); margin: 0 auto; min-height: 104px; gap: 24px; }
.tcpel-brand { --tcpel-logo-height: 76px; --tcpel-logo-frame: 120px; flex: 0 0 auto; gap: 0; margin: 0; }
.tcpel-brand .wp-block-site-title { margin: 0; max-width: 200px; font-size: 20px; line-height: 1.3; }
.tcpel-brand .wp-block-site-title a { color: var(--tcpel-navy); }
/* The approved 350×100 logo has wide transparent sides. Only these sides are
   clipped by the link viewport; the original image, color and ratio are intact. */
.tcpel-brand .wp-block-site-logo { width: var(--tcpel-logo-frame); margin: 0; }
.tcpel-brand .wp-block-site-logo a { position: relative; display: block; width: var(--tcpel-logo-frame); height: var(--tcpel-logo-height); overflow: hidden; }
.tcpel-brand .wp-block-site-logo img { position: absolute; top: 50%; left: 50%; display: block; width: calc(var(--tcpel-logo-height) * 3.5); height: var(--tcpel-logo-height); max-width: none; max-height: none; object-fit: contain; transform: translate(-50%, -50%); }
.tcpel-brand:has(.wp-block-site-logo img) .wp-block-site-title { display: none; }
.tcpel-navigation { margin: 0; }
.tcpel-navigation .wp-block-navigation__container { gap: clamp(12px, 1.7vw, 24px); }
.tcpel-navigation .wp-block-navigation-item__content { padding-block: 9px; line-height: 1.35; }
.tcpel-navigation .wp-block-navigation-item__content:hover { color: var(--tcpel-green); text-decoration: underline; }
.tcpel-navigation .tcpel-nav-quote > .wp-block-navigation-item__content { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 17px; border-radius: 6px; background: var(--tcpel-green); color: #fff; }
.tcpel-navigation .tcpel-nav-quote > .wp-block-navigation-item__content:hover { background: #1c553f; color: #fff; text-decoration: none; }
.tcpel-navigation .current-menu-item > .wp-block-navigation-item__content { text-decoration: underline; text-underline-offset: 5px; }
.tcpel-navigation .wp-block-navigation__responsive-container-open,
.tcpel-navigation .wp-block-navigation__responsive-container-close { min-width: 46px; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--tcpel-border); border-radius: 6px; }
.tcpel-navigation .wp-block-navigation__responsive-container-close { display: flex; }

/* Native Groups become reusable sections; all copy remains in the editor. */
.tcpel-section, .tcpel-hero { padding: var(--tcpel-space) var(--tcpel-gutter); margin-block: 0; }
.tcpel-section > *, .tcpel-hero > * { max-width: var(--tcpel-width); margin-inline: auto; }
.tcpel-section > .wp-block-image { margin-inline: auto; }
.tcpel-section > .tcpel-grid, .tcpel-hero > .wp-block-columns,
.tcpel-section > .wp-block-columns, .tcpel-section > .tcpel-model-grid { width: 100%; }
.tcpel-section--soft { background: var(--tcpel-soft); }
.tcpel-section--bordered { border-top: 1px solid var(--tcpel-border); }
.tcpel-section--compact { padding-block: clamp(32px, 4vw, 48px); }
.tcpel-section-heading { margin-bottom: 32px; }
.tcpel-section-heading h2, .tcpel-section > h2 { margin-top: 0; margin-bottom: 16px; }
.tcpel-section-heading > p, .tcpel-section > p { max-width: 68ch; margin-left: 0; }
.tcpel-section-inner { width: 100%; max-width: var(--tcpel-width); margin-inline: auto; }
.tcpel-copy { max-width: 68ch; }
.tcpel-kicker { margin-top: 0; margin-bottom: 14px; color: var(--tcpel-green); font-size: 12px; line-height: 1.5; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.tcpel-lead { max-width: 57ch; color: var(--tcpel-muted); font-size: clamp(17px, 1.55vw, 20px); line-height: 1.65; }
.tcpel-hero { padding-inline: max(var(--tcpel-gutter), calc((100% - var(--tcpel-width)) / 2)); background: var(--tcpel-soft); border-bottom: 1px solid var(--tcpel-border); text-align: left; }
.tcpel-hero > *, .tcpel-hero-copy > * { margin-inline: 0; }
.tcpel-hero h1 { max-width: 22ch; margin-top: 0; margin-bottom: 24px; font-size: clamp(32px, 4.6vw, 62px); line-height: 1.09; letter-spacing: -.035em; }
.tcpel-hero .tcpel-lead { max-width: 57ch; margin-inline: 0; }
.tcpel-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; width: 100%; max-width: var(--tcpel-width); gap: clamp(28px, 4.5vw, 64px); }
.tcpel-hero-layout > * { min-width: 0; margin: 0; }
.tcpel-hero-copy { min-width: 0; }
.tcpel-hero-copy > :first-child { margin-top: 0; }
.tcpel-hero-copy > :last-child { margin-bottom: 0; }
.tcpel-hero-media { min-width: 0; margin: 0; }
.tcpel-hero-media:not(:has(img)) { display: none; }
.tcpel-hero-media > a { display: block; }
.tcpel-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: clamp(16px, 2vw, 28px); background: var(--tcpel-paper); border: 1px solid var(--tcpel-border); border-radius: var(--tcpel-radius); }
.tcpel-hero-media figcaption { margin: 12px 0 0; color: var(--tcpel-muted); font-size: 13px; line-height: 1.5; text-align: left; }
.tcpel-hero .wp-block-columns { align-items: center !important; gap: clamp(28px, 5vw, 72px); margin-bottom: 0; }
.tcpel-hero .wp-block-column { min-width: 0; }
.tcpel-hero .wp-block-buttons { margin-top: 28px; }
.tcpel-hero .tcpel-hero-aside { padding: clamp(24px, 3.4vw, 42px); background: var(--tcpel-paper); border: 1px solid var(--tcpel-border); border-top: 4px solid var(--tcpel-blue); border-radius: var(--tcpel-radius); }
.tcpel-hero-aside h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 0; }
.tcpel-hero-aside ul { padding-left: 20px; }
.tcpel-hero-aside li + li { margin-top: 12px; }
.tcpel-hero-aside .tcpel-kicker { color: var(--tcpel-blue); }
.tcpel-hero--model h1 { max-width: 100%; }
.tcpel-breadcrumbs { font-size: 13px; color: var(--tcpel-muted); margin-bottom: 24px; }
.tcpel-breadcrumbs a { color: inherit; }
.tcpel-subnav { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 24px 0; }
.tcpel-subnav a { padding: 9px 14px; min-height: 44px; border: 1px solid var(--tcpel-border); border-radius: 6px; background: var(--tcpel-paper); font-size: 14px; font-weight: 600; text-decoration: none; }

/* Equal cards need no duplicated facts or synthetic machine illustrations. */
.tcpel-grid, .tcpel-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; }
.tcpel-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tcpel-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tcpel-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 960px) {
  .tcpel-grid:has(> .tcpel-card:nth-child(2):last-child),
  .tcpel-grid:has(> .tcpel-card:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tcpel-grid > *, .tcpel-model-grid > * { min-width: 0; margin: 0; }
.tcpel-card, .tcpel-model-card { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 28px; border: 1px solid var(--tcpel-border); border-radius: var(--tcpel-radius); background: var(--tcpel-paper); }
.tcpel-card > :first-child, .tcpel-model-card > :first-child { margin-top: 0; }
.tcpel-card > :last-child, .tcpel-model-card > :last-child { margin-bottom: 0; }
.tcpel-card h2, .tcpel-card h3, .tcpel-model-card h2, .tcpel-model-card h3 { font-size: 23px; margin-block: 0 16px; line-height: 1.22; }
.tcpel-card h2 a, .tcpel-card h3 a, .tcpel-model-card h2 a, .tcpel-model-card h3 a { color: var(--tcpel-navy); text-decoration: none; }
.tcpel-card h2 a:hover, .tcpel-card h3 a:hover { text-decoration: underline; }
.tcpel-card p { font-size: 16px; color: var(--tcpel-muted); }
.tcpel-card .tcpel-kicker { color: var(--tcpel-green); font-size: 11px; }
.tcpel-card .wp-block-buttons, .tcpel-card > .tcpel-card-link, .tcpel-model-card > .tcpel-card-link { margin-top: auto; padding-top: 16px; }
.tcpel-card .wp-block-button__link { padding: 9px 14px; font-size: 14px; }
.tcpel-card-link { display: inline-block; font-size: 15px; font-weight: 650; }
.tcpel-card--accent { border-top: 4px solid var(--tcpel-blue); }
.tcpel-card--green { border-top: 4px solid var(--tcpel-green); }
.tcpel-card-number { display: inline-block; width: max-content; margin-bottom: 26px; padding: 5px 9px; background: var(--tcpel-soft); color: var(--tcpel-blue); font-size: 12px; font-weight: 700; letter-spacing: .06em; border-radius: 4px; }
.tcpel-model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tcpel-model-card h3 { font-size: 24px; }
.tcpel-model-card .tcpel-specs { margin-block: 8px 24px; }
.tcpel-model-card:target { outline: 3px solid var(--tcpel-blue); outline-offset: 4px; }
.tcpel-model-card .tcpel-kicker { margin-bottom: 10px; }
.tcpel-model-grid:has(> .tcpel-model-card:only-child) { grid-template-columns: minmax(0, 780px); }
.tcpel-model-card > .wp-element-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: auto; text-align: center; }
.tcpel-model-card > .tcpel-text-link { margin-top: 14px; text-align: center; font-size: 14px; }
@media (min-width: 701px) {
  .tcpel-model-card > .tcpel-text-link { min-height: 24px; line-height: 24px; }
  .tcpel-model-card:not(:has(> .tcpel-text-link))::after { content: ""; display: block; flex: 0 0 38px; }
}
.tcpel-data-note { color: var(--tcpel-muted); font-size: 14px; }

/* Approved images can be inserted later using these native Image block styles. */
.tcpel-machine-image, .tcpel-machine-media { display: grid; place-items: center; aspect-ratio: 4 / 3; width: 100%; padding: 20px; margin: 0; background: var(--tcpel-paper); border: 1px solid var(--tcpel-border); border-radius: var(--tcpel-radius); }
.tcpel-machine-image img, .tcpel-machine-media img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.tcpel-machine-image:has(figcaption) { display: block; aspect-ratio: auto; }
.tcpel-machine-image:has(figcaption) img { aspect-ratio: 4 / 3; object-fit: contain; }
.tcpel-factory-image img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--tcpel-radius); }
.tcpel-machine-image figcaption, .tcpel-factory-image figcaption { margin-top: 12px; color: var(--tcpel-muted); font-size: 13px; line-height: 1.5; text-align: left; }
.tcpel-card .tcpel-machine-image { margin-bottom: 24px; padding: 12px; }
.tcpel-card .tcpel-machine-image, .tcpel-card .tcpel-machine-media { flex: 0 0 auto; }
.tcpel-card .tcpel-machine-image img, .tcpel-card .tcpel-machine-media img { aspect-ratio: 4 / 3; height: auto; object-fit: contain; }
.tcpel-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px 24px; }
.tcpel-media-grid > * { min-width: 0; width: 100%; margin: 0; }
.tcpel-media-grid figure { margin: 0; }
.tcpel-media-grid img { display: block; width: 100%; height: auto; }
.tcpel-media-grid figcaption { margin: 12px 0 0; color: var(--tcpel-muted); font-size: 13px; line-height: 1.5; text-align: left; }
.tcpel-media-grid .tcpel-machine-image img { aspect-ratio: 4 / 3; object-fit: contain; }
.tcpel-media-grid .tcpel-factory-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.tcpel-video video, .tcpel-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--tcpel-radius); }

/* Definition lists are readable parameter cards at every width. */
.tcpel-specs { padding: 0; margin: 0; font-size: 15px; }
.tcpel-specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--tcpel-border); }
.tcpel-specs dt { color: var(--tcpel-muted); font-weight: 400; }
.tcpel-specs dd { margin: 0; color: var(--tcpel-navy); font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.tcpel-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--tcpel-border); border: 1px solid var(--tcpel-border); border-radius: var(--tcpel-radius); }
.tcpel-stat-grid > * { padding: 20px; background: var(--tcpel-paper); margin: 0; }
.tcpel-stat-grid strong { display: block; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; color: var(--tcpel-navy); }
.tcpel-table, .wp-block-table { max-width: 100%; margin-block: 24px; }
.tcpel-table table, .wp-block-table table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.tcpel-table th, .tcpel-table td, .wp-block-table th, .wp-block-table td { padding: 15px 17px; text-align: left; border: 1px solid var(--tcpel-border); vertical-align: top; overflow-wrap: anywhere; }
.tcpel-table thead th, .wp-block-table thead th { background: var(--tcpel-navy); color: var(--tcpel-paper); font-weight: 600; }
.tcpel-table tbody tr:nth-child(even), .wp-block-table tbody tr:nth-child(even) { background: var(--tcpel-soft); }
.tcpel-table figcaption, .wp-block-table figcaption { text-align: left; font-size: 13px; color: var(--tcpel-muted); }
.tcpel-table-scroll { overflow-x: auto; max-width: 100%; }
.tcpel-table-scroll table { min-width: 620px; }
.tcpel-table-scroll-hint { font-size: 13px; color: var(--tcpel-muted); margin-bottom: 8px; }
.tcpel-table-scroll-hint[hidden] { display: none; }

/* Selection flows are semantic ordered lists; each step can wrap on phones. */
.tcpel-process, .tcpel-process-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: process; }
.tcpel-process > li, .tcpel-process-flow > li { counter-increment: process; margin: 0; padding: 24px; border: 1px solid var(--tcpel-border); border-radius: var(--tcpel-radius); background: var(--tcpel-paper); }
.tcpel-process > li::before, .tcpel-process-flow > li::before { content: counter(process, decimal-leading-zero); display: block; margin-bottom: 18px; color: var(--tcpel-green); font-size: 13px; font-weight: 750; letter-spacing: .08em; }
.tcpel-process h3, .tcpel-process-flow h3 { margin: 0 0 12px; font-size: 21px; }
.tcpel-process p, .tcpel-process-flow p { font-size: 16px; margin-bottom: 0; }
.tcpel-note { padding: 20px 24px; border-left: 3px solid var(--tcpel-blue); background: var(--tcpel-soft); font-size: 16px; }
.tcpel-note > :last-child { margin-bottom: 0; }
.tcpel-faq { max-width: 860px; }
.tcpel-section.tcpel-faq { max-width: none; padding-inline: max(var(--tcpel-gutter), calc((100% - var(--tcpel-width)) / 2)); }
.tcpel-section.tcpel-faq > * { max-width: 860px; margin-inline: 0; }
.tcpel-faq .wp-block-details, .tcpel-faq details { margin-block-start: 0; }
.wp-block-details summary { padding: 6px 30px 6px 0; font-weight: 650; color: var(--tcpel-navy); cursor: pointer; line-height: 1.5; }
.wp-block-details summary::marker { color: var(--tcpel-green); }
.wp-block-details > :not(summary) { max-width: 68ch; color: var(--tcpel-muted); }
.wp-block-details[open] > summary { margin-bottom: 12px; }

/* Inquiry presentation is independent of submission, validation and model data. */
.tcpel-inquiry { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--tcpel-border); border-top: 4px solid var(--tcpel-green); border-radius: var(--tcpel-radius); background: var(--tcpel-paper); }
.tcpel-inquiry > :first-child { margin-top: 0; }
.tcpel-inquiry h2 { margin-top: 0; }
.tcpel-inquiry label, .fluentform label { display: block; margin-bottom: 8px; color: var(--tcpel-navy); font-size: 15px; font-weight: 600; }
.tcpel-inquiry input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.tcpel-inquiry select, .tcpel-inquiry textarea,
.fluentform .ff-el-form-control { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #aabcb4; border-radius: 5px; background: var(--tcpel-paper); color: var(--tcpel-ink); font-size: 16px; line-height: 1.5; }
.tcpel-inquiry textarea, .fluentform textarea.ff-el-form-control { min-height: 154px; resize: vertical; }
.tcpel-inquiry input[type="checkbox"], .tcpel-inquiry input[type="radio"] { width: 20px; height: 20px; margin-right: 7px; vertical-align: middle; accent-color: var(--tcpel-green); }
.tcpel-inquiry fieldset { padding: 0; margin: 0 0 24px; border: 0; min-width: 0; }
.tcpel-inquiry legend { margin-bottom: 16px; font-weight: 650; }
.tcpel-inquiry .tcpel-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tcpel-inquiry button[type="submit"], .tcpel-inquiry input[type="submit"], .fluentform .ff-btn-submit { min-height: 48px; padding: 12px 22px; border: 1px solid var(--tcpel-green); border-radius: 6px; background: var(--tcpel-green); color: var(--tcpel-paper); font-size: 16px; font-weight: 650; }
.tcpel-inquiry [aria-invalid="true"] { border-color: #ae3030 !important; }
.tcpel-inquiry .tcpel-form-error, .fluentform .error { color: #992b2b; font-size: 14px; }
.tcpel-inquiry .tcpel-form-success { padding: 16px; background: #edf6ef; border: 1px solid #b3d0bb; color: var(--tcpel-green); }
.tcpel-inquiry small { display: block; color: var(--tcpel-muted); font-size: 13px; }
.tcpel-contact-links a { overflow-wrap: anywhere; }
.tcpel-cta { background: var(--tcpel-navy); color: var(--tcpel-paper); }
.tcpel-cta h2, .tcpel-cta h3, .tcpel-cta .tcpel-kicker { color: var(--tcpel-paper); }
.tcpel-cta p { color: #e0e9e5; }
.tcpel-cta a:not(.wp-block-button__link) { color: var(--tcpel-paper); }
.tcpel-cta .wp-block-button__link { background: var(--tcpel-paper); border-color: var(--tcpel-paper); color: var(--tcpel-navy); }
.tcpel-cta .is-style-outline .wp-block-button__link { background: transparent; border-color: #a5bab4; color: var(--tcpel-paper); }
.wp-block-buttons { gap: 12px; flex-wrap: wrap; }
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-button__link:hover { background: #1c553f; color: var(--tcpel-paper); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid var(--tcpel-green); background: transparent; color: var(--tcpel-green); padding: 12px 20px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #e9f1ec; color: var(--tcpel-green); }
.tcpel-cta .wp-block-button.is-style-outline .wp-block-button__link { border-color: #a5bab4; color: var(--tcpel-paper); }
.tcpel-cta .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #ffffff12; }
.tcpel-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #e9f1ec; color: var(--tcpel-navy); }

.tcpel-site-footer { margin: 0; padding: 56px var(--tcpel-gutter) 24px; border-top: 1px solid var(--tcpel-border); background: var(--tcpel-soft); font-size: 14px; line-height: 1.65; }
.tcpel-footer-grid { display: grid; grid-template-columns: 1.15fr 1fr .9fr 1.2fr; gap: 36px; max-width: var(--tcpel-width); margin: 0 auto; }
.tcpel-footer-grid > * { margin: 0; min-width: 0; }
.tcpel-footer-label { color: var(--tcpel-navy); font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: 0; margin: 0 0 20px; }
.tcpel-footer-company .tcpel-footer-label { font-size: 20px; }
.tcpel-footer-grid p { color: var(--tcpel-muted); margin: 0 0 14px; }
.tcpel-site-footer a { color: var(--tcpel-ink); text-decoration: none; }
.tcpel-site-footer a:hover { color: var(--tcpel-green); text-decoration: underline; }
.tcpel-footer-links { padding: 0; list-style: none; margin: 0; }
.tcpel-footer-links li { margin: 0 0 10px; }
.tcpel-footer-address { font-size: 13px; }
.tcpel-footer-bottom { padding-top: 24px; margin: 36px auto 0; max-width: var(--tcpel-width); border-top: 1px solid var(--tcpel-border); color: var(--tcpel-muted); font-size: 12px; }
.tcpel-footer-bottom p { margin: 0; }
.tcpel-not-found { padding-block: clamp(64px, 10vw, 130px); }
.tcpel-not-found h1 { margin-top: 0; }
.tcpel-archive .wp-block-query { width: 100%; }
.tcpel-archive .wp-block-query-pagination { margin-top: 40px; }

@media (min-width: 1024px) {
  .tcpel-main > .wp-block-post-content > .tcpel-section > p { margin-left: max(0px, calc((100% - var(--tcpel-width)) / 2)); }
}

@media (min-width: 782px) {
  .tcpel-hero-layout:has(> .tcpel-hero-media img) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .tcpel-header-inner { gap: 16px; }
  .tcpel-navigation .wp-block-navigation__container { gap: 14px; }
  .tcpel-navigation { font-size: 13px; }
  .tcpel-brand { --tcpel-logo-height: 70px; --tcpel-logo-frame: 112px; }
  .tcpel-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcpel-footer-grid { gap: 26px; }
}

@media (max-width: 1023px) {
  .tcpel-header-inner { min-height: 80px; padding-block: 16px; }
  .tcpel-navigation .wp-block-navigation__responsive-container-open { display: flex !important; }
  .tcpel-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .tcpel-navigation .wp-block-navigation__responsive-container.is-menu-open { padding: 28px var(--tcpel-gutter); background: var(--tcpel-paper); color: var(--tcpel-navy); }
  .tcpel-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 72px; align-items: stretch; }
  .tcpel-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; flex-direction: column; gap: 8px; width: 100%; }
  .tcpel-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
  .tcpel-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: 14px 0; font-size: 20px; }
  .tcpel-navigation .wp-block-navigation__responsive-container.is-menu-open .tcpel-nav-quote { margin-top: 18px; }
  .tcpel-navigation .wp-block-navigation__responsive-container.is-menu-open .tcpel-nav-quote > .wp-block-navigation-item__content { width: 100%; padding: 14px 18px; font-size: 17px; }
  .tcpel-grid--3, .tcpel-grid:not(.tcpel-grid--4):not(.tcpel-grid--2), .tcpel-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcpel-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .tcpel-process, .tcpel-process-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 781px) {
  .tcpel-hero .wp-block-columns { gap: 32px; }
  .tcpel-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tcpel-hero-media { width: 100%; max-width: 560px; }
  .tcpel-media-grid { grid-template-columns: minmax(0, 1fr); }
  .tcpel-hero h1 { font-size: clamp(32px, 6.5vw, 46px); max-width: 22ch; }
  .tcpel-section .wp-block-columns { gap: 28px; }
  .tcpel-card, .tcpel-model-card { padding: 24px; }
  .tcpel-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcpel-table--cards table, .tcpel-table--cards tbody { display: block; }
  .tcpel-table--cards thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .tcpel-table--cards tbody tr { display: block; margin-bottom: 16px; border: 1px solid var(--tcpel-border); border-radius: var(--tcpel-radius); padding: 8px 16px; }
  .tcpel-table--cards tbody td, .tcpel-table--cards tbody th { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--tcpel-border); text-align: right; }
  .tcpel-table--cards tbody td::before, .tcpel-table--cards tbody th::before { content: attr(data-label); text-align: left; color: var(--tcpel-muted); font-weight: 400; }
  .tcpel-table--cards tbody td:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .tcpel-topbar { padding-block: 7px; font-size: 11px; }
  .tcpel-topbar > p:first-child { max-width: 24ch; }
  .tcpel-topbar > p:last-child { display: none; }
  .tcpel-header-inner { min-height: 76px; padding-block: 13px; }
  .tcpel-brand { --tcpel-logo-height: 62px; --tcpel-logo-frame: 104px; }
  .tcpel-brand .wp-block-site-title { font-size: 19px; max-width: 215px; }
  .tcpel-hero h1 { font-size: clamp(32px, 8.5vw, 38px); }
  .tcpel-hero .wp-block-buttons, .tcpel-cta .wp-block-buttons { display: grid; width: 100%; grid-template-columns: 1fr; }
  .tcpel-hero .wp-block-button, .tcpel-cta .wp-block-button,
  .tcpel-hero .wp-block-button__link, .tcpel-cta .wp-block-button__link { width: 100%; }
  .tcpel-grid, .tcpel-grid--2, .tcpel-grid--3, .tcpel-grid--4,
  .tcpel-grid:not(.tcpel-grid--4):not(.tcpel-grid--2), .tcpel-model-grid,
  .tcpel-process, .tcpel-process-flow { grid-template-columns: 1fr; gap: 18px; }
  .tcpel-card h2, .tcpel-card h3, .tcpel-model-card h2, .tcpel-model-card h3 { font-size: 23px; }
  .tcpel-inquiry { padding: 24px 20px; }
  .tcpel-inquiry .tcpel-form-grid { grid-template-columns: 1fr; }
  .tcpel-inquiry button[type="submit"], .tcpel-inquiry input[type="submit"] { width: 100%; }
  .tcpel-subnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tcpel-subnav a { display: flex; align-items: center; padding: 10px 12px; font-size: 13px; }
  .tcpel-stat-grid { grid-template-columns: 1fr; }
  .tcpel-stat-grid > * { padding: 18px 20px; }
  .tcpel-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .tcpel-footer-company, .tcpel-footer-grid > :last-child { grid-column: 1 / -1; }
  .tcpel-site-footer { padding-top: 40px; }
  .tcpel-footer-label { margin-bottom: 16px; }
  .tcpel-footer-links li { margin-bottom: 12px; }
  .tcpel-footer-bottom { align-items: flex-start; gap: 12px; }
  .tcpel-note { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .tcpel-site-header, .tcpel-site-footer, .tcpel-inquiry, .tcpel-skip-link, .wp-block-buttons { display: none !important; }
  .tcpel-section, .tcpel-hero, .tcpel-reading { padding: 16px 0; }
  .tcpel-card, .tcpel-model-card { break-inside: avoid; }
  body, .tcpel-hero, .tcpel-section { background: #fff !important; color: #000 !important; }
}
