/* Exlex Sapiens — component styles. Colours, fonts and radii come from tokens.css; no radii, no shadows (radius-none, shadow-none). */
.es-logo { display: inline-flex; align-items: center; gap: .55em; line-height: 0; }
.es-logo-svg { display: block; width: auto; }
.es-fill-blue { fill: var(--brand-blue); }
.es-fill-orange { fill: var(--brand-orange); }
.es-mono .es-fill-blue, .es-mono .es-fill-orange { fill: var(--ink); }
.es-wordmark { display: block; width: auto; fill: var(--ink); }

/* Button */
.es-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--font-text); font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: var(--radius-none); box-shadow: var(--shadow-none); transition: background-color .15s, border-color .15s, color .15s; }
.es-btn-md { font-size: 15px; line-height: 20px; padding: 10px 18px; }
.es-btn-lg { font-size: 17px; line-height: 22px; padding: 14px 26px; }
.es-btn-sm { font-size: 13px; line-height: 18px; padding: 6px 12px; }
.es-btn-primary { background: var(--brand-blue); color: var(--on-brand); }
.es-btn-primary:hover { background: var(--brand-blue-hover); }
.es-btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.es-btn-secondary:hover { background: var(--surface-alt); }
.es-btn-ghost { background: transparent; color: var(--ink); padding-left: 0; padding-right: 0; border-bottom: 2px solid var(--brand-orange); }
.es-btn-ghost:hover { border-bottom-color: var(--ink); }
.es-btn:focus-visible, .es-header a:focus-visible, .es-card-link:focus-visible, .es-field input:focus-visible, .es-field textarea:focus-visible, .es-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.es-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Site header */
.es-header { background: var(--surface); border-top: 3px solid var(--brand-orange); border-bottom: 1px solid var(--line); font-family: var(--font-text); }
.es-header-bar { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.es-header-home { display: inline-flex; color: var(--ink); text-decoration: none; }
.es-header ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.es-header-nav a:not(.es-btn), .es-header-drawer a:not(.es-btn) { color: var(--ink); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.es-header-nav a:not(.es-btn):hover, .es-header a[aria-current="page"] { border-bottom-color: var(--brand-orange); }
.es-header-menu { display: none; }
.es-header-menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; padding: 8px 14px; border: 1px solid var(--ink); color: var(--ink); }
.es-header-menu summary::-webkit-details-marker { display: none; }
.es-header-drawer { position: absolute; right: 0; top: 100%; width: min(100%, 360px); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand-orange); padding: 12px 24px 20px; z-index: 20; }
.es-header-drawer ul { flex-direction: column; align-items: stretch; gap: 4px; }
.es-header-drawer a { display: block; padding: 10px 0; }
.es-header-drawer .es-btn { margin-top: 8px; }
@media (max-width: 820px) { .es-header-nav { display: none; } .es-header-menu { display: block; } }

/* Site footer */
.es-footer { background: var(--surface-alt); border-top: 3px solid var(--brand-orange); font-family: var(--font-text); color: var(--ink); }
.es-footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: minmax(220px, 1fr) 2fr auto; gap: 32px; align-items: start; }
.es-footer-name { margin: 12px 0 2px; font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; font-size: 15px; text-transform: uppercase; }
.es-footer-motto { margin: 0; font-family: var(--font-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.es-footer-data p { margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.es-footer-links { list-style: none; margin: 0; padding: 0; }
.es-footer-links a { color: var(--ink); font-size: 14px; line-height: 2; text-decoration: none; border-bottom: 1px solid var(--line); }
.es-footer-links a:hover { border-bottom-color: var(--brand-orange); }
@media (max-width: 720px) { .es-footer-inner { grid-template-columns: 1fr; } }

/* Section title */
.es-section-title { margin: 0 0 24px; }
.es-section-title.es-center { text-align: center; }
.es-eyebrow { margin: 0 0 8px; font-family: var(--font-text); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.es-section-h { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: .04em; color: var(--ink); }
.es-rule { display: block; width: 46px; height: 3px; background: var(--brand-orange); margin: 14px 0 12px; }
.es-center .es-rule { margin-left: auto; margin-right: auto; }
.es-motto { margin: 0; font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Card */
.es-card { display: block; background: var(--surface); border: 1px solid var(--line); padding: 24px; color: var(--ink); text-decoration: none; font-family: var(--font-text); }
.es-card-link:hover { border-color: var(--ink); }
.es-card-meta { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.es-card-title { margin: 0 0 10px; font-size: 21px; line-height: 1.3; font-weight: 600; }
.es-card-body { font-size: 16px; line-height: 1.6; }
.es-card-body > :first-child { margin-top: 0; } .es-card-body > :last-child { margin-bottom: 0; }

/* Quote */
.es-quote { margin: 0; padding: 8px 0; font-family: var(--font-text); color: var(--ink); max-width: 44em; }
.es-quote-mark { display: block; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 16px solid var(--brand-orange); margin-bottom: 14px; }
.es-quote blockquote { margin: 0; font-size: 22px; line-height: 1.45; font-style: italic; }
.es-quote figcaption { margin-top: 12px; font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Callout */
.es-callout { display: flex; gap: 14px; background: var(--surface-alt); padding: 18px 20px; font-family: var(--font-text); color: var(--ink); }
.es-callout-glyph { flex: none; width: 0; height: 0; margin-top: 5px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid var(--brand-blue); }
.es-callout-important .es-callout-glyph { border-left-color: var(--brand-orange); }
.es-callout-important { background: var(--surface); border: 1px solid var(--ink); }
.es-callout-title { margin: 0 0 4px; font-weight: 600; font-size: 16px; }
.es-callout-body { font-size: 15px; line-height: 1.6; }
.es-callout-body > :first-child { margin-top: 0; } .es-callout-body > :last-child { margin-bottom: 0; }

/* Form fields */
.es-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-text); color: var(--ink); margin-bottom: 18px; }
.es-field label { font-size: 14px; font-weight: 600; }
.es-req { color: var(--danger); }
.es-field input, .es-field textarea { font: inherit; font-size: 16px; line-height: 1.4; padding: 10px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--radius-none); box-shadow: var(--shadow-none); }
.es-field textarea { min-height: 120px; resize: vertical; }
.es-field input:hover, .es-field textarea:hover { border-color: var(--ink); }
.es-field-error input, .es-field-error textarea { border-color: var(--danger); border-width: 2px; padding: 9px 11px; }
.es-field-msg { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 400; }
.es-field-errmsg { color: var(--danger); }
.es-check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-text); color: var(--ink); margin-bottom: 14px; }
.es-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand-blue); flex: none; }
.es-check label { font-size: 15px; line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
