/*
Theme Name:   AegisFuse
Theme URI:    https://aegisfuse.com/
Description:  Child theme of Hello Elementor for aegisfuse.com. Design system from the approved prototype (diseno/project/af.css): engineering drawing and electrical schematic, Archivo, fuse amber accent.
Author:       AegisFuse LLC
Template:     hello-elementor
Version:      1.0.34
Requires PHP: 8.1
Text Domain:  aegisfuse
*/

/* AegisFuse — shared styles for the prototype (and the reference for the Elementor build).
   Idea: engineering drawing + electrical schematic. A fuse protects a circuit; the aegis is a shield.
   One accent (fuse amber) for actions and the "armed" state; schematic blue for lines and links. */

:root {
  --paper: #F4F6F7;
  --sheet: #FFFFFF;
  --ink: #121A2B;
  --ink-2: #1B2640;
  --graphite: #4B5568;
  --line: #D5DCE3;
  --line-strong: #A9B5C3;
  --blue: #2F5FC4;
  --blue-soft: #E7EEFA;
  --amber: #F5B700;
  --amber-hover: #E3A800;
  --amber-ink: #7A5000;
  --on-ink: #E9EEF6;
  --on-ink-muted: #AAB6C7;
  --ok: #2F8F6B;
  --font: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px;
}

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
/* Hello Elementor's reset draws a 2px black ring (lost on dark sections) with these stronger selectors; repeat them so ours wins. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; box-shadow: none; }
.af-dark :focus-visible, .af-dark [tabindex]:not([tabindex="-1"]):focus-visible { outline-color: var(--amber); }
::selection { background: var(--amber); color: var(--ink); }

/* Layout */
.af-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.af-section { padding-block: clamp(64px, 8vw, 120px); }
.af-section--tight { padding-block: clamp(48px, 6vw, 80px); }
.af-sheet { background: var(--sheet); }
.af-dark { background: var(--ink); color: var(--on-ink); }
.af-dark a { color: #9DB8F2; }
.af-dark a:hover { color: #FFFFFF; }
.af-dark .af-on-light { color: var(--ink); }
.af-dark .af-on-light .af-muted { color: var(--graphite); }
.af-dark .af-on-light a { color: var(--blue); }
.af-grid-bg {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(47, 95, 196, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 95, 196, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.af-dark.af-grid-bg {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(170, 182, 199, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 182, 199, .07) 1px, transparent 1px);
}

/* Type */
.af-h1, .af-h2, .af-h3, .af-display { font-family: var(--font); margin: 0; text-wrap: balance; }
.af-display { font-size: clamp(2.45rem, 1.5rem + 2.5vw, 3.75rem); line-height: 1.02; font-weight: 720; font-stretch: 116%; letter-spacing: -.015em; }
.af-h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); line-height: 1.04; font-weight: 700; font-stretch: 118%; letter-spacing: -.01em; }
.af-h2 { font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.9rem); line-height: 1.08; font-weight: 680; font-stretch: 115%; letter-spacing: -.005em; }
.af-h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 640; font-stretch: 108%; }
.af-lead { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.55; color: var(--graphite); max-width: 62ch; margin: 0; text-wrap: pretty; }
.af-dark .af-lead { color: var(--on-ink-muted); }
.af-body { max-width: 68ch; margin: 0; text-wrap: pretty; }
.af-muted { color: var(--graphite); }
.af-dark .af-muted { color: var(--on-ink-muted); }
.af-small { font-size: .9375rem; line-height: 1.55; }
.af-code { font-family: var(--mono); font-size: .875rem; }

/* Buttons */
.af-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 6px; border: 1.5px solid transparent;
  font-family: var(--font); font-size: 1rem; font-weight: 640; font-stretch: 105%; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center; text-wrap: balance;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.af-btn:active { transform: translateY(1px); }
.af-btn--primary { background: var(--amber); color: var(--ink); }
.af-btn--primary:hover { background: var(--amber-hover); color: var(--ink); }
.af-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.af-btn--ghost:hover { background: var(--ink); color: #FFFFFF; }
.af-btn--ink { background: var(--ink); color: #FFFFFF; }
.af-btn--ink:hover { background: var(--ink-2); color: #FFFFFF; }
.af-dark .af-btn--primary, .af-dark .af-btn--primary:hover { color: var(--ink); }
.af-dark .af-btn--ghost { color: var(--on-ink); border-color: var(--on-ink-muted); }
.af-dark .af-btn--ghost:hover { background: var(--on-ink); color: var(--ink); }
.af-btn svg { flex: none; }

/* Header */
.af-skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 16px; background: var(--ink); color: #FFFFFF; border-radius: 6px; font-weight: 600; text-decoration: none; }
.af-skip:focus { left: 16px; color: #FFFFFF; }
.af-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.af-nav a { color: var(--ink); text-decoration: none; font-weight: 520; font-size: .975rem; padding: 10px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.af-nav a:hover { border-bottom-color: var(--line-strong); }
.af-nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.af-lang a { color: var(--graphite); text-decoration: none; font-size: .9rem; font-weight: 560; padding: 6px 4px; }
.af-lang a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
@media (max-width: 860px) {
  .af-header-cta { display: none; }
}

/* Responsive helpers */
.af-sticky { position: static; }
@media (min-width: 900px) { .af-sticky { position: sticky; top: 104px; } }
.af-only-narrow { display: none !important; }
@media (max-width: 600px) {
  .af-only-wide { display: none !important; }
  .af-only-narrow { display: block !important; }
  .af-track-h { display: none; }
}

/* Lists and rows */
.af-rows > * { border-top: 1px solid var(--line); }
.af-rows > *:last-child { border-bottom: 1px solid var(--line); }
.af-dark .af-rows > * { border-color: rgba(170, 182, 199, .25); }
.af-row-link { color: inherit; text-decoration: none; transition: background-color .2s ease; }
.af-row-link:hover { background: var(--sheet); color: inherit; }
.af-row-link:hover .af-row-arrow { transform: translateX(4px); background: var(--amber); border-color: var(--amber); }
.af-row-arrow { transition: transform .2s ease, background-color .2s ease; }
.af-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.af-check li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.af-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; color: var(--graphite); background: var(--sheet); }
.af-dark .af-tag { background: transparent; color: var(--on-ink-muted); border-color: rgba(170, 182, 199, .35); }

/* Cards (used sparingly; hierarchy varies) */
.af-panel { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; }
.af-panel--ink { background: var(--ink-2); border-color: rgba(170, 182, 199, .2); color: var(--on-ink); }

/* FAQ */
.af-faq details { border-top: 1px solid var(--line); }
.af-faq details:last-child { border-bottom: 1px solid var(--line); }
.af-faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; font-weight: 620; font-size: 1.1rem; font-stretch: 104%; }
.af-faq summary::-webkit-details-marker { display: none; }
/* The accordion's icon slot is empty (no icon set in Elementor): draw a plus that turns into a minus when open. */
.af-faq-q > :last-child { position: relative; width: 24px; min-width: 24px; align-self: center; }
.af-faq-q > :last-child::before, .af-faq-q > :last-child::after { content: ""; position: absolute; left: 5px; width: 14px; top: calc(50% - 1px); height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s ease; }
.af-faq-q > :last-child::after { transform: rotate(90deg); }
.af-faq-item[open] .af-faq-q > :last-child::after { transform: none; }
.af-faq details > div { padding: 0 0 24px; max-width: 68ch; color: var(--graphite); }

/* Forms */
.af-field { display: grid; gap: 8px; }
.af-field label, .af-legend { font-weight: 600; font-size: .975rem; }
.af-input, .af-select, .af-textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 6px;
  background: var(--sheet); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.af-textarea { min-height: 140px; resize: vertical; }
.af-input:focus, .af-select:focus, .af-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 95, 196, .2); }
.af-choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--sheet); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.af-choice:hover { border-color: var(--line-strong); }
.af-choice--on { border-color: var(--ink); background: #FFFBEA; }
.af-choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.af-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero schematic animation: wires draw in, components appear, the fuse arms, current flows. */
.af-wire { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 520; stroke-dashoffset: 520; animation: af-draw 1.1s cubic-bezier(.6, .1, .2, 1) forwards; }
.af-current { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 15; opacity: 0; animation: af-show .4s ease 2.5s forwards, af-flow 1.2s linear 2.5s infinite; }
.af-current--slow { animation-duration: .4s, 1.8s; }
.af-node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: af-pop .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.af-fuse-body { animation: af-arm .6s ease 2.1s forwards; }
.af-fuse-glow { opacity: 0; animation: af-glow 2.4s ease-in-out 2.6s infinite; }
.af-status { opacity: 0; animation: af-show .4s ease 2.8s forwards; }
.af-d1 { animation-delay: .15s; } .af-d2 { animation-delay: .3s; } .af-d3 { animation-delay: .45s; }
.af-d4 { animation-delay: .6s; } .af-d5 { animation-delay: .75s; } .af-d6 { animation-delay: .9s; }
.af-n1 { animation-delay: 1.1s; } .af-n2 { animation-delay: 1.2s; } .af-n3 { animation-delay: 1.3s; }
.af-n4 { animation-delay: 1.4s; } .af-n5 { animation-delay: 1.5s; } .af-n6 { animation-delay: 1.6s; } .af-n7 { animation-delay: 1.8s; }

/* Hero copy: one staggered entrance on load */
.af-enter { opacity: 0; transform: translateY(14px); animation: af-rise .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.af-e1 { animation-delay: .05s; } .af-e2 { animation-delay: .18s; } .af-e3 { animation-delay: .31s; } .af-e4 { animation-delay: .44s; }

/* Diagrams that respond to scroll (defense layers, process track, AI pipeline) */
.af-layer { transition: background-color .3s ease; }
.af-lock { opacity: .25; }
@supports (animation-timeline: view()) {
  .af-scroll-in { animation: af-rise linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
  .af-lock { animation: af-lock linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  .af-track-fill { transform-origin: left center; animation: af-fill linear both; animation-timeline: view(); animation-range: entry 30% cover 60%; }
  .af-track-fill-y { transform-origin: center top; animation: af-fill-y linear both; animation-timeline: view(); animation-range: entry 10% exit 60%; }
}
@supports not (animation-timeline: view()) {
  .af-lock { opacity: 1; }
}

/* Marquee-free stack list; terminal typing for the AI and security panels */
.af-type { overflow: hidden; white-space: nowrap; width: 0; animation: af-typing 1.2s steps(40, end) forwards; }
.af-t1 { animation-delay: .4s; } .af-t2 { animation-delay: 1.5s; } .af-t3 { animation-delay: 2.6s; } .af-t4 { animation-delay: 3.7s; } .af-t5 { animation-delay: 4.8s; }

.af-paused, .af-paused * { animation-play-state: paused !important; }
.af-scan { animation: af-scan 1.6s ease-in-out .3s 2 alternate both; }
@keyframes af-scan { from { transform: translateY(0); opacity: .9; } to { transform: translateY(236px); opacity: .9; } }

@keyframes af-draw { to { stroke-dashoffset: 0; } }
@keyframes af-flow { to { stroke-dashoffset: -36; } }
@keyframes af-show { to { opacity: 1; } }
@keyframes af-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes af-arm { to { fill: var(--amber); } }
@keyframes af-glow { 0%, 100% { opacity: 0; } 50% { opacity: .55; } }
@keyframes af-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes af-lock { from { opacity: .25; } to { opacity: 1; } }
@keyframes af-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes af-fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes af-typing { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .af-current { opacity: .9; }
  .af-fuse-glow { display: none; }
}

/* ===== Site parts rendered by the theme's shortcodes ([af_header], [af_footer]) ===== */
.elementor-location-header { position: sticky; top: 0; z-index: 30; }
.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: 46px; } }
.elementor-location-header .af-header { position: static; }
.af-header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 72px; padding-block: 10px; }
.af-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.af-brand:hover { color: var(--ink); }
.af-brand span { font-size: 1.35rem; font-weight: 720; font-stretch: 118%; letter-spacing: -.01em; line-height: 1; }
.af-brand--dark, .af-brand--dark:hover { color: var(--on-ink); margin-right: 0; }
.af-brand--dark span { font-size: 1.25rem; }
.af-nav { display: flex; align-items: center; gap: 26px; }
.af-header-tools { display: flex; align-items: center; gap: 18px; }
.af-lang { display: flex; align-items: center; gap: 2px; }
.af-header-cta { min-height: 44px; }

.af-footer { color: var(--on-ink); }
.af-footer .af-footer-inner { padding-block: 72px 40px; display: grid; gap: 56px; } /* beats Elementor's .elementor .af-wrap (padding-block 0) */
.af-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px; }
.af-footer-brand { display: grid; gap: 16px; align-content: start; }
.af-footer-brand p { margin: 0; max-width: 34ch; }
.af-footer-col { display: grid; gap: 10px; align-content: start; }
.af-footer-col h2 { margin: 0 0 6px; font-size: 1rem; font-weight: 640; font-stretch: 106%; color: var(--on-ink); font-family: var(--font); }
.af-footer-col a { font-size: .9375rem; text-decoration: none; }
.af-footer-col a:hover { text-decoration: underline; }
.af-footer-col p { margin: 0; }
.af-cookie-settings { justify-self: start; background: none; border: 0; padding: 0; color: #9DB8F2; font: inherit; font-size: .9375rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.af-cookie-settings:hover { color: #FFFFFF; }
.af-titleblock { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border: 1px solid rgba(170, 182, 199, .35); border-radius: 4px; }
.af-titleblock > div { padding: 14px 16px; border-right: 1px solid rgba(170, 182, 199, .25); border-bottom: 1px solid rgba(170, 182, 199, .25); display: grid; gap: 2px; }
.af-titleblock dt { font-size: .8rem; color: var(--on-ink-muted); }
.af-titleblock dd { margin: 0; font-size: .95rem; font-weight: 560; }
.af-footer-copy { margin: 0; }

/* Elementor wrappers around the shortcodes add no spacing of their own */
.elementor-location-header .elementor-shortcode, .elementor-location-footer .elementor-shortcode { line-height: normal; }

/* Elementor prints the kit's link color and the global classes (af-btn) with higher specificity than plain theme
   rules, so the header and footer pieces that must win use doubled selectors or !important on display. */
.af-header a.af-brand, .af-header a.af-brand:hover { color: var(--ink); text-decoration: none; }
.af-footer .af-brand--dark { color: var(--on-ink); }
.af-header .af-nav a { color: var(--ink); }
.af-header .af-lang a { color: var(--graphite); }
.af-header .af-lang a[aria-current="true"] { color: var(--ink); }
.af-footer .af-footer-col a { color: #9DB8F2; }
.af-footer .af-footer-col a:hover { color: #FFFFFF; }
@media (max-width: 860px) {
  .af-header .af-header-cta { display: none !important; }
}

/* ===== Visual shortcodes (inc/visuals.php) and V4 marker classes ===== */
.af-schematic { margin: 0; display: grid; gap: 12px; max-width: 720px; }
.af-schematic-box { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: clamp(12px, 2vw, 24px); }
.af-schematic-box svg { display: block; width: 100%; height: auto; }
.af-schematic-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.af-schematic-cap .af-btn { min-height: 44px; padding: 0 16px; font-size: .9rem; cursor: pointer; }
.af-current--now { animation-delay: 0s, 0s; }

.af-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.af-layers li { background: var(--ink-2); border: 1px solid rgba(170, 182, 199, .2); border-radius: 10px; padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 16px; align-items: center; color: var(--on-ink); }
.af-layers-text { display: grid; gap: 4px; }
.af-layers-text .af-small { color: var(--on-ink-muted); }
.af-layers-name { font-weight: 640; font-size: 1.15rem; font-stretch: 106%; }
.af-layers .af-lock { width: 44px; height: 44px; border-radius: 8px; background: var(--amber); display: grid; place-items: center; }

.af-flow { position: relative; }
.af-flow-line { position: absolute; left: 22px; right: 22px; top: 18px; width: calc(100% - 44px); height: 8px; }
.af-flow ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 28px 24px; }
.af-flow li { display: grid; gap: 10px; align-content: start; }
.af-flow-dot, .af-process-num { width: 44px; height: 44px; border-radius: 999px; background: var(--sheet); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; color: var(--ink); }
.af-flow-dot.is-human { background: var(--amber); }
.af-flow h3, .af-process h3 { margin: 0; font-family: var(--font); font-size: 1.15rem; line-height: 1.3; font-weight: 640; font-stretch: 108%; color: var(--ink); }
.af-flow p, .af-process p { margin: 0; }
@media (max-width: 600px) { .af-flow-line { display: none; } }

.af-process { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 32px 24px; }
.af-process > li { position: relative; display: grid; gap: 12px; align-content: start; }
.af-process > li.af-track-h { position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--line); }
.af-track-fill { display: block; height: 100%; background: var(--amber); }
.af-process-out { font-weight: 600; }

.af-check-item::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F8F6B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 20px 20px; }
.af-row-arrow { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121A2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 18px 18px; transition: transform .2s ease, background-color .2s ease; }
.af-row-link:hover .af-row-arrow { transform: translateX(4px); background-color: var(--amber); }
.af-row-link .e-paragraph-base, .af-row-link .e-heading-base { cursor: pointer; }

/* ===== Inner-page visual shortcodes (inc/visuals-pages.php) ===== */
.af-muted-dark { color: var(--on-ink-muted); }
.af-figure { margin: 0; display: grid; gap: 10px; }
.af-figure figcaption { margin: 0; }
.af-panel-box { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 2.5vw, 30px); color: var(--ink); }
.af-targets-title { margin: 0 0 18px; font-weight: 640; }
.af-targets ul, .af-findings ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.af-targets li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; }
.af-tick { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; }
.af-targets-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.af-log { background: var(--ink-2); border: 1px solid rgba(170, 182, 199, .2); border-radius: 10px; padding: clamp(18px, 2.5vw, 28px); color: var(--on-ink); overflow-x: auto; }
.af-log-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(170, 182, 199, .25); font-weight: 640; }
.af-log-head .af-small { color: var(--on-ink-muted); font-weight: 400; display: inline-flex; align-items: center; gap: 8px; }
.af-dot-ok { width: 8px; height: 8px; border-radius: 999px; background: #3FBF8F; display: inline-block; }
.af-log-rows { display: grid; gap: 10px; min-width: 460px; font-family: var(--mono); font-size: .84rem; }
.af-log-rows > div { display: grid; grid-template-columns: 76px 110px 150px 1fr; gap: 12px; }
.af-log-rows span:nth-child(1), .af-log-rows span:nth-child(3) { color: var(--on-ink-muted); }
.af-log-ok { color: var(--amber); }

.af-findings-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 680; font-stretch: 108%; }
.af-findings li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.af-findings-text { display: grid; gap: 2px; font-weight: 600; font-size: .975rem; }
.af-findings-text .af-small { font-weight: 400; }
.af-sev { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; border: 1.5px solid; }
.af-sev--high { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.af-sev--medium { background: var(--sheet); color: #1F4BA8; border-color: var(--blue); }
.af-sev--low { background: var(--sheet); color: var(--graphite); border-color: var(--line-strong); }
.af-findings-retest { margin: 16px 0 0; }
.af-dark .af-panel-box .af-muted { color: var(--graphite); }

.af-invoice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.af-invoice-doc { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #FBFCFD; min-height: 280px; }
.af-invoice-doc p { margin: 0 0 14px; font-weight: 640; }
.af-invoice-lines { display: grid; gap: 10px; }
.af-invoice-lines span { height: 10px; background: #E4E9EE; border-radius: 3px; display: block; }
.af-invoice-lines span:nth-child(-n+2) { background: var(--line); }
.af-invoice-lines span:nth-child(3) { margin-top: 12px; }
.af-invoice-lines .af-invoice-total { width: 40%; height: 14px; background: var(--line-strong); margin-top: 12px; justify-self: end; }
.af-invoice-doc .af-scan { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--blue); box-shadow: 0 0 0 4px rgba(47, 95, 196, .12); }
.af-invoice-fields { display: grid; gap: 10px; align-content: start; }
.af-invoice-fields p { margin: 0; }
.af-invoice-field { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--sheet); }
.af-invoice-field.is-flagged { border-color: var(--amber); }
.af-invoice-value { grid-column: 1 / -1; font-weight: 600; }
.af-flag { color: var(--amber-ink); font-weight: 640; }

.af-code-box { background: var(--ink-2); border: 1px solid rgba(170, 182, 199, .2); border-radius: 10px; overflow: hidden; color: var(--on-ink); }
.af-code-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(170, 182, 199, .25); }
.af-code-head .af-small { color: var(--on-ink-muted); }
.af-code-box pre { margin: 0; padding: 18px; overflow-x: auto; line-height: 1.7; color: var(--on-ink); font-size: .84rem; background: transparent; border: 0; white-space: pre; }
.af-code-box .c-mute { color: var(--on-ink-muted); }
.af-code-box .c-fn { color: #9DB8F2; }
.af-code-box .c-str { color: var(--amber); }

.af-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.af-docs li { display: grid; gap: 12px; align-content: start; }
.af-docs h3 { margin: 0; font-family: var(--font); font-size: 1.05rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.af-docs p { margin: 0; }
.af-doc { aspect-ratio: 3 / 4; background: var(--sheet); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: grid; align-content: start; gap: 9px; box-shadow: 6px 6px 0 var(--blue-soft); }
.af-doc span { height: 6px; background: var(--line); border-radius: 2px; display: block; }
.af-doc .af-doc-brand { height: auto; background: none; font-size: .8rem; font-weight: 700; font-stretch: 112%; color: var(--ink); }
.af-doc .af-doc-title { height: 8px; width: 70%; background: var(--ink); margin-top: 8px; }
.af-doc .af-doc-block { height: 22px; background: var(--blue-soft); margin-top: 8px; }

.af-about-mark { display: grid; place-items: center; }
.af-about-mark svg { width: 100%; max-width: 440px; height: auto; }

.af-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 40px; }
.af-posts article { display: grid; gap: 10px; align-content: start; padding-block: 28px; border-top: 1px solid var(--line); }
.af-posts h2 { margin: 0; font-family: var(--font); font-size: 1.35rem; line-height: 1.3; font-weight: 660; font-stretch: 106%; }
.af-posts h2 a { color: var(--ink); text-decoration: none; }
.af-posts h2 a:hover { text-decoration: underline; }
.af-posts p { margin: 0; }
.af-posts .af-tag { justify-self: start; }

/* Vertical timeline on "How we work": a line behind the numbered steps */
.af-timeline { position: relative; }
.af-timeline::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
@supports (animation-timeline: view()) {
  .af-timeline::after { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--amber); transform-origin: center top; animation: af-fill-y linear both; animation-timeline: view(); animation-range: entry 10% exit 60%; }
}
@media (prefers-reduced-motion: reduce) { .af-timeline::after { display: none; } }

/* Links inside V4 paragraphs: always underlined (WCAG 1.4.1), with a readable color on each ground */
.e-paragraph-base a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.af-bg-amber a, .af-bg-amber a:hover { color: var(--ink); font-weight: 640; }
.af-dark .e-paragraph-base a { color: #9DB8F2; }
.af-dark .e-paragraph-base a:hover { color: #FFFFFF; }

/* Buttons rendered by shortcodes (header CTA, floating button, schematic toggle) must not depend on Elementor
   printing the global classes on that page, and must beat the kit's link color (.elementor-kit-N a). */
a.af-btn, button.af-btn { text-decoration: none; }
a.af-btn--primary, a.af-btn--primary:hover { background-color: var(--amber); color: var(--ink); border: 1.5px solid var(--amber); }
a.af-btn--primary:hover { background-color: var(--amber-hover); border-color: var(--amber-hover); }
a.af-btn--ink, a.af-btn--ink:hover { background-color: var(--ink); color: #FFFFFF; border: 1.5px solid var(--ink); }
a.af-btn--ghost, button.af-btn--ghost { background-color: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
a.af-btn--ghost:hover, button.af-btn--ghost:hover { background-color: var(--ink); color: #FFFFFF; }

/* Contact form. Elementor's V4 checkbox has appearance: none and no ticked state, so it is drawn here; the whole row
   is highlighted too, so the choice is visible at a glance. */
.af-checkbox.e-form-checkbox-base { cursor: pointer; }
.af-checkbox.e-form-checkbox-base:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat; border-color: var(--ink); }
.af-choice-row:has(.af-checkbox:checked) { border-color: var(--ink); background-color: var(--blue-soft); }
.af-choice-row label { cursor: pointer; }
.af-form :is(input, textarea, select):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Plain list items (V4 has no list tags): a short dash in the text color. */
.af-bullet::before { content: ""; position: absolute; left: 2px; top: .78em; width: 10px; height: 2px; background-color: currentColor; opacity: .7; }

/* Tablet widths: the full header (and the longer Spanish menu) doesn't fit on one line. Tighten the spacing first;
   where it still doesn't fit, the menu gets its own scrolling row and the button stays in the first row. */
@media (min-width: 861px) and (max-width: 1180px) {
  .af-header-row { column-gap: 20px; }
  .af-header .af-nav { gap: 18px; }
  .af-header-tools { gap: 14px; }
}
@media (min-width: 861px) and (max-width: 950px) {
  .af-header .af-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
}
@media (min-width: 861px) and (max-width: 1079px) {
  html:lang(es) .af-header .af-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
}

/* 404 ([af_404] in the error-404 site part) */
.af-404 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: center; padding-block: clamp(64px, 9vw, 140px); }
.af-404-copy { display: grid; gap: 24px; align-content: start; }
.af-404-copy > p, .af-404-copy > h1 { margin: 0; }
.af-404-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.af-404-links a { font-weight: 600; }
.af-404-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.af-main:focus { outline: none; }

/* ===== Phone header (≤860 px): logo, the other language, and a Menu button. The links live in a panel below the
   header (js/header.js), as large rows with the button and the contact email. ===== */
.af-menu-toggle, .af-lang-short, .af-menu-panel { display: none; }
.af-menu-panel[hidden] { display: none !important; }
@media (max-width: 860px) {
  .af-header-row { flex-wrap: nowrap; gap: 12px; min-height: 64px; padding-block: 8px; }
  .af-header .af-nav, .af-header .af-lang { display: none; }
  .af-header-tools { gap: 8px; }
  .af-header a.af-lang-short { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 6px; color: var(--ink); font-size: .95rem; font-weight: 640; text-decoration: none; }
  .af-header a.af-lang-short:hover { background-color: var(--sheet); }
  .af-menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border: 1.5px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: .95rem; font-weight: 640; line-height: 1; cursor: pointer; }
  .af-menu-toggle[aria-expanded="true"] { background-color: var(--ink); color: #FFFFFF; }
  .af-menu-icon path { transform-box: view-box; transform-origin: 12px 12px; transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  .af-menu-toggle[aria-expanded="true"] .af-menu-icon-top { transform: rotate(45deg) translateY(4px); }
  .af-menu-toggle[aria-expanded="true"] .af-menu-icon-bottom { transform: rotate(-45deg) translateY(-4px); }

  .af-menu-panel:not([hidden]) { position: fixed; top: 64px; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px max(24px, env(safe-area-inset-bottom)); background-color: var(--paper); border-top: 1px solid var(--line); animation: af-menu-in .22s cubic-bezier(.2, .8, .2, 1); }
  .af-menu-panel .af-menu-nav { display: grid; }
  .af-menu-panel .af-menu-nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.375rem; font-weight: 640; font-stretch: 108%; letter-spacing: -.01em; text-decoration: none; }
  .af-menu-panel .af-menu-nav a svg { flex: none; color: var(--graphite); }
  .af-menu-panel .af-menu-nav a[aria-current="page"] span { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 7px; }
  .af-menu-panel .af-menu-cta { width: 100%; }
  .af-menu-panel .af-menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
  .af-menu-panel .af-menu-langs { display: flex; gap: 4px; }
  .af-menu-panel .af-menu-langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; color: var(--graphite); font-weight: 600; text-decoration: none; }
  .af-menu-panel .af-menu-langs a[aria-current="true"] { border-color: var(--line-strong); background-color: var(--sheet); color: var(--ink); }
  .af-menu-panel .af-menu-mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; }
  html.af-menu-open, html.af-menu-open body { overflow: hidden; }
}
@media (max-width: 359px) {
  .af-brand span { font-size: 1.15rem; }
  .af-menu-toggle { padding: 0 11px; }
  .af-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@keyframes af-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Scroll-driven reveals ignore animation-duration, so with reduced motion they are switched off and shown as-is. */
@media (prefers-reduced-motion: reduce) {
  .af-scroll-in, .af-lock, .af-track-fill, .af-track-fill-y { animation: none !important; opacity: 1 !important; transform: none !important; }
  .af-menu-panel:not([hidden]) { animation: none; }
  .af-menu-icon path { transition: none; }
  .af-schematic .af-motion-toggle { display: none; } /* nothing moves, so there is nothing to pause */
}

/* dsl.js div() writes a local "padding: 0", and Elementor's local styles beat the global classes' own padding.
   shortcut: patched here for the rows that lost it; remove when div() stops forcing padding and the pages are rebuilt. */
#content .af-rule, #content .af-split-top > .af-row.af-stack-tight { padding-top: 20px; }
#content .af-choice-row { padding: 12px 16px; }

/* Tap targets. Links outside running text get at least 24 px (WCAG 2.2, 2.5.8) and about 40 px on touch screens.
   In-content navigation (breadcrumbs, "on this page", legal menu) grows its hit area without moving the layout. */
.af-footer .af-footer-col a, .af-footer .af-cookie-settings { display: inline-block; padding-block: 4px; }
#content nav a, #content p.af-link > a { display: inline-block; padding-block: 6px; margin-block: -6px; }
.af-404-links { gap: 0; }
.af-404-links a { display: inline-block; padding-block: 8px; }
@media (pointer: coarse) {
  .af-footer .af-footer-col { gap: 0; }
  .af-footer .af-footer-col h2 { margin-bottom: 4px; }
  .af-footer .af-footer-col a, .af-footer .af-cookie-settings { padding-block: 10px; }
  #content nav a, #content p.af-link > a { padding-block: 12px; margin-block: -12px; }
}

/* Form: the whole choice row toggles its checkbox, not only the box and its text. */
.af-choice-row { position: relative; }
.af-choice-row label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Phones: buttons in a row share the width, so stacked buttons line up instead of ending at random widths. */
@media (max-width: 600px) {
  #content .af-row-wrap > .af-btn, #content .af-row-wrap > a.af-btn, .af-404-actions .af-btn { flex: 1 1 100%; }
  .af-findings li { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 8px; }
}

/* Footer title block labels were 12.8 px. */
.af-titleblock dt { font-size: .875rem; }

/* ===== Cookie consent (inc/consent.php, js/consent.js). The banner only exists when there is an optional service;
   Accept and Reject have the same weight. The dialog is a native <dialog> (focus stays inside, Escape closes). ===== */
.af-consent-banner { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin-inline: auto; display: grid; gap: 12px; padding: 20px 22px; background-color: var(--sheet); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 32px rgba(18, 26, 43, .18); }
.af-consent-banner[hidden], .af-consent-gpc[hidden] { display: none; }
.af-consent-title { margin: 0; font-family: var(--font); font-size: 1.1rem; font-weight: 660; font-stretch: 106%; color: var(--ink); }
.af-consent-banner p { margin: 0; color: var(--graphite); font-size: .975rem; line-height: 1.5; }
.af-consent-banner a, .af-consent-dialog a.af-consent-policy { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.af-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.af-consent-link { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 600px) {
  .af-consent-banner { left: 8px; right: 8px; bottom: 8px; gap: 10px; padding: 16px; }
  .af-consent-banner p { font-size: .9375rem; }
  .af-consent-banner .af-btn { flex: 1 1 40%; min-height: 44px; padding-block: 8px; }
  .af-consent-banner .af-consent-link { min-height: 40px; }
}

.af-consent-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background-color: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(18, 26, 43, .3); }
.af-consent-dialog::backdrop { background-color: rgba(18, 26, 43, .55); }
.af-consent-form { display: grid; gap: 16px; padding: 28px; }
.af-consent-form h2 { margin: 0; font-family: var(--font); font-size: 1.5rem; font-weight: 700; font-stretch: 112%; line-height: 1.15; color: var(--ink); }
.af-consent-form p { margin: 0; color: var(--graphite); line-height: 1.55; }
.af-consent-form p.af-consent-gpc { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background-color: var(--blue-soft); color: var(--ink); }
.af-consent-groups { display: grid; border-top: 1px solid var(--line); }
.af-consent-group { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.af-consent-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.af-consent-group h3 { margin: 0; font-family: var(--font); font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.af-consent-always { font-size: .875rem; font-weight: 600; color: var(--ink); }
.af-consent-form p.af-consent-none { padding: 16px 0; border-bottom: 1px solid var(--line); }
.af-consent-switch { appearance: none; position: relative; flex: none; width: 48px; height: 28px; margin: 0; border-radius: 999px; background-color: var(--graphite); cursor: pointer; transition: background-color .15s; }
.af-consent-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background-color: #FFFFFF; box-shadow: 0 1px 3px rgba(18, 26, 43, .3); transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.af-consent-switch:checked { background-color: var(--blue); }
.af-consent-switch:checked::after { transform: translateX(20px); }
.af-consent-switch:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 600px) { .af-consent-form { padding: 22px 18px; } .af-consent-form .af-btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .af-consent-switch, .af-consent-switch::after { transition: none; } }

/* ===== Article (single-post.php). Reading measure about 70 characters, left-aligned with the title. ===== */
.af-article-head { border-bottom: 1px solid var(--line); }
.af-article-head .af-wrap { display: grid; gap: 20px; justify-items: start; padding-block: clamp(40px, 6vw, 88px); }
.af-article-head .af-tag { margin: 0; }
.af-article-title { max-width: 22ch; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
.af-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: 100%; font-size: .9375rem; color: var(--graphite); }
.af-crumbs a { display: inline-block; padding-block: 6px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.af-crumbs span[aria-hidden] { color: var(--line-strong); }
.af-crumbs [aria-current] { max-width: 32ch; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.af-article-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .975rem; color: var(--graphite); }
.af-article-meta a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.af-article-figure { margin-top: clamp(32px, 5vw, 56px); }
.af-article-figure img { display: block; width: 100%; max-width: 64rem; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.af-article-figure figcaption { margin-top: 10px; font-size: .9375rem; color: var(--graphite); }
.af-article-body { display: grid; gap: 56px; padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }

.af-prose { max-width: 42rem; font-size: 1.125rem; line-height: 1.72; color: var(--ink); overflow-wrap: break-word; }
.af-prose > * { margin: 0; }
.af-prose > * + * { margin-top: 1.15em; }
.af-prose h2 { margin-top: 2.1em; font-family: var(--font); font-size: clamp(1.5rem, 1.3rem + .8vw, 1.85rem); line-height: 1.2; font-weight: 700; font-stretch: 112%; letter-spacing: -.005em; text-wrap: balance; }
.af-prose h3 { margin-top: 1.8em; font-family: var(--font); font-size: 1.3rem; line-height: 1.3; font-weight: 660; font-stretch: 106%; }
.af-prose h4 { margin-top: 1.6em; font-size: 1.1rem; font-weight: 650; }
.af-prose :is(h2, h3, h4) + * { margin-top: .55em; }
.af-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.af-prose a:hover { color: var(--ink); }
.af-prose :is(ul, ol) { padding-left: 1.35em; }
.af-prose li + li { margin-top: .45em; }
.af-prose li::marker { color: var(--graphite); }
.af-prose strong { font-weight: 650; }
.af-prose blockquote { padding: 2px 0 2px 22px; border-left: 1px solid var(--line-strong); font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); }
.af-prose blockquote cite { display: block; margin-top: 8px; font-size: .95rem; font-style: normal; color: var(--graphite); }
.af-prose code { padding: .1em .35em; border-radius: 4px; background-color: var(--blue-soft); font-family: var(--mono); font-size: .88em; }
.af-prose pre { padding: 18px 20px; border-radius: 8px; background-color: var(--ink-2); color: var(--on-ink); font-size: .9rem; line-height: 1.6; overflow-x: auto; }
.af-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.af-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.af-prose figure { margin-block: 2em; }
.af-prose figcaption { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--graphite); }
.af-prose .wp-block-table { overflow-x: auto; }
.af-prose table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.af-prose :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.af-prose th { font-weight: 650; border-bottom-color: var(--ink); }
.af-prose hr { margin-block: 2.5em; border: 0; border-top: 1px solid var(--line); }

.af-article-author { display: grid; gap: 8px; max-width: 42rem; padding-top: 24px; border-top: 2px solid var(--ink); }
.af-article-author p { margin: 0; }
.af-article-author-name { font-weight: 650; font-size: 1.05rem; }
.af-article-author a { display: inline-block; padding-block: 6px; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.af-article-more { background-color: var(--sheet); border-top: 1px solid var(--line); }
.af-article-more .af-wrap { display: grid; gap: 28px; }
.af-article-more .af-posts h3 { margin: 0; font-family: var(--font); font-size: 1.3rem; line-height: 1.3; font-weight: 660; font-stretch: 106%; }
.af-article-more .af-posts h3 a { color: var(--ink); text-decoration: none; }
.af-article-more .af-posts h3 a:hover { text-decoration: underline; }
.af-article-cta { background-color: var(--amber); }
.af-article-cta .af-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(56px, 7vw, 96px); }
.af-article-cta p { margin: 12px 0 0; max-width: 52ch; font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
@media (max-width: 600px) { .af-article-cta .af-btn { flex: 1 1 100%; } }

/* Hello Elementor's reset paints every button pink (#c36) on :hover and :focus, with selectors as strong as the
   theme's. Restate the theme's colors for each button it draws (form submit, menu, consent, schematic pause). */
button.af-btn--primary:is(:hover, :focus) { background-color: var(--amber-hover); border-color: var(--amber-hover); color: var(--ink); }
button.af-btn--ink:is(:hover, :focus) { background-color: var(--ink-2); border-color: var(--ink-2); color: #FFFFFF; }
button.af-btn--ghost:is(:hover, :focus) { background-color: var(--ink); border-color: var(--ink); color: #FFFFFF; }
button.af-menu-toggle:is(:hover, :focus) { background-color: var(--sheet); color: var(--ink); }
button.af-menu-toggle[aria-expanded="true"]:is(:hover, :focus) { background-color: var(--ink); color: #FFFFFF; }
button.af-cookie-settings:is(:hover, :focus) { background: none; color: #FFFFFF; }
button.af-consent-link:is(:hover, :focus) { background: none; color: var(--ink); }

/* Article tables: horizontal rules only (WordPress draws a full grid and Hello stripes odd rows). */
.af-prose .wp-block-table thead { border-bottom: 0; }
.af-prose .wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid var(--line); }
.af-prose .wp-block-table th { border-bottom: 1.5px solid var(--ink); }
.af-prose table tbody > tr:nth-child(odd) > :is(td, th) { background-color: transparent; }
.af-prose pre { tab-size: 4; }

/* Private form where a founder fills in his own data ([af_founder_form], inc/founder-form.php), on Hello's plain page template. */
.af-founder, .af-founder-pass { max-width: 720px; display: grid; gap: 20px; }
.af-founder-form { display: grid; gap: 24px; }
.af-founder-lead, .af-founder-hint { margin: 0; color: var(--graphite); }
.af-founder-hint { font-size: .92rem; }
.af-founder-note { margin: 0; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--sheet); }
.af-founder-note.is-ok { border-color: var(--ok); }
.af-founder-note.is-err { border-color: #B3261E; color: #8C1D18; }
.af-founder .af-btn, .af-founder-pass .af-btn { justify-self: start; }
/* Plain WordPress pages (not built with Elementor), so far only that form: the site's gutter, spacing and title
   instead of Hello's narrow 10 px-gutter column, and Hello's centred password box aligned with the content. */
body:not([class*=elementor-page-]) .site-main.type-page { max-width: var(--wrap); padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px) clamp(64px, 8vw, 112px); }
.site-main.type-page .page-header .entry-title { max-width: none; padding: 0; margin: 0 0 24px; font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 760; font-stretch: 118%; line-height: 1.05; text-wrap: balance; }
.af-founder-pass { margin: 0; }
.af-founder-pass p { display: block; margin: 0; }

/* Founder photos ([af_founder_photo], inc/visuals-pages.php): fixed sizes, so the Elementor container around them (two classes,
   because Elementor's ".elementor img" resets radius and max-width)
   only has to not stretch. Placeholder until a photo exists: the same dashed grid box the pages used before. */
.af-founder-img { display: flex; align-items: center; justify-content: center; object-fit: cover; flex-shrink: 0; }
.af-founder-img.af-founder-img--home, .af-founder-img.af-founder-img--card { border-radius: 50%; }
.af-founder-img.af-founder-img--home { width: 96px; height: 96px; }
.af-founder-img.af-founder-img--card { width: 72px; height: 72px; }
.af-founder-img.af-founder-img--about { width: 100%; max-width: 280px; height: auto; aspect-ratio: 1; border-radius: 10px; } /* two classes: Elementor's ".elementor img { max-width: 100% }" is stronger than one */
@media (max-width: 767px) { .af-founder-img.af-founder-img--home { width: 72px; height: 72px; } }
.af-founder-img.is-empty { border: 1px dashed var(--line-strong); color: var(--graphite); font-size: .85rem; background-color: var(--paper); background-image: linear-gradient(rgba(47, 95, 196, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 95, 196, .07) 1px, transparent 1px); background-size: 24px 24px; }
