/* ════════════════════════════════════════════════════════════════════
   NORMAN + RAMS UX — Weinrieb Law
   Loaded after styles.min.css on every page.
   Enforces Don Norman's 6 design principles (interaction) and
   Dieter Rams' 10 principles (reduction) site-wide.
   ════════════════════════════════════════════════════════════════════ */

/* ── Section Sub-Heading ────────────────────────────────────────────── */
/* Smaller, de-emphasised section label used for "From Our Blog",
   "Related Resources" etc. — replaces repeated inline style overrides. */
.n-section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy, #1a2744);
  margin: 0 0 18px;
  letter-spacing: -.01em;
}

/* ── Screen-Reader Only Utility ─────────────────────────────────────── */
/* Visually hidden but announced by screen readers.
   Used for sr-only headings and labels that provide structure without
   cluttering the visual layout (e.g., heading hierarchy, skip links). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 1. VISIBILITY ──────────────────────────────────────────────────── */

/* Required field asterisk — single consistent colour across all forms */
.req, .n-req { color: var(--accent, #4a90d9); font-weight: 700; }

/* Required legend inserted by norman.js above every form with required fields */
.n-req-note {
  font-size: 0.81rem;
  color: #6b7280;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── 2. FEEDBACK ────────────────────────────────────────────────────── */

/* Per-field inline error — appears directly below the offending field,
   not in a generic banner at the top of the form (Norman: Feedback) */
.n-field-error {
  display: none;
  font-size: 0.79rem;
  color: #b91c1c;
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.4;
}
.n-field-error.n-visible { display: block; }

/* Invalid field highlight — field border turns red when invalid */
.n-invalid {
  border-color: #fca5a5 !important;
  background: #fff9f9 !important;
  outline: none;
}
.n-invalid:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

/* General form error banner — restyled to actually look like an error */
.form-error-msg {
  background: #fff5f5 !important;
  border: 1.5px solid #fca5a5 !important;
  border-radius: 4px;
  color: #b91c1c !important;
}

/* Submit button while request is in flight */
.n-btn-loading {
  opacity: 0.75 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* ══════════════════════════════════════════════════════════════════
   CTA BUTTON PRINCIPLES — Applied site-wide to every button type.
   Covers Norman: Feedback (active states), Affordance (hover fixes),
   Consistency (focus rings, touch targets).
   ══════════════════════════════════════════════════════════════════ */

/* ── Active / Pressed States (Feedback) ────────────────────────────
   Every button must show an immediate visual response the moment it
   is pressed. Without :active, the button feels broken — silence
   equals broken (Norman: Feedback).
   ──────────────────────────────────────────────────────────────── */

/* Navy primary buttons — darkened on press */
.btn:active,
.mf-submit:active,
.nav-cta-btn:active,
.calc-btn:active,
.snw-btn-primary:active {
  background: #101e38 !important;
  border-color: #101e38 !important;
  box-shadow: none !important;
  transform: translateY(1px);
}

/* Accent (blue) buttons — darkened on press */
.btn-accent:active,
.nav-calc-btn:active,
.guide-dl-trigger:active,
.guide-submit-btn:active {
  background: #2d69b5 !important;
  border-color: #2d69b5 !important;
  box-shadow: none !important;
  transform: translateY(1px);
}

/* Outline / ghost / filter buttons — fill on press */
.btn-outline:active,
.guide-dl-btn:active,
.filter-btn:active,
.faq-sort-btn:active,
.blog-sort-btn:active,
.snw-btn-secondary:active,
.snw-add-btn:active,
.ch-map-btn:active,
.cookie-btn-accept:active,
.cookie-btn-decline:active {
  background: #dce7f3 !important;
  transform: translateY(1px);
}

/* Utility / icon buttons — press via opacity + nudge */
.snw-remove-btn:active,
.ptc-preset-btn:active,
.ptc-clear-btn:active,
.ptc-reset-btn:active,
.ptc-print-btn:active,
.ptc-btn-sm:active,
.nav-search-btn:active,
.quiz-back:active,
.print-btn:active,
.restart-btn:active {
  opacity: 0.75;
  transform: translateY(1px);
}

/* Ensure smooth transition for transform on all interactive buttons */
.btn, .btn-accent, .btn-outline, .btn-submit,
.mf-submit, .nav-cta-btn, .nav-calc-btn,
.guide-dl-btn, .guide-dl-trigger, .guide-submit-btn,
.calc-btn, .filter-btn, .faq-sort-btn, .blog-sort-btn,
.snw-btn, .snw-add-btn, .snw-remove-btn,
.ch-map-btn, .cookie-btn-accept, .cookie-btn-decline,
.ptc-preset-btn, .ptc-clear-btn, .ptc-reset-btn,
.ptc-print-btn, .ptc-btn-sm, .quiz-back,
.nav-search-btn, .print-btn, .restart-btn {
  transition-property: background, color, border-color, box-shadow, transform, opacity;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

/* ── Fix Broken / Ineffective Hover States (Affordance) ─────────────
   If a button looks identical before and after hover, it appears
   non-interactive (Norman: Affordance). These overrides fix the
   cases where styles.min.css produces no visible hover change.
   ──────────────────────────────────────────────────────────────── */

/* mf-submit hover: --dark-blue variable undefined, falls back to same
   navy — fix to a visible lightened navy */
.mf-submit:hover {
  background: #2a3e6e !important;
}

/* snw-btn-primary hover: hardcoded #1a2744 === --navy, no change */
.snw-btn-primary:hover {
  background: #2a3e6e !important;
}

/* ch-map-btn hover: background stays var(--light-bg) same as base */
.ch-map-btn:hover {
  background: #dce7f3 !important;
  border-color: var(--accent, #4a90d9) !important;
}

/* snw-btn-secondary: no hover defined at all */
.snw-btn-secondary:hover {
  background: var(--light-bg, #f0f4f8);
  border-color: var(--accent, #4a90d9);
}

/* ── 3. CONSTRAINTS ─────────────────────────────────────────────────── */

/* Constraints are enforced via HTML attributes (required, type="tel",
   disabled placeholder options) and validated by norman.js.
   Only CSS needed here is for the invalid state above. */

/* ── 4. MAPPING ─────────────────────────────────────────────────────── */

/* Every clickable control must communicate "I'm clickable" */
button:not([disabled]),
[role="button"],
summary,
label[for],
.quiz-card,
.ptc-day:not(.empty),
.ptc-preset-btn,
.ptc-brush button,
.guide-dl-btn,
.guide-dl-trigger,
.calc-tab,
.site-search-close-btn {
  cursor: pointer;
}

/* Site search close button — consistent dismissal control across all pages */
.site-search-close-btn {
  background: none;
  border: none;
  color: var(--muted, #6b7280);
  font-size: 1.4rem;
  padding: 8px;
  line-height: 1;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.site-search-close-btn:hover {
  color: var(--navy, #1a2744);
  background: var(--light-bg, #f0f4f8);
}
.site-search-close-btn:active {
  color: var(--navy, #1a2744);
  background: #dce7f3;
  transform: scale(0.92);
}
.site-search-close-btn:focus-visible {
  outline: 2px solid var(--accent, #4a90d9);
  outline-offset: 2px;
}

/* ── 5. CONSISTENCY ─────────────────────────────────────────────────── */

/* Focus rings — most CSS resets strip browser defaults.
   Restore for keyboard users (Norman: Visibility + Affordance).
   Uses :focus-visible so mouse users don't see the ring. */
*:focus-visible {
  outline: 2px solid var(--accent, #4a90d9);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Buttons — all types get the consistent 3px offset focus ring */
.btn:focus-visible,
.btn-accent:focus-visible,
.btn-outline:focus-visible,
.btn-submit:focus-visible,
.nav-cta-btn:focus-visible,
.nav-calc-btn:focus-visible,
.nav-search-btn:focus-visible,
.mf-submit:focus-visible,
.calc-btn:focus-visible,
.guide-dl-btn:focus-visible,
.guide-dl-trigger:focus-visible,
.guide-submit-btn:focus-visible,
.filter-btn:focus-visible,
.faq-sort-btn:focus-visible,
.blog-sort-btn:focus-visible,
.snw-btn:focus-visible,
.snw-add-btn:focus-visible,
.snw-remove-btn:focus-visible,
.ch-map-btn:focus-visible,
.ptc-preset-btn:focus-visible,
.ptc-preset-apply:focus-visible,
.ptc-sb-apply:focus-visible,
.ptc-btn-sm:focus-visible,
.ptc-print-btn:focus-visible,
.ptc-clear-btn:focus-visible,
.ptc-reset-btn:focus-visible,
.quiz-back:focus-visible,
.print-btn:focus-visible,
.restart-btn:focus-visible,
.cookie-btn-accept:focus-visible,
.cookie-btn-decline:focus-visible,
.calc-tab:focus-visible {
  outline-offset: 3px;
}

/* Links */
a:focus-visible {
  outline-offset: 3px;
  border-radius: 2px;
}

/* Touch targets — minimum 44 × 44 px on mobile (WCAG 2.5.5)
   Especially critical for a law firm whose clients are often in distress
   and may be on mobile devices. */
@media (max-width: 768px) {
  /* Primary and accent CTAs */
  .btn,
  .btn-accent,
  .btn-outline,
  .btn-submit,
  .nav-cta-btn,
  .nav-calc-btn,
  .mf-submit,
  .calc-btn,
  .guide-dl-btn,
  .guide-dl-trigger,
  .guide-submit-btn,
  /* Filter / sort pills */
  .filter-btn,
  .faq-sort-btn,
  .blog-sort-btn,
  /* Calculator UI */
  .calc-tab,
  .ptc-preset-btn,
  .ptc-sb-apply,
  .ptc-print-btn,
  .ptc-clear-btn,
  .ptc-reset-btn,
  /* Net Worth Form */
  .snw-btn,
  .snw-add-btn,
  /* Misc */
  .ch-map-btn,
  .cookie-btn-accept,
  .cookie-btn-decline,
  .quiz-back,
  .quiz-card,
  .print-btn {
    min-height: 44px;
  }
  /* Inline links need bigger tap area on mobile */
  main p a,
  main li a {
    padding: 2px 0;
  }
}

/* ── 6. AFFORDANCE ──────────────────────────────────────────────────── */

/* Body-copy links — distinguish visually from surrounding text.
   Applied only inside <main> prose, not nav/footer/buttons.
   Using a subtle underline that deepens on hover (Norman: Affordance). */
main p a:not([class]),
main li a:not([class]),
main td a:not([class]),
.page-body a:not([class]) {
  color: var(--accent, #4a90d9);
  text-decoration: underline;
  text-decoration-color: rgba(74, 144, 217, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color .15s, color .15s;
}
main p a:not([class]):hover,
main li a:not([class]):hover,
main td a:not([class]):hover,
.page-body a:not([class]):hover {
  text-decoration-color: var(--accent, #4a90d9);
  color: var(--navy, #1a2744);
}

/* External link — small arrow signals "leaves this site" */
main a[target="_blank"]:not([class])::after {
  content: '\2009\2197'; /* thin-space + ↗ */
  font-size: 0.72em;
  opacity: 0.55;
  vertical-align: super;
}

/* Select dropdowns — custom chevron ensures affordance on all browsers.
   Scoped to form contexts to avoid breaking nav or calculator selects
   that have their own styling. */
.mf-field select,
.form-field select:not([style*="appearance"]) {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Hover states on clickable cards — make interactivity unmissable */
.quiz-card:hover,
.ptc-preset-btn:hover {
  border-color: var(--accent, #4a90d9) !important;
}

/* Disabled buttons — communicate unavailability clearly */
button[disabled],
.btn[disabled],
[type="submit"][disabled] {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* ── Pill / Tag Links (Related Articles, Blog Tags) ─────────────────── */
/* Replaces inline style + onmouseover/onmouseout on pill-tag link lists  */
.n-tag-link {
  display: inline-block;
  background: var(--white, #fff);
  border: 1px solid var(--border, #d1d9e6);
  border-radius: 4px;
  padding: 10px 16px;
  color: var(--navy, #1a2744);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: border-color 0.2s;
}
.n-tag-link:hover { border-color: var(--accent, #4a90d9); }
.n-tag-link:active { border-color: var(--accent, #4a90d9); background: #f0f4f8; transform: translateY(1px); }
.n-tag-link:focus-visible { outline: 2px solid var(--accent, #4a90d9); outline-offset: 3px; }

/* ── Resource / Feature Cards ───────────────────────────────────────── */
/* Replaces inline style + onmouseover/onmouseout on block resource cards */
.n-resource-card {
  display: block;
  padding: 24px;
  border: 1.5px solid var(--border, #d1d9e6);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.n-resource-card:hover {
  border-color: var(--accent, #4a90d9);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.n-resource-card:active { transform: translateY(1px); }
.n-resource-card:focus-visible { outline: 2px solid var(--accent, #4a90d9); outline-offset: 3px; }

/* ── Blog Related-Article Cards ─────────────────────────────────────── */
/* Replaces inline style + onmouseover/onmouseout on blog card links     */
.n-blog-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  padding: 20px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.n-blog-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: var(--accent, #4a90d9);
}

/* ── Google Review Button ────────────────────────────────────────────── */
/* Replaces inline style + onmouseover/onmouseout on #google-review-btn  */
#google-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy, #1a2744);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.15s;
}
#google-review-btn:hover  { border-color: var(--accent, #4a90d9); }
#google-review-btn:active { box-shadow: 0 0 0 3px rgba(74,144,217,.15); transform: translateY(1px); }
#google-review-btn:focus-visible { outline: 2px solid var(--accent, #4a90d9); outline-offset: 3px; }

/* ── Site Search Autocomplete Results ───────────────────────────────── */
/* Replaces onmouseover/onmouseout inline JS on dynamically-rendered results */
.n-sr-item {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: inherit;
  transition: background 0.1s;
}
.n-sr-item:hover { background: #f0f4f8; }

.n-sr-more {
  display: block;
  padding: 10px 20px;
  color: var(--accent, #4a90d9);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.n-sr-more:hover { background: #f0f4f8; color: var(--navy, #1a2744); }

/* "No results" link inside search box */
.n-sr-no-results-link {
  color: var(--accent, #4a90d9);
  text-decoration: underline;
}

/* ── Testimonial Carousel Buttons ───────────────────────────────────── */
/* Replaces inline style + onmouseover/onmouseout on #t-prev / #t-next */
.t-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy, #1a2744);
  border: none;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.15s, transform 0.15s;
}
.t-carousel-btn:hover  { opacity: 1; }
.t-carousel-btn:active { background: #101e38; transform: translateY(calc(-50% + 1px)); }
.t-carousel-btn:focus-visible {
  outline: 2px solid var(--accent, #4a90d9);
  outline-offset: 3px;
  opacity: 1;
}
#t-prev { left: 0; }
#t-next { right: 0; }

/* ── ptc-btn-sm colour variants ─────────────────────────────────────── */
/* Replaces inline style overrides on parenting-time-calculator.html    */
.ptc-btn-sm--navy {
  background: var(--navy, #1a2744) !important;
  color: #fff !important;
  border-color: var(--navy, #1a2744) !important;
}
.ptc-btn-sm--navy:hover  { background: #2a3e6e !important; border-color: #2a3e6e !important; }
.ptc-btn-sm--navy:active { background: #101e38 !important; border-color: #101e38 !important; transform: translateY(1px); }

.ptc-btn-sm--accent {
  background: var(--accent, #4a90d9) !important;
  color: #fff !important;
  border-color: var(--accent, #4a90d9) !important;
}
.ptc-btn-sm--accent:hover  { background: #3a7bc8 !important; border-color: #3a7bc8 !important; }
.ptc-btn-sm--accent:active { background: #2d69b5 !important; border-color: #2d69b5 !important; transform: translateY(1px); }

/* ════════════════════════════════════════════════════════════════════
   RAMS REDUCTION LAYER
   Dieter Rams: "Good design is as little design as possible."
   These classes replace repeated inline-style patterns so the design
   system speaks in one voice — not 500 local dialects.
   ════════════════════════════════════════════════════════════════════ */

/* ── Footer: "Areas We Serve" section ──────────────────────────────── */
/* Rams: As little design as possible.                                  */
/* Replaces 5 inline style patterns × 104 pages in the footer.         */
.n-footer-areas {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0 4px;
  margin-top: 16px;
}
.n-footer-area-label {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin: 0 0 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.n-footer-area-links {
  font-size: .8rem;
  margin: 0;
  line-height: 2;
}
.n-footer-area-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  margin-right: 14px;
}
.n-footer-area-link:last-child { margin-right: 0; }
.n-footer-area-link:hover { color: #fff; }

/* ── Footer: contact links (phone/email) ───────────────────────────── */
/* Replaces: style="color:inherit;text-decoration:none;" (208 instances)*/
.n-footer-contact-link {
  color: inherit;
  text-decoration: none;
}
.n-footer-contact-link:hover { text-decoration: underline; }

/* ── Site-search overlay: overlay + dialog + input + icon ──────────── */
/* Norman: Consistency — all overlay styling lives here, not inline.    */
/* Replaces 4 inline style blocks × 102 pages in the search overlay.   */

/* Overlay backdrop — JS toggles display:none / display:flex inline.    */
/* All non-display properties live here so the element only carries     */
/* style="display:none;" (the JS-managed toggle state).                 */
#site-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .6);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
/* Dialog card: replaces <div style="background:#fff;...max-width:660px"> */
.n-search-dialog {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 660px;
  margin: 0 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
  overflow: hidden;
}
/* Search icon SVG inside the header: replaces style="width:20px;height:20px;color:#6b7280;flex-shrink:0;" */
.n-search-header > svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
  flex-shrink: 0;
}
/* Search input: replaces style="flex:1;border:none;outline:none;padding:18px 14px;font-size:1.05rem;font-family:inherit;color:#1a2744;" */
#site-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 14px;
  font-size: 1.05rem;
  font-family: inherit;
  color: #1a2744;
}
/* JS-generated no-results messages: removes inline styles from innerHTML template strings */
.n-search-results > p,
.n-search-results > div.n-sr-empty {
  padding: 16px 20px;
  color: #6b7280;
  font-size: .9rem;
}
.n-search-results > p a { color: var(--accent, #4a90d9); }

/* ── Site-search overlay inner elements ────────────────────────────── */
/* Rams: Unobtrusive + As little design as possible.                    */
.n-search-header {
  display: flex;
  align-items: center;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--border);
}
.n-search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}
.n-search-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--muted);
}
/* Nav search icon size — removes inline style="width:17px;height:17px;display:block;" */
.nav-search-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* ── Mega-menu section divider spacing ──────────────────────────────── */
/* Norman: Consistency — spacing between nav groups lives in CSS.       */
/* Replaces: <div class="mega-heading" style="margin-top:16px;">        */
a[role="menuitem"] + .mega-heading {
  margin-top: 16px;
}

/* ── "From Our Blog" section ────────────────────────────────────────── */
/* Replaces:                                                            */
/* <section style="background:var(--light-bg);border-top:2px solid ... */
/* <div class="container" style="max-width:900px;margin:0 auto;...">   */
/* <ul style="list-style:none;margin:0;padding:0;display:flex;...">    */
section.n-blog-section {
  background: var(--light-bg);
  border-top: 2px solid var(--border);
  padding: 36px 0 32px;
}
.n-blog-section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.n-blog-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Accent callout box ──────────────────────────────────────────────── */
/* Rams: Consistency — light-blue info callout should be one class.     */
/* Replaces: style="background:#f0f6ff;border:1px solid #c5daf5;        */
/*           border-radius:8px;padding:18px 22px;margin:24px 0;         */
/*           display:flex;align-items:center;gap:20px;flex-wrap:wrap;"  */
.n-callout-box {
  background: #f0f6ff;
  border: 1px solid #c5daf5;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Tool card row (flex container) ────────────────────────────────── */
/* Replaces: style="display:flex;gap:16px;flex-wrap:wrap;margin:24px 0;"*/
.n-tool-card-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

/* ── Guide CTA "FREE" sub-label ────────────────────────────────────── */
/* Replaces: style="font-size:0.55rem;opacity:0.7;font-weight:400"      */
.n-guide-free {
  font-size: .55rem;
  opacity: .7;
  font-weight: 400;
}

/* ── Print button wrapper ───────────────────────────────────────────── */
/* Replaces: style="text-align:right;margin:0 0 20px;"                  */
.n-print-wrap {
  text-align: right;
  margin: 0 0 20px;
}

/* ── Search result category badge (JS-generated) ───────────────────── */
/* Replaces inline styles in search JS template strings.                */
/* Background/color set via JS: elem.style.background / .color          */
.n-sr-category {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

/* ── R-M1: Section footer text links ───────────────────────────────── */
/* Rams: As little design as possible.                                  */
/* Replaces: style="color:var(--accent);font-weight:bold;font-size:15px"*/
/* Used for "View All Articles →", "View All Practice Areas →" etc.    */
.n-text-link {
  color: var(--accent, #4a90d9);
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
}
.n-text-link:hover { text-decoration: underline; }

/* ── R-U1: Nav dropdown featured item ──────────────────────────────── */
/* Rams: Unobtrusive — visual emphasis should be systematic, not ad-hoc.*/
/* Replaces: style="font-weight:600;" on role="menuitem" links          */
.n-nav-featured { font-weight: 600; }

/* ── R-U2: Tool/calculator callout cards ───────────────────────────── */
/* Rams: Unobtrusive — same component repeated 69× via inline styles.  */
/* Usage: <div class="n-tool-card"> … <a class="btn-accent">Try It</a>  */
.n-tool-card {
  flex: 1;
  min-width: 240px;
  background: #f0f6ff;
  border: 1px solid #c5daf5;
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.n-tool-card-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--navy, #1a2744);
  font-size: .95rem;
}
.n-tool-card-desc {
  margin: 0;
  font-size: .82rem;
  color: var(--muted, #6b7280);
}

/* ── R-U3: Tool card content wrapper ───────────────────────────────── */
/* Rams: As little design as possible.                                  */
/* Replaces: style="flex:1;min-width:150px;" (60 instances / 30 pages) */
/* Used as the stretchy text container inside .n-tool-card              */
.n-tool-card-content {
  flex: 1;
  min-width: 150px;
}

/* ── R-U4: Consultation step bar ───────────────────────────────────── */
/* Rams: One class instead of 25 inline style attributes on first-      */
/* consultation.html (5 steps × ~5 inline attrs each).                  */
/* Usage: <div class="n-step-bar"> <div class="n-step-bar-item">…</div> */
.n-step-bar {
  display: flex;
  gap: 0;
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 4px;
  overflow: hidden;
}
.n-step-bar-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 18px 10px;
  background: var(--light-bg, #f0f4f8);
}
.n-step-bar-item--active {
  background: var(--navy, #1a2744);
  color: #fff;
}
.n-step-bar-icon {
  margin-bottom: 8px;
  color: var(--navy, #1a2744);
}
.n-step-bar-item--active .n-step-bar-icon { color: #fff; }
.n-step-bar-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--navy, #1a2744);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.n-step-bar-item--active .n-step-bar-label { color: #fff; }

/* ── R-U5: Consultation phase cards (numbered step cards) ─────────── */
/* Rams: 6 identical cards on first-consultation.html each had ~4       */
/* inline style attributes — one class replaces all of them.            */
/* Usage: <div class="n-phase-card"> …content… </div>                  */
.n-phase-card {
  background: var(--light-bg, #f0f4f8);
  border: 1px solid var(--border, #d1d9e6);
  border-radius: 4px;
  padding: 26px 22px;
}
.n-phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--navy, #1a2744);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.n-phase-card h3 {
  margin: 0 0 8px;
  color: var(--navy, #1a2744);
  font-size: 1.02rem;
}
.n-phase-card p {
  margin: 0;
  color: var(--text, #374151);
  font-size: .93rem;
  line-height: 1.65;
}

/* ── R-U6: Question list (consultation Q&A list style) ─────────────── */
/* Rams: 10 identical list items each had 2 inline-styled elements —    */
/* one class pair replaces all of them.                                 */
.n-question-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.n-question-item {
  padding: 13px 16px 13px 44px;
  border-bottom: 1px solid var(--border, #d1d9e6);
  position: relative;
  font-size: .97rem;
  color: var(--navy, #1a2744);
  line-height: 1.55;
}
.n-question-item:last-child { border-bottom: none; }
.n-question-badge {
  position: absolute;
  left: 10px;
  top: 13px;
  width: 22px;
  height: 22px;
  background: var(--accent, #4a90d9);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: .72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── R-U7: Consultation "What to Bring" checklist items ─────────────── */
/* Rams: 10 identical items × 3 inline-style elements — one class pair. */
.n-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.n-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: .95rem;
  color: var(--navy, #1a2744);
  border: 1px solid var(--border, #d1d9e6);
}
.n-checklist-item--optional {
  background: var(--light-bg, #f0f4f8);
  color: var(--text, #374151);
}
.n-checklist-mark {
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  color: #2a9a2a;
}
.n-checklist-item--optional .n-checklist-mark {
  color: rgba(100,116,139,.4);
}

/* ── R-M2: Nav dropdown badge pill ─────────────────────────────────── */
/* Rams: As little design as possible — pill label should be one class. */
/* Replaces: style="font-size:.7rem;background:#4a90d9;color:#fff;      */
/*           padding:1px 6px;border-radius:4px;vertical-align:middle;   */
/*           margin-left:4px;"                                           */
.n-dropdown-badge {
  font-size: .7rem;
  background: var(--accent, #4a90d9);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
  font-weight: 600;
}

/* ── New-tab feedback on button-styled links ────────────────────────── */
/* Norman: Feedback — users should know a link opens a new tab.         */
/* Adds a subtle ↗ arrow after button CTAs with target="_blank".        */
a.btn[target="_blank"]::after,
a.btn-accent[target="_blank"]::after,
a.btn-outline[target="_blank"]::after {
  content: '\2009\2197';
  font-size: 0.72em;
  opacity: 0.55;
  vertical-align: super;
}

/* ── Mini-form success sub-text ─────────────────────────────────────── */
/* Replaces: <span style="font-weight:400;font-size:.9rem;">              */
.mini-form-success-sub {
  display: block;
  font-weight: 400;
  font-size: .9rem;
  margin-top: 6px;
}
.mini-form-success-sub a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.mini-form-success-sub a:hover { text-decoration: underline; }

/* ── Mobile nav: all three action buttons visible on scroll ─────────────
   On narrow screens the nav-actions row can't fit Start Here + Calculator
   + the full phone number without overflowing. Compact the phone to an
   icon-only button so all three fit alongside the search icon + hamburger. */
@media (max-width: 900px) {
  /* Reduce the phone number to a dial icon — saves ~80px */
  .nav-phone {
    font-size: 0 !important;
    letter-spacing: 0;
    padding: 5px 9px !important;
    line-height: 1;
  }
  .nav-phone::before {
    content: "\260E";   /* ☎ telephone symbol */
    font-size: 15px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
  }
  /* Reduce gap so all buttons fit flush on the narrowest phones */
  .nav-actions {
    gap: 6px !important;
  }
}

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
  .n-field-error,
  .n-req-note,
  .n-form-error {
    display: none !important;
  }
  /* Ensure focus rings don't print */
  *:focus-visible { outline: none !important; }
}
