/* ==========================================================================
   Account 2027 - template.css
   Design system lifted from nfpt.com (2026): Onest headings, halyard-display
   body (falls back to Onest), navy + orange palette, floating header bar,
   soft-shadow cards and a light grey four-column footer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --acct-navy: #0b1731;            /* rgb(11, 23, 49)  primary buttons, h2 */
  --acct-navy-hover: #16264d;
  --acct-orange: #f16924;          /* rgb(241, 105, 36) accents, icons */
  --acct-orange-dark: #c02b0a;     /* rgb(192, 43, 10)  hover / emphasis */
  --acct-ink: #222222;             /* body text */
  --acct-ink-muted: rgba(33, 33, 33, 0.6);
  --acct-ink-soft: rgba(34, 34, 34, 0.8);
  --acct-line: rgba(34, 34, 34, 0.12);
  --acct-page: #fbfbfb;            /* page background */
  --acct-surface: #ffffff;         /* cards */
  --acct-band: #f0f0f0;            /* footer / strips */
  --acct-link: #164dcc;            /* matches the account component's primary text colour */
  --acct-success: #1a7f37;
  --acct-danger: #c02b0a;
  --acct-warning: #b7791f;

  --acct-font-head: "Onest", "Helvetica Neue", Arial, sans-serif;
  --acct-font-body: "halyard-display", "Onest", "Helvetica Neue", Arial, sans-serif;

  --acct-radius: 10px;
  --acct-radius-lg: 12px;
  --acct-radius-pill: 50px;
  --acct-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  --acct-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);

  --acct-container: 1320px;
  --acct-gutter: 24px;
  --acct-header-height: 100px;
  --acct-sidebar-width: 260px;
}

/* --------------------------------------------------------------------------
   2. Base & typography (overrides JUI Bootstrap 2 defaults)
   -------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--acct-page);
  color: var(--acct-ink);
  display: flex;
  flex-direction: column;
  font-family: var(--acct-font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  /* The compact header changes bar height. Anchoring would drag scroll position
     back across that cutoff and leave the bar resizing. */
  overflow-anchor: none;
  padding: 0 !important; /* bootstrap-responsive adds body padding on small screens */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--acct-ink);
  font-family: var(--acct-font-head);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-rendering: optimizeLegibility;
}

h1 { font-size: 40px; letter-spacing: -0.02em; }
h2 { color: var(--acct-navy); font-size: 32px; letter-spacing: -0.02em; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  margin: 0 0 1em;
}

small, .acct-muted { color: var(--acct-ink-muted); }

a {
  color: var(--acct-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--acct-navy);
  text-decoration: underline;
}

hr {
  border: 0;
  border-top: 1px solid var(--acct-line);
  margin: 24px 0;
}

img { max-width: 100%; height: auto; }

::selection { background: rgba(241, 105, 36, 0.25); }

.acct-skip-link {
  background: var(--acct-navy);
  border-radius: 0 0 var(--acct-radius) 0;
  color: #fff;
  left: 0;
  padding: 10px 16px;
  position: absolute;
  top: -100px;
  z-index: 1000;
}

.acct-skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* --------------------------------------------------------------------------
   3. Buttons - pill shaped like nfpt.com
   -------------------------------------------------------------------------- */
.acct-btn,
button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  align-items: center;
  background-color: var(--acct-navy);
  background-image: none;
  border: 1px solid var(--acct-navy);
  /* 50px still exceeds half the shorter border box, so the ends stay a full pill. */
  border-radius: var(--acct-radius-pill);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--acct-font-body);
  font-size: 15px;
  font-weight: 500;
  gap: 12px;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 10px 26px;
  text-decoration: none;
  text-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  vertical-align: middle;
}

.acct-btn:hover,
.acct-btn:focus,
button:hover,
button:focus,
.btn:hover,
.btn:focus,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background-color: var(--acct-navy-hover);
  border-color: var(--acct-navy-hover);
  color: #fff;
  text-decoration: none;
}

.acct-btn:active,
button:active,
.btn:active { transform: translateY(1px); }

button[disabled],
.btn[disabled],
.btn.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Secondary: white pill with navy text (used over dark/imagery on nfpt.com). */
.acct-btn--secondary,
.btn-secondary {
  background-color: var(--acct-surface);
  border-color: var(--acct-surface);
  color: var(--acct-navy);
}

.acct-btn--secondary:hover,
.btn-secondary:hover {
  background-color: var(--acct-band);
  border-color: var(--acct-band);
  color: var(--acct-navy);
}

/* Outline: transparent pill with a navy hairline. */
.acct-btn--outline,
.btn-link {
  background-color: transparent;
  border-color: var(--acct-navy);
  color: var(--acct-navy);
}

.acct-btn--outline:hover,
.btn-link:hover {
  background-color: var(--acct-navy);
  color: #fff;
}

/* Orange accent button for primary conversions (add to cart, pay). */
.acct-btn--accent,
.btn-warning,
.btn-success {
  background-color: var(--acct-orange);
  border-color: var(--acct-orange);
  color: #fff;
}

.acct-btn--accent:hover,
.btn-warning:hover,
.btn-success:hover {
  background-color: var(--acct-orange-dark);
  border-color: var(--acct-orange-dark);
  color: #fff;
}

.btn-danger {
  background-color: var(--acct-danger);
  border-color: var(--acct-danger);
}

/* Small pill for inline actions inside tables and cards. */
.acct-btn--small,
.btn-small,
.btn-mini {
  font-size: 14px;
  padding: 7px 16px;
}

/* nfpt.com signature: orange circle with a white arrow trailing the label. */
.acct-btn--arrow {
  padding-right: 10px;
}

.acct-btn--arrow::after {
  background-color: var(--acct-orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  border-radius: 50%;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 30px;
  transition: transform 0.15s ease;
  width: 30px;
}

.acct-btn--arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   4. Forms
   -------------------------------------------------------------------------- */
label {
  color: var(--acct-ink);
  font-weight: 500;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea,
.input-block-level {
  background-color: var(--acct-surface);
  border: 1px solid var(--acct-line);
  border-radius: var(--acct-radius);
  box-shadow: none;
  box-sizing: border-box;
  color: var(--acct-ink);
  font-family: var(--acct-font-body);
  font-size: 16px;
  height: auto;
  line-height: 1.4;
  margin-bottom: 10px;
  padding: 11px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select { padding-right: 36px; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--acct-navy);
  box-shadow: 0 0 0 3px rgba(11, 23, 49, 0.1);
  outline: 0;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--acct-orange);
  margin: 0 6px 0 0;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.acct-container {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: var(--acct-container);
  padding: 0 var(--acct-gutter);
  width: 100%;
}

.acct-topbar {
  background: var(--acct-navy);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
  text-align: center;
}

.acct-topbar a { color: #fff; text-decoration: underline; }

.acct-main {
  padding: 32px 0 64px;
}

/* Content + optional sidebars. Grid columns are added via has-left / has-right. */
.acct-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.acct-layout.has-left { grid-template-columns: var(--acct-sidebar-width) minmax(0, 1fr); }
.acct-layout.has-right { grid-template-columns: minmax(0, 1fr) var(--acct-sidebar-width); }
.acct-layout.has-left.has-right { grid-template-columns: var(--acct-sidebar-width) minmax(0, 1fr) var(--acct-sidebar-width); }

.acct-content,
.acct-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.acct-sidebar--left { position: sticky; top: calc(var(--acct-header-height) + 24px); align-self: start; }

/* --------------------------------------------------------------------------
   6. Header - floating translucent bar, logo left, nav right
   -------------------------------------------------------------------------- */
.acct-header {
  padding: 12px 0 0;
  position: relative;
  z-index: 100;
}

.acct-header.is-sticky {
  position: sticky;
  top: 0;
}

.acct-header__bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 34, 34, 0.06);
  border-radius: var(--acct-radius);
  box-shadow: var(--acct-shadow);
  box-sizing: border-box;
  display: flex;
  gap: 24px;
  min-height: var(--acct-header-height);
  padding: 12px 12px 12px 28px;
  transition: min-height 0.2s ease, box-shadow 0.2s ease;
}

/* Compact the bar slightly once the visitor scrolls. */
.acct-header.is-scrolled .acct-header__bar {
  box-shadow: var(--acct-shadow-hover);
  min-height: 76px;
}

.acct-brand {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
}

.acct-brand img {
  height: 56px;
  transition: height 0.2s ease;
  width: auto;
}

.acct-header.is-scrolled .acct-brand img { height: 44px; }

.acct-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 24px;
  justify-content: flex-end;
  min-width: 0;
}

/* Core mod_menu output: ul.nav.menu > li > a */
.acct-nav ul.menu,
.acct-nav ul.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-nav ul.menu > li {
  --acct-menu-pad: 0px; /* distance from this label to the bottom of the header bar */
  position: relative;
  z-index: 1;
}

/* Keep the hovered flyout above neighbouring pills. Click does not latch a desktop menu. */
.acct-nav ul.menu > li.parent:hover,
.acct-nav ul.menu > li.deeper:hover {
  z-index: 120;
}

.acct-nav ul.menu > li > a,
.acct-nav ul.menu > li > .nav-header,
.acct-nav ul.menu > li > .separator {
  --acct-nav-link-py: 10px; /* vertical padding; half of it is part of the pill cap */
  --acct-nav-link-bw: 0px; /* vertical border on each edge; action pills set this to 1px */
  /* Half the border box: padding + border + half of the 1.2 line-height. Matches the fitted 50px pill. */
  --acct-nav-pill-cap: calc(var(--acct-nav-link-py) + var(--acct-nav-link-bw) + 0.6em);
  border-radius: var(--acct-radius-pill);
  color: var(--acct-ink);
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
  gap: 6px;
  line-height: 1.2;
  padding: var(--acct-nav-link-py) 16px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.acct-nav ul.menu > li > a:hover,
.acct-nav ul.menu > li > a:focus,
.acct-nav ul.menu > li.active > a,
.acct-nav ul.menu > li.current > a {
  background-color: rgba(11, 23, 49, 0.06);
  color: var(--acct-navy);
}

/* Parent pills stay navy with white labels so the flyout is a continuation of the same control. */
.acct-nav ul.menu > li.parent > a,
.acct-nav ul.menu > li.parent > a:hover,
.acct-nav ul.menu > li.parent > a:focus,
.acct-nav ul.menu > li.parent.active > a,
.acct-nav ul.menu > li.parent.current > a,
.acct-nav ul.menu > li.deeper > a,
.acct-nav ul.menu > li.deeper > a:hover,
.acct-nav ul.menu > li.deeper > a:focus,
.acct-nav ul.menu > li.deeper.active > a,
.acct-nav ul.menu > li.deeper.current > a {
  background-color: var(--acct-navy);
  color: #fff;
}

/* Keep the resting top cap and only flatten the bottom edge so the flyout can meet it.
   A 50px top radius beside a 0 bottom radius is rescaled to the full height, which rounds the top more. */
.acct-nav ul.menu > li.parent:hover > a,
.acct-nav ul.menu > li.deeper:hover > a {
  border-top-left-radius: var(--acct-nav-pill-cap);
  border-top-right-radius: var(--acct-nav-pill-cap);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  position: relative;
}

/* Navy stem from the parent pill down to the header bar so the submenu starts below adjacent labels.
   Overlap 1px on the left, right and bottom so subpixel/border-box rounding does not leave a hairline. */
.acct-nav ul.menu > li.parent:hover > a::before,
.acct-nav ul.menu > li.deeper:hover > a::before {
  background: var(--acct-navy);
  content: "";
  height: calc(var(--acct-menu-pad, 0px) + 1px);
  left: -1px;
  position: absolute;
  right: -1px;
  top: 100%;
}

/* "+" marker on items with children, as on nfpt.com. */
.acct-nav ul.menu > li.parent > a::after,
.acct-nav ul.menu > li.deeper > a::after {
  color: var(--acct-orange);
  content: "+";
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.15s ease;
}

.acct-nav ul.menu > li.parent.is-open > a::after,
.acct-nav ul.menu > li.parent:hover > a::after,
.acct-nav ul.menu > li.deeper.is-open > a::after,
.acct-nav ul.menu > li.deeper:hover > a::after { transform: rotate(45deg); }

/* Dropdowns start at the bottom of the header bar; --acct-menu-pad is set in template.js.
   Top-left stays square against the parent pill; the other three corners use the card radius. */
.acct-nav ul.menu ul.nav-child {
  background: var(--acct-navy);
  border: 0;
  border-radius: 0 var(--acct-radius) var(--acct-radius) var(--acct-radius);
  box-shadow: var(--acct-shadow-hover);
  display: none;
  flex-direction: column;
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 240px;
  padding: 0 8px 8px;
  position: absolute;
  top: calc(100% + var(--acct-menu-pad, 0px));
  z-index: 110;
}

/* Desktop flyouts open on hover only. .is-open is the mobile click lock. */
.acct-nav ul.menu li.parent:hover > ul.nav-child,
.acct-nav ul.menu li.deeper:hover > ul.nav-child { display: flex; }

.acct-nav ul.menu ul.nav-child > li > a,
.acct-nav ul.menu ul.nav-child > li > .separator {
  border-radius: 8px;
  color: #fff;
  display: block;
  font-size: 15px;
  padding: 9px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.acct-nav ul.menu ul.nav-child > li > a:hover,
.acct-nav ul.menu ul.nav-child > li > a:focus,
.acct-nav ul.menu ul.nav-child > li.active > a {
  background-color: var(--acct-navy-hover);
  color: #fff;
  text-decoration: none;
}

/* Menu images / font icons (cart, etc.) follow the white label colour on navy pills. */
.acct-nav ul.menu img,
.acct-header__actions img {
  filter: brightness(0) invert(1);
  height: 1.15em;
  vertical-align: middle;
  width: auto;
}

.acct-nav ul.menu svg,
.acct-nav ul.menu svg path,
.acct-nav ul.menu i,
.acct-nav ul.menu [class*="fa-"],
.acct-header__actions svg,
.acct-header__actions svg path,
.acct-header__actions i,
.acct-header__actions [class*="fa-"] {
  color: #fff;
  fill: currentColor;
}

/* Cart glyph for a menu link whose Joomla Link Class is cart-icon. Mask so it inherits the link colour. */
.acct-nav ul.menu > li > a.cart-icon {
  font-size: 0; /* collapse the &nbsp; menu title so it takes no space beside the icon */
  gap: 0;
}

.acct-nav a.cart-icon::before {
  background-color: currentColor;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  font-size: 15px; /* nav link size; the anchor itself is 0 so the &nbsp; stays collapsed */
  height: 1.15em; /* matches menu image icons above */
  width: 1.15em;
  -webkit-mask-image: url("../images/icon-cart.svg");
  mask-image: url("../images/icon-cart.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Right hand actions (login / logout / account) render as pill buttons. */
.acct-header__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.acct-header__actions ul.menu { gap: 8px; }

.acct-header__actions > a,
.acct-header__actions ul.menu > li > a,
.acct-header__actions button,
.acct-header__actions input[type="submit"] {
  --acct-nav-link-py: 12px; /* taller than the main nav pills */
  --acct-nav-link-bw: 1px; /* matches the 1px border below; included in the pill cap */
  background-color: var(--acct-navy);
  border: 1px solid var(--acct-navy);
  border-radius: var(--acct-radius-pill);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: var(--acct-nav-link-py) 24px;
}

.acct-header__actions > a:hover,
.acct-header__actions ul.menu > li > a:hover,
.acct-header__actions button:hover {
  background-color: var(--acct-navy-hover);
  border-color: var(--acct-navy-hover);
  color: #fff;
  text-decoration: none;
}

/* Hamburger (mobile only) */
.acct-nav-toggle {
  background: transparent;
  border: 1px solid var(--acct-line);
  border-radius: var(--acct-radius);
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 12px 11px;
}

.acct-nav-toggle:hover,
.acct-nav-toggle:focus { background: rgba(11, 23, 49, 0.06); border-color: var(--acct-line); }

.acct-nav-toggle__bar {
  background: var(--acct-navy);
  border-radius: 2px;
  display: block;
  height: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 22px;
}

.acct-nav-toggle[aria-expanded="true"] .acct-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.acct-nav-toggle[aria-expanded="true"] .acct-nav-toggle__bar:nth-child(2) { opacity: 0; }
.acct-nav-toggle[aria-expanded="true"] .acct-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.acct-card {
  background: var(--acct-surface);
  border-radius: var(--acct-radius);
  box-shadow: var(--acct-shadow);
  box-sizing: border-box;
  padding: 30px;
}

.acct-card__title {
  border-bottom: 1px solid var(--acct-line);
  font-size: 20px;
  margin: -6px 0 18px;
  padding-bottom: 14px;
}

.acct-card__body > :last-child { margin-bottom: 0; }

.acct-content__body { min-height: 320px; }

/* Left-rule paragraph treatment used in nfpt.com feature cards. */
.acct-lead {
  border-left: 1px solid var(--acct-line);
  color: var(--acct-ink-soft);
  padding-left: 20px;
}

/* --------------------------------------------------------------------------
   8. Sidebar navigation (vertical mod_menu with accordion parents)
   -------------------------------------------------------------------------- */
.acct-sidebar ul.menu,
.acct-sidebar ul.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-sidebar ul.menu li { position: relative; }

.acct-sidebar ul.menu > li > a,
.acct-sidebar ul.menu > li > .nav-header,
.acct-sidebar ul.menu > li > .separator {
  border-radius: 8px;
  color: var(--acct-ink);
  display: block;
  font-size: 15px;
  font-weight: 400;
  padding: 10px 40px 10px 12px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.acct-sidebar ul.menu > li > a:hover,
.acct-sidebar ul.menu > li.active > a,
.acct-sidebar ul.menu > li.current > a {
  background-color: rgba(11, 23, 49, 0.06);
  color: var(--acct-navy);
}

.acct-sidebar ul.menu > li.active > a { font-weight: 500; }

.acct-sidebar ul.menu > li > .nav-header,
.acct-sidebar ul.menu > li > .separator {
  color: var(--acct-ink-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: 8px;
  text-transform: uppercase;
}

/* Child lists are collapsed until the parent is open (template.js toggles .is-open). */
.acct-sidebar ul.menu ul.nav-child {
  border-left: 1px solid var(--acct-line);
  display: none;
  list-style: none;
  margin: 2px 0 6px 14px;
  padding: 0 0 0 10px;
}

.acct-sidebar ul.menu li.is-open > ul.nav-child,
.acct-sidebar ul.menu li.active > ul.nav-child,
.acct-sidebar ul.menu li.current > ul.nav-child { display: block; }

.acct-sidebar ul.menu ul.nav-child > li > a {
  border-radius: 6px;
  color: var(--acct-ink-soft);
  display: block;
  font-size: 14px;
  padding: 7px 10px;
}

.acct-sidebar ul.menu ul.nav-child > li > a:hover,
.acct-sidebar ul.menu ul.nav-child > li.active > a {
  background-color: rgba(11, 23, 49, 0.06);
  color: var(--acct-navy);
}

/* Chevron toggle injected by template.js on parents. */
.acct-submenu-toggle {
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--acct-orange);
  height: 32px;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 32px;
}

.acct-submenu-toggle:hover,
.acct-submenu-toggle:focus { background: rgba(241, 105, 36, 0.12); }

.acct-submenu-toggle::before {
  content: "+";
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.15s ease;
}

li.is-open > .acct-submenu-toggle::before { transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   9. System messages
   -------------------------------------------------------------------------- */
#system-message-container { margin-bottom: 24px; }

#system-message-container .alert,
.alert {
  background-color: var(--acct-surface);
  background-image: none;
  border: 1px solid var(--acct-line);
  border-left: 4px solid var(--acct-navy);
  border-radius: var(--acct-radius);
  box-shadow: var(--acct-shadow);
  color: var(--acct-ink);
  /* 44px on the right clears the close control: 16px corner inset plus the glyph. */
  padding: 16px 44px 16px 20px;
  position: relative;
  text-shadow: none;
}

.alert h4 { color: inherit; font-size: 16px; margin: 0 0 4px; }
.alert-success, .alert-message { border-left-color: var(--acct-success); }
.alert-error, .alert-danger { border-left-color: var(--acct-danger); }
.alert-warning, .alert-notice { border-left-color: var(--acct-warning); }
.alert-info { border-left-color: var(--acct-link); }

.alert .close {
  color: var(--acct-ink-muted);
  float: none;
  line-height: 1;
  margin: 0;
  opacity: 1;
  position: absolute;
  /* Bootstrap sets right: -21px, which pulls the X onto the border. Match the 16px top inset. */
  right: 16px;
  text-shadow: none;
  top: 16px;
}

/* --------------------------------------------------------------------------
   10. Footer - light grey band with logo, link columns, contact strip, legal
   -------------------------------------------------------------------------- */
.acct-footer {
  background: var(--acct-band);
  color: var(--acct-ink-soft); /* non-link text matches the copyright line */
  font-size: 14px;
  margin-top: auto;
  padding: 56px 0 24px;
}

.acct-footer a {
  color: var(--acct-ink);
  text-decoration: none;
}

.acct-footer a:hover { color: var(--acct-orange-dark); text-decoration: underline; }

.acct-footer__top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 32px;
}

.acct-brand--footer img { height: 60px; }

.acct-footer__badges {
  align-items: center;
  display: flex;
  gap: 16px;
}

.acct-footer__badges img { height: 60px; width: auto; }

.acct-footer__columns {
  border-top: 1px solid var(--acct-line);
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 40px 0;
}

.acct-footer__heading {
  color: var(--acct-ink-soft);
  font-family: var(--acct-font-head);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.acct-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-footer__col li { margin-bottom: 8px; }

.acct-footer__contact {
  align-items: center;
  border-top: 1px solid var(--acct-line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding: 28px 0;
}

.acct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-contact__item {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  gap: 2px;
}

.acct-contact__label {
  color: var(--acct-ink-soft);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hours and other plain footer text, plus menu headings that are not links. */
.acct-contact__value,
.acct-footer .nav-header,
.acct-footer .separator {
  color: var(--acct-ink-soft);
}

/* Orange circular social icons */
.acct-social {
  display: flex;
  gap: 10px;
}

.acct-social__link {
  align-items: center;
  background: var(--acct-orange);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
  width: 30px;
}

.acct-social__link:hover {
  background: var(--acct-orange-dark);
  color: #fff;
  transform: translateY(-2px);
}

.acct-social__link .acct-icon { height: 14px; width: 14px; }

.acct-footer__legal {
  align-items: center;
  border-top: 1px solid var(--acct-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 20px;
}

.acct-footer__copyright {
  color: var(--acct-ink-soft);
  font-size: 14px;
  margin: 0;
}

.acct-footer__legal-links ul.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-footer__legal-links a { color: var(--acct-navy); font-size: 14px; }

/* --------------------------------------------------------------------------
   11. Error page
   -------------------------------------------------------------------------- */
.acct-error {
  margin: 40px auto;
  max-width: 720px;
  text-align: center;
}

.acct-error__code {
  color: var(--acct-orange);
  font-family: var(--acct-font-head);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 8px;
}

.acct-error__headline { font-size: 36px; }
.acct-error__message { color: var(--acct-ink-muted); }

.acct-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.acct-error__debug {
  margin-top: 32px;
  overflow: auto;
  text-align: left;
}

/* --------------------------------------------------------------------------
   12. Component-only view (tmpl=component)
   -------------------------------------------------------------------------- */
body.acct-component-only { padding: 24px !important; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  :root { --acct-sidebar-width: 240px; }
  .acct-layout.has-left.has-right { grid-template-columns: var(--acct-sidebar-width) minmax(0, 1fr); }
  .acct-layout.has-left.has-right .acct-sidebar--right { grid-column: 2; }
}

@media (max-width: 991px) {
  :root { --acct-header-height: 76px; }

  /* Stack sidebars above / below the content. */
  .acct-layout.has-left,
  .acct-layout.has-right,
  .acct-layout.has-left.has-right { grid-template-columns: minmax(0, 1fr); }
  .acct-layout.has-left.has-right .acct-sidebar--right { grid-column: auto; }
  .acct-sidebar--left { position: static; }

  .acct-header__bar {
    flex-wrap: wrap;
    padding: 10px 12px 10px 20px;
  }

  .acct-brand img,
  .acct-header.is-scrolled .acct-brand img { height: 44px; }

  .acct-nav-toggle { display: inline-flex; }

  /* Mobile nav is hidden until the hamburger opens it. flex-start overrides the desktop flex-end so links sit under the logo. */
  .acct-nav {
    align-items: stretch;
    border-top: 1px solid var(--acct-line);
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 10px;
    padding-top: 12px;
  }

  .acct-nav.is-open { display: flex; }

  /* Open menu covers the viewport. The logo and close button stay on the first row. */
  body.acct-nav-open { overflow: hidden; }

  body.acct-nav-open .acct-header {
    background: var(--acct-surface);
    bottom: 0;
    left: 0;
    padding: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 200;
  }

  body.acct-nav-open .acct-header > .acct-container { height: 100%; }

  body.acct-nav-open .acct-header__bar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--acct-surface);
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 100%;
  }

  body.acct-nav-open .acct-nav.is-open {
    align-self: stretch;
    grid-column: 1 / -1;
    margin-top: 12px;
    min-height: 0;
    overflow-y: auto;
  }

  .acct-nav ul.menu {
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
  }

  .acct-nav ul.menu > li > a {
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
  }

  /* Keep parent pills navy on mobile; flyouts are inline so restore full corner radius. */
  .acct-nav ul.menu > li.parent > a,
  .acct-nav ul.menu > li.parent:hover > a,
  .acct-nav ul.menu > li.parent.is-open > a,
  .acct-nav ul.menu > li.parent:focus-within > a,
  .acct-nav ul.menu > li.deeper > a,
  .acct-nav ul.menu > li.deeper:hover > a,
  .acct-nav ul.menu > li.deeper.is-open > a,
  .acct-nav ul.menu > li.deeper:focus-within > a {
    background-color: var(--acct-navy);
    border-radius: 8px;
    color: #fff;
  }

  /* Accordion layout does not need the desktop stem down to the header bar. */
  .acct-nav ul.menu > li.parent:hover > a::before,
  .acct-nav ul.menu > li.parent.is-open > a::before,
  .acct-nav ul.menu > li.parent:focus-within > a::before,
  .acct-nav ul.menu > li.deeper:hover > a::before,
  .acct-nav ul.menu > li.deeper.is-open > a::before,
  .acct-nav ul.menu > li.deeper:focus-within > a::before {
    content: none;
    display: none;
  }

  /* Block the desktop hover-open without hiding a section that was opened by click. */
  .acct-nav ul.menu li.parent:hover:not(.is-open) > ul.nav-child,
  .acct-nav ul.menu li.deeper:hover:not(.is-open) > ul.nav-child { display: none; }
  .acct-nav ul.menu li.parent.is-open > ul.nav-child,
  .acct-nav ul.menu li.parent.is-open:hover > ul.nav-child,
  .acct-nav ul.menu li.deeper.is-open > ul.nav-child,
  .acct-nav ul.menu li.deeper.is-open:hover > ul.nav-child { display: flex; }

  .acct-nav ul.menu ul.nav-child {
    background: transparent;
    border: 0;
    border-left: 1px solid var(--acct-line);
    border-radius: 0;
    box-shadow: none;
    margin: 2px 0 6px 14px;
    padding: 0 0 0 10px;
    position: static;
  }

  .acct-nav ul.menu ul.nav-child > li > a,
  .acct-nav ul.menu ul.nav-child > li > .separator { color: var(--acct-ink); }

  .acct-nav ul.menu ul.nav-child img { filter: none; }

  .acct-nav ul.menu ul.nav-child svg,
  .acct-nav ul.menu ul.nav-child i,
  .acct-nav ul.menu ul.nav-child [class*="fa-"] {
    color: inherit;
    fill: currentColor;
  }

  .acct-nav ul.menu ul.nav-child > li > a:hover,
  .acct-nav ul.menu ul.nav-child > li > a:focus,
  .acct-nav ul.menu ul.nav-child > li.active > a {
    background-color: rgba(11, 23, 49, 0.06);
    color: var(--acct-navy);
  }

  .acct-header__actions,
  .acct-header__actions ul.menu { flex-direction: column; align-items: stretch; }
  .acct-header__actions > a,
  .acct-header__actions ul.menu > li > a { justify-content: center; }

  .acct-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --acct-gutter: 16px; }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }

  .acct-main { padding: 20px 0 48px; }
  .acct-card { padding: 20px; }
  .acct-header { padding-top: 8px; }
  .acct-footer { padding-top: 40px; }
  .acct-footer__top { justify-content: center; text-align: center; }
  .acct-footer__contact,
  .acct-footer__legal { justify-content: center; text-align: center; }
  .acct-contact { justify-content: center; }
  .acct-error__code { font-size: 56px; }
  .acct-error__headline { font-size: 28px; }
}

@media (max-width: 479px) {
  .acct-footer__columns { grid-template-columns: minmax(0, 1fr); }
  .acct-btn,
  button,
  .btn { padding: 9px 18px; }
}

@media print {
  .acct-header,
  .acct-footer,
  .acct-nav-toggle,
  .acct-sidebar { display: none !important; }
  .acct-card { box-shadow: none; padding: 0; }
  body { background: #fff; }
}
