/*
Theme Name: IleSchnie
Author: IleSchnie.pl
Description: Specjalistyczny motyw dla serwisu o czasach schnięcia i utwardzania materiałów. Zawiera karty czasu, kalkulator warunków, osie czasu oraz instalator treści startowej.
Version: 1.0.0
Requires at least: 6.4
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: ileschnie
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --ink: #122033;
  --ink-soft: #526173;
  --navy: #0b1f3a;
  --blue: #1868e5;
  --blue-dark: #0d4fb4;
  --cyan: #08a6c9;
  --amber: #ffb020;
  --amber-soft: #fff4d6;
  --green: #0f7049;
  --red: #cc3d4a;
  --paper: #ffffff;
  --surface: #f3f7fb;
  --surface-2: #eaf1f8;
  --line: #d9e3ed;
  --shadow: 0 14px 40px rgba(15, 37, 64, .09);
  --shadow-sm: 0 8px 24px rgba(15, 37, 64, .07);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
main [id] { scroll-margin-top: 105px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

a { color: var(--blue-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(24,104,229,.35); outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 8px; left: 8px; z-index: 100000; width: auto; height: auto;
  padding: 12px 16px; clip: auto; color: var(--navy); background: #fff;
}

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: 72px 0; }
.section--soft { background: var(--surface); }
.section--tight { padding: 46px 0; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(217,227,237,.85);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.site-branding { display: flex; align-items: center; flex: 0 0 auto; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: auto; max-height: 48px; }
.brand-link { display: flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center;
  color: white; border-radius: 13px;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 7px 18px rgba(24,104,229,.24);
}
.brand-mark svg { width: 25px; height: 25px; }
.brand-name { font-size: 1.2rem; font-weight: 850; letter-spacing: -.035em; }
.brand-name span { color: var(--blue); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 680; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--blue); }
.header-search-button, .menu-toggle {
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  color: var(--navy); width: 43px; height: 43px; display: grid; place-items: center;
}
.header-search-button:hover, .menu-toggle:hover { border-color: var(--blue); color: var(--blue); }
.menu-toggle { display: none; }

.search-drawer { display: none; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.search-drawer.is-open { display: block; }
.search-form { display: flex; width: 100%; }
.search-form label { flex: 1; min-width: 0; }
.search-field {
  width: 100%; min-height: 52px; padding: 0 18px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px 0 0 12px; background: #fff;
}
.search-field:focus { outline: 3px solid rgba(24,104,229,.14); border-color: var(--blue); }
.search-submit {
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 0 12px 12px 0;
  background: var(--blue); color: #fff; font-weight: 760;
}

.hero {
  position: relative; overflow: hidden; padding: 82px 0 74px;
  background:
    radial-gradient(circle at 90% 15%, rgba(8,166,201,.16), transparent 30%),
    radial-gradient(circle at 7% 90%, rgba(255,176,32,.16), transparent 29%),
    linear-gradient(145deg, #f8fbff 0%, #eef6ff 100%);
}
.hero::after {
  content: ""; position: absolute; right: -100px; top: -150px; width: 420px; height: 420px;
  border: 58px solid rgba(24,104,229,.04); border-radius: 50%;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  color: var(--blue-dark); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 9px; background: var(--amber); }
.hero h1, .page-hero h1, .entry-title {
  margin: 0; color: var(--navy); font-size: clamp(2.15rem, 5vw, 4.15rem);
  line-height: 1.05; letter-spacing: -.055em;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 650px; margin: 22px 0 28px; color: var(--ink-soft); font-size: 1.15rem; }
.hero-search {
  display: flex; max-width: 670px; padding: 7px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; box-shadow: var(--shadow);
}
.hero-search input { flex: 1; min-width: 0; padding: 12px 15px; border: 0; outline: 0; color: var(--ink); }
.hero-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(24,104,229,.14), var(--shadow); }
.hero-search button { padding: 13px 22px; border: 0; border-radius: 11px; background: var(--blue); color: #fff; font-weight: 780; }
.hero-search button:hover { background: var(--blue-dark); }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick-links a { padding: 6px 10px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.8); font-size: .81rem; text-decoration: none; }
.quick-links a:hover { color: var(--blue); border-color: var(--blue); }

.hero-visual { position: relative; min-height: 385px; display: grid; place-items: center; }
.clock-board {
  position: relative; width: min(100%, 385px); aspect-ratio: 1; border-radius: 38px;
  color: #fff; background: linear-gradient(145deg, var(--navy), #173f72);
  box-shadow: 0 30px 70px rgba(11,31,58,.24); transform: rotate(2deg);
}
.clock-board::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 28px; }
.clock-face { position: absolute; inset: 65px; border: 13px solid rgba(255,255,255,.94); border-radius: 50%; }
.clock-face::before { content: ""; position: absolute; width: 8px; height: 31%; left: calc(50% - 4px); top: 20%; background: var(--amber); border-radius: 8px; transform-origin: center bottom; transform: rotate(24deg); }
.clock-face::after { content: ""; position: absolute; width: 8px; height: 39%; left: calc(50% - 4px); top: 11%; background: #fff; border-radius: 8px; transform-origin: center bottom; transform: rotate(121deg); }
.clock-dot { position: absolute; z-index: 2; width: 22px; height: 22px; left: calc(50% - 11px); top: calc(50% - 11px); border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(255,176,32,.2); }
.visual-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px;
  padding: 12px 15px; border-radius: 13px; color: var(--navy); background: #fff;
  box-shadow: var(--shadow); font-size: .83rem; font-weight: 750;
}
.visual-card b { display: block; color: var(--blue); font-size: 1rem; }
.visual-card--one { top: 18px; left: -10px; transform: rotate(-4deg); }
.visual-card--two { right: -22px; bottom: 40px; transform: rotate(2deg); }
.visual-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: #eaf3ff; }

.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; gap: 13px; align-items: center; padding: 22px 28px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { flex: 0 0 auto; color: var(--blue); }
.trust-item strong { display: block; color: var(--navy); font-size: .94rem; }
.trust-item span { display: block; color: var(--ink-soft); font-size: .78rem; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 3.5vw, 2.65rem); line-height: 1.13; letter-spacing: -.04em; }
.section-head p { max-width: 610px; margin: 8px 0 0; color: var(--ink-soft); }
.text-link { white-space: nowrap; font-size: .9rem; font-weight: 780; text-decoration: none; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.time-card {
  position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.time-card:hover { transform: translateY(-4px); border-color: #b7cce1; box-shadow: var(--shadow); }
.time-card-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 22px 0; }
.material-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: #edf5ff; }
.material-icon svg { width: 25px; height: 25px; }
.source-badge { display: inline-flex; gap: 5px; align-items: center; padding: 5px 8px; border-radius: 999px; color: var(--green); background: #e9f8f1; font-size: .68rem; font-weight: 820; text-transform: uppercase; letter-spacing: .04em; }
.time-card-body { padding: 18px 22px 22px; }
.time-card .card-kicker { margin: 0 0 6px; color: var(--ink-soft); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.time-card h2, .time-card h3 { margin: 0; color: var(--navy); font-size: 1.25rem; line-height: 1.25; letter-spacing: -.025em; }
.time-card h2 a, .time-card h3 a { color: inherit; text-decoration: none; }
.time-card h2 a::after, .time-card h3 a::after { content: ""; position: absolute; inset: 0; }
.time-card p { margin: 11px 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.card-timing { display: flex; align-items: baseline; gap: 7px; margin-top: 17px; }
.card-timing strong { color: var(--blue); font-size: 1.42rem; line-height: 1; }
.card-timing span { color: var(--ink-soft); font-size: .76rem; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.category-tile { padding: 20px 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--navy); text-align: center; text-decoration: none; font-weight: 760; box-shadow: var(--shadow-sm); }
.category-tile:hover { transform: translateY(-2px); color: var(--blue); border-color: #b9cee3; }
.category-tile .material-icon { margin: 0 auto 10px; }
.category-tile .category-count { display: block; color: var(--ink-soft); font-size: .72rem; font-weight: 600; }

.mini-calculator { display: grid; grid-template-columns: .88fr 1.12fr; gap: 55px; align-items: center; padding: 42px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--navy), #123c6c); box-shadow: 0 24px 58px rgba(11,31,58,.19); }
.mini-calculator h2 { margin: 0; color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; letter-spacing: -.04em; }
.mini-calculator p { margin: 15px 0 0; color: #ccdaea; }
.calculator-panel { padding: 25px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.09); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field-group { margin-bottom: 15px; }
.field-group label { display: block; margin-bottom: 6px; color: #eaf2fb; font-size: .76rem; font-weight: 720; }
.field-group select, .field-group input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: var(--navy); background: #fff; }
.calculator-result { padding: 16px; border-radius: 12px; color: var(--navy); background: #fff; text-align: center; }
.calculator-result span { display: block; color: var(--ink-soft); font-size: .73rem; }
.calculator-result strong { display: block; margin-top: 2px; color: var(--blue); font-size: 1.52rem; }
.home-card-select { max-width: 440px; margin-top: 24px; }
.home-card-select select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; color: var(--navy); background: #fff; }
.home-card-select label { color: #d8e6f3; }

.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; counter-reset: method; }
.method-step { position: relative; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: #fff; counter-increment: method; }
.method-step::before { content: counter(method); width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 10px; color: #fff; background: var(--blue); font-size: .84rem; font-weight: 850; }
.method-step h3 { margin: 0 0 7px; color: var(--navy); font-size: 1rem; }
.method-step p { margin: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }

.page-hero { padding: 62px 0 52px; background: linear-gradient(145deg, #f7faff, #edf5ff); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.page-hero p { max-width: 740px; margin: 15px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.archive-description p { max-width: 740px; margin: 15px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.breadcrumbs { margin-bottom: 14px; color: var(--ink-soft); font-size: .74rem; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs span { margin-inline: 6px; color: #9ba9b7; }

.card-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; padding: 48px 0 76px; }
.article-main { min-width: 0; }
.article-sidebar { position: static; }
.article-sidebar > .sidebar-box:first-child { position: sticky; top: 105px; }
.answer-box { position: relative; padding: 26px 28px 26px 31px; border: 1px solid #bfd5ef; border-left: 5px solid var(--blue); border-radius: 15px; background: #f3f8ff; }
.answer-box::before { content: "Odpowiedź w skrócie"; display: block; margin-bottom: 7px; color: var(--blue-dark); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.answer-box p { margin: 0; color: var(--navy); font-size: 1.08rem; line-height: 1.57; }
.conditions-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 0; }
.conditions-bar span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; color: var(--ink-soft); background: var(--surface); font-size: .73rem; }

.article-section { margin-top: 43px; }
.article-section > h2, .entry-content h2 { margin: 0 0 18px; color: var(--navy); font-size: 1.72rem; line-height: 1.2; letter-spacing: -.035em; }
.entry-content h3 { margin: 30px 0 9px; color: var(--navy); font-size: 1.25rem; }
.entry-content p { margin: 0 0 18px; }
.entry-content ul, .entry-content ol { padding-left: 23px; }
.entry-content li { margin-bottom: 8px; }
.entry-content > *:first-child { margin-top: 0; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 18px; }
.timeline::before { content: ""; position: absolute; top: 31px; left: 11%; right: 11%; height: 3px; background: var(--line); }
.timeline-step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.timeline-dot { width: 27px; height: 27px; margin: 0 auto 12px; border: 6px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.timeline-step:nth-child(4) .timeline-dot { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.timeline-step strong { display: block; color: var(--navy); font-size: .86rem; }
.timeline-step b { display: block; margin: 3px 0; color: var(--blue); font-size: 1.08rem; }
.timeline-step small { display: block; color: var(--ink-soft); font-size: .68rem; line-height: 1.4; }

.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.data-table-wrap:focus-visible { outline: 3px solid rgba(24,104,229,.35); outline-offset: 3px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th { padding: 12px 14px; color: var(--navy); background: var(--surface); text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tr:hover td { background: #fbfdff; }

.card-calculator { padding: 27px; border-radius: 19px; color: #fff; background: linear-gradient(140deg, var(--navy), #174b84); box-shadow: var(--shadow); }
.card-calculator h2 { margin: 0 0 7px; color: #fff; font-size: 1.55rem; }
.card-calculator > p { margin: 0 0 20px; color: #d0deed; font-size: .82rem; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.calc-field label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #d9e7f4; font-size: .74rem; font-weight: 700; }
.calc-field output { color: var(--amber); }
.calc-field input[type="range"] { width: 100%; accent-color: var(--amber); }
.calc-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 17px 19px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.09); }
.calc-result span { display: block; color: #d5e2ee; font-size: .73rem; }
.calc-result strong { display: block; color: #fff; font-size: 1.5rem; line-height: 1.2; }
.calc-result small { max-width: 290px; color: #bcd0e4; font-size: .66rem; line-height: 1.4; text-align: right; }
.calc-start-field { margin: 18px 0 0; }
.calc-start-field label { color: #d9e7f4; }
.calc-start-field input { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: var(--navy); background: #fff; }
.calc-restricted, .js-calc-warning { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; color: #5e4306 !important; background: var(--amber-soft); font-size: .72rem !important; }
.js-full-card-link { display: inline-block; margin-top: 13px; color: #fff; font-size: .76rem; font-weight: 750; }
.is-compact .calc-result { display: block; }
.is-compact .calc-result small { display: block; max-width: none; margin-top: 8px; text-align: left; }
.is-compact .calc-grid { grid-template-columns: repeat(3, 1fr); }

.factor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.factor { display: flex; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.factor-number { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: #eaf3ff; font-size: .78rem; font-weight: 850; }
.factor strong { display: block; color: var(--navy); font-size: .88rem; }
.factor p { margin: 4px 0 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.48; }

.warning-box { padding: 22px 24px; border: 1px solid #f1d188; border-radius: 14px; background: var(--amber-soft); }
.warning-box h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; color: #674600; font-size: 1.12rem; }
.warning-box ul { margin: 0; padding-left: 20px; color: #664d19; font-size: .84rem; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border: 0; color: var(--navy); background: transparent; text-align: left; font-weight: 770; }
.faq-question::after { content: "+"; color: var(--blue); font-size: 1.3rem; }
.faq-item.is-open .faq-question::after { content: "–"; }
.faq-answer { display: block; padding: 0 28px 18px 0; color: var(--ink-soft); font-size: .88rem; }
.js .faq-answer { display: none; }
.js .faq-item.is-open .faq-answer { display: block; }
.faq-answer p { margin: 0; }

.source-list { margin: 0; padding: 0; list-style: none; }
.source-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.source-list li:last-child { border-bottom: 0; }
.source-list a { display: inline-flex; align-items: center; gap: 6px; font-weight: 760; }
.source-list small { display: block; margin-top: 2px; color: var(--ink-soft); }

.sidebar-box { margin-bottom: 18px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.sidebar-box h2 { margin: 0 0 13px; color: var(--navy); font-size: 1.02rem; }
.toc-list { margin: 0; padding: 0; list-style: none; }
.toc-list li + li { margin-top: 8px; }
.toc-list a { color: var(--ink-soft); font-size: .78rem; text-decoration: none; }
.toc-list a:hover { color: var(--blue); }
.editorial-stamp { display: flex; gap: 11px; align-items: center; }
.stamp-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--green); background: #e8f7f0; }
.editorial-stamp strong { display: block; color: var(--navy); font-size: .82rem; }
.editorial-stamp span { display: block; color: var(--ink-soft); font-size: .69rem; line-height: 1.4; }
.affiliate-box { border-color: #c9def5; background: #f7fbff; }
.affiliate-box p { color: var(--ink-soft); font-size: .76rem; }
.affiliate-box ul { padding-left: 18px; color: var(--ink); font-size: .76rem; }
.affiliate-button { display: block; padding: 10px 13px; border-radius: 10px; color: #fff; background: var(--blue); text-align: center; text-decoration: none; font-size: .78rem; font-weight: 780; }

.ad-slot { margin: 28px 0; display: grid; place-items: center; contain: layout; }
.ad-slot--ad-inline-1, .ad-slot--ad-inline-2 { min-height: 280px; }
.ad-slot--ad-sidebar { min-height: 600px; }
.ad-placeholder { width: 100%; padding: 17px; border: 1px dashed #becbd8; border-radius: 12px; color: #83909c; background: #fafcfe; text-align: center; font-size: .72rem; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.related-card { position: relative; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.related-card a { color: var(--navy); text-decoration: none; font-weight: 740; }
.related-card a::after { content: ""; position: absolute; inset: 0; }
.related-card span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .73rem; }

.archive-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 34px; padding: 48px 0 76px; }
.filters { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.filters h2 { margin: 0 0 12px; color: var(--navy); font-size: .98rem; }
.filters ul { margin: 0; padding: 0; list-style: none; }
.filters li + li { margin-top: 8px; }
.filters a { color: var(--ink-soft); font-size: .8rem; text-decoration: none; }
.filters a:hover { color: var(--blue); }
.pagination { margin-top: 35px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { min-width: 40px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; text-align: center; text-decoration: none; }
.page-numbers.current { color: #fff; border-color: var(--blue); background: var(--blue); }

.entry-shell { padding: 55px 0 78px; }
.entry-header { margin-bottom: 27px; }
.entry-title { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.entry-meta { margin-top: 12px; color: var(--ink-soft); font-size: .76rem; }
.page-content-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }

.site-footer { color: #cbd7e5; background: var(--navy); }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 42px; padding: 56px 0 42px; }
.footer-brand .brand-link { color: #fff; }
.footer-brand p { max-width: 360px; margin: 15px 0 0; color: #aebed0; font-size: .82rem; }
.footer-col h2 { margin: 0 0 13px; color: #fff; font-size: .88rem; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: #aebed0; font-size: .78rem; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding: 20px 0 27px; border-top: 1px solid rgba(255,255,255,.1); color: #8fa2b7; font-size: .7rem; }

.empty-state { padding: 45px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: center; }
.empty-state h2 { margin-top: 0; color: var(--navy); }
.notice-note { padding: 14px 16px; border-left: 4px solid var(--blue); background: #eff6ff; color: var(--ink-soft); font-size: .82rem; }

@media (max-width: 1050px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .card-layout { grid-template-columns: minmax(0,1fr) 280px; }
  .footer-main { grid-template-columns: 1.3fr repeat(3, .7fr); gap: 28px; }
}

@media (max-width: 860px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: grid; margin-left: auto; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 13px 20px 20px; border-bottom: 1px solid var(--line); background: #fff; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li + li { margin-top: 8px; }
  .primary-nav a { display: block; padding: 9px 3px; }
  .header-search-button { display: grid; }
  .hero { padding: 62px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-visual { min-height: 320px; }
  .clock-board { width: 320px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .mini-calculator { grid-template-columns: 1fr; gap: 30px; }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .card-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .article-sidebar > .sidebar-box:first-child { position: static; }
  .ad-slot--ad-sidebar { min-height: 280px; }
  .archive-layout { grid-template-columns: 1fr; }
  .filters ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .filters li + li { margin-top: 0; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 54px 0; }
  .hero { padding: 48px 0 54px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-copy { font-size: 1rem; }
  .hero-search { padding: 5px; }
  .hero-search button { padding-inline: 14px; }
  .hero-visual { min-height: 270px; }
  .clock-board { width: 260px; border-radius: 29px; }
  .clock-face { inset: 48px; }
  .visual-card { font-size: .7rem; }
  .visual-card--one { left: 0; }
  .visual-card--two { right: 0; }
  .cards-grid, .category-grid, .factor-grid, .related-grid { grid-template-columns: 1fr; }
  .category-grid { gap: 10px; }
  .category-tile { display: flex; align-items: center; gap: 13px; text-align: left; }
  .category-tile .material-icon { margin: 0; }
  .mini-calculator { padding: 27px 20px; border-radius: 21px; }
  .field-row, .calc-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-block; margin-top: 12px; }
  .timeline { grid-template-columns: 1fr; gap: 18px; padding: 0; }
  .timeline::before { top: 12px; bottom: 12px; left: 13px; right: auto; width: 3px; height: auto; }
  .timeline-step { display: grid; grid-template-columns: 27px 1fr; column-gap: 14px; padding: 0; text-align: left; }
  .timeline-dot { grid-row: 1 / span 3; margin: 2px 0 0; }
  .calc-result { display: block; }
  .calc-result small { display: block; margin-top: 10px; text-align: left; }
  .article-sidebar { display: block; }
  .footer-main { grid-template-columns: 1fr; gap: 29px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 6px; }
}

@media (max-width: 440px) {
  .search-form { flex-direction: column; gap: 8px; }
  .search-field, .search-submit { width: 100%; border-radius: 12px; }
}

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

@media print {
  .site-header, .site-footer, .article-sidebar, .ad-slot, .card-calculator, .related-grid { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .card-layout { display: block; padding: 0; }
  .answer-box, .warning-box { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
