/* =============================================================================
   newIndex.css — Elder Care IQ design system (Elder Voice Advocates brand)
   -----------------------------------------------------------------------------
   Tokens, base styles and reusable "eiq-" classes for the redesigned site.
   All classes are prefixed with "eiq-" so this file can be loaded alongside the
   legacy style/index.css without collisions while pages are migrated.

   Sections
     1. Design tokens (custom properties)
     2. Base / reset (scoped to body.eiq)
     3. Typography
     4. Layout (container, section, grid, stack)
     5. Buttons & links
     6. Surfaces (cards, chips, badges, panels)
     7. Forms
     8. Icons
     9. Utilities
    10. Motion & accessibility
   ========================================================================== */


/* 1. DESIGN TOKENS ========================================================= */
:root {
	/* Brand palette */
	--color-white:    #FFFFFF;
	--color-beige:    #FEF7ED;
	--color-orange:   #F7941D;
	--color-red:      #F15A29;
	--color-blue:     #0097B2;
	--color-teal:     #087187;
	--color-graphite: #333333;

	/* Supporting tints & shades (derived from the palette) */
	--color-beige-deep:   #FCEBD3;   /* hover / stronger beige */
	--color-orange-tint:  #FEEBD2;   /* soft orange fill */
	--color-orange-dark:  #E07E0B;   /* orange hover */
	--color-red-tint:     #FDE4DA;
	--color-blue-tint:    #E3F4F7;
	--color-teal-dark:    #065A6B;
	--color-teal-light:   #1C8297;   /* panels on teal */
	--color-graphite-2:   #5C5C5C;   /* secondary text (AA on white & beige) */
	--color-graphite-3:   #8A8A8A;   /* tertiary / meta text */
	--color-line:         #EADFCF;   /* hairlines on beige */
	--color-line-neutral: #E6E6E6;   /* hairlines on white */
	--color-footer:       #333333;

	/* Semantic roles */
	--color-bg:           var(--color-white);
	--color-bg-alt:       var(--color-beige);
	--color-text:         var(--color-graphite);
	--color-text-muted:   var(--color-graphite-2);
	--color-text-subtle:  var(--color-graphite-3);
	--color-accent:       var(--color-red);        /* emphasis in headlines */
	--color-cta:          var(--color-orange);     /* primary action */
	--color-link:         var(--color-teal);
	--color-eyebrow:      var(--color-teal);
	--color-focus:        var(--color-blue);

	/* Status (used for report findings) */
	--color-status-high:  var(--color-red);
	--color-status-mid:   var(--color-orange);
	--color-status-low:   var(--color-blue);

	/* Gradients */
	--gradient-warm: linear-gradient(110deg, #F15A29 0%, #F7941D 100%);
	--gradient-cool: linear-gradient(110deg, #087187 0%, #0097B2 100%);

	/* Fonts */
	--font-heading: 'Lora', Georgia, 'Times New Roman', serif;
	--font-body:    'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

	/* Type scale (brand sizes as maximums; fluid down to mobile) */
	--fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);        /* 64px */
	--fs-h2: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);       /* 56px */
	--fs-h3: clamp(2rem, 1.4rem + 2.4vw, 3rem);          /* 48px */
	--fs-h4: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);    /* 40px */
	--fs-h5: clamp(1.5rem, 1.25rem + 1vw, 2rem);         /* 32px */
	--fs-h6: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);    /* 24px */
	--fs-supertitle: 1.125rem;                           /* 18px */
	--fs-lg:   clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); /* 22px */
	--fs-base: 1.125rem;                                 /* 18px */
	--fs-sm:   1rem;                                     /* 16px */
	--fs-xs:   0.875rem;                                 /* 14px */
	--fs-2xs:  0.8125rem;                                /* 13px */

	--fw-regular:  400;
	--fw-semibold: 600;
	--fw-bold:     700;

	--lh-tight:   1.12;
	--lh-heading: 1.2;
	--lh-body:    1.6;

	/* Spacing (4px base) */
	--space-1:  0.25rem;
	--space-2:  0.5rem;
	--space-3:  0.75rem;
	--space-4:  1rem;
	--space-5:  1.25rem;
	--space-6:  1.5rem;
	--space-8:  2rem;
	--space-10: 2.5rem;
	--space-12: 3rem;
	--space-16: 4rem;
	--space-20: 5rem;
	--space-24: 6rem;
	--section-pad: clamp(3.5rem, 2rem + 6vw, 7rem);

	/* Layout */
	--container-max: 1200px;
	--container-pad: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
	--header-height: 76px;

	/* Radii */
	--radius-sm:   6px;
	--radius-md:   10px;
	--radius-lg:   16px;
	--radius-xl:   22px;
	--radius-pill: 999px;

	/* Shadows (warm-tinted) */
	--shadow-sm: 0 1px 2px rgba(51, 38, 20, 0.06);
	--shadow-md: 0 6px 20px rgba(51, 38, 20, 0.08);
	--shadow-lg: 0 18px 50px rgba(51, 38, 20, 0.12);
	--shadow-focus: 0 0 0 3px rgba(0, 151, 178, 0.35);

	/* Motion */
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--dur-fast: 150ms;
	--dur: 250ms;

	/* Layers */
	--z-header: 100;
	--z-overlay: 200;
	--z-drawer: 210;
}


/* 2. BASE / RESET ========================================================== */
/* Scoped to body.eiq so legacy pages that load this file are unaffected
   until they opt in by adding class="eiq" to <body>. */
.eiq,
.eiq *,
.eiq *::before,
.eiq *::after { box-sizing: border-box; }

body.eiq {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Base element rules use :where() so they carry zero class specificity:
   any eiq- component class (e.g. .eiq-btn on an <a>) always wins, with no
   need for inline styles or !important. */
:where(.eiq) img, :where(.eiq) svg { display: block; max-width: 100%; }
:where(.eiq) p { margin: 0 0 var(--space-4); }
:where(.eiq) p:last-child { margin-bottom: 0; }
:where(.eiq) ul, :where(.eiq) ol { margin: 0; padding: 0; }
:where(.eiq) button, :where(.eiq) input, :where(.eiq) select, :where(.eiq) textarea { font: inherit; color: inherit; }
:where(.eiq) a { color: var(--color-link); }

:where(.eiq) :is(h1, h2, h3, h4, h5) {
	font-family: var(--font-heading);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-heading);
	color: var(--color-text);
	margin: 0;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
:where(.eiq) h6 {
	font-family: var(--font-body);
	font-weight: var(--fw-semibold);
	line-height: 1.3;
	margin: 0;
}


/* 3. TYPOGRAPHY ============================================================ */
.eiq-h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.eiq-h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
.eiq-h3 { font-size: var(--fs-h3); }
.eiq-h4 { font-size: var(--fs-h4); }
.eiq-h5 { font-size: var(--fs-h5); }
.eiq-h6 { font-size: var(--fs-h6); font-family: var(--font-body); font-weight: var(--fw-semibold); }

/* Card / small headings */
.eiq-title-md { font-family: var(--font-heading); font-weight: var(--fw-semibold); font-size: 1.375rem; line-height: 1.3; }
.eiq-title-sm { font-family: var(--font-body);    font-weight: var(--fw-semibold); font-size: 1.125rem; line-height: 1.35; }

.eiq-supertitle {
	display: inline-block;
	font-family: var(--font-body);
	font-size: var(--fs-supertitle);
	font-weight: var(--fw-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-eyebrow);
	margin: 0 0 var(--space-3);
}
.eiq-supertitle--sm { font-size: var(--fs-xs); letter-spacing: 0.1em; }
.eiq-supertitle--red { color: var(--color-red); }
.eiq-supertitle--light { color: rgba(255, 255, 255, 0.85); }

.eiq-lead   { font-size: var(--fs-lg); line-height: 1.55; color: var(--color-text-muted); }
.eiq-body   { font-size: var(--fs-base); }
.eiq-small  { font-size: var(--fs-sm); }
.eiq-xsmall { font-size: var(--fs-xs); }
.eiq-meta   { font-size: var(--fs-xs); color: var(--color-text-subtle); }
.eiq-muted  { color: var(--color-text-muted); }

.eiq-accent { color: var(--color-accent); }
.eiq-accent-orange { color: var(--color-orange); }
.eiq-measure { max-width: 62ch; }
.eiq-measure-narrow { max-width: 46ch; }


/* 4. LAYOUT ================================================================ */
.eiq-container {
	width: 100%;
	max-width: calc(var(--container-max) + (var(--container-pad) * 2));
	margin-inline: auto;
	padding-inline: var(--container-pad);
}
.eiq-container--narrow { max-width: calc(820px + (var(--container-pad) * 2)); }

.eiq-section { padding-block: var(--section-pad); position: relative; }
.eiq-section--tight { padding-block: calc(var(--section-pad) * 0.6); }
.eiq-section--beige { background: var(--color-beige); }
.eiq-section--teal  { background: var(--color-teal); color: var(--color-white); }
.eiq-section--teal h1, .eiq-section--teal h2, .eiq-section--teal h3,
.eiq-section--teal h4, .eiq-section--teal h5 { color: var(--color-white); }

.eiq-section-head { margin-bottom: var(--space-12); }
.eiq-section-head--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-8);
	flex-wrap: wrap;
}

.eiq-grid { display: grid; gap: var(--space-6); }
.eiq-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eiq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eiq-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eiq-grid--gap-sm { gap: var(--space-4); }
.eiq-grid--gap-lg { gap: var(--space-10); }

.eiq-split {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: var(--space-12);
	align-items: center;
}

.eiq-stack > * + * { margin-top: var(--space-4); }
.eiq-stack--sm > * + * { margin-top: var(--space-2); }
.eiq-stack--lg > * + * { margin-top: var(--space-8); }

.eiq-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

@media (max-width: 1024px) {
	.eiq-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eiq-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eiq-split   { grid-template-columns: 1fr; gap: var(--space-10); }
}
@media (max-width: 640px) {
	.eiq-grid--2, .eiq-grid--3, .eiq-grid--4 { grid-template-columns: 1fr; }
	.eiq-section-head { margin-bottom: var(--space-8); }
}


/* 5. BUTTONS & LINKS ======================================================= */
.eiq-btn {
	--btn-bg: var(--color-cta);
	--btn-fg: var(--color-graphite);
	--btn-border: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 48px;
	padding: 0.7rem 1.4rem;
	border: 2px solid var(--btn-border);
	border-radius: var(--radius-md);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
	            border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
	            box-shadow var(--dur-fast) var(--ease);
}
.eiq-btn:hover  { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.eiq-btn:active { transform: translateY(0); box-shadow: none; }

.eiq-btn--primary { --btn-bg: var(--color-orange); --btn-fg: var(--color-graphite); }
.eiq-btn--primary:hover { --btn-bg: var(--color-orange-dark); }

.eiq-btn--teal { --btn-bg: var(--color-teal); --btn-fg: var(--color-white); }
.eiq-btn--teal:hover { --btn-bg: var(--color-teal-dark); }

.eiq-btn--outline { --btn-bg: transparent; --btn-fg: var(--color-teal); --btn-border: var(--color-teal); }
.eiq-btn--outline:hover { --btn-bg: var(--color-teal); --btn-fg: var(--color-white); }

.eiq-btn--white { --btn-bg: var(--color-white); --btn-fg: var(--color-teal); }
.eiq-btn--white:hover { --btn-bg: var(--color-beige); }

.eiq-btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--color-white); --btn-border: rgba(255,255,255,0.85); }
.eiq-btn--ghost-light:hover { --btn-bg: var(--color-white); --btn-fg: var(--color-teal); }

.eiq-btn--pill { border-radius: var(--radius-pill); color: #fff;}
.eiq-btn--sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: var(--fs-xs); }
.eiq-btn--lg { min-height: 56px; padding: 0.9rem 1.75rem; font-size: var(--fs-base); }
.eiq-btn--block { width: 100%; }
.eiq-btn .eiq-icon { font-size: 1.15em; }

.eiq-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	color: var(--color-link);
	font-weight: var(--fw-semibold);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
	transition: color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}
.eiq-link:hover { color: var(--color-teal-dark); gap: var(--space-2); }
.eiq-link--light { color: var(--color-white); }
.eiq-link--light:hover { color: var(--color-beige); }
.eiq-link .eiq-icon { font-size: 1.1em; }


/* 6. SURFACES ============================================================== */
.eiq-card {
	position: relative;
	background: var(--color-white);
	border: 1px solid var(--color-line-neutral);
	border-radius: var(--radius-lg);
	padding: var(--space-8);
}
.eiq-card--beige   { background: var(--color-beige); border-color: transparent; }
.eiq-card--shadow  { border-color: transparent; box-shadow: var(--shadow-lg); }
.eiq-card--compact { padding: var(--space-5); }
.eiq-card--dark    { background: var(--color-graphite); border-color: transparent; color: var(--color-white); }
.eiq-card--dark h1, .eiq-card--dark h2, .eiq-card--dark h3, .eiq-card--dark h4 { color: var(--color-white); }

/* Interactive card (whole card is a link) */
.eiq-card--link {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.eiq-card--link:hover {
	border-color: var(--color-orange);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

/* Chip (small label with optional icon) */
.eiq-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-pill);
	background: var(--color-white);
	color: var(--color-teal);
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	line-height: 1.3;
}
.eiq-chip .eiq-icon { font-size: 1rem; }

/* Badge (tiny status label) */
.eiq-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.55rem;
	border-radius: var(--radius-pill);
	font-size: 0.6875rem;
	font-weight: var(--fw-bold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--color-orange-tint);
	color: var(--color-red);
}
.eiq-badge--teal { background: var(--color-blue-tint); color: var(--color-teal); }

/* Icon tile (square with icon, used in cards) */
.eiq-icon-tile {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	background: var(--color-beige);
	color: var(--color-red);
}
.eiq-icon-tile .eiq-icon { font-size: 22px; }
.eiq-icon-tile--white { background: var(--color-white); color: var(--color-teal); }
.eiq-icon-tile--teal  { background: var(--color-blue-tint); color: var(--color-teal); }

/* Numbered step marker */
.eiq-step-num {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-orange);
	color: var(--color-graphite);
	font-weight: var(--fw-bold);
	font-size: var(--fs-base);
}

/* Check list */
.eiq-checklist { list-style: none; display: grid; gap: var(--space-4); }
.eiq-checklist li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; }
.eiq-checklist .eiq-icon { color: var(--color-red); font-size: 22px; margin-top: 2px; }


/* 7. FORMS ================================================================= */
.eiq-label {
	display: block;
	font-size: var(--fs-sm);
	font-weight: var(--fw-semibold);
	margin-bottom: var(--space-2);
}

.eiq-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.eiq-input-wrap > .eiq-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: var(--color-text-subtle);
	pointer-events: none;
}
.eiq-input {
	width: 100%;
	min-height: 52px;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--color-line-neutral);
	border-radius: var(--radius-md);
	background: var(--color-white);
	font-size: var(--fs-sm);
	transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.eiq-input-wrap > .eiq-icon + .eiq-input { padding-left: 46px; }
.eiq-input::placeholder { color: var(--color-text-subtle); }
.eiq-input:hover { border-color: #CFCFCF; }
.eiq-input:focus { outline: none; border-color: var(--color-blue); box-shadow: var(--shadow-focus); }

/* Segmented control (radio group styled as pills) */
.eiq-segmented {
	display: inline-flex;
	flex-wrap: wrap;
	gap: var(--space-1);
	padding: var(--space-1);
	border-radius: var(--radius-pill);
	background: var(--color-beige);
	border: 0;
	margin: 0;
}
.eiq-segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eiq-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.eiq-segmented label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: 0.4rem 1rem;
	border-radius: var(--radius-pill);
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	color: var(--color-text-muted);
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.eiq-segmented label:hover { color: var(--color-text); }
.eiq-segmented input:checked + label {
	background: var(--color-white);
	color: var(--color-teal);
	box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--color-teal);
}
.eiq-segmented input:focus-visible + label { box-shadow: var(--shadow-focus); }


/* 8. ICONS ================================================================= */
/* Uses Google Material Symbols Rounded (loaded in newHead.component.php). */
.eiq-icon {
	font-family: 'Material Symbols Rounded';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	user-select: none;
	-webkit-font-feature-settings: 'liga';
	font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.eiq-icon--fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }


/* 9. UTILITIES ============================================================= */
.eiq-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.eiq-text-center { text-align: center; }
.eiq-mx-auto { margin-inline: auto; }
.eiq-mt-0 { margin-top: 0 !important; }
.eiq-mt-2 { margin-top: var(--space-2); }
.eiq-mt-4 { margin-top: var(--space-4); }
.eiq-mt-6 { margin-top: var(--space-6); }
.eiq-mt-8 { margin-top: var(--space-8); }
.eiq-mb-0 { margin-bottom: 0 !important; }
.eiq-mb-4 { margin-bottom: var(--space-4); }
.eiq-mb-8 { margin-bottom: var(--space-8); }
.eiq-bg-white { background: var(--color-white); }
.eiq-bg-beige { background: var(--color-beige); }
.eiq-color-teal { color: var(--color-teal); }
.eiq-color-red  { color: var(--color-red); }
.eiq-gradient-warm { background: var(--gradient-warm); }
.eiq-gradient-cool { background: var(--gradient-cool); }
.eiq-hide-mobile { }
.eiq-show-mobile { display: none !important; }
@media (max-width: 960px) {
	.eiq-hide-mobile { display: none !important; }
	.eiq-show-mobile { display: revert !important; }
}

/* Skip link */
.eiq-skip-link {
	position: absolute;
	left: var(--space-4);
	top: -100px;
	z-index: 1000;
	padding: var(--space-3) var(--space-5);
	border-radius: var(--radius-md);
	background: var(--color-teal);
	color: var(--color-white);
	font-weight: var(--fw-semibold);
	text-decoration: none;
}
.eiq-skip-link:focus { top: var(--space-4); }


/* 10. MOTION & ACCESSIBILITY =============================================== */
.eiq :focus-visible {
	outline: 3px solid var(--color-blue);
	outline-offset: 3px;
	border-radius: 4px;
}
.eiq .eiq-input:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
	.eiq *, .eiq *::before, .eiq *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
html:has(body.eiq) { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }



/* 11. PAGE COMPONENTS ====================================================== */
/* Shared building blocks for interior pages (About, Smart Guide, Advocacy,
   Contact, legal pages). */

/* --- Page hero (interior pages) ------------------------------------------ */
.eiq-page-hero {
	position: relative;
	overflow: hidden;
	background: var(--color-beige);
	padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
}
.eiq-page-hero__heart {
	position: absolute;
	width: 340px;
	top: -80px;
	right: -90px;
	color: var(--color-orange);
	opacity: 0.1;
	pointer-events: none;
}
.eiq-page-hero__inner { position: relative; max-width: 820px; }
.eiq-page-hero h1 { margin-bottom: var(--space-5); }
.eiq-page-hero .eiq-lead { max-width: 40em; }
.eiq-page-hero--teal { background: var(--color-teal); color: var(--color-white); }
.eiq-page-hero--teal h1 { color: var(--color-white); }
.eiq-page-hero--teal .eiq-lead { color: rgba(255, 255, 255, 0.88); }
.eiq-page-hero--teal .eiq-page-hero__heart { color: var(--color-white); opacity: 0.08; }
@media (max-width: 560px) { .eiq-page-hero__heart { width: 220px; top: -50px; right: -80px; } }

/* --- Breadcrumbs ---------------------------------------------------------- */
.eiq-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-5);
	padding: 0;
	list-style: none;
	font-size: var(--fs-xs);
	color: var(--color-text-muted);
}
.eiq-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); }
.eiq-crumbs li + li::before { content: '/'; color: var(--color-text-subtle); }
.eiq-crumbs a { color: var(--color-teal); font-weight: var(--fw-semibold); text-decoration: none; }
.eiq-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eiq-crumbs [aria-current="page"] { color: var(--color-text); }

/* --- Section sub-navigation (tabs between sibling pages) ------------------ */
.eiq-subnav {
	position: sticky;
	top: var(--header-height);
	z-index: calc(var(--z-header) - 1);
	background: var(--color-white);
	border-bottom: 1px solid var(--color-line-neutral);
}
.eiq-subnav__list {
	display: flex;
	gap: var(--space-6);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.eiq-subnav__list::-webkit-scrollbar { display: none; }
.eiq-subnav__link {
	display: block;
	padding: var(--space-4) 0;
	border-bottom: 3px solid transparent;
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	white-space: nowrap;
}
.eiq-subnav__link:hover { color: var(--color-text); }
.eiq-subnav__link[aria-current="page"] { color: var(--color-teal); border-bottom-color: var(--color-orange); }
@media (max-width: 1100px) { .eiq-subnav { top: 64px; } }

/* --- Prose (long-form text, CMS content) ---------------------------------- */
.eiq-prose { max-width: 70ch; font-size: var(--fs-base); line-height: 1.7; }
.eiq-prose > * + * { margin-top: var(--space-4); }
.eiq-prose :is(h1, h2, h3, h4) { margin-top: var(--space-10); scroll-margin-top: calc(var(--header-height) + 24px); }
.eiq-prose :is(h1, h2) { font-size: var(--fs-h6); font-family: var(--font-heading); }
.eiq-prose h3 { font-size: 1.25rem; }
.eiq-prose h4 { font-size: var(--fs-base); font-family: var(--font-body); }
.eiq-prose :is(h1, h2, h3, h4):first-child { margin-top: 0; }
.eiq-prose [data-eiq-heading] { scroll-margin-top: calc(var(--header-height) + 24px); }
.eiq-prose p { margin: 0; }
.eiq-prose :is(ul, ol) { padding-left: 1.4em; }
.eiq-prose li + li { margin-top: var(--space-2); }
.eiq-prose li::marker { color: var(--color-red); }
.eiq-prose a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.eiq-prose strong, .eiq-prose b { color: var(--color-text); }
.eiq-prose img { height: auto; border-radius: var(--radius-md); }
.eiq-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.eiq-prose :is(th, td) { padding: var(--space-3); border-bottom: 1px solid var(--color-line-neutral); text-align: left; vertical-align: top; }

/* --- Document layout: sticky table of contents + content ------------------ */
.eiq-doc {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: clamp(2rem, 1rem + 4vw, 5rem);
	align-items: start;
}
.eiq-toc {
	position: sticky;
	top: calc(var(--header-height) + var(--space-6));
	max-height: calc(100vh - var(--header-height) - var(--space-12));
	overflow-y: auto;
	padding-right: var(--space-2);
}
.eiq-toc__title {
	margin: 0 0 var(--space-3);
	font-size: var(--fs-2xs);
	font-weight: var(--fw-bold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-subtle);
}
.eiq-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--color-line-neutral); }
.eiq-toc a {
	display: block;
	margin-left: -2px;
	padding: 0.35rem 0 0.35rem var(--space-4);
	border-left: 2px solid transparent;
	color: var(--color-text-muted);
	font-size: var(--fs-xs);
	line-height: 1.4;
	text-decoration: none;
}
.eiq-toc a:hover { color: var(--color-text); }
.eiq-toc a.is-active { color: var(--color-teal); border-left-color: var(--color-orange); font-weight: var(--fw-semibold); }
.eiq-toc__summary { display: none; }
@media (max-width: 960px) {
	.eiq-doc { grid-template-columns: 1fr; }
	.eiq-toc {
		position: static;
		max-height: none;
		padding: var(--space-4) var(--space-5);
		border: 1px solid var(--color-line-neutral);
		border-radius: var(--radius-md);
	}
	.eiq-toc__summary {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
		font-weight: var(--fw-semibold);
	}
	.eiq-toc__title { display: none; }
	.eiq-toc:not(.is-open) ol { display: none; }
	.eiq-toc.is-open ol { margin-top: var(--space-3); }
}

/* --- Callout -------------------------------------------------------------- */
.eiq-callout {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-4);
	padding: var(--space-5) var(--space-6);
	border-radius: var(--radius-lg);
	background: var(--color-blue-tint);
	border-left: 4px solid var(--color-teal);
	font-size: var(--fs-sm);
}
.eiq-callout > .eiq-icon { color: var(--color-teal); margin-top: 2px; }
.eiq-callout__title { display: block; margin-bottom: var(--space-1); font-weight: var(--fw-bold); color: var(--color-text); }
.eiq-callout--warm { background: var(--color-orange-tint); border-left-color: var(--color-orange); }
.eiq-callout--warm > .eiq-icon { color: var(--color-red); }
.eiq-callout--beige { background: var(--color-beige); border-left-color: var(--color-orange); }

/* --- Statement block (vision / mission) ----------------------------------- */
.eiq-statement {
	padding: var(--space-8);
	border-radius: var(--radius-lg);
	background: var(--color-white);
	border-top: 4px solid var(--color-orange);
	box-shadow: var(--shadow-md);
}
.eiq-statement--teal { border-top-color: var(--color-teal); }
.eiq-statement__text {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
	line-height: 1.45;
	color: var(--color-text);
}

/* --- People --------------------------------------------------------------- */
.eiq-person {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-5);
	border: 1px solid var(--color-line-neutral);
	border-radius: var(--radius-lg);
	background: var(--color-white);
}
.eiq-person--feature { padding: var(--space-6); border: 0; background: var(--color-beige); }
.eiq-avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--gradient-cool);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: var(--fw-semibold);
	overflow: hidden;
}
.eiq-avatar img { width: 100%; height: 100%; object-fit: cover; }
.eiq-avatar--warm { background: var(--gradient-warm); }
.eiq-avatar--lg { width: 80px; height: 80px; font-size: 1.75rem; }
.eiq-person__name { margin: 0; font-weight: var(--fw-semibold); font-size: var(--fs-base); line-height: 1.3; }
.eiq-person__role { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--color-text-muted); line-height: 1.4; }

.eiq-namelist { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.eiq-namelist li {
	padding: 0.4rem 0.9rem;
	border-radius: var(--radius-pill);
	background: var(--color-white);
	border: 1px solid var(--color-line);
	font-size: var(--fs-sm);
}

/* --- Resource card (card with footer link) -------------------------------- */
.eiq-resource { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; }
.eiq-resource__kicker { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--color-red); letter-spacing: 0.04em; text-transform: uppercase; }
.eiq-resource p { color: var(--color-text-muted); font-size: var(--fs-sm); }
.eiq-resource__foot { margin-top: auto; padding-top: var(--space-3); }

/* --- Definition list (glossary) ------------------------------------------- */
.eiq-glossary { margin: 0; display: grid; border-top: 1px solid var(--color-line-neutral); }
.eiq-glossary__item {
	display: grid;
	grid-template-columns: minmax(180px, 0.4fr) 1fr;
	gap: var(--space-2) var(--space-8);
	padding: var(--space-5) 0;
	border-bottom: 1px solid var(--color-line-neutral);
}
.eiq-glossary dt { font-weight: var(--fw-semibold); color: var(--color-text); }
.eiq-glossary dd { margin: 0; color: var(--color-text-muted); font-size: var(--fs-sm); }
@media (max-width: 640px) { .eiq-glossary__item { grid-template-columns: 1fr; } }

/* --- Numbered list with markers ------------------------------------------- */
.eiq-numlist { list-style: none; margin: 0; padding: 0; counter-reset: eiq-num; display: grid; gap: var(--space-5); }
.eiq-numlist > li { counter-increment: eiq-num; display: grid; grid-template-columns: 36px 1fr; gap: var(--space-4); }
.eiq-numlist > li::before {
	content: counter(eiq-num);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--color-orange-tint);
	color: var(--color-red);
	font-weight: var(--fw-bold);
	font-size: var(--fs-sm);
}

/* --- Video embed ---------------------------------------------------------- */
.eiq-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-graphite); box-shadow: var(--shadow-md); }
.eiq-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Form fields ---------------------------------------------------------- */
.eiq-form { display: grid; gap: var(--space-5); }
.eiq-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 640px) { .eiq-form__row { grid-template-columns: 1fr; } }
.eiq-field { display: grid; gap: var(--space-2); align-content: start; }
.eiq-field .eiq-label { margin: 0; }
.eiq-label__req { color: var(--color-red); margin-left: 2px; }
.eiq-label__opt { color: var(--color-text-subtle); font-weight: var(--fw-regular); font-size: var(--fs-xs); margin-left: var(--space-1); }
textarea.eiq-input { min-height: 150px; resize: vertical; line-height: 1.5; }
select.eiq-input {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.eiq-input[aria-invalid="true"] { border-color: var(--color-red); }
.eiq-field__error { margin: 0; font-size: var(--fs-xs); color: #B4360F; font-weight: var(--fw-semibold); }
.eiq-field__error:empty { display: none; }
.eiq-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.eiq-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.eiq-form__fine { margin: 0; font-size: var(--fs-xs); color: var(--color-text-muted); }

.eiq-form-status {
	display: flex;
	gap: var(--space-3);
	align-items: flex-start;
	padding: var(--space-4) var(--space-5);
	border-radius: var(--radius-md);
	font-size: var(--fs-sm);
}
.eiq-form-status[hidden] { display: none; }
.eiq-form-status--success { background: #E7F6EE; color: #14532D; }
.eiq-form-status--error   { background: var(--color-red-tint); color: #7C2D12; }
.eiq-btn[disabled], .eiq-btn[aria-busy="true"] { opacity: 0.65; cursor: progress; transform: none; box-shadow: none; }

/* --- Contact details list -------------------------------------------------- */
.eiq-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.eiq-contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: center; }
.eiq-contact-list a { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.eiq-contact-list small { display: block; font-size: var(--fs-xs); color: var(--color-text-muted); }


/* 12. PRINT ================================================================ */
@media print {
	.eiq-header, .eiq-drawer, .eiq-drawer-overlay, .eiq-footer, .eiq-subnav,
	.eiq-toc, .eiq-skip-link, .eiq-page-hero__heart, .eiq-no-print { display: none !important; }
	body.eiq { font-size: 11pt; color: #000; }
	.eiq-page-hero { background: none; padding: 0 0 12pt; }
	.eiq-doc { display: block; }
	.eiq-prose { max-width: none; }
	.eiq-prose a::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
	.eiq-section { padding-block: 12pt; }
}



/* 13. RESOURCES ============================================================ */

/* Emergency banner */
.eiq-emergency {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-4) var(--space-6);
	border-radius: var(--radius-lg);
	background: var(--color-red);
	color: var(--color-white);
	font-size: var(--fs-base);
}
.eiq-emergency .eiq-icon { font-size: 28px; flex: none; }
.eiq-emergency strong { font-weight: var(--fw-bold); }
.eiq-emergency a { color: var(--color-white); font-weight: var(--fw-bold); white-space: nowrap; }
.eiq-emergency--compact { padding: var(--space-3) var(--space-5); font-size: var(--fs-sm); }

/* "Last verified" stamp */
.eiq-verified { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--color-text-muted); }
.eiq-verified .eiq-icon { font-size: 18px; color: var(--color-teal); }

/* State switcher (chips in the hero) */
.eiq-state-switch { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); list-style: none; padding: 0; }
.eiq-state-switch a {
	display: inline-flex; align-items: center; gap: var(--space-2);
	padding: 0.4rem 1rem;
	border: 1.5px solid var(--color-line);
	border-radius: var(--radius-pill);
	background: var(--color-white);
	color: var(--color-text);
	font-size: var(--fs-sm);
	font-weight: var(--fw-semibold);
	text-decoration: none;
}
.eiq-state-switch a:hover { border-color: var(--color-teal); color: var(--color-teal); }
.eiq-state-switch a[aria-current="page"] { background: var(--color-teal); border-color: var(--color-teal); color: var(--color-white); }

/* State picker cards (hub) */
.eiq-state-card { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-8); }
.eiq-state-card__code {
	display: grid; place-items: center;
	width: 56px; height: 56px;
	border-radius: var(--radius-md);
	background: var(--gradient-cool);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: 1.375rem;
	font-weight: var(--fw-semibold);
}
.eiq-state-card p { color: var(--color-text-muted); font-size: var(--fs-sm); }
.eiq-state-card__foot { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }

/* Resource section (one of the 7 numbered sections on a state page) */
.eiq-rsec + .eiq-rsec { margin-top: var(--space-16); padding-top: var(--space-16); border-top: 1px solid var(--color-line-neutral); }
.eiq-rsec__head { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: var(--space-6); }
.eiq-rsec__num {
	display: grid; place-items: center; flex: none;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--color-orange-tint); color: var(--color-red);
	font-weight: var(--fw-bold);
}
.eiq-rsec__head h2 { scroll-margin-top: calc(var(--header-height) + 24px); }
.eiq-rsec__lead { margin-top: var(--space-2); color: var(--color-text-muted); max-width: 70ch; }

/* Agency / contact card */
.eiq-agency { display: grid; gap: var(--space-4); padding: var(--space-6); }
.eiq-agency--primary { border-color: var(--color-orange); box-shadow: inset 4px 0 0 var(--color-orange); }
.eiq-agency__title { margin: 0; font-size: 1.1875rem; font-family: var(--font-heading); font-weight: var(--fw-semibold); line-height: 1.3; }
.eiq-agency__desc { margin: 0; color: var(--color-text-muted); font-size: var(--fs-sm); }
.eiq-agency__desc a { overflow-wrap: anywhere; }
.eiq-agency__contacts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; margin: 0; }
.eiq-agency__contacts li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); }
.eiq-agency__contacts .eiq-icon { font-size: 20px; color: var(--color-teal); }
.eiq-agency__contacts a { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.eiq-agency__contacts small { color: var(--color-text-muted); font-size: var(--fs-xs); }
.eiq-phone { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--color-text); text-decoration: none; white-space: nowrap; }
.eiq-phone:hover { color: var(--color-teal); text-decoration: underline; }
.eiq-agency__list { margin: 0; padding-left: 1.2em; font-size: var(--fs-sm); color: var(--color-text-muted); }
.eiq-agency__list li + li { margin-top: var(--space-1); }
.eiq-agency__list li::marker { color: var(--color-red); }
.eiq-agency__note { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-beige); font-size: var(--fs-xs); color: var(--color-text-muted); }

/* Steps list (e.g. how to file a complaint) */
.eiq-steps { list-style: none; margin: 0; padding: 0; counter-reset: eiq-step; display: grid; gap: var(--space-3); }
.eiq-steps li { counter-increment: eiq-step; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); }
.eiq-steps li::before {
	content: counter(eiq-step);
	display: grid; place-items: center;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--color-teal); color: var(--color-white);
	font-size: var(--fs-xs); font-weight: var(--fw-bold);
}

/* National resources band */
.eiq-national { padding: var(--space-8); border-radius: var(--radius-xl); background: var(--gradient-cool); color: var(--color-white); }
.eiq-national h2 { color: var(--color-white); }
.eiq-national__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); list-style: none; padding: 0; }
.eiq-national__item { padding: var(--space-5); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); }
.eiq-national__item strong { display: block; font-size: var(--fs-base); }
.eiq-national__item p { margin: var(--space-1) 0 var(--space-3); font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.85); }
.eiq-national__item a { color: var(--color-white); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
@media (max-width: 860px) { .eiq-national__grid { grid-template-columns: 1fr; } }


/* 14. ACCOUNT & AUTH ======================================================= */

/* Centered auth card (login) */
.eiq-auth { position: relative; overflow: hidden; background: var(--color-beige); padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem); }
.eiq-auth__card { position: relative; width: 100%; max-width: 480px; margin-inline: auto; padding: clamp(1.75rem, 1rem + 3vw, 2.75rem); }
.eiq-auth__head { text-align: center; margin-bottom: var(--space-8); }
.eiq-auth__head img { width: 44px; height: auto; margin: 0 auto var(--space-4); }
.eiq-auth__head h1 { margin-bottom: var(--space-2); }
.eiq-auth__head p { color: var(--color-text-muted); font-size: var(--fs-sm); }
.eiq-auth__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.eiq-auth__foot { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-line-neutral); text-align: center; font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Text button (looks like a link) */
.eiq-textbtn {
	padding: 0; border: 0; background: none;
	color: var(--color-link);
	font-size: var(--fs-sm); font-weight: var(--fw-semibold);
	text-decoration: underline; text-underline-offset: 3px;
	cursor: pointer;
}
.eiq-textbtn:hover { color: var(--color-teal-dark); }

/* Checkbox */
.eiq-check { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); cursor: pointer; }
.eiq-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-teal); cursor: pointer; }

/* Password field with show/hide button */
.eiq-pw { position: relative; }
.eiq-pw .eiq-input { padding-right: 52px; }
.eiq-pw__toggle {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border: 0; border-radius: var(--radius-sm);
	background: none; color: var(--color-text-subtle);
	cursor: pointer;
}
.eiq-pw__toggle:hover { color: var(--color-text); background: var(--color-beige); }
.eiq-pw__toggle .eiq-icon { font-size: 22px; }

/* Live password rules */
.eiq-pwrules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-4); font-size: var(--fs-xs); color: var(--color-text-muted); }
.eiq-pwrules li { display: flex; align-items: center; gap: var(--space-2); }
.eiq-pwrules li::before { content: 'radio_button_unchecked'; font-family: 'Material Symbols Rounded'; font-size: 16px; color: var(--color-text-subtle); }
.eiq-pwrules li.is-met { color: #166534; }
.eiq-pwrules li.is-met::before { content: 'check_circle'; color: #16A34A; }
@media (max-width: 480px) { .eiq-pwrules { grid-template-columns: 1fr; } }

/* Account layout: side nav + panels */
.eiq-account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.eiq-account__nav { position: sticky; top: calc(var(--header-height) + var(--space-6)); display: grid; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.eiq-account__nav a, .eiq-account__nav button {
	display: flex; align-items: center; gap: var(--space-3);
	width: 100%;
	padding: var(--space-3) var(--space-4);
	border: 0; border-radius: var(--radius-md);
	background: none;
	color: var(--color-text-muted);
	font-size: var(--fs-sm); font-weight: var(--fw-semibold);
	text-align: left; text-decoration: none;
	cursor: pointer;
}
.eiq-account__nav a:hover, .eiq-account__nav button:hover { background: var(--color-beige); color: var(--color-text); }
.eiq-account__nav a[aria-current="true"] { background: var(--color-beige); color: var(--color-teal); box-shadow: inset 3px 0 0 var(--color-orange); }
.eiq-account__nav .eiq-icon { font-size: 20px; }
.eiq-account__panels { display: grid; gap: var(--space-6); }
.eiq-account__panel { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); scroll-margin-top: calc(var(--header-height) + 24px); }
.eiq-account__panel > header { margin-bottom: var(--space-6); }
.eiq-account__panel > header p { margin-top: var(--space-1); color: var(--color-text-muted); font-size: var(--fs-sm); }
.eiq-account__current { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-beige); font-size: var(--fs-sm); margin-bottom: var(--space-6); overflow-wrap: anywhere; }
.eiq-account__current .eiq-icon { color: var(--color-teal); }
.eiq-account__panel--danger { border-color: var(--color-red-tint); }
@media (max-width: 860px) {
	.eiq-account { grid-template-columns: 1fr; }
	.eiq-account__nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
}

/* Header account menu (signed-in state) */
.eiq-acct { position: relative; }
.eiq-acct__btn {
	display: inline-flex; align-items: center; gap: var(--space-2);
	padding: 4px 10px 4px 4px;
	border: 1.5px solid var(--color-line-neutral);
	border-radius: var(--radius-pill);
	background: var(--color-white);
	color: var(--color-text);
	font-size: var(--fs-sm); font-weight: var(--fw-semibold);
	cursor: pointer;
}
.eiq-acct__btn:hover, .eiq-acct__btn[aria-expanded="true"] { border-color: var(--color-teal); }
.eiq-acct__btn .eiq-avatar { width: 32px; height: 32px; font-size: 0.875rem; font-family: var(--font-body); font-weight: var(--fw-bold); }
.eiq-acct__btn > .eiq-icon { font-size: 20px; color: var(--color-text-subtle); }
.eiq-acct__menu {
	position: absolute; right: 0; top: calc(100% + 8px);
	z-index: calc(var(--z-header) + 1);
	min-width: 240px;
	padding: var(--space-2);
	border: 1px solid var(--color-line-neutral);
	border-radius: var(--radius-md);
	background: var(--color-white);
	box-shadow: var(--shadow-lg);
	list-style: none; margin: 0;
}
.eiq-acct__menu[hidden] { display: none; }
.eiq-acct__who { padding: var(--space-3) var(--space-3) var(--space-3); margin-bottom: var(--space-1); border-bottom: 1px solid var(--color-line-neutral); font-size: var(--fs-xs); color: var(--color-text-muted); overflow-wrap: anywhere; }
.eiq-acct__who strong { display: block; color: var(--color-text); font-size: var(--fs-sm); }
.eiq-acct__menu a {
	display: flex; align-items: center; gap: var(--space-3);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-size: var(--fs-sm);
	text-decoration: none;
}
.eiq-acct__menu a:hover, .eiq-acct__menu a:focus-visible { background: var(--color-beige); }
.eiq-acct__menu .eiq-icon { font-size: 20px; color: var(--color-text-subtle); }
