/* ==========================================================================
   EXCEL theme styles
   Slate brand bands bracket white working sections. Neon only on slate;
   Volt green on white. Colours, fonts, and sizes come from theme.json.
   ========================================================================== */

:root {
	--x-ink: var(--wp--preset--color--ink, #000);
	--x-paper: var(--wp--preset--color--paper, #fff);
	--x-stone: var(--wp--preset--color--stone, #F3F3F1);
	--x-line: var(--wp--preset--color--line, #DDDDDA);
	--x-grey: var(--wp--preset--color--grey, #5F5F5C);
	--x-body: var(--wp--preset--color--body, #3A3A38);
	--x-slate: var(--wp--preset--color--slate, #4B4E52);
	--x-on-slate: var(--wp--preset--color--on-slate, #D2D2CE);
	--x-line-on-slate: #6A6D72;
	--x-base: var(--wp--preset--color--base, #4D4D42);
	--x-neon: var(--wp--preset--color--neon, #39FF14);
	--x-volt: var(--wp--preset--color--volt, #00B82E);
	--x-bad: #B3261E;
	--x-mono: var(--wp--preset--font-family--mono, Inter, "Helvetica Neue", Arial, sans-serif);
}

[hidden] { display: none !important; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--x-volt); outline-offset: 3px; }
.is-style-slate-band :focus-visible, .excel-header :focus-visible { outline-color: var(--x-neon); }
h1, h2, h3 { text-wrap: balance; }

/* No gaps between full-width sections */
.wp-site-blocks > * + * { margin-block-start: 0; }
.excel-main { margin-block-start: 0; }
.excel-main > * { margin-block-start: 0 !important; }
.excel-plus > *, .excel-criteria > *, .excel-cards > *, .excel-hero__grid > *,
.excel-join > *, .excel-head > *, .excel-header__in > *, .excel-header__actions > * { margin-block: 0; }

/* ---------- Shared pieces ---------- */
.is-style-eyebrow, .excel-mono {
	font-family: var(--x-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--x-grey);
}
.is-style-eyebrow a { color: inherit; text-decoration: none; }
.excel-section { padding-block: clamp(72px, 9vw, 120px); }

.is-style-slate-band { background: var(--x-slate); color: var(--x-paper); }
.is-style-slate-band :where(h1, h2, h3, strong) { color: var(--x-paper); }
.is-style-slate-band .is-style-eyebrow { color: var(--x-neon); }
.is-style-slate-band a { color: var(--x-paper); }
.is-style-stone-band { background: var(--x-stone); }

.excel-lede { color: var(--x-on-slate); font-size: var(--wp--preset--font-size--large); max-width: 36em; }

.excel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px) !important; }
.excel-head p { max-width: 30em; color: var(--x-grey); }
.is-style-slate-band .excel-head p { color: var(--x-on-slate); }

/* ---------- Buttons ---------- */
.wp-block-button__link { border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-neon .wp-block-button__link { background: var(--x-neon); color: var(--x-ink); }
.wp-block-button.is-style-neon .wp-block-button__link:hover { background: var(--x-paper); color: var(--x-ink); }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; border-color: var(--x-paper); color: var(--x-paper); }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: var(--x-paper); color: var(--x-ink); }
.wp-block-button.is-style-ink .wp-block-button__link { background: var(--x-ink); color: var(--x-paper); }
.wp-block-button.is-style-ink .wp-block-button__link:hover { background: var(--x-volt); color: var(--x-ink); }
@media (prefers-reduced-motion: reduce) { .wp-block-button__link { transition: none; } .wp-block-button__link:hover { transform: none; } }

/* ---------- Header ---------- */
.excel-header { background: var(--x-slate); color: var(--x-paper); border-bottom: 1px solid var(--x-line-on-slate); }
.excel-header__in { padding-block: 14px; gap: 16px 28px; align-items: center; }
.excel-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--x-paper); }
.excel-word { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.excel-word i { display: inline-block; width: .15em; height: .15em; background: var(--x-neon); margin-left: .05em; }
.excel-nav { flex: 1; font-weight: 500; }
.excel-header .wp-block-navigation a { color: var(--x-on-slate); text-decoration: none; }
.excel-header .wp-block-navigation a:hover { color: var(--x-paper); }
.excel-header .wp-block-navigation__responsive-container-open, .excel-header .wp-block-navigation__responsive-container-close { color: var(--x-paper); }
/* Phone menu: slate overlay with white links (beats WordPress's default white overlay) */
.excel-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open,
.excel-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--x-slate); color: var(--x-paper); padding: 24px var(--wp--custom--gutter);
}
.excel-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open a,
.excel-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--x-paper); font-size: 1.4rem;
}
.excel-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { color: var(--x-paper); }
/* Admin dropdown (shown to administrators only; EXCEL Core removes it for everyone else) */
.excel-header .wp-block-navigation .wp-block-navigation-submenu__toggle,
.excel-header .wp-block-navigation .wp-block-navigation__submenu-icon { color: var(--x-on-slate); }
.excel-header .wp-block-navigation .wp-block-navigation-submenu__toggle:hover,
.excel-header .wp-block-navigation .wp-block-navigation-submenu__toggle[aria-expanded="true"] { color: var(--x-paper); }
.excel-header .wp-block-navigation .excel-admin-only > .wp-block-navigation-submenu__toggle::before {
	content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .35em; vertical-align: -.05em; background: currentColor;
	-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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='1'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='1'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.excel-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--x-paper) !important; color: var(--x-ink) !important; border: 1px solid var(--x-line) !important; min-width: 210px !important; padding: 4px 0;
}
.excel-header .wp-block-navigation .wp-block-navigation__submenu-container a { color: var(--x-ink); padding: 10px 14px; font-size: .95rem; }
.excel-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover { color: var(--x-ink); background: var(--x-stone); }
.excel-header .wp-block-navigation .excel-ext > a::after { content: "\2197"; margin-left: .4em; color: var(--x-grey); font-size: .85em; }
/* Inside the phone/tablet menu: the Admin links sit under their heading, indented, on slate */
.excel-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle { color: var(--x-paper); font-size: 1.4rem; padding: 0; }
.excel-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important; border: 0 !important; border-left: 2px solid var(--x-neon) !important; padding: 2px 0 2px 16px !important; margin-top: .75rem;
}
.excel-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { color: var(--x-on-slate); font-size: 1.1rem; padding: 6px 0; }
.excel-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a:hover { background: transparent; color: var(--x-paper); }
.excel-header .wp-block-navigation__responsive-container.is-menu-open .excel-ext > a::after { color: var(--x-on-slate); }
.excel-header__actions { gap: 18px; align-items: center; }
.excel-header .wp-block-button__link { padding: 0.65rem 1.1rem; font-size: 0.95rem; }
.excel-member-link { display: flex; gap: 16px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.excel-member-link a { color: var(--x-on-slate); text-decoration: none; white-space: nowrap; }
.excel-member-link a:hover { color: var(--x-paper); }
body.logged-in .excel-cta-request { display: none; }

/* ---------- Hero ---------- */
.excel-hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.excel-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: end; }
.excel-hero__copy > .wp-block-buttons { margin-top: 36px; }
.excel-hero__copy > .excel-lede { margin-top: 28px; }
.excel-fee { border-left: 3px solid var(--x-neon); padding-left: 22px; }
.excel-fee > * { margin-block: 0; }
.excel-fee__amount { font-size: clamp(56px, 6vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.excel-fee__note { color: var(--x-on-slate); font-size: 0.95rem; }
@media (max-width: 860px) { .excel-hero__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Benefits: the plus ---------- */
.excel-plus {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	column-gap: clamp(64px, 10vw, 140px);
	row-gap: clamp(80px, 9vw, 120px);
}
.excel-plus::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; margin-left: -9px; background: var(--x-volt); }
.excel-plus::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 18px; margin-top: -9px; background: var(--x-ink); box-shadow: 0 0 0 14px var(--x-paper); }
.excel-q { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 380px; position: relative; z-index: 1; }
.excel-q > * { margin-block: 0; }
.excel-q:nth-child(odd) { justify-self: end; align-items: flex-end; text-align: right; }
.excel-q:nth-child(-n+2) { align-self: end; padding-bottom: clamp(8px, 2vw, 24px); }
.excel-q:nth-child(n+3) { align-self: start; padding-top: clamp(8px, 2vw, 24px); }
.excel-q p:not(.is-style-eyebrow) { color: var(--x-body); }
.excel-q .excel-q__detail { color: var(--x-ink); border-top: 2px solid var(--x-ink); padding-top: 8px; margin-top: 4px; font-size: 0.72rem; }
@media (max-width: 760px) {
	.excel-plus { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 40px; }
	.excel-plus::before, .excel-plus::after { display: none; }
	.excel-q, .excel-q:nth-child(odd) { justify-self: stretch; align-items: flex-start; text-align: left; max-width: none; border-left: 6px solid var(--x-volt); padding: 4px 0 4px 20px !important; }
}

/* ---------- Who it's for ---------- */
.excel-criteria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.excel-crit { border-top: 5px solid var(--x-volt); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.excel-crit > * { margin-block: 0; }
.excel-crit p { color: var(--x-body); }
.excel-crit .excel-firm { border-top: 1px solid var(--x-line); padding-top: 10px; font-weight: 600; font-size: 0.95rem; color: var(--x-ink); }
.excel-crit .excel-size { border-top: 1px solid var(--x-line); padding-top: 8px; color: var(--x-grey); font-size: 0.95rem; display: flex; align-items: baseline; gap: 12px; }
.excel-size strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; color: var(--x-ink); min-width: 3.2em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .excel-criteria { grid-template-columns: 1fr; } }
.excel-titles { margin-top: 48px !important; background: var(--x-paper); padding: 24px 28px; }
.excel-titles > * { margin-block: 0; }
.excel-titles__list { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; margin-top: 10px !important; }
.excel-sectors { margin-top: 36px !important; }
.excel-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.excel-chips li { border: 1.5px solid var(--x-ink); padding: 6px 12px; font-size: 0.875rem; font-weight: 600; background: var(--x-paper); margin: 0; }

/* ---------- How to join ---------- */
.excel-join { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .excel-join { grid-template-columns: 1fr; } }
.excel-steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: step; }
.excel-steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; border-top: 1px solid var(--x-line-on-slate); padding-block: 18px; color: var(--x-on-slate); margin: 0; }
.excel-steps li:last-child { border-bottom: 1px solid var(--x-line-on-slate); }
.excel-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--x-mono); font-size: 0.75rem; letter-spacing: .12em; color: var(--x-neon); padding-top: 6px; grid-row: span 2; }
.excel-steps li strong { display: block; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--x-paper); }
.excel-alt { color: var(--x-on-slate); margin-top: 28px !important; }
.excel-alt a { color: var(--x-paper); word-break: break-word; }
.excel-fine { color: var(--x-on-slate); font-size: 0.875rem; }

/* Invitation form card */
.excel-formcard { background: var(--x-paper); color: var(--x-ink); padding: clamp(24px, 3vw, 36px); min-width: 0; scroll-margin-top: 24px; }
.excel-formcard form, .excel-done { display: flex; flex-direction: column; gap: 18px; }
.excel-formcard h3 { color: var(--x-ink); margin: 0; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.excel-formcard p { margin: 0; }
.excel-formcard .excel-mono { color: var(--x-grey); }
.excel-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 560px) { .excel-fields { grid-template-columns: 1fr; } }
.excel-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.excel-field label { font-family: var(--x-mono); font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--x-grey); }
.excel-field input { font: inherit; font-size: 1rem; color: var(--x-ink); background: var(--x-paper); border: 0; border-bottom: 1.5px solid var(--x-ink); padding: 8px 0; border-radius: 0; min-width: 0; }
.excel-field input:focus { outline: none; border-bottom-color: var(--x-volt); box-shadow: 0 2px 0 var(--x-volt); }
.excel-field input[aria-invalid="true"] { border-bottom-color: var(--x-bad); }
.excel-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.excel-agree { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; border-top: 1px solid var(--x-line); padding-top: 16px; font-size: 0.95rem; color: var(--x-body); cursor: pointer; }
.excel-agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--x-volt); cursor: pointer; }
.excel-agree a, .is-style-slate-band .excel-formcard a { color: var(--x-ink); font-weight: 600; }
.excel-err { color: var(--x-bad); font-size: 0.875rem; }
.excel-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--x-grey); font-size: 0.95rem; }
.excel-btn { font: inherit; font-weight: 700; font-size: 1.0625rem; min-height: 52px; padding: 0 26px; border: 0; cursor: pointer; background: var(--x-volt); color: var(--x-ink); transition: background-color .15s ease, color .15s ease; }
.excel-btn:hover { background: var(--x-ink); color: var(--x-paper); }
.excel-btn[disabled] { opacity: .55; cursor: not-allowed; }
.excel-privacy { color: var(--x-grey); font-size: 0.8rem; border-top: 1px solid var(--x-line); padding-top: 12px; }

/* ---------- Partners ---------- */
.excel-partners { max-width: 880px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.excel-partners > * { margin-block: 0; }
.excel-partners p:not(.is-style-eyebrow) { color: var(--x-body); max-width: 40em; font-size: var(--wp--preset--font-size--large); }
.excel-partners .wp-block-buttons { margin-top: 8px; justify-content: center; }

/* ---------- Footer ---------- */
.excel-footer { background: var(--x-base); color: var(--x-paper); padding-block: 18px; font-size: 0.95rem; }
.excel-footer p { margin: 0; }
.excel-footer a { color: var(--x-paper); }
.excel-footer strong { font-weight: 600; letter-spacing: .02em; }

/* ---------- Inner pages ---------- */
.excel-page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.excel-page-head > * { margin-block: 0; }

.excel-page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); color: var(--x-paper); }
.excel-page-head .wp-block-post-terms a { color: var(--x-neon); }
.excel-page-body { padding-block: clamp(48px, 6vw, 88px); }
.excel-member-head + .excel-page-body { background: var(--x-stone); }
.excel-page-body .wp-block-post-content a:not(.wp-block-button__link) { text-decoration-color: var(--x-volt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.excel-back { margin-top: 40px; font-weight: 600; }
.excel-back a { text-decoration: none; }
.excel-index-title { display: none; }
.home.blog .excel-index-title, .blog .excel-index-title { display: block; }

/* Cards: member area and resource library */
.excel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.wp-block-post-template.excel-resource-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 20px; list-style: none; padding: 0; }
.excel-card { background: var(--x-paper); border: 1px solid var(--x-line); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; height: 100%; }
.excel-card > * { margin-block: 0; }
.excel-card h3 { font-size: 1.5rem; }
.excel-card h3 a { text-decoration: none; }
.excel-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--x-volt); }
.excel-card p { color: var(--x-body); }
.excel-card .excel-card__link { margin-top: auto; padding-top: 8px; }
.excel-card .excel-card__link a { font-weight: 700; text-decoration-color: var(--x-volt); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.excel-card__date { color: var(--x-grey); font-size: 0.85rem; margin-top: auto !important; }
.excel-member-home { padding-top: 0; }
.excel-greeting { font-size: var(--wp--preset--font-size--large); font-weight: 600; max-width: 1180px; margin: 0 auto 28px !important; }
.wp-block-query-pagination { margin-top: 32px; font-weight: 600; }

/* ---------- MemberPress forms (login, sign-up, account) ---------- */
.mp_wrapper, .mepr-login-form-wrap, .mepr-signup-form { max-width: 560px; }
.mp_wrapper label, .mepr-form label { font-weight: 600; font-size: 0.9rem; }
.mp_wrapper input[type="text"], .mp_wrapper input[type="email"], .mp_wrapper input[type="password"],
.mp_wrapper input[type="tel"], .mp_wrapper input[type="url"], .mp_wrapper select, .mp_wrapper textarea,
.excel-page-body .wp-block-post-content input[type="text"], .excel-page-body .wp-block-post-content input[type="email"],
.excel-page-body .wp-block-post-content input[type="password"], .excel-page-body .wp-block-post-content select {
	font: inherit; width: 100%; border: 1px solid var(--x-line); background: var(--x-paper); padding: 10px 12px; border-radius: 0; color: var(--x-ink);
}
.mp_wrapper input:focus, .mp_wrapper select:focus { outline: none; border-color: var(--x-volt); box-shadow: 0 0 0 1px var(--x-volt); }
.mp_wrapper input[type="submit"], .mp_wrapper button[type="submit"], .mp_wrapper .mepr-submit, .mepr-submit,
.excel-page-body .wp-block-post-content input[type="submit"] {
	font: inherit; font-weight: 700; background: var(--x-volt); color: var(--x-ink); border: 0; border-radius: 0; padding: 0.9rem 1.6rem; cursor: pointer;
}
.mp_wrapper input[type="submit"]:hover, .mp_wrapper .mepr-submit:hover, .mepr-submit:hover { background: var(--x-ink); color: var(--x-paper); }
#mepr-account-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid var(--x-line); padding-bottom: 12px; margin-bottom: 28px; }
#mepr-account-nav a { font-weight: 600; text-decoration: none; }
.mepr-nav-item.mepr-active-nav-tab a { text-decoration: underline; text-decoration-color: var(--x-volt); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mp_wrapper table { width: 100%; border-collapse: collapse; }
.mp_wrapper th, .mp_wrapper td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--x-line); }
.mepr_error, .mepr-form-has-errors { color: var(--x-bad); }
.excel-protected { background: var(--x-paper); border: 1px solid var(--x-line); padding: 28px; max-width: 640px; }
.excel-protected > * + * { margin-top: 12px; }

/* Keep the footer at the bottom of short pages */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > .excel-main, .wp-site-blocks > main { flex: 1 0 auto; }
.excel-page-head__in > * { margin-block: 0; }
.excel-page-head__in > * + * { margin-top: 18px; }
.excel-main:has(.excel-member-head) { background: var(--x-stone); }

/* ---------- Join, login, and account pages (EXCEL Core) ---------- */
.excel-form, .excel-panel { max-width: 720px; }
.excel-form { display: flex; flex-direction: column; gap: 8px; }
.excel-form fieldset { border: 0; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.excel-form legend { font-family: var(--x-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--x-ink); border-top: 2px solid var(--x-ink); padding-top: 10px; margin-bottom: 14px; width: 100%; }
.excel-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.excel-row--3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.8fr); }
@media (max-width: 640px) { .excel-row, .excel-row--3 { grid-template-columns: 1fr; } }
.excel-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.excel-f label, .excel-login label { font-weight: 600; font-size: 0.9rem; }
.excel-f label span { font-weight: 400; color: var(--x-grey); }
.excel-f input, .excel-f select, .excel-login input[type="text"], .excel-login input[type="password"] {
	font: inherit; width: 100%; border: 1px solid var(--x-line); background: var(--x-paper); padding: 10px 12px; border-radius: 0; color: var(--x-ink); min-width: 0;
}
.excel-f input:focus, .excel-f select:focus, .excel-login input:focus { outline: none; border-color: var(--x-volt); box-shadow: 0 0 0 1px var(--x-volt); }
.excel-help { color: var(--x-grey); font-size: 0.875rem; margin: 0; }
.excel-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; border-top: 1px solid var(--x-line); padding-top: 16px; margin-bottom: 12px; font-size: 0.95rem; color: var(--x-body); cursor: pointer; }
.excel-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--x-volt); }
.excel-form .excel-btn, .excel-panel .excel-btn { align-self: flex-start; display: inline-flex; align-items: center; text-decoration: none; }
.excel-btn--line { background: transparent; border: 1.5px solid var(--x-ink); color: var(--x-ink); }
.excel-btn--line:hover { background: var(--x-ink); color: var(--x-paper); }
.excel-link { font-weight: 600; margin-left: 12px; }
.excel-notice { background: var(--x-paper); border-left: 4px solid var(--x-slate); padding: 14px 18px; margin-bottom: 24px; max-width: 720px; }
.excel-notice--error { border-left-color: var(--x-bad); }
.excel-notice ul { margin: 0; padding-left: 18px; }
.excel-panel { background: var(--x-paper); border: 1px solid var(--x-line); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.excel-panel > * { margin: 0; }
.excel-panel__title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.excel-panel h3 { font-size: 1.25rem; margin-top: 10px; }
.excel-panel ul { margin: 0; padding-left: 20px; color: var(--x-body); }
.excel-invoice { border-top: 1px solid var(--x-line); border-bottom: 1px solid var(--x-line); padding-block: 14px; display: flex; flex-direction: column; gap: 12px; }
.excel-invoice p { margin: 0; }
.excel-login form p { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.excel-login .login-remember label { flex-direction: row; font-weight: 400; display: flex; gap: 8px; align-items: center; }
.excel-login input[type="submit"] { font: inherit; font-weight: 700; background: var(--x-volt); color: var(--x-ink); border: 0; border-radius: 0; padding: 0.9rem 1.6rem; cursor: pointer; }
.excel-login input[type="submit"]:hover { background: var(--x-ink); color: var(--x-paper); }
.excel-page-body .wp-block-post-content > .excel-form, .excel-page-body .wp-block-post-content > .excel-panel, .excel-page-body .wp-block-post-content > .excel-notice { margin-inline: auto; }
.excel-form, .excel-form *, .excel-panel, .excel-panel *, .excel-notice, .excel-login * { box-sizing: border-box; }
.excel-f select { height: 46px; }

/* Phone header: logo left, menu icon right, login and invitation on a second row */
@media (max-width: 600px) {
	.excel-header__in { row-gap: 12px; }
	.excel-header__in > .wp-block-html, .excel-header__in > .excel-brand { order: 1; }
	.excel-nav { order: 2; flex: 0 0 auto; margin-left: auto; }
	.excel-header__actions { order: 3; width: 100%; justify-content: space-between; }
	.excel-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
}

/* Landscape phones and small tablets (600-1024px): keep the menu icon instead of the full menu */
@media (min-width: 600px) and (max-width: 1024px) {
	.excel-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.excel-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.excel-header .wp-block-navigation__responsive-container.is-menu-open {
		display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100000; overflow: auto;
	}
	.excel-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; }
	.excel-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
	.excel-header__in { flex-wrap: nowrap; }
	.excel-header__actions { order: 2; margin-left: auto; }
	.excel-nav { order: 3; flex: 0 0 auto; }
}

/* Mission: centred statement between the criteria and partners. */
.excel-mission { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; border-bottom: 1px solid var(--x-line, #DDDDDA); }
.excel-mission .is-style-eyebrow { color: var(--x-grey); }
.excel-mission h2 { max-width: 16em; margin-inline: auto; }

/* Privacy policy and other long text pages. */
.excel-updated { font-family: var(--x-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--x-grey); }
.excel-prose h2 { font-size: clamp(1.375rem, 2.4vw, 1.625rem); letter-spacing: -.025em; line-height: 1.2; margin-top: 2.5rem; margin-bottom: .6rem; padding-top: 14px; border-top: 2px solid var(--x-ink, #000); }
.excel-prose li + li { margin-top: .5rem; }
