/* Nonresident Banking — plain, readable, mobile-first */

:root {
  --ink: #1c1917;
  --muted: #57534e;
  --line: #d6d3d1;
  --paper: #f7f4ef;
  --card: #fffdf9;
  --accent: #1d4e4a;
  --accent-hover: #163d3a;
  --warn-bg: #f5efe4;
  --max: 46rem;
  --max-wide: 58rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 0.12em;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.site-header .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
}

.brand:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

main {
  padding: 2rem 0 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 0.6rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.page-list li {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.page-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.page-list a {
  font-weight: 600;
  text-decoration: none;
}

.page-list a:hover {
  text-decoration: underline;
}

.page-list .status {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
  font-weight: 400;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 36rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: #efebe5;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.sources {
  font-size: 0.95rem;
}

.sources li {
  margin-top: 0.45rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.domain-note {
  font-size: 0.85rem;
}

@media (max-width: 40rem) {
  html {
    font-size: 100%;
  }

  h1 {
    font-size: 1.7rem;
  }

  main {
    padding-top: 1.5rem;
  }
}

.c-yes { font-weight: 600; color: #8a1c1c; }
