/*
Theme Name: Yameveo Sentinel ES
Theme URI: https://yameveo.com
Author: Yameveo
Author URI: https://yameveo.com
Description: Yameveo S.L. — Spanish site. Built from the Yameveo Design System (Sentinel Classic). Customer-facing positioning, distinct from the Bulgarian engineering site at yameveo.ai.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Apache License 2.0
License URI: http://www.apache.org/licenses/LICENSE-2.0
Text Domain: yameveo-es
Tags: one-column, custom-menu, custom-logo, featured-images, theme-options
*/

@import url('assets/css/tokens.css');

/* ============================================================
 * LAYOUT PROPERTIES
 * Theme-scoped. The design-system tokens (--ym-*, --fg-*, --bg-*,
 * --text-*, --space-*, --radius-*) are used as they are, never redefined.
 * ============================================================ */
:root {
    --ymes-container: 1280px;
    --ymes-gutter: clamp(20px, 4vw, 48px);
    --ymes-measure: 68ch;
    --ymes-nav-h: 72px;
    --ymes-section-y: clamp(64px, 8vw, 96px);
    /* Inline padding that lines a full-bleed band's content up with the container. */
    --ymes-bleed-pad: max(var(--ymes-gutter), calc((100% - var(--ymes-container)) / 2 + var(--ymes-gutter)));
    /* Focus ring colour: steel on light surfaces, brass on navy and ink. */
    --ymes-focus: var(--ym-steel);
}

/* ============================================================
 * BASE
 * ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--ymes-nav-h) + var(--space-6));
}
html, body { margin: 0; padding: 0; background: var(--bg-1); color: var(--fg-1); }
/* Column layout so the footer sits at the bottom of short pages. */
body {
    display: flex; flex-direction: column; min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--lh-loose);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--fg-1); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
address { font-style: normal; }

/* Heading accents. Sora has no italic face, so the accent is upright and
   steel: a second voice without a faux italic and without spending brass. */
:is(h1, h2, h3) em { font-style: normal; color: var(--ym-steel); }

::selection { background: var(--ym-brass); color: var(--ym-navy); }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed; left: var(--space-4); top: -100px; z-index: 100;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    background: var(--ym-navy); color: var(--ym-mist);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
}
.skip-link:focus { top: var(--space-4); }

/* Focus: a solid ring that meets 3:1 on every surface. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--ymes-focus);
    outline-offset: 2px;
}
.ym-cta, .ym-site-footer, .ym-facts { --ymes-focus: var(--ym-brass); }

/* ============================================================
 * TYPE ROLES (refinements of the design-system classes)
 * ============================================================ */
.ym-eyebrow { color: var(--ym-steel); }
.ym-h2 {
    font-size: clamp(28px, 1.25rem + 1.6vw, var(--text-3xl));
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.ym-label {
    display: block; margin-bottom: var(--space-2);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--fg-3);
}
.ym-wordmark {
    font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg);
    letter-spacing: 0.04em; color: var(--ym-navy);
}
.ym-wordmark-o { color: var(--ym-brass); }
.ym-site-footer .ym-wordmark { color: var(--dk-fg-1); }

/* ============================================================
 * BUTTONS
 * ============================================================ */
.ym-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: 44px;
    padding: 12px var(--space-6);
    border: 0; border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
    line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform 80ms var(--ease-out);
}
.ym-btn:active { transform: scale(0.97); }
.ym-btn-primary { background: var(--ym-navy); color: var(--ym-mist); }
.ym-btn-primary:hover { background: var(--ym-steel); color: var(--ym-mist); }
.ym-btn-brass { background: var(--ym-brass); color: var(--ym-navy); }
.ym-btn-brass:hover { background: var(--ym-brass-deep); color: var(--ym-navy); }
.ym-btn-ghost { background: transparent; color: var(--ym-navy); padding-inline: var(--space-2); }
.ym-btn-ghost:hover { color: var(--ym-steel); }

/* ============================================================
 * NAV
 * ============================================================ */
.ym-nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: var(--space-8);
    min-height: var(--ymes-nav-h);
    padding-block: var(--space-3);
    padding-inline: var(--ymes-bleed-pad);
    background: color-mix(in srgb, var(--ym-cloud) 94%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-1);
}
.ym-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.ym-brand img { height: 44px; width: auto; }
.ym-nav-links {
    display: flex; align-items: center; gap: var(--space-8);
    margin: 0 0 0 auto; padding: 0;
    list-style: none;
}
.ym-nav-links li { margin: 0; }
.ym-nav-link {
    position: relative;
    display: inline-flex; align-items: center;
    min-height: 44px;
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--fg-3);
}
.ym-nav-link:hover, .ym-nav-link.is-active { color: var(--ym-navy); }
/* Current page: an underline as well as the colour (WCAG 1.4.1). */
.ym-nav-link.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 8px;
    height: 2px; border-radius: 1px; background: var(--ym-steel);
}
.ym-nav-links .ym-nav-cta-item { margin-left: calc(-1 * var(--space-4)); } /* pairs with the language switcher */
.ym-nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 var(--space-5);
    border-radius: var(--radius-md);
    background: var(--ym-navy); color: var(--ym-mist);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    transition: background-color var(--dur-fast) var(--ease-out);
}
.ym-nav-cta:hover { background: var(--ym-steel); color: var(--ym-mist); }
.ym-nav-toggle { display: none; }

/* Language switcher: a quiet ES / EN segmented pair before the contact
   button. The current language is a raised chip with its own outline (shape,
   not only colour) and carries aria-current. */
.ym-lang-item { display: flex; align-items: center; }
.ym-lang {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 3px;
    border: 1px solid var(--border-2); border-radius: var(--radius-full);
}
.ym-lang-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; min-height: 30px; padding: 0 var(--space-3);
    border-radius: var(--radius-full);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: 1; letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--fg-3);
    transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.ym-lang-link:hover { color: var(--ym-navy); background: var(--bg-2); }
.ym-lang-link.is-current,
.ym-lang-link.is-current:hover {
    background: var(--bg-0); color: var(--ym-navy);
    box-shadow: inset 0 0 0 1px var(--border-2), var(--shadow-xs);
}

/* ============================================================
 * HERO
 * ============================================================ */
.ym-hero {
    max-width: var(--ymes-container); margin-inline: auto;
    padding: clamp(48px, 7vw, 88px) var(--ymes-gutter) var(--ymes-section-y);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(40px, 5vw, 64px);
    align-items: center;
}
.ym-hero-eyebrow {
    display: flex; align-items: center; gap: var(--space-3);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--ym-steel);
}
.ym-hero-eyebrow span { text-wrap: balance; }
.ym-hero-glyph { width: 22px; height: 22px; border-radius: var(--radius-sm); }
.ym-hero-title {
    margin-top: var(--space-5);
    max-width: 24ch;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(32px, 1.5rem + 2.1vw, 48px);
    line-height: 1.08; letter-spacing: -0.025em;
    color: var(--fg-1);
    text-wrap: balance;
}
.ym-hero-lead { margin-top: var(--space-6); max-width: 62ch; }
.ym-hero-cta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--space-3) var(--space-4);
    margin-top: var(--space-8);
}

/* Regulatory facts card (C10): navy, flat, no glow. */
.ym-facts {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--ym-navy); color: var(--dk-fg-1);
    box-shadow: var(--shadow-md);
}
.ym-facts-head {
    display: flex; align-items: center; gap: var(--space-2);
    padding-bottom: var(--space-4);
    color: var(--ym-sky);
}
.ym-facts-title {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--dk-fg-1);
}
.ym-facts-ref { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ym-sky); white-space: nowrap; }
.ym-facts-list {
    display: grid; grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--space-5);
    margin: 0; padding: 0; list-style: none;
}
.ym-facts-list li {
    display: grid; grid-column: 1 / -1;
    grid-template-columns: minmax(56px, max-content) minmax(0, 1fr);
    align-items: baseline; column-gap: var(--space-5);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--dk-border-1);
}
/* Rows share the value column, so "2012", "15+" and "ES · EN" line up. */
@supports (grid-template-columns: subgrid) {
    .ym-facts-list li { grid-template-columns: subgrid; }
}
.ym-facts-n {
    font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl);
    line-height: 1; letter-spacing: var(--tracking-tight);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--dk-fg-1);
}
.ym-facts-l { font-size: var(--text-sm); line-height: var(--lh-normal); color: var(--dk-fg-2); }
.ym-facts-foot { padding-top: var(--space-4); border-top: 1px solid var(--dk-border-1); }
.ym-facts-k {
    margin-bottom: var(--space-2);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--ym-sky);
}
.ym-facts-tags {
    display: flex; flex-wrap: wrap; gap: 0 var(--space-5);
    margin: 0; padding: 0; list-style: none;
    font-size: var(--text-sm); line-height: var(--lh-loose);
    color: var(--dk-fg-2);
}
/* Every item carries its own marker, so a wrapped line never starts or ends on a stray separator. */
.ym-facts-tags li { white-space: nowrap; }
.ym-facts-tags li::before { content: '·'; margin-right: var(--space-2); color: var(--ym-sky); }

/* ============================================================
 * SECTIONS
 * ============================================================ */
.ym-section {
    max-width: var(--ymes-container); margin-inline: auto;
    padding: var(--ymes-section-y) var(--ymes-gutter);
    border-top: 1px solid var(--border-1);
}
.ym-section-well { max-width: none; padding-inline: 0; background: var(--bg-0); }
.ym-section-inner { max-width: var(--ymes-container); margin-inline: auto; padding-inline: var(--ymes-gutter); }
/* A section that is the page itself (/servicios/) starts right under the nav. */
.site-main { flex: 1 0 auto; }
.site-main > .ym-section:first-child { padding-top: clamp(32px, 5vw, 56px); border-top: 0; }
.ym-section-head { max-width: 64ch; margin-bottom: clamp(32px, 5vw, 56px); }
.ym-section-head .ym-h2 { margin-top: var(--space-3); }
.ym-lead.ym-section-intro { margin-top: var(--space-4); max-width: 62ch; color: var(--fg-3); }
.ym-section-more { margin-top: var(--space-8); }
/* A ghost button on its own line: pull its padding back to the text edge. */
.ym-section-more > .ym-btn-ghost { margin-left: calc(-1 * var(--space-2)); }

/* ============================================================
 * CARDS: audiences, services, guides
 * ============================================================ */
.ym-audience-card,
.ym-service-card,
.ym-archive-card {
    position: relative;
    display: flex; flex-direction: column; gap: var(--space-3);
    padding: var(--space-8) var(--space-6) var(--space-6);
    background: var(--bg-0);
    border: 1px solid var(--border-1); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.ym-service-icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: var(--space-2);
    border-radius: var(--radius-md);
    background: var(--bg-2); color: var(--ym-steel);
}
.ym-card-title {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
    line-height: var(--lh-snug); letter-spacing: -0.01em;
    color: var(--fg-1);
}
.ym-card-title a { color: inherit; }
.ym-audience-card > p,
.ym-service-card > p,
.ym-archive-card > p { font-size: var(--text-base); line-height: 1.6; color: var(--fg-3); }
.ym-archive-card > .ym-card-meta,
.ym-card-meta { font-family: var(--font-mono); font-size: var(--text-xs); line-height: var(--lh-normal); color: var(--fg-3); }
.ym-service-more {
    margin-top: auto; padding-top: var(--space-2);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--ym-navy);
}
a.ym-service-more:hover { color: var(--ym-steel); }

/* Whole-card link: the title's link stretches over the card. */
.ym-card-link { transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.ym-card-link .ym-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
@supports selector(:has(a)) {
    .ym-card-link .ym-card-title a:focus-visible { outline: none; }
    .ym-card-link:has(.ym-card-title a:focus-visible) { outline: 2px solid var(--ymes-focus); outline-offset: 2px; }
}
@media (hover: hover) {
    .ym-card-link:hover { transform: translateY(-2px); border-color: var(--border-2); box-shadow: var(--shadow-lg); }
    .ym-card-link:hover .ym-card-title a { color: var(--ym-steel); }
}

.ym-audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.ym-guide-grid,
.ym-archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-5); }

/* Services: six tracks, so five cards land as two wide plus three. */
.ym-service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5); }
.ym-service-grid > * { grid-column: span 2; }
@media (min-width: 1001px) {
    .ym-service-grid:has(> :last-child:nth-child(3n + 2)) > :nth-child(-n + 2),
    .ym-service-grid:has(> :last-child:nth-child(3n + 1)) > :nth-child(-n + 4) { grid-column: span 3; }
}

/* ============================================================
 * WAYS OF WORKING (C12) — /servicios/, /en/services/, after the grid.
 * Three equal cards whose rows line up across the row (subgrid): read
 * side by side, not as a price table. The button is a quiet link, so three
 * identical calls to action don't compete.
 * ============================================================ */
.ym-offers { margin-top: clamp(48px, 6vw, 80px); }
.ym-offers-title {
    margin-bottom: var(--space-6);
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(var(--text-xl), 1.1rem + 0.8vw, var(--text-2xl));
    line-height: var(--lh-snug); letter-spacing: var(--tracking-snug);
}
.ym-offers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.ym-offer {
    display: flex; flex-direction: column;
    padding: var(--space-6) var(--space-6) var(--space-5);
    background: var(--bg-1);
    border: 1px solid var(--border-1); border-radius: var(--radius-lg);
}
.ym-offer-head { padding-bottom: var(--space-5); }
.ym-offer-k {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--ym-steel);
}
.ym-offer-t {
    margin-top: var(--space-2);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
    line-height: var(--lh-snug); letter-spacing: -0.01em;
}
.ym-offer-dl { margin: 0; }
.ym-offer-dl > div { padding: var(--space-3) 0; border-top: 1px solid var(--border-1); }
.ym-offer-dl dt {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--fg-3);
}
.ym-offer-dl dd { margin: var(--space-1) 0 0; font-size: var(--text-base); line-height: var(--lh-normal); color: var(--fg-1); }
.ym-offers .ym-offer-btn {
    align-self: flex-start;
    margin-top: auto; padding: var(--space-3) 0 0;
    min-height: 44px;
    background: transparent; color: var(--ym-navy);
    border-top: 1px solid var(--border-1); border-radius: 0;
    width: 100%; justify-content: flex-start;
    gap: 0.4em;
    font-size: var(--text-xs); letter-spacing: var(--tracking-wide);
}
.ym-offers .ym-offer-btn::after { content: '›'; }
.ym-offers .ym-offer-btn:hover { background: transparent; color: var(--ym-steel); }
@supports (grid-template-rows: subgrid) {
    /* head, three rows, link: five rows shared by the three cards */
    .ym-offers-grid { row-gap: 0; }
    .ym-offer { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .ym-offer-dl { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; }
    .ym-offers .ym-offer-btn { align-self: end; margin-top: var(--space-2); }
}

/* ============================================================
 * PROCESS (C7)
 * ============================================================ */
.ym-process-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-10) var(--space-6);
    margin: 0; padding: 0; list-style: none;
}
.ym-process-step {
    position: relative;
    display: flex; flex-direction: column; gap: var(--space-2);
    padding-top: var(--space-5);
    border-top: 1px solid var(--ym-silver);
}
.ym-process-step::before {
    content: ''; position: absolute; left: 0; top: -4px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ym-steel);
}
.ym-process-num {
    font-family: var(--font-mono); font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--ym-steel);
}
.ym-process-title {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
    line-height: var(--lh-snug); letter-spacing: -0.01em;
}
.ym-process-step p { font-size: var(--text-base); line-height: 1.6; color: var(--fg-3); }

/* ============================================================
 * ABOUT (home)
 * ============================================================ */
.ym-about-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
.ym-about-text .ym-section-head { margin-bottom: var(--space-8); }
.ym-about-text > .ym-lead { max-width: 62ch; }
.ym-about-body { margin-top: var(--space-4); max-width: 62ch; font-size: var(--text-base); line-height: var(--lh-loose); color: var(--fg-2); }
.ym-about-mark { align-self: center; display: flex; justify-content: center; }
.ym-about-mark img { width: 240px; height: auto; }
.ym-stats-row {
    display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-12);
    margin: var(--space-10) 0 0; padding-top: var(--space-8);
    border-top: 1px solid var(--border-1);
}
/* The label (dt) comes first in the markup and shows under the value. */
.ym-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-2); max-width: 28ch; }
.ym-stat-v {
    margin: 0;
    font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl);
    line-height: 1; letter-spacing: var(--tracking-tight);
    color: var(--fg-1);
}
.ym-stat-l {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--fg-3);
}

/* ============================================================
 * TEAM (shown only when team posts exist)
 * ============================================================ */
.ym-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--space-5); }
.ym-team-card {
    padding: var(--space-6);
    background: var(--bg-0);
    border: 1px solid var(--border-1); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.ym-team-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; margin-bottom: var(--space-4);
    overflow: hidden; border-radius: 50%;
    background: var(--ym-steel); color: var(--ym-mist);
    font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
    letter-spacing: 0.04em;
}
.ym-team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ym-team-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: var(--lh-snug); }
.ym-team-role { margin-top: var(--space-1); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-3); }
.ym-team-bio { margin-top: var(--space-3); font-size: var(--text-sm); line-height: 1.6; color: var(--fg-3); }
.ym-team-link {
    display: inline-block; margin-top: var(--space-3);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--ym-navy);
}
.ym-team-link:hover { color: var(--ym-steel); }

/* ============================================================
 * CTA BAND — navy, set apart from the ink footer; its brass button is
 * the one brass element in that viewport.
 * ============================================================ */
.ym-cta { background: var(--ym-navy); color: var(--dk-fg-1); }
.ym-cta-inner { max-width: var(--ymes-container); margin-inline: auto; padding: var(--ymes-section-y) var(--ymes-gutter); }
.ym-cta .ym-h2 { max-width: 24ch; color: var(--dk-fg-1); }
.ym-cta-sub { margin-top: var(--space-4); max-width: 60ch; font-size: var(--text-md); line-height: var(--lh-loose); color: var(--dk-fg-2); }
.ym-cta-actions {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--space-4) var(--space-6);
    margin-top: var(--space-8);
}
.ym-cta .ym-cta-mail {
    font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0;
    color: var(--dk-fg-2);
    text-decoration: underline; text-decoration-color: var(--dk-border-2); text-underline-offset: 4px;
}
.ym-cta .ym-cta-mail:hover { color: var(--dk-fg-1); text-decoration-color: currentColor; }

/* ============================================================
 * FOOTER (.ym-site-footer: the chat widget also uses .ym-footer)
 * ============================================================ */
.ym-site-footer {
    padding: var(--space-16) var(--ymes-bleed-pad) var(--space-8);
    background: var(--dk-bg-1); color: var(--dk-fg-2);
}
.ym-footer-top {
    display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--dk-border-1);
}
.ym-footer-logo { display: inline-flex; margin-bottom: var(--space-5); }
.ym-footer-logo img { height: 40px; width: auto; }
.ym-footer-addr {
    display: flex; flex-direction: column; gap: 2px;
    font-size: var(--text-sm); line-height: var(--lh-loose);
    color: var(--dk-fg-3);
}
.ym-footer-mail {
    align-self: flex-start; margin-top: var(--space-2);
    color: var(--dk-fg-1);
    text-decoration: underline; text-decoration-color: var(--dk-border-2); text-underline-offset: 3px;
}
.ym-footer-mail:hover { text-decoration-color: currentColor; }
.ym-footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.ym-footer-h {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--dk-fg-1);
}
.ym-footer-list {
    display: flex; flex-direction: column; gap: var(--space-2);
    margin: 0; padding: 0; list-style: none;
    font-size: var(--text-sm); line-height: var(--lh-normal);
}
.ym-footer-list li { margin: 0; }
.ym-footer-list a { color: var(--dk-fg-3); text-underline-offset: 3px; }
.ym-footer-list a:hover { color: var(--dk-fg-1); text-decoration: underline; }
.ym-footer-bot {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: var(--space-2) var(--space-6);
    margin-top: var(--space-6);
    padding-bottom: 72px; /* the fixed chat launcher would cover the last line */
    font-family: var(--font-mono); font-size: var(--text-xs); line-height: var(--lh-normal);
    color: var(--dk-fg-4);
}
.ym-footer-sister a { color: var(--dk-fg-3); text-decoration: underline; text-decoration-color: var(--dk-border-2); text-underline-offset: 3px; }
.ym-footer-sister a:hover { color: var(--dk-fg-1); text-decoration-color: currentColor; }

/* ============================================================
 * PAGE HEAD + BREADCRUMBS (C1)
 * ============================================================ */
.ym-page-head {
    max-width: var(--ymes-container); margin-inline: auto;
    padding: clamp(32px, 5vw, 56px) var(--ymes-gutter) clamp(32px, 4vw, 48px);
}
.ym-crumbs ol {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--space-1) var(--space-2);
    margin: 0; padding: 0; list-style: none;
    font-size: var(--text-sm); line-height: var(--lh-normal);
    color: var(--fg-3);
}
.ym-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; max-width: 100%; }
.ym-crumbs li + li::before { content: '›'; color: var(--fg-3); }
.ym-crumbs a {
    display: inline-flex; align-items: center; min-height: 24px;
    color: var(--fg-3);
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
}
.ym-crumbs a:hover { color: var(--fg-1); text-decoration-color: currentColor; }
.ym-crumbs [aria-current="page"] {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 52ch;
    color: var(--fg-2);
}
.ym-crumbs + * { margin-top: var(--space-5); }
.ym-page-head .ym-eyebrow + .ym-page-title { margin-top: var(--space-3); }
.ym-page-title {
    max-width: 28ch;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(32px, 1.4rem + 2vw, 48px);
    line-height: var(--lh-tight); letter-spacing: -0.02em;
    color: var(--fg-1);
    text-wrap: balance;
    overflow-wrap: break-word;
}
.ym-page-lead { margin-top: var(--space-5); max-width: 62ch; font-size: var(--text-md); line-height: var(--lh-loose); color: var(--fg-2); }
.ym-page-meta {
    margin-top: var(--space-4);
    font-family: var(--font-mono); font-size: var(--text-xs); line-height: var(--lh-normal);
    letter-spacing: 0.02em;
    color: var(--fg-3);
}

/* ============================================================
 * DOCUMENT LAYOUT (C2): sticky table of contents beside the prose
 * ============================================================ */
.ym-doc {
    max-width: var(--ymes-container); margin-inline: auto;
    padding: 0 var(--ymes-gutter) var(--ymes-section-y);
    display: grid; grid-template-columns: 236px minmax(0, 1fr);
    gap: var(--space-8) clamp(40px, 5vw, 80px);
    align-items: start;
}
.ym-doc--solo { grid-template-columns: minmax(0, 1fr); }
.ym-doc-main { min-width: 0; max-width: var(--ymes-measure); }
.ym-doc-side {
    position: sticky; top: calc(var(--ymes-nav-h) + var(--space-6));
    max-height: calc(100vh - var(--ymes-nav-h) - var(--space-12));
    overflow-y: auto; overscroll-behavior: contain;
}
.ym-toc-box > summary { list-style: none; }
.ym-toc-box > summary::-webkit-details-marker { display: none; }
.ym-toc-title {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--fg-3);
    cursor: default;
}
.ym-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border-2); }
.ym-toc li { margin: 0; }
.ym-toc a {
    display: block;
    margin-left: -1px; padding: 6px 0 6px var(--space-4);
    border-left: 2px solid transparent;
    font-size: var(--text-sm); line-height: var(--lh-snug);
    color: var(--fg-3);
    transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.ym-toc a:hover { color: var(--fg-1); }
.ym-toc a[aria-current="true"] { color: var(--fg-1); border-left-color: var(--ym-steel); }
.ym-toc a:focus-visible { outline-offset: -2px; }

.ym-article-thumb { max-width: var(--ymes-container); margin: 0 auto var(--space-10); padding-inline: var(--ymes-gutter); }
.ym-article-thumb img { border-radius: var(--radius-lg); }
.ym-article-back {
    margin-top: var(--space-12);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
}
.ym-article-back a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ym-navy); }
.ym-article-back a:hover { color: var(--ym-steel); }

/* Service pages: the other services, after the content. */
.ym-related { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--border-2); }
.ym-related-title {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--fg-3);
}
.ym-related-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3);
    margin: var(--space-4) 0 0; padding: 0; list-style: none;
}
.ym-related-list li { margin: 0; }
.ym-related-list a {
    display: flex; align-items: center; gap: var(--space-3);
    height: 100%; min-height: 64px;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-0);
    border: 1px solid var(--border-1); border-radius: var(--radius-md);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); line-height: var(--lh-snug);
    color: var(--fg-1);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ym-related-list a:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.ym-related-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-2); color: var(--ym-steel);
}
.ym-related-name { flex: 1; min-width: 0; }
.ym-related-list a > svg:last-child { color: var(--fg-3); }

/* ============================================================
 * PROSE (C3) and the content components
 * ============================================================ */
.ym-prose { font-size: var(--text-md); line-height: var(--lh-loose); color: var(--fg-2); }
.ym-prose > * { margin: 0; }
.ym-prose > * + * { margin-top: var(--space-5); }
.ym-prose p { font-size: inherit; line-height: inherit; color: inherit; }
.ym-prose > p.ym-lead { font-size: var(--text-lg); line-height: 1.6; color: var(--fg-2); }
.ym-prose h2 {
    margin-top: var(--space-16);
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(var(--text-xl), 1.1rem + 0.8vw, var(--text-2xl));
    line-height: var(--lh-snug); letter-spacing: var(--tracking-snug);
    color: var(--fg-1);
}
.ym-prose h3 {
    margin-top: var(--space-10);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
    line-height: var(--lh-snug); letter-spacing: -0.01em;
    color: var(--fg-1);
}
.ym-prose :is(h2, h3)[id], .ym-contact-body h2 { scroll-margin-top: calc(var(--ymes-nav-h) + var(--space-6)); }
.ym-prose > :is(h2, h3) + * { margin-top: var(--space-4); }
.ym-prose > :first-child { margin-top: 0; }
.ym-prose ul { padding-left: 1.25em; }
.ym-prose ol { padding-left: 1.75em; } /* fits "10." */
.ym-prose li + li { margin-top: var(--space-2); }
.ym-prose li > :is(ul, ol) { margin-top: var(--space-2); }
.ym-prose li::marker { color: var(--ym-steel); }
.ym-prose ol > li::marker { font-family: var(--font-display); font-weight: 600; font-size: 0.9em; }
.ym-prose strong { font-weight: 600; color: var(--fg-1); }
.ym-prose a {
    color: var(--fg-1);
    text-decoration: underline; text-decoration-color: var(--ym-silver);
    text-decoration-thickness: 1px; text-underline-offset: 3px;
    transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}
.ym-prose a:hover { color: var(--ym-steel); text-decoration-color: currentColor; }
.ym-prose hr { height: 0; margin-block: var(--space-10); border: 0; border-top: 1px solid var(--border-2); }
.ym-prose > hr + * { margin-top: 0; }
.ym-prose blockquote { margin-inline: 0; padding-left: var(--space-5); border-left: 2px solid var(--ym-silver); color: var(--fg-3); }
.ym-prose img { border-radius: var(--radius-md); }
.ym-prose pre { overflow-x: auto; padding: var(--space-4); border-radius: var(--radius-md); background: var(--bg-2); font-size: var(--text-sm); }

/* Summary box at the top of a guide */
.ym-tldr {
    padding: var(--space-6) var(--space-6) var(--space-5);
    background: var(--bg-0);
    border: 1px solid var(--border-1); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.ym-prose .ym-tldr-title {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--ym-steel);
}
.ym-prose .ym-tldr ul { margin: var(--space-3) 0 0; padding-left: 1.1em; font-size: var(--text-base); line-height: 1.6; }

/* Lead-in lists: "<strong>Term.</strong> Explanation" */
.ym-prose ul.ym-defs { list-style: none; padding: 0; border-top: 1px solid var(--border-1); }
.ym-prose ul.ym-defs > li { margin: 0; padding: var(--space-4) 0; border-bottom: 1px solid var(--border-1); }
.ym-prose ul.ym-defs > li > strong:first-child {
    display: block; margin-bottom: var(--space-1);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-base);
    line-height: var(--lh-snug);
}

/* Checklist ("Qué recibe", C9) */
.ym-check { margin: 0; padding: 0; list-style: none; }
.ym-prose ul.ym-check { padding: 0; }
.ym-check > li { position: relative; padding-left: 34px; }
.ym-check > li + li { margin-top: var(--space-3); }
.ym-check > li::before {
    content: ''; position: absolute; left: 0; top: 0.15em;
    width: 22px; height: 22px; border-radius: 50%;
    background: color-mix(in srgb, var(--ym-steel) 12%, var(--bg-0));
}
.ym-check > li::after {
    content: ''; position: absolute; left: 4px; top: calc(0.15em + 4px);
    width: 14px; height: 14px;
    background: var(--ym-steel);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Callout (C6). No coloured left border; the icon comes from CSS. */
aside.ym-note {
    position: relative;
    padding: var(--space-5) var(--space-6) var(--space-5) calc(var(--space-6) + 20px + var(--space-3));
    background: color-mix(in srgb, var(--ym-steel) 6%, var(--bg-0));
    border: 1px solid color-mix(in srgb, var(--ym-steel) 20%, transparent);
    border-radius: var(--radius-md);
    font-size: var(--text-base); line-height: var(--lh-normal);
    color: var(--fg-2);
}
.ym-prose > aside.ym-note { margin-block: var(--space-8); }
aside.ym-note::before {
    content: ''; position: absolute; left: var(--space-6); top: calc(var(--space-5) + 2px);
    width: 20px; height: 20px;
    background: var(--ym-steel);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / 20px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / 20px no-repeat;
}
aside.ym-note > * { margin: 0; }
aside.ym-note > * + * { margin-top: var(--space-2); }
.ym-prose aside.ym-note p { font-size: var(--text-base); line-height: var(--lh-normal); }
.ym-note-title { font-family: var(--font-display); font-weight: 600; color: var(--fg-1); }
.ym-prose aside.ym-note .ym-note-title { color: var(--fg-1); }

/* Footnote at the end of a guide */
.ym-prose p.ym-note {
    margin-top: var(--space-12); padding-top: var(--space-5);
    border-top: 1px solid var(--border-1);
    font-size: var(--text-sm); line-height: var(--lh-normal);
    color: var(--fg-3);
}

/* FAQ (C4): details/summary, no script */
.ym-faq { border-top: 1px solid var(--border-2); }
.ym-faq details { border-bottom: 1px solid var(--border-2); }
.ym-faq summary {
    display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6);
    padding: var(--space-5) 0;
    list-style: none; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-md);
    line-height: var(--lh-snug);
    color: var(--fg-1);
    transition: color var(--dur-fast) var(--ease-out);
}
.ym-faq summary::-webkit-details-marker { display: none; }
.ym-faq summary::after {
    content: ''; flex: none;
    width: 12px; height: 12px; margin-top: 0.3em;
    background:
        linear-gradient(var(--ym-steel) 0 0) center / 12px 1.5px no-repeat,
        linear-gradient(var(--ym-steel) 0 0) center / 1.5px 12px no-repeat;
}
.ym-faq details[open] > summary::after { background-size: 12px 1.5px, 0 0; }
.ym-faq summary:hover { color: var(--ym-steel); }
.ym-faq summary:focus-visible { outline-offset: 4px; border-radius: var(--radius-xs); }
.ym-faq details > div { padding: 0 var(--space-8) var(--space-6) 0; }
.ym-prose .ym-faq details > div p { font-size: var(--text-base); line-height: var(--lh-loose); }

/* Data tables (C5), and the bare tables in the legal pages */
/* The title and column labels sit on a navy band, like the hero card, so
   the table reads as one object against the light page. */
.ym-table-wrap {
    overflow-x: auto;
    background: var(--bg-0);
    border: 1px solid var(--border-2); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.ym-prose > .ym-table-wrap { margin-block: var(--space-8); }
.ym-prose table,
.ym-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: var(--lh-normal); }
.ym-prose > table { background: var(--bg-0); border: 1px solid var(--border-2); }
.ym-table-wrap > .ym-table { margin: 0; }
.ym-prose caption,
.ym-table caption {
    caption-side: top; text-align: left;
    padding: var(--space-4) var(--space-4) var(--space-3);
    background: var(--ym-navy);
    border-bottom: 1px solid var(--dk-border-2);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
    color: var(--ym-mist);
}
.ym-prose thead th,
.ym-table thead th {
    padding: var(--space-3) var(--space-4);
    text-align: left; vertical-align: bottom;
    background: var(--ym-navy);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--dk-fg-2);
}
.ym-prose td,
.ym-table td,
.ym-table tbody th {
    padding: var(--space-3) var(--space-4);
    text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--border-1);
    color: var(--fg-2);
}
.ym-prose tbody th,
.ym-table tbody th { font-family: var(--font-display); font-weight: 600; color: var(--fg-1); }
.ym-prose tr:last-child > *,
.ym-table tr:last-child > * { border-bottom: 0; }

/* Fact sheet (C11, About) */
.ym-dl {
    display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
    margin: 0;
    border-top: 1px solid var(--border-1);
    font-size: var(--text-base); line-height: var(--lh-normal);
}
.ym-dl > dt, .ym-dl > dd { margin: 0; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-1); }
.ym-dl > dt {
    padding-top: calc(var(--space-3) + 3px); padding-right: var(--space-4);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--fg-3);
}
.ym-dl > dd { color: var(--fg-1); }

/* Numbered steps (contact page, "Qué pasa después"): plain <li>, numbered by CSS */
.ym-steps {
    counter-reset: ym-step;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6);
    margin: 0; padding: 0; list-style: none;
}
.ym-steps > li {
    counter-increment: ym-step;
    position: relative;
    margin: 0; padding-top: var(--space-5);
    border-top: 1px solid var(--ym-silver);
    font-size: var(--text-base); line-height: 1.6;
    color: var(--fg-2);
}
.ym-steps > li::before {
    content: counter(ym-step, decimal-leading-zero);
    display: block; margin-bottom: var(--space-2);
    font-family: var(--font-mono); font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    color: var(--ym-steel);
}
.ym-steps > li::after {
    content: ''; position: absolute; left: 0; top: -4px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ym-steel);
}

/* ============================================================
 * CONTACT PAGE + the contact plugin's markup, restyled from here
 * (the plugin stays identical to the .ai site)
 * ============================================================ */
.ym-contact-body {
    max-width: var(--ymes-container); margin-inline: auto;
    padding: 0 var(--ymes-gutter) var(--ymes-section-y);
}
.ym-contact-page .ym-page-head { padding-bottom: var(--space-5); }
.ym-contact-body > .ym-lead { max-width: 62ch; margin-bottom: var(--space-10); }
.ym-contact-body > h2 {
    margin-top: var(--space-16);
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(var(--text-xl), 1.1rem + 0.8vw, var(--text-2xl));
    line-height: var(--lh-snug); letter-spacing: var(--tracking-snug);
}
.ym-contact-body > .ym-steps { margin-top: var(--space-6); }

/* Cancel the plugin's 100vw breakout: it assumed a centred column. */
.ym-contact-page .yc-section {
    position: static; left: auto; transform: none;
    width: auto; padding: 0; background: none;
}
.ym-contact-page .yc-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(32px, 5vw, 64px);
    max-width: none;
}
.ym-contact-page .yc-form-col {
    min-width: 0;
    padding: clamp(24px, 4vw, 40px);
    background: var(--bg-0);
    border: 1px solid var(--border-1); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.ym-contact-page .yc-overline {
    margin: 0 0 var(--space-3);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    color: var(--ym-steel);
}
.ym-contact-page .yc-heading {
    margin: 0 0 var(--space-3);
    font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl);
    line-height: var(--lh-snug); letter-spacing: var(--tracking-snug);
    color: var(--fg-1);
}
.ym-contact-page .yc-subtext { margin: 0 0 var(--space-8); max-width: 60ch; font-size: var(--text-base); line-height: var(--lh-loose); color: var(--fg-2); }
.ym-contact-page .yc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ym-contact-page .yc-field label {
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
    letter-spacing: 0;
    color: var(--fg-1);
}
.ym-contact-page .yc-req { color: var(--ym-steel); }
.ym-contact-page .yc-field :is(input, select, textarea) {
    min-height: 48px;
    padding: 12px 14px;
    background-color: var(--bg-0);
    border: 1px solid var(--fg-4);
    border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: var(--text-base);
    color: var(--fg-1);
    box-shadow: none;
    transition: border-color var(--dur-fast) var(--ease-out);
}
.ym-contact-page .yc-field select { padding-right: 40px; }
.ym-contact-page .yc-field :is(input, textarea)::placeholder { color: var(--fg-3); opacity: 1; }
.ym-contact-page .yc-field :is(input, select, textarea):hover { border-color: var(--fg-3); }
.ym-contact-page .yc-field :is(input, select, textarea):focus {
    border-color: var(--ym-steel);
    outline: 2px solid var(--ym-steel); outline-offset: 1px;
    box-shadow: none;
}
.ym-contact-page .yc-field .yc-error { border-color: var(--status-danger); }
.ym-contact-page .yc-privacy { font-size: var(--text-sm); line-height: 1.6; color: var(--fg-3); }
.ym-contact-page .yc-privacy strong { color: var(--fg-2); font-weight: 600; }
.ym-contact-page .yc-privacy a { color: var(--fg-1); text-decoration-color: var(--ym-silver); text-underline-offset: 3px; }
.ym-contact-page .yc-privacy a:hover { text-decoration-color: currentColor; }
.ym-contact-page .yc-btn {
    min-height: 48px; padding: 0 var(--space-6); gap: var(--space-2);
    border-radius: var(--radius-md);
    background: var(--ym-navy); color: var(--ym-mist);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
    letter-spacing: 0.06em; text-transform: uppercase;
    box-shadow: none;
    transition: background-color var(--dur-fast) var(--ease-out);
}
.ym-contact-page .yc-btn:hover { background: var(--ym-steel); transform: none; box-shadow: none; }
.ym-contact-page .yc-btn-arrow { width: 18px; height: 18px; }
.ym-contact-page .yc-btn:hover .yc-btn-arrow { transform: translateX(2px); }
.ym-contact-page .yc-info-col { padding-top: 0; min-width: 0; }
.ym-contact-page .yc-info-cards { gap: var(--space-3); }
.ym-contact-page .yc-info-card {
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-0);
    border: 1px solid var(--border-1); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.ym-contact-page .yc-info-card:hover { border-color: var(--border-1); box-shadow: var(--shadow-xs); }
.ym-contact-page .yc-info-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--bg-2); color: var(--ym-steel); }
.ym-contact-page .yc-info-label {
    margin-bottom: var(--space-1);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    color: var(--fg-3);
}
.ym-contact-page .yc-info-value { font-size: var(--text-base); font-weight: 500; line-height: var(--lh-normal); color: var(--fg-1); overflow-wrap: anywhere; }
.ym-contact-page a.yc-info-value { color: var(--fg-1); text-decoration: underline; text-decoration-color: var(--ym-silver); text-underline-offset: 3px; }
.ym-contact-page a.yc-info-value:hover { color: var(--ym-steel); text-decoration-color: currentColor; }

/* ============================================================
 * LISTINGS (guides index, archives, search), 404, comments
 * ============================================================ */
.ym-listing { max-width: var(--ymes-container); margin-inline: auto; padding: 0 var(--ymes-gutter) var(--ymes-section-y); }
.ym-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-10); }
.ym-pagination :is(a, span) {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 0 var(--space-3);
    border: 1px solid var(--border-2); border-radius: var(--radius-md);
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
    color: var(--fg-2);
}
.ym-pagination a:hover { border-color: var(--ym-steel); color: var(--fg-1); }
.ym-pagination .current { background: var(--ym-navy); border-color: var(--ym-navy); color: var(--ym-mist); }

.ym-search-form { display: flex; gap: var(--space-2); max-width: 480px; margin-inline: auto; }
.ym-search-form input {
    flex: 1; min-width: 0; min-height: 48px;
    padding: 0 var(--space-4);
    background: var(--bg-0);
    border: 1px solid var(--fg-4); border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: var(--text-base);
    color: var(--fg-1);
}
.ym-search-form input::placeholder { color: var(--fg-3); opacity: 1; }
.ym-search-form input:focus { border-color: var(--ym-steel); outline: 2px solid var(--ym-steel); outline-offset: 1px; }
.ym-search-form .ym-btn { min-height: 48px; min-width: 48px; padding-inline: var(--space-4); }

.ym-error {
    max-width: 720px; margin-inline: auto;
    padding: var(--ymes-section-y) var(--ymes-gutter);
    text-align: center;
}
.ym-error-code {
    margin-top: var(--space-5);
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(64px, 12vw, 96px);
    line-height: 1; letter-spacing: var(--tracking-tight);
    color: var(--fg-1);
}
.ym-error-code span { color: var(--ym-steel); }
.ym-error .ym-lead { margin: var(--space-6) auto var(--space-8); max-width: 48ch; }
.ym-error-home { margin-top: var(--space-8); }

.ym-comments { margin-top: var(--space-16); }
.ym-comments-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); }
.ym-comment-list { margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.ym-form { display: grid; gap: var(--space-5); max-width: 720px; }
.ym-form label { display: block; }
.ym-form :is(input, textarea) {
    width: 100%; padding: 12px 14px;
    background: var(--bg-0); color: var(--fg-1);
    border: 1px solid var(--fg-4); border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: var(--text-base);
}
.ym-form :is(input, textarea):focus { border-color: var(--ym-steel); outline: 2px solid var(--ym-steel); outline-offset: 1px; }

/* ============================================================
 * CHAT WIDGET (yameveo-advisor). Theme-side overrides only: navy
 * launcher, the body font, no brass glow. "body" outranks the plugin's
 * #ym-advisor-root rules, which load after this stylesheet.
 * ============================================================ */
body #ym-advisor-root,
body #ym-advisor-root * { font-family: var(--font-body); }
body #ym-advisor-root .ym-launcher {
    background: var(--ym-navy);
    border: 1px solid var(--dk-border-2);
    box-shadow: var(--shadow-lg);
    transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
body #ym-advisor-root .ym-launcher:hover { background: var(--ym-steel); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
body #ym-advisor-root .ym-launcher:focus-visible { outline: 2px solid var(--ym-steel); outline-offset: 3px; }
body #ym-advisor-root .ym-launcher-label { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--ym-mist); }
body #ym-advisor-root .ym-launcher-badge { background: var(--ym-mist); color: var(--ym-navy); font-family: var(--font-display); }
body #ym-advisor-root .ym-launcher svg :is(path, circle) { stroke: var(--ym-silver); }
body #ym-advisor-root .ym-launcher svg path:nth-of-type(4) { stroke-opacity: 0.4; }
body #ym-advisor-root .ym-launcher svg circle { fill: none; }
body #ym-advisor-root .ym-launcher svg path:last-of-type { stroke: var(--ym-mist); }
body #ym-advisor-root .ym-panel {
    background: var(--dk-bg-0);
    border: 1px solid var(--dk-border-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
body #ym-advisor-root .ym-header,
body #ym-advisor-root .ym-input-row,
body #ym-advisor-root .ym-footer { background: var(--ym-navy); border-color: var(--dk-border-1); }
body #ym-advisor-root .ym-footer { color: rgba(200, 212, 224, 0.75); }
body #ym-advisor-root .ym-header-avatar { background: var(--ym-steel); color: var(--ym-mist); font-family: var(--font-display); }
body #ym-advisor-root .ym-header-title { font-family: var(--font-display); color: var(--ym-mist); }
body #ym-advisor-root .ym-header-sub { color: var(--ym-sky); }
body #ym-advisor-root .ym-close:focus-visible,
body #ym-advisor-root .ym-send:focus-visible,
body #ym-advisor-root .ym-input:focus-visible { outline: 2px solid var(--ym-brass); outline-offset: 2px; }
body #ym-advisor-root .ym-msg :is(p, li, ul, ol) { color: inherit; font-size: inherit; line-height: inherit; }
body #ym-advisor-root .ym-msg--user {
    background: color-mix(in srgb, var(--ym-steel) 55%, transparent);
    border-color: color-mix(in srgb, var(--ym-sky) 35%, transparent);
    color: var(--ym-mist);
}
body #ym-advisor-root .ym-msg--info { background: transparent; border-color: var(--dk-border-2); color: var(--dk-fg-2); }
body #ym-advisor-root .ym-dot { background: var(--ym-sky); }
body #ym-advisor-root .ym-messages::-webkit-scrollbar-thumb { background: var(--dk-border-2); }
body #ym-advisor-root .ym-close { color: var(--dk-fg-2); }
body #ym-advisor-root .ym-close:hover { color: var(--dk-fg-1); }
body #ym-advisor-root .ym-input { border-color: var(--dk-border-2); }
body #ym-advisor-root .ym-input::placeholder { color: var(--dk-fg-3); }
body #ym-advisor-root .ym-input:focus { border-color: var(--ym-sky); }
body #ym-advisor-root .ym-send { background: var(--ym-mist); }
body #ym-advisor-root .ym-send:hover:not(:disabled) { background: var(--ym-silver); transform: none; }
body #ym-advisor-root .ym-disclosure { background: color-mix(in srgb, var(--ym-sky) 8%, transparent); border-color: var(--dk-border-1); color: var(--dk-fg-2); }
body #ym-advisor-root .ym-disclosure-icon,
body #ym-advisor-root .ym-disclosure a { color: var(--ym-silver); }
body #ym-advisor-root .ym-disclosure a:hover { color: var(--ym-mist); }

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 1000px) {
    .ym-hero { grid-template-columns: minmax(0, 1fr); }
    .ym-facts { max-width: 560px; }
    .ym-about-grid { grid-template-columns: minmax(0, 1fr); }
    .ym-about-mark { display: none; }
    .ym-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ym-service-grid > * { grid-column: auto; }
    .ym-service-grid:has(> :last-child:nth-child(odd)) > :first-child { grid-column: 1 / -1; }
    .ym-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ym-footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ym-footer-brand { grid-column: 1 / -1; }

    /* Document layout: the table of contents folds above the text. */
    .ym-doc { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
    .ym-doc-side { position: static; max-height: none; overflow: visible; }
    .ym-toc-box { background: var(--bg-0); border: 1px solid var(--border-1); border-radius: var(--radius-md); }
    .ym-toc-title {
        min-height: 48px; margin: 0; padding: var(--space-3) var(--space-5);
        color: var(--fg-1); cursor: pointer;
    }
    .ym-toc-title::after {
        content: ''; width: 8px; height: 8px; margin-top: -4px;
        border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        transition: transform var(--dur-fast) var(--ease-out);
    }
    .ym-toc-box[open] > .ym-toc-title::after { margin-top: 4px; transform: rotate(-135deg); }
    .ym-toc-box[open] > .ym-toc-title { border-bottom: 1px solid var(--border-1); }
    .ym-toc ol { margin: var(--space-3) var(--space-5) var(--space-4); }
    .ym-toc a { padding-block: 8px; }
}

/* Three services (or three offers): one row down to 861px, then a single column. */
@media (min-width: 861px) and (max-width: 1000px) {
    .ym-service-grid:has(> :last-child:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ym-service-grid:has(> :last-child:nth-child(3)) > :first-child { grid-column: auto; }
}
@media (max-width: 860px) {
    .ym-service-grid:has(> :last-child:nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
    .ym-service-grid:has(> :last-child:nth-child(3)) > :first-child { grid-column: auto; }
    .ym-offers-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); }
    .ym-offer { display: flex; grid-row: auto; }
    .ym-offer-dl { display: block; grid-row: auto; }
    .ym-offers .ym-offer-btn { margin-top: var(--space-2); }
}

@media (max-width: 960px) {
    .ym-contact-page .yc-grid { grid-template-columns: minmax(0, 1fr); }
    .ym-contact-page .yc-info-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
}

@media (max-width: 900px) {
    .ym-audience-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile nav: the toggle sits right, the panel drops under the bar. */
@media (max-width: 840px) {
    .ym-nav { gap: var(--space-4); }
    .ym-brand img { height: 38px; }
    .ym-nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px;
        margin: 0 -10px 0 auto; padding: 0;
        border: 0; border-radius: var(--radius-md);
        background: transparent; color: var(--ym-navy);
        cursor: pointer;
    }
    .ym-nav-toggle > span { display: inline-flex; }
    .ym-nav-toggle > .ym-nav-toggle-close,
    .ym-nav-toggle[aria-expanded="true"] > .ym-nav-toggle-open { display: none; }
    .ym-nav-toggle[aria-expanded="true"] > .ym-nav-toggle-close { display: inline-flex; }
    .ym-nav-links { display: none; }
    .ym-nav-links.is-open {
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        margin: 0;
        max-height: calc(100vh - var(--ymes-nav-h));
        overflow-y: auto;
        padding: var(--space-2) var(--ymes-gutter) var(--space-6);
        background: var(--bg-1);
        border-bottom: 1px solid var(--border-2);
        box-shadow: var(--shadow-md);
    }
    .ym-nav-links.is-open .ym-nav-link {
        display: flex; min-height: 52px;
        border-bottom: 1px solid var(--border-1);
        font-size: var(--text-sm);
    }
    .ym-nav-links.is-open .ym-nav-link.is-active::after {
        left: auto; right: 0; top: 50%; bottom: auto;
        width: 6px; height: 6px; border-radius: 50%;
        transform: translateY(-50%);
    }
    .ym-nav-links.is-open .ym-lang-item {
        min-height: 76px;
        border-bottom: 1px solid var(--border-1);
    }
    .ym-nav-links.is-open .ym-lang-link { min-width: 56px; min-height: 44px; font-size: var(--text-sm); }
    .ym-nav-links.is-open .ym-nav-cta-item { margin: var(--space-5) 0 0; }
    .ym-nav-links.is-open .ym-nav-cta { display: flex; width: 100%; min-height: 48px; font-size: var(--text-sm); }
}

@media (max-width: 640px) {
    .ym-service-grid,
    .ym-process-grid,
    .ym-footer-top { grid-template-columns: minmax(0, 1fr); }
    .ym-service-grid > *,
    .ym-service-grid:has(> :last-child:nth-child(odd)) > :first-child { grid-column: auto; }
    .ym-footer-top { gap: var(--space-8); }
    .ym-footer-list { gap: var(--space-3); }
    .ym-footer-bot { flex-direction: column; }
    .ym-hero-cta .ym-btn { width: 100%; }

    .ym-audience-card, .ym-service-card, .ym-archive-card { padding: var(--space-6) var(--space-5) var(--space-5); }

    /* Steps run down a rule instead of across. */
    .ym-process-grid,
    .ym-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ym-process-step,
    .ym-steps > li { padding: 0 0 var(--space-6) var(--space-6); border-top: 0; border-left: 1px solid var(--ym-silver); }
    .ym-process-step:last-child,
    .ym-steps > li:last-child { padding-bottom: 0; border-left-color: transparent; }
    .ym-process-step::before,
    .ym-steps > li::after { left: -4px; top: 6px; }


    /* No hyphens: auto. Chrome ignores hyphenate-limit-chars here and splits
       nine-letter words; overflow-wrap already keeps long words inside. */
    .ym-prose { font-size: var(--text-base); }
    .ym-prose > p.ym-lead { font-size: var(--text-md); }
    .ym-faq summary { font-size: var(--text-base); }
    .ym-faq details > div { padding-right: 0; }
    .ym-tldr { padding: var(--space-5); }
    aside.ym-note { padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 20px + var(--space-3)); }
    aside.ym-note::before { left: var(--space-4); top: calc(var(--space-4) + 2px); }

    .ym-table.ym-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .ym-table.ym-table--stack tbody tr { display: block; padding: var(--space-4); border-bottom: 1px solid var(--border-2); }
    .ym-table.ym-table--stack tbody tr:last-child { border-bottom: 0; }
    .ym-table.ym-table--stack tbody :is(th, td) { display: block; padding: var(--space-1) 0; border: 0; }
    .ym-table.ym-table--stack tbody th { padding-bottom: var(--space-2); font-size: var(--text-base); }
    .ym-table.ym-table--stack td + td { margin-top: var(--space-2); }
    .ym-table.ym-table--stack td::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
        letter-spacing: var(--tracking-wide); text-transform: uppercase;
        color: var(--fg-3);
    }
    .ym-prose > table { display: block; overflow-x: auto; }

    .ym-dl { grid-template-columns: minmax(0, 1fr); }
    .ym-dl > dt { padding-bottom: 0; border-bottom: 0; }
    .ym-dl > dd { padding-top: var(--space-1); }

    .ym-related-list { grid-template-columns: minmax(0, 1fr); }
    .ym-crumbs [aria-current="page"] { max-width: 24ch; }

    /* One column: even spacing between every field (the plugin adds the
       row's margin on top of the last field's). */
    .ym-contact-page .yc-row { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 0; }
    .ym-contact-page .yc-row .yc-field { margin-bottom: var(--space-5); }
}

/* Chat launcher: icon only on phones, so it covers less of the text. */
@media (max-width: 480px) {
    body #ym-advisor-root .ym-launcher { padding: 0 12px; }
    body #ym-advisor-root .ym-launcher-label { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0ms !important;
        animation-duration: 0ms !important;
        animation-iteration-count: 1 !important;
    }
    .ym-card-link:hover, .ym-btn:active { transform: none; }
    body #ym-advisor-root .ym-launcher:hover { transform: none; }
}
