/* Golden West FCU public site. Plain CSS, no build step.
   Layout follows the structure of a large retail bank home page.
   Colors: forest green, deep green and gold. Gold text on white is never used (contrast). */

@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: block; }
@font-face { font-family: "Oswald"; src: url("../fonts/Oswald.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: block; }

:root {
  --navy: #14403a;
  --navy-deep: #0e2e29;
  --bar: #0f332e;
  --blue: #1c6a56;
  --gold: #f5bd02;
  --gold-hover: #dca800;
  --ink: #1b1e2b;
  --muted: #565d70;
  --line: #cfdbd5;
  --dark: #202226;
  --pad: clamp(1.25rem, 5.5vw, 5rem);
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --grad: linear-gradient(90deg, var(--navy) 0%, var(--navy) 62%, var(--blue) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.55; font-size: 1.0625rem; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--gold); }
h1, h2, h3 { margin: 0; line-height: 1.08; }
.caps, .panel-body h2, .band h2, .articles h2 { font-family: var(--display); text-transform: uppercase; font-weight: 700; letter-spacing: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.9rem; background: var(--gold); color: var(--navy-deep); font: 700 1rem/1.15 var(--sans); text-decoration: none; border: 0; border-radius: 6px; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: var(--gold-hover); }

/* Photo slots. A real file at data-img replaces the placeholder (script below). */
.photo { position: relative; overflow: hidden; background-color: #cadbd3; background-size: cover; background-position: center; }
.photo:not(.has-img)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #dfe9e5 0%, #b5cec4 100%); }

/* ---------- Identity strip ---------- */
.idstrip { background: #fff; position: relative; z-index: 31; }
.idnote { padding-left: var(--pad); }
.idnote summary { display: flex; align-items: center; gap: .6rem; min-height: 58px; cursor: pointer; list-style: none; font-size: .9375rem; color: #2a2d36; }
.idnote summary::-webkit-details-marker { display: none; }
.idnote summary > svg:last-child { color: var(--navy); flex: none; }
.idnote[open] summary > svg:last-child { transform: rotate(180deg); }
.idicon { color: var(--navy); flex: none; }
.idnote p a { color: var(--blue); }
.idnote p { position: absolute; left: var(--pad); top: 52px; margin: 0; max-width: 40rem; padding: 1rem 1.15rem; line-height: 1.5; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 20px rgba(14,46,41,.12); font-size: .9375rem; }

/* ---------- Header ---------- */
.site-head { position: relative; z-index: 30; background: #fff; }
.head-in { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; padding-left: var(--pad); min-height: 132px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); padding-block: 1rem; }
.brand-mark { width: 54px; height: 54px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.brand-name small { display: block; font-weight: 600; font-size: .75rem; letter-spacing: .14em; margin-top: 6px; color: var(--muted); }
.head-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1.3rem 2.25rem 1.45rem 1rem; }
.util { display: flex; gap: 1.75rem; font-size: .9375rem; font-weight: 500; list-style: none; margin: 0; padding: 0; }
.util a { text-decoration: none; color: var(--blue); }
.util .plain { color: var(--ink); }
.util a:hover { text-decoration: underline; }
.main-nav { display: flex; gap: 3.2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 1.25rem; color: #33363f; padding: .3rem 0; border-bottom: 3px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--gold); color: var(--navy); }
.head-tools { display: flex; }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-width: 70px; padding: 0 .5rem; background: none; border: 0; border-left: 1px solid var(--line); color: var(--blue); font: 700 .75rem var(--sans); letter-spacing: .05em; text-decoration: none; cursor: pointer; }
.tool:last-child { border-right: 1px solid var(--line); }
.tool svg { width: 22px; height: 22px; }
.tool:hover { background: #f1f5f3; }
.menu-btn { display: none; }

/* Task bar */
.taskbar { background: var(--bar); }
.taskbar-in { display: flex; align-items: center; justify-content: center; gap: 1.1rem; padding: 1.2rem var(--pad); flex-wrap: wrap; }
.taskbar label { color: #fff; font-weight: 700; font-size: 1.25rem; padding-left: .7rem; border-left: 5px solid var(--gold); line-height: 1.1; }
.taskbar form { display: flex; flex: 0 1 540px; min-width: 260px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid #fff; }
.taskbar select { flex: 1; min-width: 0; min-height: 44px; border: 0; padding: 0 .9rem; font: 400 1rem var(--sans); background: #fff; color: var(--ink); }
.taskbar button { padding: 0 1.4rem; background: var(--gold); color: var(--navy-deep); border: 0; font: 800 1rem var(--sans); cursor: pointer; }
.taskbar button:hover { background: var(--gold-hover); }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(520px, 44.5vw, 760px); background: var(--navy); overflow: hidden; }
.slide { position: absolute; inset: 0; display: none; }
.slide.on { display: block; }
.slide > .photo { position: absolute; inset: 0; background-position: center 12%; }
.panel { position: absolute; top: 0; bottom: 0; right: 0; width: 63%; background: var(--grad); clip-path: polygon(28.6% 0, 100% 0, 100% 100%, 0 100%); }
.panel-body { position: absolute; top: 50%; transform: translateY(-50%); left: 33%; right: 7%; display: grid; gap: 1.5rem; justify-items: start; color: #fff; }
.panel-body h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); line-height: 1.08; }
.panel-body p { margin: 0; padding-left: .9rem; border-left: 4px solid var(--gold); font-size: 1.1875rem; color: #edf4f1; max-width: 36rem; }
.hero-ctrl { position: absolute; right: 1rem; bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; z-index: 5; }
.hero-ctrl button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero-ctrl button[aria-current="true"] { background: #fff; }
.hero-ctrl .pause { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; margin-left: .4rem; }
.hero-ctrl .pause svg { width: 12px; height: 12px; fill: #fff; }

/* ---------- Product rail ---------- */
.rail-section { position: relative; padding: 2.75rem 2rem 2.25rem; box-shadow: 0 -10px 24px rgba(14,46,41,.07); }
.rail-wrap { position: relative; max-width: 1700px; margin: 0 auto; padding-inline: 5.5rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--blue); }
.arrow svg { width: 22px; height: 52px; margin: auto; }
.arrow.prev { left: 6px; } .arrow.next { right: 6px; }
.arrow:hover { color: var(--navy); }
.dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.1rem; }
.dots button { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #aab2c8; background: #e8eeeb; padding: 0; cursor: pointer; }
.dots button[aria-current="true"] { background: #555a66; border-color: #555a66; }

.pcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 1.9rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; min-height: 222px; justify-content: center; }
.ico { width: 92px; height: 69px; stroke: var(--navy); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pcard h3 { font-size: 1.1875rem; color: var(--navy); font-weight: 700; }
.pcard p { margin: 0; color: #3a3d46; font-size: 1rem; }
.pcard:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(20,64,58,.12); }
.pcard:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- Slanted bands ---------- */
.band { position: relative; min-height: clamp(540px, 41vw, 620px); background: var(--grad); overflow: hidden; color: #fff; }
.band .photo { position: absolute; top: 0; bottom: 0; }
.band.photo-right .photo { right: 0; width: 45%; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
.band.photo-left .photo { left: 0; width: 45%; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.band-body { position: absolute; top: 50%; transform: translateY(-50%); display: grid; gap: 1.4rem; justify-items: start; }
.band.photo-right .band-body { left: 14.3%; width: min(34%, 520px); }
.band.photo-left .band-body { left: 56%; right: var(--pad); }
.band h2 { font-size: clamp(2rem, 4.1vw, 3.7rem); line-height: 1.1; }
.band p { margin: 0; padding-left: .9rem; border-left: 4px solid var(--gold); font-size: 1.0625rem; color: #edf4f1; }

/* ---------- Articles ---------- */
.articles { padding: clamp(3rem, 6vw, 5rem) 2rem clamp(3rem, 6vw, 4.5rem); }
.articles h2 { text-align: center; color: var(--navy); font-size: clamp(1.9rem, 4.1vw, 3.5rem); margin-bottom: 2.5rem; }
.acard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .7rem 1.4rem; text-decoration: none; }
.acard .photo { aspect-ratio: 4 / 3; border-radius: 8px; }
.acard-body { padding: 1.1rem .6rem 0; display: grid; gap: .8rem; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.chip { background: #dfe1e6; color: var(--ink); font-size: .875rem; padding: .35rem .8rem; border-radius: 4px; }
.meta time { font-size: .9375rem; color: var(--ink); font-style: italic; }
.acard h3 { font-size: 1.25rem; line-height: 1.25; color: var(--navy); font-weight: 700; }
.acard:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.more { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.linkbar { background: var(--dark); }
.linkbar-in { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); min-height: 48px; gap: 1rem; flex-wrap: wrap; }
.social { display: flex; align-items: center; gap: 1.25rem; }
.social a { color: #fff; display: grid; place-items: center; width: 24px; height: 24px; }
.social a:hover { color: var(--gold); }
.social svg { width: 22px; height: 22px; }
.linkbar ul { display: flex; list-style: none; margin: 0; padding: 0; }
.linkbar li + li { border-left: 1px solid #5a5f68; }
.linkbar li a { display: block; color: #fff; font-weight: 700; font-size: .9375rem; text-decoration: none; padding: .35rem 1.1rem; }
.linkbar li:last-child a { padding-right: 0; }
.linkbar li a:hover { text-decoration: underline; }
.foot { position: relative; background: #fff; padding: 2.25rem var(--pad) 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.75fr 1fr 1.25fr; gap: 3rem; }
.foot h3 { font-size: 1.25rem; color: #111; margin: .6rem 0 1.2rem; font-weight: 700; }
.foot .brand { padding: 0; margin: .4rem 0 1.5rem; }
.lede { margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.65; color: #1d2029; max-width: 33rem; }
.badges { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0; }
.badge { border: 1.5px solid #3a3d46; border-radius: 4px; padding: .35rem .7rem; font-size: .8125rem; font-weight: 700; color: #3a3d46; text-transform: uppercase; letter-spacing: .04em; }
.qlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.qlinks a { color: var(--blue); font-size: .9375rem; text-decoration: none; }
.qlinks a:hover { text-decoration: underline; }
.contact { margin: 0 0 1.4rem; font-size: 1.0625rem; line-height: 1.5; color: #1d2029; }
.contact a { color: var(--blue); }
.apps { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.app { display: inline-block; line-height: 0; }
.app img { display: block; height: 44px; width: auto; }
.app:hover { opacity: .85; }
.legal, .sim-note { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .8125rem; color: #6a7080; max-width: 60rem; }
.totop { position: absolute; right: 3rem; bottom: 2.25rem; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border-radius: 6px; box-shadow: 0 3px 12px rgba(14,46,41,.2); color: var(--navy); }
.totop:hover { background: #f1f5f3; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 1.75rem; }
  .rail { grid-auto-columns: calc((100% - 1.25rem) / 2); }
  .rail-wrap { padding-inline: 4rem; }
}
@media (max-width: 900px) {
  .head-in { grid-template-columns: 1fr auto; min-height: 84px; padding-left: 1.25rem; }
  .brand-mark { width: 42px; height: 42px; } .brand-name { font-size: 1.35rem; }
  .head-right { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,.08); padding: 1rem 1.25rem 1.5rem; align-items: stretch; z-index: 40; gap: 0; }
  .head-right.open { display: flex; }
  .main-nav { flex-direction: column; gap: 0; order: -1; }
  .main-nav a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .util { flex-wrap: wrap; margin-top: 1rem; }
  .menu-btn { display: flex; }
  .head-tools .hide-sm { display: none; }
  .tool { min-width: 64px; }

  .hero { height: auto; }
  .slide { position: relative; inset: auto; }
  .slide.on { display: block; }
  .slide > .photo { position: relative; height: clamp(220px, 52vw, 380px); }
  .panel { position: relative; width: 100%; clip-path: none; background: linear-gradient(90deg, var(--navy), var(--navy) 55%, var(--blue)); }
  .panel-body { position: relative; top: auto; transform: none; left: auto; right: auto; padding: 2rem 1.25rem 4.25rem; }
  .hero-ctrl { left: 50%; right: auto; transform: translateX(-50%); bottom: 1.1rem; }

  .rail-wrap { padding-inline: 0; }
  .arrow { display: none; }
  .rail { grid-auto-columns: calc((100% - 1.25rem) / 2); }

  .band { min-height: 0; display: flex; flex-direction: column; }
  .band .photo, .band.photo-right .photo, .band.photo-left .photo { position: relative; width: 100%; height: clamp(220px, 52vw, 340px); clip-path: none; right: auto; left: auto; order: -1; }
  .band-body, .band.photo-right .band-body, .band.photo-left .band-body { position: relative; top: auto; transform: none; left: auto; right: auto; width: auto; padding: 2.25rem 1.25rem 2.75rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rail { grid-auto-columns: 84%; }
  .taskbar-in { flex-direction: column; align-items: stretch; }
  .taskbar label { text-align: left; }
  .taskbar form { flex: 1 1 auto; width: 100%; }
  .linkbar-in { padding: .6rem 1.25rem; justify-content: center; }
  .linkbar li a { padding: .5rem .8rem; }
  .idnote { padding-left: 1.25rem; }
  .idnote summary { min-height: 48px; font-size: .8125rem; }
  .idnote p { left: 1.25rem; right: 1.25rem; top: 46px; }
  .totop { right: 1rem; bottom: 1rem; }
  .foot { padding-bottom: 5rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-name { font-size: 1.15rem; } .brand-mark { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Inner pages ---------- */
.phero { position: relative; overflow: hidden; background: var(--grad); color: #fff; }
.phero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34%; background: linear-gradient(135deg, #dfe9e5 0%, #b5cec4 100%); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); opacity: .95; }
.phero-in { position: relative; z-index: 1; max-width: 1300px; margin: 0 auto; padding: clamp(2rem, 4vw, 3.25rem) var(--pad) clamp(2.25rem, 4.5vw, 3.75rem); display: grid; gap: 1rem; }
.crumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9375rem; color: #cfe0d9; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--gold); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.phero h1 { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.05; max-width: 17ch; }
.phero p.intro { margin: 0; max-width: 40rem; padding-left: .9rem; border-left: 4px solid var(--gold); font-size: 1.1875rem; color: #edf4f1; }
.phero .btn { justify-self: start; margin-top: .4rem; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(2.5rem, 5vw, 4.25rem); }
.sec.alt { background: #f3f6f4; }
.sec h2 { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--navy); margin-bottom: 1rem; }
.sec h3 { color: var(--navy); font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }
.sec p { margin: 0 0 1rem; max-width: 46rem; }
.sec .lead { font-size: 1.1875rem; color: var(--muted); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.tile p { margin: 0; color: var(--muted); font-size: 1rem; }
.tile .ico { width: 72px; height: 54px; margin-bottom: .5rem; fill: none; stroke: var(--navy); stroke-width: 1.5; }
.tile .more { align-self: flex-start; margin-top: auto; padding-top: .75rem; color: var(--blue); font-weight: 700; text-decoration: none; }
.tile .more:hover { text-decoration: underline; }
.tile .big { font-family: var(--display); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.checks { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; max-width: 46rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: .55rem; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg) scale(.9); }
.steps { counter-reset: s; list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .75rem; background: var(--navy); color: #fff; border-radius: 50%; font-family: var(--display); font-size: 1.2rem; }
.steps b { display: block; color: var(--navy); margin-bottom: .25rem; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.aside { background: var(--navy); color: #fff; border-radius: 10px; padding: 1.75rem; display: grid; gap: .9rem; }
.aside h3 { color: #fff; font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; margin: 0; }
.aside p { margin: 0; color: #dbeae5; font-size: 1rem; }
.aside a:not(.btn) { color: var(--gold); }
.notice { border: 1px solid #ecd68a; background: #fff8dc; padding: 1rem 1.25rem; border-radius: 12px; margin: 1.5rem 0; max-width: 46rem; }
.notice p { margin: 0; }
.fine { font-size: .875rem; color: var(--muted); max-width: 52rem; }
.cta { background: var(--grad); color: #fff; padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0; font-weight: 700; }
.cta p { margin: .3rem 0 0; color: #dbeae5; }
.tblwrap { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
.tbl th, .tbl td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--navy); color: #fff; font-size: .9375rem; font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { font-weight: 700; color: var(--navy); font-size: 1.125rem; }
.faq { margin-top: 1.25rem; max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; margin: 0; }
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; color: var(--navy); font-size: .9375rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: .8rem .9rem; border: 1px solid #aab3cc; border-radius: 6px; background: #fff; min-height: 48px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form .err { color: #a31313; font-size: .875rem; font-weight: 600; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.flash { background: #e8f5ec; border: 1px solid #98cfa8; color: #14532d; padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; max-width: 40rem; }
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; text-transform: none; font-family: var(--sans); font-weight: 700; }
.prose p, .prose li { max-width: none; }
.prose ul { padding-left: 1.2rem; }
.sitemap { columns: 3; column-gap: 2.5rem; }
.sitemap h3 { break-after: avoid; margin-top: 1rem; }
.sitemap ul { list-style: none; margin: 0 0 1rem; padding: 0; line-height: 2; }
.sitemap a { color: var(--blue); }
.article-meta { display: flex; gap: .75rem; align-items: center; color: #cfe0d9; font-size: .9375rem; }
.article-body { max-width: 44rem; margin-inline: auto; }
.article-body h2 { font-size: 1.6rem; text-transform: none; font-family: var(--sans); font-weight: 700; margin-top: 2rem; }
.authbox { max-width: 30rem; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2rem; box-shadow: 0 10px 28px rgba(14,46,41,.08); }
.authbox h2 { font-size: 2rem; }

@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .sitemap { columns: 2; } }
@media (max-width: 900px) { .grid-3, .steps { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } .split { grid-template-columns: 1fr; } .phero::after { width: 22%; } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } .sitemap { columns: 1; } .phero::after { display: none; } }
.authbox.wide { max-width: 44rem; }
.form [hidden] { display: none; }

/* ---------- Online banking portal ---------- */
.txtable { width: 100%; border-collapse: collapse; }
.txtable th { text-align: left; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .6rem .75rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.txtable td { padding: .85rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.txtable tr:last-child td { border-bottom: 0; }
.txtable .amt { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.txtable .amt.in { color: #12663a; }
.txtable .bal-col { text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.txtable .sub { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; }
.txtable a { color: var(--navy); font-weight: 600; text-decoration: none; }
.txtable a:hover { text-decoration: underline; }
.tag { display: inline-block; padding: .1rem .55rem; border-radius: 3px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.tag.pending, .tag.held { background: #fff1c2; color: #6b4c00; }
.tag.rejected, .tag.failed { background: #fbdada; color: #7a1414; }
.tag.reversed { background: #e5e8f3; color: #3a4166; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; align-items: end; margin-bottom: 1.25rem; }
.filters label { display: grid; gap: .3rem; font-size: .8125rem; font-weight: 700; color: var(--navy); }
.filters input, .filters select { font: inherit; font-weight: 400; padding: .55rem .65rem; border: 1px solid #aab3cc; border-radius: 6px; background: #fff; min-height: 42px; }
.filters .btn { min-height: 42px; padding: .5rem 1.2rem; border: 0; cursor: pointer; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; flex-wrap: wrap; gap: .75rem; }
.pager nav a, .pager nav span { margin-right: .5rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.codes { columns: 2; font-family: ui-monospace, Menlo, Consolas, monospace; background: #f3f6f4; border-radius: 4px; padding: 1rem; list-style: none; margin: 1rem 0; }
.qr { background: #fff; padding: .75rem; display: inline-block; border: 1px solid var(--line); border-radius: 4px; }
.qr svg { width: 200px; height: 200px; }

/* Form fields never exceed their container */
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; }
.form label, .form .row > * { min-width: 0; }
@media (max-width: 480px) {
  .authbox { padding: 1.5rem 1.1rem; }
  .form .row { grid-template-columns: 1fr !important; }
}

/* ---------- Portal shell: sidebar + content ---------- */
.portal-body { background: #f1f3fa; min-height: 100vh; }
.shell { display: flex; min-height: 100vh; }
.side { width: 264px; flex: none; background: var(--navy); color: #dbeae5; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.1rem 1rem; }
.pbrand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .01em; line-height: 1.05; }
.pbrand .brand-mark { width: 40px; height: 40px; flex: none; }
.pbrand small { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--gold); margin-top: .2rem; }
.side-close, .menu-toggle { display: none; background: transparent; border: 0; color: inherit; cursor: pointer; padding: .5rem; border-radius: 4px; }
.side svg, .menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-nav { display: grid; gap: .2rem; padding: .5rem .75rem; flex: 1; align-content: start; }
.side-nav a { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border-radius: 4px; color: #cfe3dc; text-decoration: none; font-weight: 600; min-height: 46px; position: relative; }
.side-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.side-nav a[aria-current="page"] svg { color: var(--gold); }
.side-nav a:focus-visible, .side-out:focus-visible, .side-help:focus-visible, .menu-toggle:focus-visible, .side-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.side-foot { padding: 1rem .75rem 1.25rem; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: .75rem; }
.side-help { display: flex; gap: .75rem; align-items: center; color: #cfe3dc; text-decoration: none; padding: .35rem .9rem; font-size: .875rem; line-height: 1.25; }
.side-help b { display: block; color: #fff; font-size: 1rem; }
.side-user { display: flex; align-items: center; gap: .75rem; padding: .35rem .9rem; color: #fff; font-weight: 700; line-height: 1.2; }
.side-user small { display: block; font-weight: 400; color: #a9c7bd; font-size: .8125rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy); display: inline-grid; place-items: center; font-weight: 800; font-size: .9375rem; flex: none; }
.side-out { display: flex; align-items: center; gap: .85rem; width: 100%; background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: #fff; border-radius: 4px; padding: .65rem .9rem; font: 700 1rem var(--sans); cursor: pointer; min-height: 46px; }
.side-out:hover { background: #fff; color: var(--navy); }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stick { position: sticky; top: 0; z-index: 20; }
.ptopbar { display: flex; align-items: center; gap: .75rem; background: #fff; border-bottom: 1px solid var(--line); padding: .7rem 1.5rem; min-height: 64px; }
.acting { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #b3261e; color: #fff; padding: .55rem 1.5rem; font-size: .9375rem; flex-wrap: wrap; }
.acting button { background: #fff; color: #b3261e; border: 0; border-radius: 4px; padding: .35rem 1rem; font: 700 .9375rem var(--sans); cursor: pointer; }
.ptitle { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; color: var(--navy); letter-spacing: .02em; }
.tb-user { margin-left: auto; display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--navy); }
.menu-toggle { color: var(--navy); }
.pmain { flex: 1; }
.pwrap { max-width: 1120px; margin: 0 auto; padding: 2rem 1.5rem; }
.pfoot { background: #fff; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9375rem; }
.pfoot .pwrap { padding-block: 1.25rem; }
.scrim { position: fixed; inset: 0; background: rgba(10,14,40,.55); z-index: 40; }

/* ---------- Dashboard ---------- */
.sechead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 .9rem; gap: 1rem; }
.sechead h2 { margin: 0; }
.plink { color: var(--blue); font-weight: 700; text-decoration: none; }
.plink:hover { text-decoration: underline; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1.4rem; margin-bottom: 1.5rem; }

.notice-bar { position: relative; background: #fff8dc; border: 1px solid #ecd68a; border-radius: 4px; padding: 1rem 1.25rem 1rem 3.6rem; margin-bottom: 1.25rem; }
.notice-bar::before { content: "!"; position: absolute; left: 1.1rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .95rem; line-height: 1; }
.notice-bar p { margin: 0 0 .35rem; } .notice-bar p:last-child { margin: 0; }
.flash.bad { background: #fdecec; border-color: #e3a1a1; color: #7a1414; max-width: none; }
.pmain .flash { max-width: none; }
.pmain h1 { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--navy); margin-bottom: .35rem; }
.pmain h2 { font-size: 1.25rem; color: var(--navy); margin: 0 0 .9rem; font-weight: 700; }
.psub { margin: 0 0 1.75rem; color: var(--muted); }
.pmain .form { max-width: 36rem; }

/* ---------- Small screens: sidebar becomes a drawer ---------- */
@media (max-width: 960px) {
  .js .side { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s ease; width: min(86vw, 320px); visibility: hidden; }
  .js .side-open .side { transform: none; visibility: visible; }
  .js .side-close, .js .menu-toggle { display: inline-grid; place-items: center; }
  body.side-open { overflow: hidden; }
  html:not(.js) .shell { flex-direction: column; }
  html:not(.js) .side { position: static; width: auto; height: auto; }
  .ptopbar { padding: .55rem .9rem; }
  .two { grid-template-columns: 1fr; }
  .txtable .hide-s { display: none; }
}
@media (max-width: 480px) {
  .tb-name { display: none; }
  .pwrap { padding: 1.25rem .9rem; }
  .kv { grid-template-columns: 1fr; gap: .1rem; } .kv dd { margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .js .side, .quick a { transition: none; } }

/* Filter fields stay inside their grid cells */
.filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.filters label { min-width: 0; }
.filters input, .filters select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-overflow: ellipsis; }

/* ---------- Staff console ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--navy); }
.stat b { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9375rem; }
.stat span::before { content: none; }
.stat.warn span::before, .stat.bad span::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .5rem; vertical-align: .05em; }
.stat.warn span::before { background: var(--gold); }
.stat.bad span::before { background: #b3261e; }
a.stat:hover { border-color: var(--blue); }
.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a { padding: .45rem 1rem; border-radius: 3px; border: 1.5px solid #c1d8cf; color: var(--blue); font-weight: 700; text-decoration: none; background: #fff; }
.tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sform { display: grid; gap: .75rem; }
.sform label { display: grid; gap: .3rem; font-weight: 700; font-size: .9375rem; color: var(--navy); }
.sform input, .sform select, .sform textarea { font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid #a9b8b3; border-radius: 4px; width: 100%; box-sizing: border-box; min-width: 0; background: #fff; }
.sform .err { color: #b3261e; font-weight: 600; font-size: .875rem; }
.sform button, .btn-s { justify-self: start; background: var(--navy); color: #fff; border: 0; border-radius: 4px; padding: .65rem 1.3rem; font: 700 1rem var(--sans); cursor: pointer; text-decoration: none; display: inline-block; }
.btn-s.gold { background: var(--gold); color: var(--navy); }
.btn-s.red, .sform button.red { background: #b3261e; }
.btn-s.plain, .sform button.plain { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; align-items: stretch; }
.panel-card h3 { margin: 0 0 .6rem; font-size: 1.05rem; color: var(--navy); }
details.act summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: .4rem 0; }
.tag.ok { background: #d9f2e4; color: #12663a; } .tag.lock { background: #fbdada; color: #7a1414; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8125rem; word-break: break-all; }
.tl { list-style: none; margin: 0; padding: 0; } .tl li { padding: .6rem 0; border-bottom: 1px solid #e4ebe8; } .tl li:last-child { border: 0; }
.tl small { color: var(--muted); display: block; }
@media (max-width: 480px) { .acting { padding: .5rem .9rem; } }

/* ---------- Member 360 and decision layouts ---------- */
.mhead { display: flex; align-items: center; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.avatar.big { width: 64px; height: 64px; font-size: 1.4rem; }
.mhead .mid { flex: 1; min-width: 14rem; }
.mhead h1 { margin: 0 0 .15rem; }
.mhead .meta { margin: 0 0 .6rem; color: var(--muted); }
.mhead .chips { margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.macts { display: flex; gap: .6rem; flex-wrap: wrap; }
.mgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.mgrid .sechead { margin-top: 0; }
.panel-card.rows { padding: .25rem 1.25rem; }
.arow { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid #e4ebe8; align-items: center; }
.arow:last-child { border-bottom: 0; }
.arow small { display: block; color: var(--muted); font-size: .875rem; margin-top: .15rem; }
.arow .r { text-align: right; white-space: nowrap; }
.arow .r b { font-size: 1.1rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.mside .panel-card { margin-bottom: 1.25rem; }
.item { margin: 0 0 .75rem; } .item small { display: block; color: var(--muted); }
.lockitem { background: #fdecec; border: 1px solid #e3a1a1; border-radius: 4px; padding: .7rem .9rem; }
dialog { border: 0; border-radius: 4px; padding: 1.5rem; width: min(30rem, calc(100% - 2rem)); box-shadow: 0 20px 60px rgba(10,14,40,.4); }
dialog::backdrop { background: rgba(10,14,40,.55); }
dialog .dh { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
dialog .dh h3 { margin: 0; font-size: 1.25rem; color: var(--navy); }
dialog .x { background: transparent; border: 0; font-size: 1.75rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 .25rem; }
.two2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.decide details.act { border-top: 1px solid #e4ebe8; padding: .35rem 0; }
.decide details.act:first-of-type { border-top: 0; }
.decide details.act[open] { padding-bottom: 1rem; }
.decide .sform { margin-top: .5rem; max-width: 34rem; }
@media (max-width: 960px) { .mgrid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mhead { padding: 1.1rem; } .macts { width: 100%; } .macts .btn-s { flex: 1; text-align: center; } .two2 { grid-template-columns: 1fr; } .arow { flex-wrap: wrap; } }

/* ---------- Calmer building blocks: strip, data table, settings rows, switch ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 2rem; overflow: hidden; }
.strip > * { padding: 1.15rem 1.4rem; text-decoration: none; color: var(--navy); border-right: 1px solid #e4ebe8; display: block; }
.strip > *:last-child { border-right: 0; }
.strip b { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1.1; }
.strip span { color: var(--muted); font-size: .9375rem; }
.strip a:hover { background: #f4f7f5; }
.strip .alert b { color: #b3261e; }
.panel-card.flush { padding: 0; overflow: hidden; }
.dtable { width: 100%; border-collapse: collapse; }
.dtable th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .8rem 1.25rem; background: #f4f7f5; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 700; }
.dtable td { padding: 1rem 1.25rem; border-bottom: 1px solid #e4ebe8; vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover td { background: #f9fbfa; }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.dtable th.num { text-align: right; }
.dtable .go { text-align: right; white-space: nowrap; }
.dtable a.main { color: var(--navy); font-weight: 700; text-decoration: none; }
.dtable a.main:hover { text-decoration: underline; }
.dtable small { display: block; color: var(--muted); font-size: .875rem; }
.dtable .late { color: #b3261e; font-weight: 700; }
.empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: .2rem; }
.srows > .srow { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid #e4ebe8; }
.srows > .srow:last-child { border-bottom: 0; }
.srow h3 { margin: 0 0 .15rem; font-size: 1.0625rem; color: var(--navy); }
.srow p { margin: 0; color: var(--muted); font-size: .9375rem; max-width: 36rem; }
.srow .val { font-weight: 600; color: var(--ink); text-align: right; }
.srow .ctl { display: flex; align-items: center; gap: .75rem; flex: none; }
.btn-s.sm, .sm { padding: .45rem 1rem; font-size: .9375rem; }
.pill { display: inline-block; padding: .15rem .65rem; border-radius: 3px; font-size: .8125rem; font-weight: 700; background: #e6ebe9; color: #3d4a46; }
.pill.on { background: #d9f2e4; color: #12663a; } .pill.off { background: #e6ebe9; color: #3d4a46; } .pill.warn { background: #fff1c2; color: #6b4c00; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pagehead h1 { margin: 0; } .pagehead .psub { margin: .2rem 0 0; }
.sechead + .panel-card, .sechead + .strip { margin-top: 0; }
.group-title { margin: 2rem 0 .75rem; font-size: 1.125rem; color: var(--navy); }
.codes { columns: 2; }
@media (max-width: 700px) {
  .srows > .srow { flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.1rem; }
  .srow .val { text-align: left; }
  .dtable .hide-s, .dtable th.hide-s { display: none; }
  .dtable th, .dtable td { padding: .8rem .9rem; }
  .strip > * { border-right: 0; border-bottom: 1px solid #e4ebe8; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > * { border-right: 1px solid #e4ebe8; }
}

/* ---------- Bank look: flat, square, plain headings ---------- */
.portal-body { background: #f3f4f7; }
.pmain h1 { font-family: var(--sans); text-transform: none; font-weight: 700; font-size: 1.75rem; letter-spacing: 0; line-height: 1.2; margin: 0 0 .3rem; color: var(--navy); }
.pmain h2 { font-size: 1.125rem; }
.pagehead { margin-bottom: 1.25rem; } .psub { margin: 0 0 1.25rem; }
.pagehead .psub { margin: .2rem 0 0; }
.ptopbar { min-height: 52px; padding-block: .45rem; }
.ptitle { font-family: var(--sans); text-transform: none; font-size: .9375rem; font-weight: 600; color: var(--muted); letter-spacing: 0; display: inline-flex; align-items: center; gap: .5rem; }
.ptitle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb-user { gap: .9rem; font-weight: 600; }
.tb-last { color: var(--muted); font-weight: 400; font-size: .875rem; }
.strip b { font-family: var(--sans); font-weight: 700; font-size: 1.75rem; }
.strip.money { margin-bottom: 1.5rem; }
.strip.money b { font-variant-numeric: tabular-nums; }
.grouphead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.grouphead h2 { margin: 0; }
.grouphead span { color: var(--muted); } .grouphead b { color: var(--navy); font-size: 1.125rem; font-variant-numeric: tabular-nums; margin-left: .35rem; }
.dtable td .sub, .dtable td small { color: var(--muted); }
.dtable tr.grp th { background: #edf2ef; text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--navy); padding: .55rem 1.25rem; }
.dtable .in { color: #12663a; }
.railhead { margin: 0; padding: .9rem 1.25rem; font-size: 1rem; color: var(--navy); border-bottom: 1px solid var(--line); }
.qlinks { list-style: none; margin: 0; padding: 0; display: block; }
.qlinks li { display: block; width: 100%; }
.qlinks li a { display: flex; justify-content: space-between; padding: .8rem 1.25rem; color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid #e4ebe8; }
.qlinks li:last-child a { border-bottom: 0; }
.qlinks li a:hover { background: #f4f7f5; }
.qlinks li a::after { content: "\203A"; color: var(--muted); font-size: 1.25rem; line-height: 1; }
.railnote { padding: 1rem 1.25rem; font-size: .9375rem; color: var(--muted); } .railnote b { display: block; color: var(--navy); font-size: 1.125rem; }
.searchbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); background: #fff; }
.searchbar input[type=search] { flex: 1; min-width: 12rem; font: inherit; padding: .5rem .7rem; border: 1px solid #a9b8b3; border-radius: 4px; min-height: 40px; }
.searchbar .btn-s { padding: .5rem 1.1rem; }
.searchbar a { margin-left: auto; }
details.more { width: 100%; }
details.more summary { display: block; text-align: left; cursor: pointer; color: var(--blue); font-weight: 600; padding: .25rem 0; }
details.more .filters { margin: .75rem 0 0; }
.crumbs2 { margin: 0 0 .5rem; color: var(--muted); font-size: .9375rem; } .crumbs2 a { color: var(--blue); text-decoration: none; }
.kvlist { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0; padding: 1.1rem 1.25rem; }
.kvlist dt { color: var(--muted); } .kvlist dd { margin: 0; font-weight: 600; word-break: break-word; }
.sec { display: block; }
.table-title { display: flex; justify-content: space-between; align-items: center; margin: 2rem 0 .6rem; gap: 1rem; } .table-title h2 { margin: 0; } .table-title + .panel-card { margin-top: 0; }
.alerttable td, .alerttable th { text-align: center; } .alerttable td:first-child, .alerttable th:first-child { text-align: left; }
.alerttable input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); }
.inq { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1.5rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid #e4ebe8; }
.inq:last-child { border-bottom: 0; }
.inq h3 { margin: 0; font-size: 1.0625rem; color: var(--navy); } .imeta { display: block; margin: .15rem 0 0; color: var(--muted); font-size: .9375rem; }
.inq .msg { grid-column: 1 / -1; margin: .35rem 0 0; white-space: pre-line; }
.inq .when { text-align: right; color: var(--muted); font-size: .9375rem; white-space: nowrap; }
@media (max-width: 700px) { .inq { grid-template-columns: 1fr; } .inq .when { text-align: left; } .tb-last { display: none; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.crumbs2 { margin: 0 0 .5rem; color: var(--muted); font-size: .9375rem; } .crumbs2 a { color: var(--blue); text-decoration: none; }

/* Colour pass: header band, chips, table heads, active marker, filter panel */
.pband { background: var(--navy); color: #fff; }
.pband.staff { background: #2a3031; }
.pband .pwrap { padding-top: 1.25rem; padding-bottom: 1.5rem; }
.pmain .pband h1 { color: #fff; margin: 0; }
.pband .psub { color: #cbded7; margin: .25rem 0 0; }
.pband .crumbs2 { color: #a9c7bd; margin: 0 0 .6rem; } .pband .crumbs2 a { color: #fff; }
.pband .tag { background: rgba(255,255,255,.16); color: #fff; }
.pband-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.figs { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 1.1rem; }
.figs b { display: block; font-size: 2rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.figs span { color: #cbded7; font-size: .9375rem; }
.pband .btn-s.gold:hover { background: #ffd23d; }
.pmain > .pwrap { padding-top: 1.5rem; }

.dtable thead th { background: #e4eeea; border-bottom: 2px solid var(--blue); color: #1d4a40; }
.dtable tr.grp th { background: #f3f6f4; border-bottom: 1px solid var(--line); }
.chip { display: inline-block; margin-top: .2rem; padding: .08rem .5rem; border-radius: 3px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; background: #e6ebe9; color: #3d4a46; }
.chip.pending { background: #fff1c2; color: #6b4c00; }
.chip.held, .chip.rejected, .chip.failed { background: #fbdada; color: #7a1414; }
.chip.approved { background: #e3e9ff; color: #1f2f8f; }
.chip.reversed { background: #e6ebe9; color: #3d4a46; }

.side-nav a[aria-current="page"] { background: rgba(255,255,255,.1); }
.side-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--gold); border-radius: 0 2px 2px 0; }

.searchform { margin: 0; }
.searchbar { border-bottom: 0; }
.morewrap { padding: 0 1.25rem .9rem; border-bottom: 1px solid var(--line); }
.morewrap details.more { display: block; width: auto; }
.morewrap details.more > summary { display: inline-block; padding: .2rem 0; }
.morewrap details.more[open] > summary { margin-bottom: .6rem; }
.morewrap .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem 1rem; margin: 0 0 1rem; align-items: end; }
.morewrap .filters label { display: grid; gap: .3rem; }
.morewrap .filters select, .morewrap .filters input { width: 100%; border-radius: 4px; }
.filter-actions { display: flex; align-items: center; gap: 1.25rem; padding-top: .25rem; }
.mgrid > * { min-width: 0; }
.mside .panel-card { margin: 0; }

.searchbar { padding-bottom: .5rem; }
.morewrap { padding-top: 0; }
.filter-actions { margin-top: .6rem; }
.mside .panel-card + .panel-card { margin-top: 1.25rem; }
.mside { display: grid; gap: 1.25rem; align-content: start; }
.searchbar { padding-bottom: .2rem; }
.morewrap details.more > summary { padding: .1rem 0; }
.morewrap details.more[open] > summary { margin-bottom: .3rem; }

.portal-body .btn-s.gold:hover { background: #ffd23d; }

/* Form pages: keep a readable width */
.pmain .panel-card:has(> form.form) { max-width: 640px; }
.pmain .panel-card:has(> form.form) .form { max-width: none; }
.pmain .panel-card:has(> .kvlist.single), .pmain .tx-detail { max-width: 760px; }
.pband .chips { margin: .6rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.pband .btn-s.plain { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.pband .btn-s.plain:hover { background: rgba(255,255,255,.12); }
.pband .macts { align-self: flex-end; }

/* Toast notifications */
.toasts { position: fixed; top: 1rem; right: 1rem; z-index: 90; display: grid; gap: .6rem; width: min(420px, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: .75rem; padding: .85rem .9rem .85rem 1rem; border-radius: 4px; color: #fff; background: #2b3431; box-shadow: 0 8px 24px rgba(0,0,0,.28); animation: toast-in .22s ease-out; }
.toast.ok { background: #176b45; } .toast.bad { background: #a32121; } .toast.warn { background: #8a5a00; } .toast.info { background: #2b3431; }
.toast svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast p { margin: 0; flex: 1; font-size: .9375rem; line-height: 1.4; }
.toast-x { background: transparent; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 .25rem; opacity: .85; }
.toast-x:hover { opacity: 1; }
.toast.leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast.leaving { transition: none; } }
@media (max-width: 600px) { .toasts { top: .5rem; right: .5rem; left: .5rem; width: auto; } }
.portal-body .toasts { top: 4.25rem; } @media (max-width: 600px) { .portal-body .toasts { top: 4rem; } }

/* Uploaded logo and wordmark variants */
.brand-logo { height: 56px; width: auto; max-width: 280px; object-fit: contain; display: block; }
.pbrand .brand-logo { height: 40px; max-width: 200px; }
.brand-caption { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-top: .2rem; }
.pbrand .brand-name { font-size: inherit; line-height: 1.05; }
.pbrand .brand-name small { color: var(--gold); letter-spacing: .08em; margin-top: .2rem; }
.pbrand { flex-wrap: wrap; }

/* Branding and content editor */
.brandform { display: grid; gap: 1.25rem; max-width: 880px; }
.brandform .panel-card h2, .editor .panel-card h2 { margin: 0 0 .9rem; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 1.25rem; }
.brandform label, .editor label { display: grid; gap: .3rem; font-weight: 700; font-size: .9375rem; color: var(--navy); align-content: start; }
.brandform label small, .editor label small, .upl small { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.brandform input:not([type=file]):not([type=checkbox]):not([type=color]), .brandform textarea, .editor input:not([type=file]):not([type=checkbox]):not([type=color]), .editor textarea, .editor select { font: inherit; font-weight: 400; padding: .55rem .65rem; border: 1px solid #a9b8b3; border-radius: 4px; background: #fff; min-height: 42px; width: 100%; box-sizing: border-box; }
.brandform .err, .editor .err { color: #a32121; font-weight: 600; font-size: .875rem; }
.brandform label.chk, .editor label.chk { display: flex; align-items: center; gap: .5rem; font-weight: 400; font-size: .875rem; color: var(--ink); }
.upl { display: grid; gap: .4rem; align-content: start; }
.upl .lbl { font-weight: 700; font-size: .9375rem; color: var(--navy); }
.thumb { border: 1px solid var(--line); border-radius: 4px; min-height: 84px; display: grid; place-items: center; padding: .75rem; }
.thumb img { max-height: 56px; max-width: 100%; width: auto; }
.thumb em { color: #888; font-style: normal; font-size: .875rem; }
.colorrow { display: flex; gap: .5rem; align-items: center; }
.colorrow input[type=color] { width: 52px; height: 42px; padding: 2px; border: 1px solid #a9b8b3; border-radius: 4px; background: #fff; }
.swatch { margin-top: 1rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 1rem 1.25rem; border-radius: 4px; }
.swatch .swtxt { color: #fff; font-weight: 700; } .swatch .ratio { color: #cfe3dc; font-size: .875rem; margin-left: auto; }
.formbar { position: sticky; bottom: 0; background: linear-gradient(transparent, #f3f4f7 35%); padding: 1rem 0 .5rem; }
.preview-bar { background: #8a5a00; color: #fff; text-align: center; padding: .5rem 1rem; font-weight: 700; font-size: .9375rem; position: sticky; top: 0; z-index: 80; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.5rem; align-items: start; }
.editor .col-form { display: grid; gap: 1.25rem; }
.editor .previewbox { position: sticky; top: 4.5rem; }
.editor .previewbox iframe { width: 100%; height: calc(100vh - 8rem); min-height: 480px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.editor .fields { display: grid; gap: 1.1rem; }
.editor .fieldset { display: grid; gap: .45rem; }
.editor .fieldset > .lbl { font-weight: 700; font-size: .9375rem; color: var(--navy); }
.editor .rowbox { border: 1px solid var(--line); border-radius: 4px; padding: .9rem; display: grid; gap: .8rem; background: #fafbfa; }
.editor .rowbox .rowhead { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--navy); }
.rte { border: 1px solid #a9b8b3; border-radius: 4px; background: #fff; }
.rte-bar { display: flex; gap: .25rem; padding: .35rem; border-bottom: 1px solid var(--line); background: #f3f6f4; flex-wrap: wrap; }
.rte-bar button { font: inherit; font-weight: 700; min-width: 36px; height: 34px; border: 1px solid #a9b8b3; border-radius: 4px; background: #fff; cursor: pointer; color: var(--navy); }
.rte-body { padding: .7rem .8rem; min-height: 140px; max-height: 360px; overflow: auto; font-weight: 400; color: var(--ink); }
.rte-body:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.thumbline { display: flex; align-items: center; gap: .75rem; }
.thumbline img { height: 56px; width: auto; border: 1px solid var(--line); border-radius: 4px; }
.revlist { list-style: none; margin: 0; padding: 0; display: grid; }
.revlist li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.revlist li:first-child { border-top: 0; }
.revlist small { display: block; color: var(--muted); }
.status-chip { display: inline-block; padding: .1rem .55rem; border-radius: 3px; font-size: .75rem; font-weight: 700; background: #e6ebe9; color: #3d4a46; }
.status-chip.draft { background: #fff1c2; color: #6b4c00; } .status-chip.live { background: #d9f2e4; color: #12663a; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .editor .previewbox { position: static; } .editor .previewbox iframe { height: 70vh; } }

/* M4: deposits, external accounts, identity review */
.choicegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem;margin-bottom:.5rem;align-items:stretch}
.choicegrid > .choicecard{height:100%;box-sizing:border-box;margin:0}
.choicecard{display:block;text-decoration:none;color:inherit;border:1px solid var(--line)}
.choicecard h3{margin:0 0 .35rem;font-size:1.05rem;color:var(--navy)}
.choicecard p{margin:0;color:var(--muted);font-size:.95rem}
.choicecard:hover,.choicecard:focus-visible{border-color:var(--navy)}
.checkimgs{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:1rem;margin:.75rem 0}
.checkimgs figure{margin:0}.checkimgs img{width:100%;height:auto;border:1px solid var(--line);border-radius:4px;display:block}
.checkimgs figcaption{font-size:.85rem;color:var(--muted);margin-top:.3rem}
.kycimg{max-width:100%;height:auto;border:1px solid var(--line);border-radius:4px;display:block}
.msg{padding:.75rem 0;border-bottom:1px solid var(--line)}.msg:last-of-type{border-bottom:0}
.form .chk input[type=checkbox],.panel-card .chk input[type=checkbox]{width:1.1rem;height:1.1rem;min-height:0;padding:0;flex:none;accent-color:var(--navy)}
.form .chk{font-weight:400;color:var(--ink)}
.wireform{display:grid;gap:1.25rem;max-width:44rem}
.wireform h3{margin:0 0 .25rem;color:var(--navy)}
.wireform .panel-card.form{display:grid;gap:1rem}
.newrecipient{display:grid;gap:1rem}.newrecipient[hidden]{display:none}

/* M5: tickets */
.tthread .tmsg{padding:.9rem 1rem;border:1px solid var(--line);border-radius:4px;margin-bottom:.75rem;background:#fff}
.tthread .tmsg:last-child{margin-bottom:0}
.tthread .tmsg.staff{background:#eef4f2}
.tthread .tmsg.note{background:#fff8dc;border-color:#e6cf7a}
.tfiles{margin:.5rem 0 0;font-size:.9rem}
.tcols{grid-template-columns:minmax(0,2fr) minmax(16rem,1fr)}
@media (max-width:900px){.tcols{grid-template-columns:1fr}}

/* M6: virtual card, announcements */
.vcard{max-width:25rem;aspect-ratio:1.586;border-radius:12px;background:#14403a;color:#fff;padding:1.4rem 1.5rem;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:.75rem;position:relative}
.vcard.frozen{background:#4b5a57}
.vcard .vc-brand{margin:0;font-family:Oswald,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#f5bd02}
.vcard .vc-num{margin:0;font-size:1.35rem;letter-spacing:.12em;font-variant-numeric:tabular-nums}
.vcard .vc-row{display:flex;justify-content:space-between;gap:1rem;font-size:.9rem}
.vcard .vc-flag{position:absolute;top:1.1rem;right:1.2rem;margin:0;background:#fff;color:#14403a;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:.15rem .5rem;border-radius:4px}
.notice-bar.ann{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.notice-bar.ann p{margin:0 0 .15rem}
.notice-bar.ann.warning{background:#fdecea;border-color:#e3a9a3}
.notice-bar.ann.maintenance{background:#fff8dc;border-color:#e6cf7a}

/* M6b: card page layout */
.cardtop{display:grid;grid-template-columns:minmax(0,25rem) minmax(0,1fr);gap:1.25rem;align-items:stretch}
@media (max-width:800px){.cardtop{grid-template-columns:1fr}}
.cardtop .vcard{margin:0;width:100%;max-width:none;aspect-ratio:1.586}
.cardinfo{display:flex;flex-direction:column}
.cardbtns{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:auto;padding-top:1rem}
.cardlost{margin-top:1.25rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.vcard .vc-head{display:flex;justify-content:space-between;align-items:baseline}
.vcard .vc-type{margin:0;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;opacity:.85}
.vcard .vc-chip{margin:0;width:2.6rem;height:2rem;border-radius:5px;background:#e2c46b}
.vcard .vc-num{font-size:1.45rem;white-space:nowrap}

/* M8: goals and insights */
.goalbar{height:.6rem;border-radius:3px;background:#dfe7e4;overflow:hidden}
.goalbar span{display:block;height:100%;background:#14403a}
.ibar{margin-bottom:.85rem}.ibar:last-child{margin-bottom:0}
.ibar-h{display:flex;justify-content:space-between;margin-bottom:.25rem;font-size:.95rem}

/* Crypto wallet */
.cryptofund { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start; }
.qrbox { background: #fff; border: 1px solid var(--line, #d9dfdc); padding: .5rem; line-height: 0; }
.qrbox svg { width: 190px; height: 190px; }
.addrside h3 { margin: 0 0 .6rem; }
.addrbox { margin: 0 0 .6rem; padding: .7rem .85rem; background: #f3f5f4; border: 1px solid var(--line, #d9dfdc); border-radius: 4px; word-break: break-all; }
.addrbox code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; }
.addrbox.memo span { display: block; font-size: .8rem; color: var(--muted, #5b6b66); margin-bottom: .15rem; }
@media (max-width: 640px) { .cryptofund { grid-template-columns: 1fr; } }

/* ---------- Sign in and join: photo beside the form ---------- */
.authsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(560px, 78vh, 860px); background: #fff; }
.authsplit.wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.authart { position: relative; min-height: 320px; background-color: var(--navy); }
.authart.photo:not(.has-img)::before { background: var(--grad); }
.authart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 36, 32, .82) 0%, rgba(10, 36, 32, .25) 55%, rgba(10, 36, 32, 0) 100%); }
.authart-copy { position: absolute; z-index: 2; left: clamp(1.5rem, 4vw, 3.5rem); right: clamp(1.5rem, 4vw, 3.5rem); bottom: clamp(1.75rem, 4vw, 3.5rem); color: #fff; }
.authart-copy .caps { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin: 0 0 .5rem; line-height: 1.1; }
.authart-copy p:last-child { margin: 0; font-size: 1.125rem; max-width: 30rem; color: #e3efea; }
.authside { display: flex; align-items: center; justify-content: center; padding: clamp(1.75rem, 4vw, 3.5rem) var(--pad); background: #fff; }
.authside .authbox { width: 100%; max-width: 30rem; margin: 0; padding: 0; border: 0; box-shadow: none; border-radius: 0; }
.authside .authbox.wide { max-width: 40rem; }
@media (max-width: 900px) {
  .authsplit, .authsplit.wide { grid-template-columns: 1fr; min-height: 0; }
  .authart { min-height: 0; height: 150px; }
  .authart-copy { display: none; }
  .authside { padding: 1.75rem 1.25rem 2.5rem; }
}

/* ---------- Join: one step at a time ---------- */
.wizard fieldset.step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.1rem; }
.wizard legend { padding: 0; margin: 0 0 .85rem; font: 700 1.5rem/1.2 var(--sans); color: var(--navy); }
.wizard .row3 { grid-template-columns: 2fr 1fr 1fr; }
.wizard .check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; font-weight: 400; }
.wizard .check input { min-height: 0; width: auto !important; margin-top: .3rem; }
.wizard [aria-invalid="true"] { border-color: #a31313; }
.wiz-nav { display: flex; gap: .25rem; list-style: none; margin: 0 0 .25rem; padding: 0; counter-reset: s; }
.wiz-nav li { flex: 1; min-width: 0; }
.wiz-nav button { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: .35rem; width: 100%; cursor: pointer; color: var(--muted); font-size: .8125rem; font-weight: 600; text-align: center; padding: .25rem 0; position: relative; }
.wiz-nav button:disabled { cursor: default; }
.wiz-nav button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wiz-nav .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e3ebe7; color: var(--navy); font-weight: 700; font-size: .9rem; transition: background .25s, color .25s; }
.wiz-nav li.done .dot { background: var(--blue); color: #fff; }
.wiz-nav li.current .dot { background: var(--navy); color: var(--gold); box-shadow: 0 0 0 4px rgba(20, 64, 58, .15); }
.wiz-nav li.current button { color: var(--navy); }
.wiz-nav li + li button::before { content: ""; position: absolute; top: calc(.25rem + 15px); right: 50%; width: 100%; height: 2px; background: #e3ebe7; }
.wiz-nav li.done + li button::before, .wiz-nav li.current button::before { background: var(--blue); }
.wiz-count { margin: 0; font-size: .9375rem; color: var(--muted); }
.wizard.is-wizard .step[hidden] { display: none; }
.wizard .step.enter { animation: stepin .28s ease both; }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wiz-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.wiz-actions .btn[hidden], .wiz-actions [hidden] { display: none; }
.wiz-actions .btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.pwrules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; font-size: .9375rem; color: var(--muted); }
.pwrules li::before { content: "\25CB"; display: inline-block; width: 1.4em; color: #9aa9a2; }
.pwrules li.ok { color: #12663a; }
.pwrules li.ok::before { content: "\2713"; color: #12663a; font-weight: 700; }
.review { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; margin: 0; padding: 1rem; background: #f3f6f4; border-radius: 8px; }
.review dt { color: var(--muted); font-size: .9375rem; }
.review dd { margin: 0; font-weight: 600; color: var(--ink); word-break: break-word; }
.review .linkbtn { all: unset; cursor: pointer; color: var(--blue); font-weight: 600; font-size: .875rem; margin-left: .5rem; text-decoration: underline; }
@media (max-width: 600px) {
  .wiz-nav .lbl { display: none; }
  .wizard .row3 { grid-template-columns: 1fr 1fr; }
  .wizard .row3 > :first-child { grid-column: 1 / -1; }
  .pwrules { grid-template-columns: 1fr; }
  .review { grid-template-columns: 1fr; gap: .1rem; }
  .review dd { margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .wizard .step.enter { animation: none; } .wiz-nav .dot { transition: none; } }

/* Join: account choice and documents */
.choices { display: grid; gap: .6rem; }
.choice { display: flex !important; grid-template-columns: none; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--navy); background: #f3f6f4; }
.choice input { margin-top: .3rem; flex: none; }
.choice strong { display: block; color: var(--navy); }
.choice small { display: block; color: var(--muted); font-weight: 400; margin-top: .15rem; }
.form .hint { color: var(--muted); font-weight: 400; font-size: .875rem; }
.form input[type=file] { padding: .6rem; border: 1px dashed #9aa9a2; border-radius: 6px; background: #fafcfb; font: inherit; }

/* Welcome after joining */
.welcome .runlist { list-style: none; margin: 1.25rem 0 1rem; padding: 0; display: grid; gap: .75rem; }
.welcome .runlist li { display: flex; gap: .8rem; align-items: center; color: var(--muted); font-weight: 600; }
.welcome .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9d4ce; flex: none; display: grid; place-items: center; font-size: .8rem; color: #fff; }
.welcome .runlist li.now { color: var(--navy); }
.welcome .runlist li.now .mark { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
.welcome .runlist li.ok { color: var(--ink); }
.welcome .runlist li.ok .mark { background: var(--blue); border-color: var(--blue); }
.welcome .runlist li.ok .mark::after { content: "\2713"; font-weight: 700; }
.welcome .runbar { height: 6px; background: #e3ebe7; border-radius: 3px; overflow: hidden; }
.welcome .runbar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .7s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
.welcome .finished h3 { margin: .2rem 0 .4rem; }
.welcome .acctlist { display: grid; gap: .75rem; margin: 1rem 0; }
.welcome .acct { border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; }
.welcome .acct > div > strong { display: block; color: var(--navy); }
.welcome .acct small { color: var(--muted); }
.welcome .acct dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.25rem; margin: .6rem 0 0; }
.welcome .acct dt { color: var(--muted); font-size: .9375rem; }
.welcome .acct dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.welcome.is-running .finished, .welcome.is-done .runlist, .welcome.is-done .runbar { display: none; }
.welcome.is-done .finished { animation: stepin .4s ease; }
@media (prefers-reduced-motion: reduce) { .welcome .runlist li.now .mark { animation: none; } .welcome .runbar i { transition: none; } .welcome.is-done .finished { animation: none; } }
.welcome .finished:focus { outline: none; }

/* Join: business accounts */
.bizcheck { display: flex !important; gap: .7rem; align-items: flex-start; padding-top: .4rem; }
.bizcheck input { margin-top: .35rem; flex: none; }
.bizcheck strong { display: block; color: var(--navy); }
.bizcheck small { display: block; font-weight: 400; color: var(--muted); }
.bizpanel { display: grid; gap: 1rem; padding: 1rem; background: #f3f6f4; border-radius: 8px; }
.bizpanel[hidden], .bizdoc[hidden] { display: none; }

/* Online banking sidebar scrollbar: thin, dark, and only as visible as it needs to be */
.side { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.side::-webkit-scrollbar { width: 8px; }
.side::-webkit-scrollbar-track { background: transparent; }
.side::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 4px; border: 2px solid var(--navy); }
.side::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .36); }

/* Page banners with a photo, and photos inside pages */
.phero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; z-index: 1; clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); }
.phero.has-photo::after { display: none; }
.phero.has-photo .phero-in { z-index: 2; }
.splitcol { display: grid; gap: 1.25rem; align-content: start; }
.bodyphoto { aspect-ratio: 4 / 3; border-radius: 8px; }
@media (max-width: 1000px) { .phero-photo { display: none; } }
@media (min-width: 601px) and (max-width: 1000px) { .phero.has-photo::after { display: block; } }

/* ---------- Phones: stacked tables, tap sizes, search rows ---------- */
@media (max-width: 700px) {
  .dtable.stack thead { display: none; }
  .dtable.stack tr { display: block; padding: .6rem 0; border-bottom: 1px solid #e4ebe8; }
  .dtable.stack tr:last-child { border-bottom: 0; }
  .dtable.stack td { display: block; border-bottom: 0; padding: .3rem .9rem; }
  .dtable.stack td.go { text-align: left; }
  .linkbtn { display: inline-flex; align-items: center; min-height: 40px; }
  .btn-s.sm { min-height: 40px; }
  .searchbar > input, .searchbar > select { flex: 1 1 100% !important; min-height: 44px; }
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=hidden]), select, textarea { min-height: 40px; }
  input[type=number], input[type=time] { min-width: 6.5rem; }
}
@media (max-width: 600px) {
  .tool, .dtable th, .chip, .tag { font-size: .8125rem; }
  .tbl { min-width: 0; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td, .tbl tbody th { display: block; }
  .tbl tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td, .tbl tbody th { border: 0; padding: .3rem 1rem; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .tbl td.num { font-size: 1.25rem; }
  .linkbar li a { white-space: nowrap; }
  .linkbar ul { flex-wrap: wrap; justify-content: center; }
  .linkbar li + li { border-left: 0; }
}
@media (max-width: 400px) {
  .dtable th, .dtable td { padding: .75rem .6rem; }
  .dtable .go { white-space: normal; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 1rem; } .brand-mark { width: 32px; height: 32px; }
  .tool { min-width: 52px; padding: 0 .3rem; }
  .brand { gap: .4rem; }
}
@media (max-width: 400px) {
  .brand-logo { height: 42px; max-width: 100%; }
  .brand { min-width: 0; padding-block: .75rem; }
}
@media (max-width: 420px) { .choicegrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 340px) { .dtable th, .dtable td { padding: .7rem .4rem; } .dtable .num { font-size: .9375rem; } }
@media (max-width: 340px) { .dtable.accts td.go, .dtable.accts th:last-child { display: none; } }

/* Dashboard: cards in a row share top and bottom edges */
.dashgrid { align-items: stretch; row-gap: 0; }
.dashgrid .mcell { display: flex; flex-direction: column; min-width: 0; }
.dashgrid .mcell > .panel-card { flex: 1; margin: 0; }
.dashgrid .mcell > .table-title { margin-top: 2rem; }
@media (max-width: 960px) { .dashgrid > .mcell:nth-child(2) { order: 3; margin-top: 1.25rem; } .dashgrid > .mcell:nth-child(4) { margin-top: 0; } }
.dashgrid .table-title { min-height: 2.25rem; }
@media (max-width: 960px) { .dashgrid > .mcell:nth-child(4) { order: 4; } }

/* Phones: labelled stacked tables, stat strips, form grids */
.sform { grid-template-columns: minmax(0, 1fr); }
.col-form, .fields, .fieldset { min-width: 0; }
@media (max-width: 700px) {
  .dtable.stackl thead { display: none; }
  .dtable.stackl tr { display: block; padding: .6rem 0; border-bottom: 1px solid #e4ebe8; }
  .dtable.stackl tr:last-child { border-bottom: 0; }
  .dtable.stackl td { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 0; padding: .3rem .9rem; text-align: right; }
  .dtable.stackl td::before { content: attr(data-label); color: var(--muted); font-weight: 400; text-align: left; }
  .strip b { font-size: 1.6rem; overflow-wrap: anywhere; }
  .strip > * { padding: 1rem; }
  .rte-bar button { height: 40px; }
  .status-chip { font-size: .8125rem; }
}
@media (max-width: 420px) {
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip > * { border-right: 0; border-bottom: 1px solid #e4ebe8; }
  .strip > *:last-child { border-bottom: 0; }
}
@media (max-width: 480px) { .two { grid-template-columns: minmax(0, 1fr) !important; } }
.dtable td select, .dtable td form { min-width: 0; max-width: 100%; }
@media (max-width: 340px) { .dtable td form { display: block !important; } .dtable td select { width: 100%; } }
