/* First November palette. Site-owned adapter, loaded after native theme/plugins.
 * Normative tokens follow the 2026-11-19 design spec byte-for-byte. */
.lml-theme {
  --lml-color-canvas: #F7F5EF;
  --lml-color-surface: #FFFFFF;
  --lml-color-text: #202621;
  --lml-color-text-muted: #4B574E;
  --lml-color-primary: #24543B;
  --lml-color-primary-hover: #193D2B;
  --lml-color-on-primary: #FFFFFF;
  --lml-color-link: #24543B;
  --lml-color-error: #A52E25;
  --lml-color-info: #175B86;
  --lml-color-warning: #8A3E00;
  --lml-color-focus: #175B86;
  --lml-color-control-border: #4B574E;
  --lml-color-primary-pressed: #10291D;
  --lml-color-success: #24543B;
  --lml-color-disabled: #4B574E;
  --lml-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lml-font-heading: var(--lml-font-body);
  --lml-text-small: 0.875rem;
  --lml-text-body: 1rem;
  --lml-text-lead: 1.125rem;
  --lml-text-h3: 1.25rem;
  --lml-text-h2: 1.5rem;
  --lml-text-h1: clamp(2rem, 1.3rem + 3vw, 3rem);
  --lml-space-1: 0.25rem;
  --lml-space-2: 0.5rem;
  --lml-space-3: 0.75rem;
  --lml-space-4: 1rem;
  --lml-space-6: 1.5rem;
  --lml-space-8: 2rem;
  --lml-space-12: 3rem;
  --lml-radius-control: 0.375rem;
  --lml-radius-card: 0.75rem;
  --lml-content-max: 72rem;
  --lml-focus-width: 3px;
}
/* Compatibility aliases let incumbent layout and maps consume the same palette. */
body.lml-theme {
  --lml-tinto: var(--lml-color-primary);
  --lml-olivo: var(--lml-color-primary);
  --lml-maiz: var(--lml-color-canvas);
  --lml-ink: var(--lml-color-text);
  --lml-pale: var(--lml-color-canvas);
  --lmx-crema: var(--lml-color-canvas);
  --lmx-papel: var(--lml-color-surface);
  --lmx-linea: var(--lml-color-control-border);
  --lmx-texto-2: var(--lml-color-text-muted);
  --lmx-sombra: none;
  --lmx-sombra-s: none;
  --global--color-background: var(--lml-color-canvas);
  --global--color-primary: var(--lml-color-text);
  --global--font-primary: var(--lml-font-body);
  --global--font-secondary: var(--lml-font-body);
  background: var(--lml-color-canvas);
  color: var(--lml-color-text);
  font: 400 var(--lml-text-body)/1.5 var(--lml-font-body);
}
body.lml-theme :is(h1,h2,h3,h4,h5,h6) {
  color: var(--lml-color-text) !important;
  font-family: var(--lml-font-heading) !important;
  font-weight: 700;
  letter-spacing: normal;
}
body.lml-theme :is(h1,.lml-hero h1) {font-size:var(--lml-text-h1) !important;line-height:1.15}
body.lml-theme h2 {font-size:var(--lml-text-h2) !important;line-height:1.25}
body.lml-theme h3 {font-size:var(--lml-text-h3) !important;line-height:1.3}
body.lml-theme :is(.lml-hero p,.lmx-lead,.lmx-plato p,.lmx-paso p,.lmx-carta-oficio) {color:var(--lml-color-text);font-size:var(--lml-text-lead);line-height:1.5}
body.lml-theme :is(.lml-footer,.lml-mesa p,.lml-muted,.lml-journey p,.lmx-muted) {color:var(--lml-color-text-muted)}
body.lml-theme :is(small,.lml-muted,.lmx-muted) {font-size:var(--lml-text-small);line-height:1.45}
body.lml-theme :is(.lml-wrap,.lml-header,.lml-footer) {max-width:var(--lml-content-max);padding-left:var(--lml-space-4);padding-right:var(--lml-space-4)}
body.lml-theme :is(p,li,dd,dt,label,a,button,h1,h2,h3) {overflow-wrap:anywhere}
body.lml-theme :is(.lml-header,.lml-header nav,.lml-actions,.lmx-vista) {min-width:0;max-width:100%;flex-wrap:wrap}
body.lml-theme .lml-brand {white-space:normal;min-width:0;line-height:1.3}
body.lml-theme .lml-brand img {flex-shrink:0}
body.lml-theme :is(.lml-hero p,.lml-section>p,.lml-footer p,.lml-editorial) {max-width:65ch}
body.lml-theme :is(.lml-mesas,.lmx-map,.lml-event-card,.lml-notice,.lml-next,.lml-event-details) {border-radius:var(--lml-radius-card);box-shadow:none}
body.lml-theme .lml-tinto,
body.lml-theme.home-page #sobremesas,
body.lml-theme .lmx-invitacion {background:var(--lml-color-surface);color:var(--lml-color-text)}
body.lml-theme :is(.lmx-invitacion p,.lmx-oceano figcaption,.lmx-carta .is-vacio) {color:var(--lml-color-text-muted);opacity:1}
body.lml-theme .lmx-oceano figcaption {background:var(--lml-color-surface)}
body.lml-theme.home-page #sobremesas .lml-section {padding-top:var(--lml-space-12);padding-bottom:var(--lml-space-12)}
body.lml-theme.home-page .lml-hero::before {background:var(--lml-color-surface);color:var(--lml-color-primary);font-family:var(--lml-font-body);outline-color:var(--lml-color-primary);animation:none}
body.lml-theme :is(a,.lml-header nav>a:not(.lml-button),.lml-mesa h3 a,.lmx-panel li a,.lmx-pais li a) {color:var(--lml-color-link);text-decoration:underline;text-underline-offset:.2em}
body.lml-theme a:hover {color:var(--lml-color-primary-hover)}
body.lml-theme a:active {color:var(--lml-color-primary-pressed)}
body.lml-theme :is(button,.lml-button,input[type=submit],.button-primary) {
  font:600 var(--lml-text-body)/1.5 var(--lml-font-body) !important;
  min-height:44px !important;
  max-width:100%;white-space:normal;
  border-radius:var(--lml-radius-control) !important;
  border:2px solid var(--lml-color-primary);
  background:var(--lml-color-primary) !important;
  color:var(--lml-color-on-primary) !important;
  text-decoration:none;box-shadow:none !important;
}
body.lml-theme :is(button,.lml-button,input[type=submit],.button-primary):hover {background:var(--lml-color-primary-hover) !important;color:var(--lml-color-on-primary) !important;transform:none;text-decoration:none}
body.lml-theme :is(button,.lml-button,input[type=submit],.button-primary):active {background:var(--lml-color-primary-pressed) !important;color:var(--lml-color-on-primary) !important}
body.lml-theme :is(.lml-outline,.lml-maiz,.lmx-claro,.lmx-volver,.lmx-chips button,.lmx-vista button) {background:var(--lml-color-surface) !important;color:var(--lml-color-primary) !important;border-color:var(--lml-color-control-border)}
body.lml-theme :is(.lmx-chips button,.lmx-vista button)[aria-pressed=true] {background:var(--lml-color-primary) !important;color:var(--lml-color-on-primary) !important}
body.lml-theme .lmx-chips button small {color:inherit !important}
body.lml-theme :is(button,.lml-button,input[type=submit]):disabled {opacity:1;background:var(--lml-color-canvas) !important;color:var(--lml-color-disabled) !important;cursor:not-allowed}
body.lml-theme :focus-visible {
  outline:var(--lml-focus-width) solid var(--lml-color-focus) !important;
  outline-offset:3px !important;
  box-shadow:0 0 0 2px var(--lml-color-surface) !important;
}
body.lml-theme .lmx-color:has(input:focus-visible) {outline:var(--lml-focus-width) solid var(--lml-color-focus);outline-offset:3px}
body.lml-theme :is(input:not([type=submit]):not([type=checkbox]):not([type=radio]),select,textarea) {
  font:400 var(--lml-text-body)/1.5 var(--lml-font-body) !important;
  min-height:44px;border:1px solid var(--lml-color-control-border);border-radius:var(--lml-radius-control);
  background:var(--lml-color-surface);color:var(--lml-color-text);max-width:100%;min-width:0;
}
body.lml-theme ::placeholder {color:var(--lml-color-text-muted);opacity:1}
body.lml-theme label {font-size:var(--lml-text-body);font-weight:600}
body.lml-theme :is(.lml-directory-controls a,.lml-directory-pages a,.lmx-pais li a,.lml-footer a,.lmx-panel li a) {min-height:44px}
body.lml-theme :is([role=status],.lml-loading) {color:var(--lml-color-info)}
body.lml-theme :is([role=alert],#login_error,.lml-error) {background:var(--lml-color-surface);color:var(--lml-color-error);border-color:var(--lml-color-error)}
body.lml-theme :is(.lml-warning,.warning) {background:var(--lml-color-surface);color:var(--lml-color-warning)}
body.lml-theme :is(.lml-success,.success) {background:var(--lml-color-surface);color:var(--lml-color-success)}
body.lml-theme .lmx-tip {background:var(--lml-color-primary);color:var(--lml-color-on-primary)}
body.lml-theme .lmx-map-stage {background:var(--lml-color-surface)}
body.lml-theme .lmx-mesa-svg > rect {fill:var(--lml-color-primary)}
body.lml-theme .lmx-mesa-svg .lmx-silla circle {fill:var(--lml-color-canvas);stroke:var(--lml-color-primary);stroke-width:2px}
body.lml-theme .lmx-mesa-svg .lmx-mesa-label {fill:var(--lml-color-on-primary);font-family:var(--lml-font-body)}
body.lml-theme :is(.lmx-travesia text,.lmx-historia-svg text,.lmx-tusilla text) {fill:var(--lml-color-primary);font-family:var(--lml-font-body)}
body.lml-theme .lmx-carta {--c-txt:var(--lml-color-on-primary)}
body.lml-theme .lmx-carta[data-color=maiz] {--c-txt:var(--lml-color-text)}
body.lml-theme .lmx-carta dt {background:var(--c);color:var(--c-txt)}
body.lml-theme .lmx-historia[data-step] .lmx-paso {opacity:1 !important}
body.lml-theme :is(.lmx-pais,.lmx-panel,.lml-mesa,.lmx-map-head) {min-width:0}
body.lml-theme .lmx-indice-grid,
body.lml-theme .lmx-explora ul {grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:var(--lml-space-6)}
/* Native vendor semantics remain intact; do not replace icons with body fonts. */
body.lml-theme :is(.youzify,#buddypress,.youzify-account-page) {font-family:var(--lml-font-body) !important;color:var(--lml-color-text)}
body.lml-theme .youzify :is(input,select,textarea) {font-family:var(--lml-font-body) !important}
body.lml-theme .youzify-head-buttons [data-youzify-tooltip]::after {font-family:var(--lml-font-body)}
body.lml-theme .youzify :is(.youzify-voters-nbr,.youzify-result-count) {color:var(--lml-color-text-muted)}
body.lml-theme.login form {background:var(--lml-color-surface);border-color:var(--lml-color-control-border);border-radius:var(--lml-radius-card)}
body.lml-theme.login #login :is(label,.message,#nav a,#backtoblog a) {color:var(--lml-color-text)}
/* Real native group content uses a solid reading surface, never cover-image text. */
body.lml-theme .youzify-header-cover {background:var(--lml-color-surface)}
/* Native cover pseudo-elements otherwise paint black at 50% plus a dotted image
 * above that surface. Suppress decoration, not native group content or handlers. */
body.lml-theme .youzify-header-cover::before,
body.lml-theme .youzify-header-cover::after {content:none !important;display:none !important;background:none !important;opacity:0 !important}
body.lml-theme .youzify-cover-pattern {background:var(--lml-color-surface) !important}
body.lml-theme .youzify-cover-content :is(.youzify-usermeta span,.youzify-snumber) {color:var(--lml-color-text) !important}
body.lml-theme :is(.youzify-responsive-menu,.youzify-responsive-menu span) {background:var(--lml-color-primary) !important;color:var(--lml-color-on-primary) !important}
body.lml-theme #youzify :is(label,#message p,.nice-select .current) {color:var(--lml-color-text) !important;font-size:var(--lml-text-body)}
/* Restore the labelled native select, whose keyboard semantics the visual shim lacks. */
body.lml-theme #activity-filter-by {display:inline-block !important;min-height:44px;background:var(--lml-color-surface) !important;color:var(--lml-color-text) !important;border:1px solid var(--lml-color-control-border)}
body.lml-theme .youzify-sdescription {color:var(--lml-color-text);font-size:var(--lml-text-small);margin:0}
body.lml-theme #youzify :is(.youzify-wall-add-post li,.youzify-wall-add-post li span) {color:var(--lml-color-text) !important;background:var(--lml-color-surface) !important;font-size:var(--lml-text-body)}
body.lml-theme #youzify [class*="youzify-wall-add-activity_"] {color:var(--lml-color-text) !important;background:var(--lml-color-surface) !important}
body.lml-theme #youzify [class*="youzify-wall-add-activity_"] > span {color:var(--lml-color-text) !important;font-size:var(--lml-text-body)}
body.lml-theme #activity-filter-by + .nice-select {display:none !important}
body.lml-theme.login .wp-login-logo a {background:none !important;text-indent:0;overflow:visible;height:auto !important;width:auto !important;font:700 var(--lml-text-h2)/1.25 var(--lml-font-body)}
body.lml-theme.login .forgetmenot {min-height:44px;display:flex;align-items:center;gap:8px}
body.lml-theme.login #rememberme {width:24px;height:24px}
body.lml-theme.login .forgetmenot label {min-height:44px;display:inline-flex;align-items:center}
@media(min-width:600px) {body.lml-theme :is(.lml-wrap,.lml-header,.lml-footer) {padding-left:var(--lml-space-6);padding-right:var(--lml-space-6)}}
@media(min-width:1024px) {body.lml-theme :is(.lml-wrap,.lml-header,.lml-footer) {padding-left:var(--lml-space-8);padding-right:var(--lml-space-8)}}
@media(max-width:599px) {
  body.lml-theme .lml-mesa {grid-template-columns:16px minmax(0,1fr)}
  body.lml-theme .lml-mesa>:not(.lml-dot) {grid-column:2;grid-row:auto}
  body.lml-theme .lmx-panel {contain:none}
}
@media(prefers-reduced-motion:reduce) {
  html:has(body.lml-theme) {scroll-behavior:auto}
  body.lml-theme *,body.lml-theme *::before,body.lml-theme *::after {animation:none !important;transition:none !important;scroll-behavior:auto !important}
  html.lmx-js body.lml-theme [data-lmx-reveal] {opacity:1;transform:none}
}
@media(forced-colors:active) {
  body.lml-theme {background:Canvas;color:CanvasText}
  body.lml-theme :is(h1,h2,h3,p,label) {color:CanvasText !important}
  body.lml-theme :is(button,.lml-button,input,select,textarea) {background:Canvas !important;color:CanvasText !important;border:2px solid ButtonText !important;forced-color-adjust:auto}
  body.lml-theme :focus-visible {outline:3px solid Highlight !important;box-shadow:none !important}
}
