/*
Theme Name: FRESCOR Classic
Theme URI: https://frescor.org/
Author: FRESCOR
Description: Classic theme for frescor.org that keeps the original 2006 FRESCOR site design (left vertical navigation, news box, blue palette, Verdana) and adds a responsive layout, animations, interactive tools (schedulability calculator, glossary), SEO/AI-indexing helpers, WooCommerce and Contact Form 7 integration and a one-click setup that installs the required plugins and imports all content.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frescor
Tags: two-columns, left-sidebar, accessibility-ready, custom-menu, featured-images, translation-ready, blog, e-commerce
*/

/* ==========================================================================
   1. Design tokens (taken from the original CMSMS stylesheet, templateid=17)
   ========================================================================== */
:root {
  --body-bg: #3e739d;          /* body background */
  --page-bg: #ffffff;          /* #pagewrapper */
  --text: #333333;
  --text-strong: #000000;
  --heading: #395771;          /* h2/h3 colour + h2 left border */
  --brand: #395771;            /* solid backgrounds with white text */
  --link: #18507C;
  --link-hover: #385C72;
  --link-hover-bg: #C3D4DF;
  --accent: #71AEE2;           /* active menu, footer */
  --accent-soft: #B9D7F1;      /* news box, menu hover */
  --footer-text: #17097d;
  --rule: #c0c0c0;
  --border: #000000;
  --muted: #5d6b78;
  --code-bg: #dddddd;
  --card-bg: #f4f8fb;
  --shadow: 0 6px 22px rgba(24, 80, 124, .14);
  --radius: 4px;
  --font: Verdana, Geneva, "DejaVu Sans", Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --maxw: 80em;
  --minw: 60em;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-theme="dark"] {
  --body-bg: #0f2233;
  --page-bg: #13212d;
  --text: #d5dee6;
  --text-strong: #ffffff;
  --heading: #8cc3ee;
  --brand: #2f6e9f;
  --link: #8cc3ee;
  --link-hover: #ffffff;
  --link-hover-bg: #24496a;
  --accent: #2f6e9f;
  --accent-soft: #1d3a52;
  --footer-text: #e6f1fb;
  --rule: #2d4459;
  --border: #000000;
  --muted: #9fb2c3;
  --code-bg: #0b1620;
  --card-bg: #182a39;
  --shadow: 0 6px 22px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   2. Reset + base (original: * {margin:0;padding:0})
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  text-align: left;
  font-family: var(--font);
  font-size: 87.5%;          /* original 75.01%, enlarged for modern readability */
  line-height: 1.5;
  color: var(--text);
  background-color: var(--body-bg);
  /* replaces images/cms/background.gif (repeat-x gradient) */
  background-image: linear-gradient(180deg, #ffffff 0, #c9dceb 40px, #6f9cc0 160px, var(--body-bg) 320px);
  background-repeat: repeat-x;
  margin: 1em;
  min-height: 100vh;
}
html[data-theme="dark"] body { background-image: linear-gradient(180deg, #24496a 0, #0f2233 280px); }

body.font-small { font-size: 81.25%; }
body.font-large { font-size: 100%; }
body.font-xlarge { font-size: 112.5%; }

div { font-size: 1em; }
img { border: 0; max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }

a, a:link, a:active { text-decoration: underline; background-color: inherit; color: var(--link); text-underline-offset: 2px; }
a:visited { color: var(--link); }
a:hover { text-decoration: none; background-color: var(--link-hover-bg); color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #f2b705; outline-offset: 2px;
}

strong, b { font-weight: bold; }
em, i { font-style: italic; }
hr { border: 0; border-top: 1px dotted var(--border); margin: 1.5em 0; }

/* accessibility helpers (original "Accessibility and cross-browser tools") */
.accessibility, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.accessibility a:focus, .screen-reader-text:focus, .skip-link:focus {
  position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100000;
  background: #fff; color: #000; padding: .75em 1em; border: 2px solid #000; font-weight: bold;
}
dfn { position: absolute; left: -1000px; top: -1000px; width: 0; height: 0; overflow: hidden; display: inline; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ==========================================================================
   3. Page frame (div#pagewrapper, header, search, breadcrumbs)
   ========================================================================== */
#pagewrapper {
  border: 1px solid var(--border);
  margin: 0 auto;
  max-width: var(--maxw);
  background-color: var(--page-bg);
  color: var(--text-strong);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
@media (min-width: 961px) { #pagewrapper { min-width: min(var(--minw), 100%); } }

/* utility bar above header */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap;
  font-size: .8em; padding: .35em 1em; background: var(--brand); color: #fff;
}
.topbar a { color: #fff; }
.topbar a:hover { background: transparent; color: var(--accent-soft); }
.topbar__tools { display: flex; align-items: center; gap: .35em; }
.tool-btn {
  font: inherit; font-size: 1em; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 3px; padding: .15em .55em; cursor: pointer; line-height: 1.5; transition: background .2s;
}
.tool-btn:hover { background: rgba(255, 255, 255, .28); }
.tool-btn[aria-pressed="true"] { background: #fff; color: #395771; }

/* header: replaces logobanner5a.jpg / logobanner5b.jpg with CSS */
#header {
  height: 88px; position: relative; overflow: hidden;
  background: #ffffff;
  border-bottom: 4px solid var(--border);
  display: flex; align-items: stretch; justify-content: space-between;
}
html[data-theme="dark"] #header { background: #0d1a24; }
.site-logo { display: flex; align-items: center; gap: 12px; padding: 0 18px; text-decoration: none !important; position: relative; z-index: 2; }
.site-logo:hover { background: transparent; }
.site-logo__mark { width: 56px; height: 56px; flex: none; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__name { font-size: 2.15em; font-weight: bold; letter-spacing: .08em; color: var(--heading); }
.site-logo__name span { color: #4a8cc6; }
.site-logo__tag { font-size: .72em; color: var(--muted); letter-spacing: .02em; margin-top: 3px; max-width: 30em; }
.site-logo__tag b { color: var(--heading); }

#logobannerb {
  position: relative; flex: 0 0 46%; max-width: 520px; height: 88px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 1) 0, rgba(185, 215, 241, .9) 18%, #71AEE2 45%, #3e739d 100%);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
html[data-theme="dark"] #logobannerb { background: linear-gradient(100deg, #0d1a24 0, #1d3a52 25%, #2f6e9f 60%, #3e739d 100%); }
/* animated "schedule" bars inside the banner */
.banner-schedule { position: absolute; inset: 14px 16px 14px 22%; display: grid; grid-template-rows: repeat(4, 1fr); gap: 5px; }
.banner-schedule__row { position: relative; border-bottom: 1px dashed rgba(255, 255, 255, .35); }
.banner-schedule__job {
  position: absolute; top: 2px; bottom: 2px; border-radius: 2px; background: rgba(255, 255, 255, .85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transform-origin: left center; animation: job-run 6s var(--ease) infinite;
}
.banner-schedule__row:nth-child(2) .banner-schedule__job { background: #ffe08a; }
.banner-schedule__row:nth-child(3) .banner-schedule__job { background: #c7f0c2; }
.banner-schedule__row:nth-child(4) .banner-schedule__job { background: #ffc4c4; }
@keyframes job-run { 0% { transform: scaleX(0); opacity: 0; } 12% { opacity: 1; } 40%, 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* search (div#search) */
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; margin: 0 1em;
  border-bottom: 1px dotted var(--border);
}
html[data-theme="dark"] .header-row { border-color: var(--rule); }
.breadcrumbs { padding: 1em 0 1.1em 0; font-size: 90%; color: var(--text); }
.breadcrumbs ol { list-style: none; display: inline; }
.breadcrumbs li { display: inline; }
.breadcrumbs li + li::before { content: "\203A"; margin: 0 .45em; color: var(--muted); }
.breadcrumbs [aria-current] { font-weight: bold; }

#search { position: relative; text-align: right; padding: .6em 0 .5em 0; }
#search form { display: flex; align-items: center; gap: .4em; }
#search label { font-size: .95em; color: var(--text); }
#search input[type="search"] {
  font: inherit; width: 15em; padding: .35em .55em; border: 1px solid #7d93a6; border-radius: 2px; background: var(--page-bg); color: var(--text);
}
#search button, .btn-classic {
  font: inherit; padding: .35em .8em; border: 1px solid #2c4a62; background: linear-gradient(#f7fbff, #d7e6f2); color: #18324a;
  border-radius: 2px; cursor: pointer;
}
#search button:hover, .btn-classic:hover { background: linear-gradient(#ffffff, #c3d4df); }
.search-suggest {
  position: absolute; right: 0; top: 100%; width: min(28em, 90vw); z-index: 50; text-align: left;
  background: var(--page-bg); border: 1px solid var(--border); box-shadow: var(--shadow); display: none; max-height: 60vh; overflow: auto;
}
.search-suggest.is-open { display: block; animation: drop .18s var(--ease); }
.search-suggest a { display: block; padding: .6em .8em; text-decoration: none; border-bottom: 1px solid var(--rule); }
.search-suggest a small { display: block; color: var(--muted); font-size: .8em; }
.search-suggest a.is-active, .search-suggest a:hover { background: var(--accent-soft); color: var(--text-strong); }
.search-suggest__empty { padding: .7em .8em; color: var(--muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   4. Content columns (div#content / #sidebar / #main)
   ========================================================================== */
#content { margin: 1.5em auto 2em 0; display: grid; grid-template-columns: 26% 1fr; column-gap: 3%; padding-right: 2%; }
#content.is-wide { grid-template-columns: 1fr; padding: 0 2%; }
#sidebar { min-width: 0; }
#main { min-width: 0; }
#main > *:last-child { margin-bottom: 0; }

/* -------- vertical menu (div#menu_vert, "Navigation: Simple - Vertical") -------- */
#menu_vert { padding-left: 0; margin-left: 1em; }
#menu_vert ul { list-style: none; }
#menu_vert li { list-style: none; margin: 0; border-bottom: 1px solid var(--rule); display: block; position: relative; }
#menu_vert ul ul li { border: none; }
#menu_vert a {
  text-decoration: none; display: block; padding: .8em .5em .8em 1.7em; color: var(--heading); min-height: 1em;
  position: relative; transition: background-color .2s, padding-left .25s var(--ease), color .2s;
}
#menu_vert a::before { /* replaces arrow-right.gif */
  content: ""; position: absolute; left: .6em; top: 50%; margin-top: -4px;
  border: 4px solid transparent; border-left: 5px solid currentColor; transition: transform .2s;
}
#menu_vert ul ul a { font-size: 90%; padding: .5em .5em .5em 2.8em; }
#menu_vert ul ul a::before { left: 1.6em; border-width: 3px 0 3px 4px; border-style: solid; border-color: transparent transparent transparent currentColor; margin-top: -3px; }
#menu_vert a:hover { background-color: var(--accent-soft); padding-left: 2em; }
#menu_vert ul ul a:hover { padding-left: 3.1em; }
#menu_vert .current-menu-item > a, #menu_vert .current_page_item > a {
  background-color: var(--accent); color: #0d2238; font-weight: bold;
}
html[data-theme="dark"] #menu_vert .current-menu-item > a, html[data-theme="dark"] #menu_vert .current_page_item > a { color: #fff; }
#menu_vert ul ul .current-menu-item > a { background-color: var(--accent-soft); color: var(--text-strong); }
#menu_vert .current-menu-ancestor > a, #menu_vert .current-menu-parent > a { background-color: var(--accent); color: #0d2238; }
html[data-theme="dark"] #menu_vert .current-menu-ancestor > a, html[data-theme="dark"] #menu_vert .current-menu-parent > a { color: #fff; }
#menu_vert .current-menu-ancestor > a::before, #menu_vert .current-menu-parent > a::before { transform: rotate(90deg); }
#menu_vert li.separator { height: 1px; margin-top: -1px; padding: 2px 0; background: var(--border); overflow: hidden; }
#menu_vert li.separator a { display: none; }
#menu_vert li.menu-item-has-children > ul { overflow: hidden; }
#menu_vert .sub-toggle {
  position: absolute; right: 0; top: 0; width: 2.6em; height: 2.9em; border: 0; background: transparent; cursor: pointer; color: var(--heading);
}
#menu_vert .sub-toggle::after { content: "+"; font-weight: bold; font-size: 1.1em; }
#menu_vert li.is-open > .sub-toggle::after { content: "\2212"; }
#menu_vert .current-menu-ancestor > .sub-toggle, #menu_vert .current-menu-item > .sub-toggle { color: #0d2238; }

/* -------- News box (div#news, "Module: News") -------- */
.sidebox { margin: 2em 0 1em 1em; border: 1px solid var(--border); background: var(--accent-soft); }
#content .sidebox h2 { margin: 0; font-size: 1.25em; }
.sidebox h2 { line-height: 2em; background: var(--page-bg); color: var(--heading); font-size: 1.25em; padding-left: .5em; border-bottom: 1px solid var(--heading); border-left: 1.1em solid var(--heading); }
.NewsSummary { padding: .5em .5em 1em; margin: 0 .5em 1em .5em; border-bottom: 1px solid #ccc; }
.NewsSummary:last-child { border-bottom: 0; margin-bottom: 0; }
.NewsSummaryPostdate { font-size: 90%; font-weight: bold; color: var(--text-strong); }
.NewsSummaryLink { font-weight: bold; padding-top: .2em; }
.NewsSummaryContent { line-height: 140%; color: var(--text); margin-top: .3em; font-size: .95em; }
.sidebox--cta { background: linear-gradient(160deg, var(--accent-soft), #e6f1fa); padding-bottom: 1em; }
html[data-theme="dark"] .sidebox--cta { background: var(--accent-soft); }
.sidebox--cta p { padding: .8em .8em 0; font-size: .95em; color: var(--text); }
.sidebox--cta .btn { margin: .8em .8em 0; }

/* ==========================================================================
   5. Content typography (CONTENT STYLING)
   ========================================================================== */
#content h1, .entry-title {
  color: var(--heading); font-size: 1.75em; line-height: 1.3; margin: 0 0 .6em 0;
  padding-left: .5em; border-bottom: 1px solid var(--heading); border-left: 1.1em solid var(--heading); padding-bottom: .1em;
}
#content h2 {
  color: var(--heading); font-size: 1.4em; text-align: left; padding-left: .5em; padding-bottom: 1px;
  border-bottom: 1px solid var(--heading); border-left: 1.1em solid var(--heading); line-height: 1.5em; margin: 1.6em 0 .6em 0;
  scroll-margin-top: 70px;
}
#content .entry-content > h2:first-child, #content h2.no-top { margin-top: 0; }
#content h3 { color: var(--heading); font-size: 1.2em; line-height: 1.35em; margin: 1.3em 0 .5em 0; scroll-margin-top: 70px; }
#content h4 { color: var(--heading); font-size: 1.08em; line-height: 1.3em; margin: 1em 0 .35em 0; }
#content h5, #content h6 { color: var(--heading); font-size: 1em; line-height: 1.3em; margin: 0 0 .25em 0; }
p { font-size: 1em; margin: 0 0 1.2em 0; line-height: 1.65em; padding: 0; color: var(--text); }
blockquote { border-left: 10px solid #ddd; margin: 0 0 1.4em 10px; padding: .6em 1em; background: var(--card-bg); }
html[data-theme="dark"] blockquote { border-color: var(--rule); }
blockquote p:last-child { margin-bottom: 0; }
code, pre { font-family: var(--mono); font-size: 1em; word-wrap: break-word; }
:not(pre) > code { background: var(--card-bg); border: 1px solid var(--rule); padding: 0 .3em; border-radius: 2px; font-size: .95em; }
pre {
  white-space: pre; overflow-x: auto; border: 1px solid #000; background-color: var(--code-bg); color: var(--text-strong);
  margin: 0 0 1.4em 0; padding: .8em 1em; line-height: 1.5em; font-size: 90%; position: relative;
}
.copy-code {
  position: absolute; top: .4em; right: .4em; font: 11px var(--font); padding: .2em .6em; cursor: pointer; border: 1px solid #555;
  background: #fff; color: #222; border-radius: 2px; opacity: 0; transition: opacity .2s;
}
pre:hover .copy-code, .copy-code:focus { opacity: 1; }

#main ul, #main ol, #main dl { font-size: 1em; line-height: 1.6em; margin: 0 0 1.4em 0; color: var(--text); }
#main ul li, #main ol li { margin: 0 0 .3em 2.2em; }
#main dl dt { font-weight: bold; margin: 0 0 0 1em; }
#main dl dd { margin: 0 0 1em 1em; }
#main dl { margin-bottom: 2em; padding-bottom: 1em; border-bottom: 1px solid var(--rule); }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: .95em; color: var(--text); }
th, td { padding: .55em .7em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { background: var(--brand); color: #fff; font-weight: bold; }
thead th abbr { color: #fff; }
tbody tr:nth-child(even) { background: var(--card-bg); }
tbody tr:hover { background: var(--accent-soft); }

/* print button (original images/cms/printbutton.gif) */
.page-tools { float: right; display: flex; gap: .4em; align-items: center; margin: 0 0 .6em 1em; }
.page-tools a, .page-tools button { display: inline-flex; align-items: center; gap: .3em; background: transparent; border: 0; cursor: pointer; font: inherit; font-size: .85em; color: var(--link); padding: .2em .3em; }
.page-tools img { display: inline-block; width: 16px; height: 16px; }

/* relational links under content (div.hr, left49/right49) */
div.hr { height: 1px; padding: 1em; border-bottom: 1px dotted var(--border); margin: 1em 0; }
html[data-theme="dark"] div.hr { border-color: var(--rule); }
.relational { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.relational p { margin: 0; }
.relational .left49 { flex: 1 1 49%; }
.relational .right49 { flex: 1 1 40%; text-align: right; }

/* ==========================================================================
   6. Components
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.3em; border-radius: var(--radius);
  font-weight: bold; text-decoration: none !important; border: 1px solid var(--heading); cursor: pointer; font: inherit; font-weight: bold;
  background: var(--brand); color: #fff !important; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
  position: relative; overflow: hidden;
}
.btn:link, .btn:visited, button.btn { background-color: var(--brand); }
.btn:hover, .btn:link:hover { background-color: var(--link); transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.btn.btn--ghost, .btn--ghost:link, .btn--ghost:visited { background-color: transparent; color: var(--heading) !important; }
.btn.btn--ghost:hover { background-color: var(--accent-soft); color: var(--text-strong) !important; }
.btn.btn--light, .btn--light:link, .btn--light:visited { background-color: #fff; color: var(--heading) !important; border-color: #fff; }
.btn.btn--light:hover { background-color: var(--accent-soft); color: var(--heading) !important; }
.btn--small { padding: .4em .8em; font-size: .9em; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.badge { display: inline-block; font-size: .75em; font-weight: bold; padding: .15em .6em; border-radius: 99px; background: var(--accent-soft); color: var(--heading); text-decoration: none; letter-spacing: .02em; }
a.badge:hover { background: var(--accent); color: #fff; }
.badge--archive { background: #f6e7c1; color: #6b4e00; }

.callout { border: 1px solid var(--rule); border-left: 6px solid var(--accent); background: var(--card-bg); padding: .9em 1.1em; margin: 0 0 1.4em; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-tip { border-left-color: #3b9b5d; }
.callout-warning { border-left-color: #d08a00; background: #fff8e8; }
html[data-theme="dark"] .callout-warning { background: #2d2716; }
.key-takeaways { border: 1px solid var(--heading); background: linear-gradient(135deg, var(--accent-soft), var(--card-bg)); padding: 1em 1.2em .3em; margin: 0 0 1.6em; border-radius: var(--radius); }
#content .key-takeaways h2 { border: 0; padding: 0; margin: 0 0 .5em; font-size: 1.15em; }
.archive-note { border: 1px dashed #b38b00; background: #fffaf0; padding: .8em 1em; margin: 0 0 1.4em; font-size: .92em; }
html[data-theme="dark"] .archive-note { background: #2a2414; border-color: #806300; }
.archive-note p { margin: 0; }

/* hero */
.hero { position: relative; border: 1px solid var(--heading); background: linear-gradient(135deg, #f3f8fc 0%, #dceaf5 55%, #b9d7f1 100%); margin: 0 0 2em; overflow: hidden; border-radius: var(--radius); }
html[data-theme="dark"] .hero { background: linear-gradient(135deg, #142838, #1d3a52); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5em; padding: 1.8em; align-items: center; position: relative; z-index: 1; }
.hero__eyebrow { font-size: .8em; text-transform: uppercase; letter-spacing: .12em; color: var(--link); font-weight: bold; margin-bottom: .6em; }
#content .hero h1 { border: 0; padding: 0; font-size: 2em; line-height: 1.2; margin-bottom: .45em; }
.hero h1 .typed { color: var(--link); border-right: 2px solid var(--link); padding-right: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero p { font-size: 1.05em; }
.hero__actions { display: flex; gap: .7em; flex-wrap: wrap; margin-top: 1em; }
.hero__visual { position: relative; }
.hero__visual img { border-radius: var(--radius); box-shadow: var(--shadow); transform: perspective(900px) rotateY(-8deg); transition: transform .6s var(--ease); }
.hero__visual:hover img { transform: perspective(900px) rotateY(0); }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(57, 87, 113, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 87, 113, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 70%); }

/* live schedule widget on the home page */
.live-gantt { border: 1px solid var(--rule); background: var(--page-bg); border-radius: var(--radius); padding: .8em; margin: 0 0 2em; }
.live-gantt__head { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; margin-bottom: .5em; }
.live-gantt__head strong { color: var(--heading); }
.live-gantt canvas { width: 100%; height: 170px; display: block; }
.live-gantt__legend { display: flex; flex-wrap: wrap; gap: .8em; font-size: .8em; color: var(--muted); margin-top: .4em; }
.live-gantt__legend i { display: inline-block; width: .9em; height: .9em; vertical-align: -1px; margin-right: .3em; border-radius: 2px; }
.seg { display: inline-flex; border: 1px solid var(--heading); border-radius: 3px; overflow: hidden; }
.seg button { font: inherit; font-size: .85em; padding: .3em .8em; border: 0; background: transparent; color: var(--heading); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; margin: 0 0 2em; }
.stat { text-align: center; border: 1px solid var(--rule); border-top: 4px solid var(--accent); padding: 1em .5em; background: var(--card-bg); border-radius: var(--radius); }
.stat__num { display: block; font-size: 2em; font-weight: bold; color: var(--heading); line-height: 1.1; }
.stat__label { font-size: .85em; color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2em; margin: 0 0 2em; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--rule); background: var(--page-bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-bg); display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1em 1.1em 1.1em; display: flex; flex-direction: column; gap: .5em; flex: 1; }
#content .card__title { font-size: 1.05em; margin: 0; line-height: 1.35; border: 0; padding: 0; }
.card__title a { text-decoration: none; color: var(--heading); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { background: transparent; color: var(--link); }
.card__meta { font-size: .8em; color: var(--muted); display: flex; gap: .7em; flex-wrap: wrap; }
.card__excerpt { font-size: .92em; margin: 0; color: var(--text); }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5em; position: relative; z-index: 2; }
.card__price { font-weight: bold; color: var(--heading); }
.card__price ins, .price ins { text-decoration: none; }
.card__price del { color: var(--muted); font-weight: normal; margin-right: .3em; }
.feature { padding: 1.2em; }
.feature__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--heading); margin-bottom: .4em; transition: transform .4s var(--ease); }
.card:hover .feature__icon { transform: rotate(-8deg) scale(1.1); }
.feature__icon svg { width: 22px; height: 22px; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1em; flex-wrap: wrap; margin: 0 0 1em; }
#content .section-head h2 { margin: 0; flex: 1; }

/* carousel */
.swiper { padding-bottom: 2.4em !important; margin-bottom: 1.5em; }
.swiper-pagination-bullet-active { background: var(--brand) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--heading) !important; transform: scale(.6); }
.app-slide { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--page-bg); height: auto; }
.app-slide img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.app-slide div { padding: .9em 1em; }
.app-slide h3 { margin-top: 0 !important; }

/* CTA band */
.cta-band { border: 1px solid var(--heading); border-radius: var(--radius); padding: 1.6em; margin: 2em 0; background: linear-gradient(120deg, var(--brand), var(--accent)); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; }
.cta-band p, .cta-band h2 { color: #fff !important; margin: 0 !important; border: 0 !important; padding: 0 !important; }
.cta-band h2 { font-size: 1.35em !important; margin-bottom: .3em !important; }

/* FAQ / details */
.faq { margin: 0 0 1.8em; }
.faq-item { border: 1px solid var(--rule); border-radius: var(--radius); margin: 0 0 .6em; background: var(--page-bg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--accent); box-shadow: 0 2px 10px rgba(24, 80, 124, .08); }
.faq-item summary { cursor: pointer; list-style: none; padding: .85em 2.6em .85em 1em; font-weight: bold; color: var(--heading); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1em; top: 50%; transform: translateY(-50%); font-size: 1.3em; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: var(--card-bg); }
.faq-a { padding: 0 1em .4em; }
.faq-a p { margin-bottom: .8em; }

/* timeline */
ol.timeline { list-style: none; border-left: 3px solid var(--accent); margin: 0 0 1.6em .5em !important; padding-left: 0; }
#main ol.timeline li { margin: 0 0 1em 0; padding-left: 1.4em; position: relative; }
ol.timeline li::before { content: ""; position: absolute; left: -9px; top: .3em; width: 13px; height: 13px; border-radius: 50%; background: var(--page-bg); border: 3px solid var(--heading); }

/* article layout */
.entry-meta { display: flex; flex-wrap: wrap; gap: .4em 1em; font-size: .85em; color: var(--muted); margin: -.2em 0 1.2em; align-items: center; }
.entry-meta a { color: var(--muted); }
.entry-hero { margin: 0 0 1.4em; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.entry-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.entry-hero figcaption { font-size: .78em; color: var(--muted); padding: .4em .7em; background: var(--card-bg); }
.entry-hero figcaption a { color: var(--muted); }
.toc { border: 1px solid var(--rule); background: var(--card-bg); padding: .8em 1em; margin: 0 0 1.6em; border-radius: var(--radius); font-size: .92em; }
.toc summary { cursor: pointer; font-weight: bold; color: var(--heading); }
#main .toc ol { margin: .6em 0 0 0; counter-reset: toc; list-style: none; }
#main .toc li { margin: 0 0 .25em 0; counter-increment: toc; }
.toc li::before { content: counter(toc) ". "; color: var(--muted); }
.toc a { text-decoration: none; }
.toc a.is-active { font-weight: bold; color: var(--link-hover); }
.toc-float { position: sticky; top: 64px; }
.share { display: flex; gap: .4em; flex-wrap: wrap; align-items: center; margin: 1.6em 0; font-size: .9em; }
.share a, .share button { display: inline-flex; align-items: center; gap: .35em; border: 1px solid var(--rule); padding: .35em .75em; border-radius: 99px; text-decoration: none; background: var(--page-bg); color: var(--heading); cursor: pointer; font: inherit; }
.share a:hover, .share button:hover { border-color: var(--accent); background: var(--accent-soft); }
.share svg { width: 15px; height: 15px; }
.author-box { display: flex; gap: 1em; border: 1px solid var(--rule); padding: 1em; border-radius: var(--radius); background: var(--card-bg); margin: 1.5em 0; align-items: center; }
.author-box p { margin: 0; font-size: .92em; }
.author-box .site-logo__mark { width: 48px; height: 48px; }
.tags { display: flex; gap: .4em; flex-wrap: wrap; margin: 1em 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; margin: 1.5em 0; }
.post-nav a { display: block; border: 1px solid var(--rule); padding: .8em 1em; border-radius: var(--radius); text-decoration: none; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav small { display: block; color: var(--muted); }
.post-nav .next { text-align: right; }
.reading-progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--heading)); z-index: 9999; }

/* sticky compact header */
.mini-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--border); transform: translateY(-110%); transition: transform .3s var(--ease); box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
html[data-theme="dark"] .mini-bar { background: rgba(13, 26, 36, .96); }
.mini-bar.is-visible { transform: none; }
.mini-bar__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .45em 1em; }
.mini-bar .site-logo { padding: 0; }
.mini-bar .site-logo__mark { width: 30px; height: 30px; }
.mini-bar .site-logo__name { font-size: 1.25em; }
.mini-bar nav ul { list-style: none; display: flex; gap: .2em; flex-wrap: wrap; }
.mini-bar nav a { text-decoration: none; padding: .35em .65em; border-radius: 3px; font-size: .9em; color: var(--heading); }
.mini-bar nav a:hover { background: var(--accent-soft); }

.menu-toggle { display: none; font: inherit; background: var(--brand); color: #fff; border: 0; border-radius: 3px; padding: .45em .8em; cursor: pointer; align-items: center; gap: .4em; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }

.back-to-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: var(--brand); color: #fff;
  display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s var(--ease); z-index: 800; box-shadow: var(--shadow);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top svg:first-child { position: absolute; inset: -2px; width: 46px; height: 46px; transform: rotate(-90deg); }
.back-to-top svg + svg { position: relative; width: 20px; height: 20px; transform: none; }
.back-to-top circle { fill: none; stroke: var(--accent-soft); stroke-width: 3; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: #1b2b38; color: #fff; padding: .7em 1.2em; border-radius: 4px; opacity: 0; transition: all .3s var(--ease); z-index: 10000; font-size: .9em; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   7. Forms (Contact Form 7 + fallback)
   ========================================================================== */
.form-card { border: 1px solid var(--rule); background: var(--card-bg); padding: 1.4em; border-radius: var(--radius); margin: 0 0 1.6em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2em; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin: 0 0 1em; position: relative; }
.field label, .wpcf7 label { display: block; font-weight: bold; color: var(--heading); margin-bottom: .35em; font-size: .92em; }
.field .req { color: #b3261e; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field select, .field textarea,
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea,
.woocommerce form .input-text, .woocommerce form select {
  width: 100%; font: inherit; padding: .65em .75em; border: 1px solid #8ea3b5; border-radius: 3px; background: var(--page-bg); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea, .wpcf7 textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  border-color: var(--link); box-shadow: 0 0 0 3px rgba(113, 174, 226, .35); outline: none;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .wpcf7-not-valid { border-color: #b3261e !important; background: #fff6f5 !important; }
html[data-theme="dark"] .field.is-invalid input, html[data-theme="dark"] .field.is-invalid textarea { background: #2d1a1a !important; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: #2e7d32; }
.field-error, .wpcf7-not-valid-tip { display: block; color: #b3261e; font-size: .85em; margin-top: .3em; }
.char-count { position: absolute; right: .5em; bottom: -1.4em; font-size: .75em; color: var(--muted); }
.check { display: flex; gap: .55em; align-items: flex-start; font-weight: normal !important; color: var(--text) !important; }
.check input { margin-top: .25em; width: 1.05em; height: 1.05em; flex: none; }
.wpcf7-list-item { margin: 0 !important; }
.wpcf7-acceptance label { display: flex; gap: .55em; align-items: flex-start; font-weight: normal; color: var(--text); }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-submit { display: flex; gap: 1em; align-items: center; flex-wrap: wrap; }
.wpcf7-spinner { margin: 0 .5em; }
.wpcf7 form .wpcf7-response-output { margin: 1em 0 0; padding: .7em 1em; border-radius: 3px; }
.notice-box { padding: .8em 1em; border-radius: 3px; margin: 0 0 1em; border: 1px solid; }
.notice-box--error { border-color: #b3261e; background: #fff6f5; color: #7a1712; }
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.5em; align-items: start; }
.contact-aside .card { padding: 1.1em; margin-bottom: 1em; }
.contact-aside h3 { margin-top: 0 !important; }

/* thank-you */
.thanks { text-align: center; padding: 2em 1em; }
.thanks__check { width: 90px; height: 90px; margin: 0 auto 1em; }
.thanks__check circle { stroke: var(--accent); stroke-width: 4; fill: none; stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw 1s var(--ease) forwards; }
.thanks__check path { stroke: var(--heading); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .6s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   8. Calculator & glossary
   ========================================================================== */
.calc { border: 1px solid var(--heading); border-radius: var(--radius); padding: 1.2em; background: var(--page-bg); margin: 0 0 1.6em; }
.calc__bar { display: flex; flex-wrap: wrap; gap: .6em 1em; align-items: center; margin-bottom: 1em; }
.calc__bar label { font-weight: bold; color: var(--heading); font-size: .9em; }
.calc__bar select, .calc input[type=number], .calc input[type=text] { font: inherit; padding: .4em .5em; border: 1px solid #8ea3b5; border-radius: 3px; background: var(--page-bg); color: var(--text); }
.calc table input { width: 100%; min-width: 4.5em; }
.calc td, .calc th { vertical-align: middle; }
.calc .row-del { background: transparent; border: 1px solid var(--rule); border-radius: 3px; cursor: pointer; color: #b3261e; padding: .2em .55em; font: inherit; }
.calc__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin: 1em 0; }
.result { border: 1px solid var(--rule); border-radius: var(--radius); padding: .9em; background: var(--card-bg); }
.result h3 { margin: 0 0 .35em !important; font-size: 1em !important; }
.result__value { font-size: 1.5em; font-weight: bold; color: var(--heading); }
.verdict { display: inline-block; font-weight: bold; padding: .15em .6em; border-radius: 99px; font-size: .85em; }
.verdict--ok { background: #dff3e3; color: #1e5b2b; }
.verdict--bad { background: #fde3e1; color: #8c1d18; }
.verdict--maybe { background: #fff1cc; color: #6b4e00; }
.util-meter { height: 12px; background: var(--rule); border-radius: 99px; overflow: hidden; margin: .4em 0; position: relative; }
.util-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3b9b5d, #f2b705 75%, #d0342c); transition: width .6s var(--ease); }
.util-meter i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-strong); }
.gantt-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--page-bg); padding: .5em; }
.gantt-wrap svg text { font-family: var(--font); font-size: 11px; fill: var(--text); }
.calc-log { font-family: var(--mono); font-size: .85em; white-space: pre-wrap; background: var(--code-bg); border: 1px solid var(--rule); padding: .8em; max-height: 260px; overflow: auto; color: var(--text-strong); }

.glossary-tools { position: sticky; top: 58px; background: var(--page-bg); z-index: 5; padding: .6em 0; border-bottom: 1px solid var(--rule); margin-bottom: 1em; }
.glossary-tools input { width: 100%; font: inherit; padding: .65em .8em; border: 1px solid #8ea3b5; border-radius: 3px; background: var(--page-bg); color: var(--text); }
.az { display: flex; flex-wrap: wrap; gap: .2em; margin: .6em 0 .3em; }
.az a, .az span { display: inline-block; min-width: 1.8em; text-align: center; padding: .15em .2em; border-radius: 3px; text-decoration: none; font-weight: bold; font-size: .9em; }
.az span { color: var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: .35em; }
.chip { font: inherit; font-size: .8em; padding: .25em .7em; border-radius: 99px; border: 1px solid var(--heading); background: transparent; color: var(--heading); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; }
.gloss-letter { font-size: 1.4em; color: var(--heading); margin: 1em 0 .4em; border-bottom: 1px dotted var(--rule); }
.gloss-item { border: 1px solid var(--rule); border-radius: var(--radius); padding: .8em 1em; margin-bottom: .6em; background: var(--page-bg); }
.gloss-item dt { font-weight: bold; color: var(--heading); margin: 0 !important; }
.gloss-item dd { margin: .3em 0 0 !important; }
.gloss-item mark { background: #ffe08a; color: #000; }
.gloss-count { font-size: .85em; color: var(--muted); margin-top: .4em; }
#main dl.gloss-list { border: 0; }

/* sitemap */
.sitemap-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em 2em; }

/* image credits */
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1em; }
.credit { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; font-size: .82em; background: var(--page-bg); }
.credit img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.credit div { padding: .6em .7em; }
.credit p { margin: 0 0 .3em; line-height: 1.4; }

/* pagination */
.pagination, .nav-links { display: flex; gap: .3em; flex-wrap: wrap; margin: 1.5em 0; }
.page-numbers { display: inline-block; padding: .4em .8em; border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; }
.page-numbers.current { background: var(--brand); color: #fff; border-color: var(--heading); }

/* ==========================================================================
   9. Footer (div#footer)
   ========================================================================== */
#footer { clear: both; color: var(--footer-text); background: var(--accent); border-top: 4px solid var(--border); }
html[data-theme="dark"] #footer { background: #1d3a52; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5em; padding: 1.6em 1.5em 1em; background: linear-gradient(180deg, #8fc0ea, var(--accent)); }
html[data-theme="dark"] .footer-widgets { background: #1a3247; }
.footer-widgets h2 { font-size: 1em; color: #0f1f5c; margin: 0 0 .6em; text-transform: uppercase; letter-spacing: .06em; }
html[data-theme="dark"] .footer-widgets h2 { color: #fff; }
.footer-widgets p { color: #10225a; font-size: .9em; }
html[data-theme="dark"] .footer-widgets p { color: var(--text); }
.footer-widgets ul { list-style: none; }
.footer-widgets li { margin: 0 0 .35em; }
.footer-widgets a { color: #0d1a54; font-size: .9em; text-decoration: none; }
html[data-theme="dark"] .footer-widgets a { color: #cfe6fa; }
.footer-widgets a:hover { text-decoration: underline; background: transparent; }
.footer-bottom { display: flex; align-items: center; gap: 1em; min-height: 60px; padding: 0 1em 0 0; flex-wrap: wrap; border-top: 1px solid rgba(0, 0, 0, .25); }
#logofooter { width: 163px; height: 60px; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; border-right: 4px solid var(--border); }
#logofooter .site-logo__mark { width: 40px; height: 40px; }
.footer-bottom p { flex: 1; text-align: center; margin: 0; font-size: .82em; color: var(--footer-text); padding: .8em 0; }
.footer-bottom p a { color: var(--footer-text); }
html[data-theme="dark"] .footer-bottom p, html[data-theme="dark"] .footer-bottom p a { color: #e6f1fb; }

/* ==========================================================================
   10. WooCommerce
   ========================================================================== */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2em; margin: 0 0 1.5em !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 0 1em !important; background: var(--page-bg); transition: transform .3s var(--ease), box-shadow .3s; overflow: hidden; }
#main .woocommerce ul.products li.product, #main ul.products li.product { margin: 0 !important; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a img { margin: 0 0 .8em !important; aspect-ratio: 4/3; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 .9em !important; color: var(--heading); font-size: 1em !important; border: 0 !important; margin: 0 !important; }
.woocommerce ul.products li.product .price { padding: 0 .9em; color: var(--heading) !important; font-weight: bold; }
.woocommerce ul.products li.product .button { margin: .6em .9em 0 !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--brand) !important; color: #fff !important; border-radius: var(--radius) !important; font-family: var(--font) !important; font-weight: bold;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--link) !important; }
.woocommerce span.onsale { background: #d0342c !important; }
.woocommerce div.product .product_title { font-size: 1.6em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--heading) !important; font-size: 1.4em !important; }
.woocommerce-tabs h2 { font-size: 1.2em !important; }
.woocommerce .woocommerce-breadcrumb { display: none; }
.woocommerce-store-notice { background: var(--brand) !important; }

/* ==========================================================================
   11. Animations helpers & 404
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-js [data-aos] { opacity: 1 !important; transform: none !important; }
.error-404 { text-align: center; padding: 1em 0 2em; }
.error-404__code { font-size: 6em; font-weight: bold; color: var(--accent-soft); line-height: 1; text-shadow: 3px 3px 0 var(--heading); letter-spacing: .05em; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  body { margin: 0; }
  #pagewrapper { border-left: 0; border-right: 0; }
  #content { grid-template-columns: 1fr; padding: 0 1em; }
  #content.is-wide { padding: 0 1em; }
  .menu-toggle { display: inline-flex; }
  #sidebar { display: contents; }
  #menu_vert {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); margin: 0; background: var(--page-bg); z-index: 1001; overflow-y: auto;
    transform: translateX(-105%); transition: transform .35s var(--ease); border-right: 4px solid var(--border); padding-top: 3.5em; box-shadow: 0 0 40px rgba(0, 0, 0, .35);
  }
  body.nav-open #menu_vert { transform: none; }
  .nav-close { position: absolute; top: .6em; right: .6em; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .sidebar-boxes { order: 3; }
  .sidebox { margin: 1.5em 0 0; }
  #main { order: 2; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__visual img { transform: none; max-height: 240px; width: 100%; object-fit: cover; }
  .contact-grid { grid-template-columns: 1fr; }
  .mini-bar nav { display: none; }
}
@media (min-width: 961px) { .nav-close, .nav-overlay { display: none; } }
@media (max-width: 720px) {
  #header { height: 72px; }
  #logobannerb { display: none; }
  .site-logo__mark { width: 44px; height: 44px; }
  .site-logo__name { font-size: 1.7em; }
  .site-logo__tag { display: none; }
  .header-row { flex-direction: column-reverse; align-items: stretch; gap: 0; }
  #search { text-align: left; }
  #search form { width: 100%; }
  #search input[type="search"] { flex: 1; width: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: 1fr; }
  .calc__results { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .sitemap-cols { grid-template-columns: 1fr; }
  #content h1, .entry-title { font-size: 1.45em; }
  #content .hero h1 { font-size: 1.55em; }
  .page-tools { display: none; }
  .topbar__links { display: none; }
  #logofooter { width: 80px; }
}

/* ==========================================================================
   13. Print (original mediatype=print stylesheet)
   ========================================================================== */
@media print {
  body { background: #fff !important; color: #000; margin: 0; font-size: 11pt; }
  #pagewrapper { border: 0; box-shadow: none; max-width: none; }
  .topbar, #search, #sidebar, #menu_vert, .sidebox, .mini-bar, .back-to-top, .reading-progress, .page-tools, .share, .post-nav, .footer-widgets,
  .noprint, .menu-toggle, .cta-band, .toc, .hero__actions, .live-gantt, #logobannerb, .breadcrumbs { display: none !important; }
  #content { display: block; padding: 0; }
  a { color: #000; text-decoration: underline; }
  .entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 80%; }
  .reveal, [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* WooCommerce: accessible contrast for crossed-out prices */
.woocommerce ul.products li.product .price del, .woocommerce div.product p.price del { opacity: 1; color: #55636f; }
html[data-theme="dark"] .woocommerce ul.products li.product .price del { color: var(--muted); }
