/* Roll Call: regiment → group → sortable soldier tables */
.rc-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--brass); text-decoration: none; margin-top: 18px; }
.rc-back:hover { color: #f0d488; }
.rc-hero { padding: clamp(34px, 6vw, 80px) 0 10px; text-align: center; }
.rc-hero .poppy { width: 52px; height: 52px; margin-bottom: 16px; }
.rc-kick { font-family: var(--display); letter-spacing: .22em; text-transform: uppercase; font-size: clamp(12px, 1.3vw, 15px); color: #d9b45a; margin: 0 0 12px; }
.rc-hero h1 { margin: 0 0 16px; font-family: 'IM Fell English', 'EB Garamond', serif !important; font-weight: 400 !important; font-size: clamp(42px, 7vw, 88px); line-height: 1.04; }
.rc-lede { text-wrap: balance; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.6; color: #e6dcc0; max-width: 38em; margin: 0 auto; }
.rc-stats { display: flex; justify-content: center; gap: 14px 44px; flex-wrap: wrap; margin: 30px auto 6px; padding: 16px 0; max-width: 820px; border-top: 5px solid var(--bronze-3); border-bottom: 1px solid var(--bronze-3); }
.rc-stats div { text-align: center; }
.rc-stats b { display: block; font-family: var(--serif); font-weight: 700; font-variant-numeric: lining-nums; font-size: clamp(28px, 4vw, 42px); line-height: 1; color: #f0d488; }
.rc-stats span { font-family: var(--display); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }

.rc-crumb { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 22px 0 8px; font-size: 15px; color: #8f8568; }
.rc-crumb a { color: var(--brass); text-decoration: none; }
.rc-crumb a:hover { color: #f0d488; text-decoration: underline; }
.rc-crumb b { color: #e6dcc0; font-weight: 600; }

.rc-tools { max-width: 960px; margin: 22px auto 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.rc-tools label { display: block; font-family: var(--display); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; }
.rc-tools input { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 18px; color: var(--parchment); background: #1b1912; border: 1px solid #5a5040; border-radius: 8px; }
.rc-tools input:focus { outline: 2px solid #d9b45a; outline-offset: 1px; }
.rc-count { max-width: 960px; margin: 14px auto 0; font-size: 16px; color: #8f8568; }

.rc-list { list-style: none; margin: 14px auto 0; padding: 0; max-width: 960px; }
.rc-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; padding: 16px 18px; background: #1b1912; border: 1px solid #3a352b; border-radius: 10px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.rc-row:hover { border-color: #d9b45a; }
.rc-row h2, .rc-row h3 { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.1vw, 24px); line-height: 1.25; color: var(--parchment); font-weight: 500; }
.rc-row:hover h2, .rc-row:hover h3 { color: #f0d488; }
.rc-meta { margin: 4px 0 0; font-size: 15.5px; color: #cdc2a0; }
.rc-n { text-align: right; font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.rc-n b { display: block; font-family: var(--serif); font-size: 28px; letter-spacing: 0; color: #f0d488; line-height: 1; }

.rc-panel { max-width: 1100px; margin: 18px auto 0; }
.rc-panel h2 { margin: 0 0 8px; font-size: clamp(28px, 3.6vw, 40px); }
.rc-panel .rc-sub { margin: 0 0 16px; color: #cdc2a0; font-size: 17px; }

.rc-table-wrap { overflow-x: auto; border: 1px solid #3a352b; border-radius: 10px; background: #1b1912; -webkit-overflow-scrolling: touch; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.35; min-width: 860px; }
.rc-table th, .rc-table td { padding: 8px 7px; text-align: left; border-bottom: 1px solid #2e2a22; vertical-align: middle; }
.rc-table th { position: sticky; top: 0; z-index: 1; background: #221f18; font-family: var(--display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 600; white-space: nowrap; cursor: pointer; user-select: none; }
.rc-table th:hover { color: #f0d488; }
.rc-table th[aria-sort="ascending"]::after { content: " \25B2"; font-size: 9px; }
.rc-table th[aria-sort="descending"]::after { content: " \25BC"; font-size: 9px; }
.rc-table tbody tr { cursor: pointer; }
.rc-table tbody tr:hover { background: #262218; }
.rc-table tbody tr:focus-within { outline: 2px solid #d9b45a; outline-offset: -2px; }
.rc-sur { display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-weight: 600; letter-spacing: .04em; color: var(--parchment); }
.rc-rank-txt { font-family: var(--display); font-weight: 500; letter-spacing: .06em; font-size: 0.92em; color: #d9b45a; white-space: nowrap; }
.rc-sur-name { font-weight: 600; letter-spacing: .04em; color: var(--parchment); white-space: nowrap; }
.rc-table .muted { color: #8f8568; }
.rc-fate-kia { color: #e08a74; }

/* Pack identity columns to content so First name and later fields sit further left
   (free table width goes to Unit / Ship / Fate instead of padding the name block).
   Column order: Rank | Surname | First name | Middle | Service no. | … */
.rc-table th[data-key="rank"],
.rc-table td:nth-child(1),
.rc-table th[data-key="surname"],
.rc-table td:nth-child(2),
.rc-table th[data-key="first"],
.rc-table td:nth-child(3),
.rc-table th[data-key="middle"],
.rc-table td:nth-child(4),
.rc-table th[data-key="svc"],
.rc-table td:nth-child(5) {
  width: 1%;
  white-space: nowrap;
  padding-left: 6px;
  padding-right: 6px;
}
.rc-table th:first-child,
.rc-table td:first-child {
  padding-left: 8px;
}
/* Cap Rank so long titles (e.g. Quartermaster Sergeant) do not push First name right */
.rc-table th[data-key="rank"],
.rc-table td:nth-child(1) {
  max-width: 11em;
  overflow: hidden;
}
.rc-rank-txt {
  display: inline-block;
  max-width: 8.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.rc-rank-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}


/* Compact brass rank insignia */
.rc-rank {
  display: inline-flex; flex-shrink: 0; width: 18px; height: 18px; align-items: center; justify-content: center;
  border-radius: 2px; background: #2a2418; border: 1px solid #6a5a35;
}
.rc-rank svg { width: 14px; height: 14px; display: block; }
.rc-rank .pip { fill: #e6c86a; }
.rc-rank .chev { fill: none; stroke: #e6c86a; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.rc-rank .bar { fill: #e6c86a; }
.rc-rank .crown { fill: #e6c86a; }
.rc-rank .cross { fill: none; stroke: #e6c86a; stroke-width: 1.4; }
.rc-rank .dot { fill: #9a8a5a; }

.rc-src { max-width: 860px; margin: 56px auto 0; padding: 26px 24px; background: #1b1912; border: 1px solid #3a352b; border-radius: 12px; }
.rc-src h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 36px); }
.rc-src p, .rc-src li { font-size: 16.5px; line-height: 1.6; color: #cdc2a0; }
.rc-src a { color: #f0d488; }
.rc-fine { max-width: 700px; margin: 28px auto 0; text-align: center; font-size: 15px; line-height: 1.6; color: #8a7f63; }
.rc-empty { max-width: 640px; margin: 40px auto; padding: 34px 26px; text-align: center; background: #1b1912; border: 1px solid #3a352b; border-radius: 12px; font-size: 18px; color: #cdc2a0; }
.rc-foot-back { text-align: center; margin: 10px 0 0; padding: 0 0 80px; }

@media (max-width: 640px) {
  .rc-row { grid-template-columns: 1fr; padding: 14px 16px; }
  .rc-n { text-align: left; }
  .rc-n b { display: inline; font-size: 22px; margin-right: 6px; }
  .rc-table { font-size: 14.5px; min-width: 780px; }
  .rc-table th[data-key="rank"],
  .rc-table td:nth-child(1) { max-width: 7.2em; }
  .rc-rank-txt { font-size: 0.85em; max-width: 5.2em; }
  .rc-sur { gap: 6px; }
}

/* Filters + found-set totals */
.rc-filters {
  max-width: 960px;
  margin: 22px auto 0;
  padding: 16px 18px;
  background: #1b1912;
  border: 1px solid #3a352b;
  border-radius: 12px;
  display: grid;
  gap: 16px;
}
.rc-filter-block { display: grid; gap: 8px; }
.rc-filter-label {
  margin: 0;
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.rc-filter-hint {
  margin: 0;
  font-size: 14px;
  color: #8f8568;
  line-height: 1.45;
}
.rc-togs { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-tog {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #5a5040;
  background: #15140f;
  color: #cdc2a0;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.rc-tog:hover { border-color: #d9b45a; color: #f0d488; }
.rc-tog.is-on {
  background: #2a2418;
  border-color: #d9b45a;
  color: #f0d488;
  box-shadow: inset 0 0 0 1px rgba(217, 180, 90, .35);
}
.rc-tog:focus-visible { outline: 2px solid #d9b45a; outline-offset: 2px; }

.rc-home-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px 22px;
  align-items: start;
}
.rc-home-grid .rc-list,
.rc-home-grid .rc-count,
.rc-home-grid .rc-tools { max-width: none; margin-left: 0; margin-right: 0; }

.rc-totals {
  position: sticky;
  top: 72px;
  padding: 14px 16px;
  background: #1b1912;
  border: 1px solid #3a352b;
  border-radius: 12px;
}
.rc-totals-h {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
.rc-totals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(52vh, 480px);
  overflow: auto;
}
.rc-totals-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #2e2a22;
  font-size: 14.5px;
  color: #cdc2a0;
}
.rc-totals-list b {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  color: #f0d488;
  font-weight: 700;
}
.rc-totals-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #5a5040;
  display: grid;
  gap: 8px;
}
.rc-totals-foot div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}
.rc-totals-foot b {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0;
  color: #f0d488;
  font-weight: 700;
}

@media (max-width: 860px) {
  .rc-home-grid { grid-template-columns: 1fr; }
  .rc-totals { position: static; }
}

/* Group subsets under each regiment on the index */
.rc-reg { margin: 0 0 10px; }
.rc-reg > .rc-row { margin: 0; }
.rc-subsets {
  list-style: none;
  margin: 0 0 4px;
  padding: 0 0 0 14px;
  border-left: 2px solid #3a352b;
  margin-left: 18px;
}
.rc-subset {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 8px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #2a261c;
}
.rc-subset:hover {
  background: #221f18;
  color: #f0d488;
}
.rc-subset-name {
  font-size: 15.5px;
  line-height: 1.35;
  color: #cdc2a0;
}
.rc-subset:hover .rc-subset-name { color: #f0d488; }
.rc-subset-n {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8f8568;
  white-space: nowrap;
}
.rc-subset-n b {
  display: inline;
  margin-right: 4px;
  font-size: 16px;
  color: var(--brass);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
@media (max-width: 640px) {
  .rc-subsets { margin-left: 8px; padding-left: 10px; }
}

/* Troopship audit column + note */
.rc-audit-note {
  max-width: 960px;
  margin: 12px auto 0;
  padding: 12px 16px;
  background: #17150f;
  border: 1px solid #3a352b;
  border-radius: 10px;
  color: #cdc2a0;
  font-size: 15px;
  line-height: 1.5;
}
.rc-audit-note p { margin: 0; }
.rc-audit-note a { color: #f0d488; }
.rc-panel + .rc-audit-note { max-width: none; margin: 0 0 14px; }
.rc-audit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  font-weight: 700;
  line-height: 1;
}
.rc-audit-ok {
  color: #3dba6a;
  font-size: 18px;
  text-shadow: 0 0 8px rgba(61, 186, 106, .35);
}
.rc-audit-short {
  color: #8f8568;
  font-size: 16px;
  font-weight: 500;
}
.rc-audit-blank { color: transparent; }
.rc-audit-cell { text-align: center; width: 3.2em; }
th[data-key="audit"] { text-align: center; width: 3.2em; }


/* SQN field + source key */
.rc-sqn-legend {
  max-width: 960px;
  margin: 10px auto 0;
  padding: 12px 16px;
  background: #17150f;
  border: 1px solid #3a352b;
  border-radius: 10px;
  color: #cdc2a0;
  font-size: 14.5px;
  line-height: 1.5;
}
.rc-panel + .rc-audit-note + .rc-sqn-legend,
.rc-panel + .rc-sqn-legend { max-width: none; margin: 0 0 14px; }
.rc-sqn-legend p { margin: 0 0 8px; }
.rc-sqn-legend ul { margin: 0 0 8px; padding-left: 1.2em; }
.rc-sqn-legend li { margin: 0.2em 0; }
.rc-sqn-legend a { color: #f0d488; }
.rc-sqn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.rc-sqn-name { font-weight: 600; color: #f3ebd2; }
.rc-sqn-src {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #5a5344;
  color: #e6d7a8;
  background: #241f16;
}
.rc-sqn-src[data-src="cen"] { border-color: #6a5a2e; color: #f0d488; }
.rc-sqn-src[data-src="adfa"] { border-color: #3a5a6a; color: #a8d0e6; }
.rc-sqn-blank { color: #6e6756; }
.rc-sqn-cell { min-width: 7.5em; }
th[data-key="sqn"] { min-width: 7em; }
@media (max-width: 900px) {
  .rc-table th[data-key="middle"],
  .rc-table td:nth-child(4),
  .rc-table th[data-key="voyage"],
  .rc-table td:nth-child(10) {
    /* keep existing density; SQN stays visible */
  }
}

/* Shared static pages: sources + audit trail */
.rc-trail { max-width: 820px; margin: 0 auto 28px; }
.rc-trail article {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #17150f;
  border: 1px solid #3a352b;
  border-radius: 10px;
}
.rc-trail article.rc-trail-win {
  border-color: #5a7a4a;
  box-shadow: 0 0 0 1px rgba(90, 122, 74, 0.25);
}
.rc-trail time {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a89868;
  margin-bottom: 6px;
}
.rc-trail h2 { margin: 0 0 8px; font-size: 1.25rem; color: #f3ebd2; }
.rc-trail p { margin: 0 0 8px; color: #cdc2a0; line-height: 1.55; }
.rc-trail p:last-child { margin-bottom: 0; }
.rc-trail a { color: #f0d488; }
.rc-src-list { max-width: 820px; margin: 0 auto 28px; }
.rc-src-list h2 { margin-top: 1.6em; }
.rc-src-list dl { margin: 0 0 1em; }
.rc-src-list dt { font-weight: 700; color: #f3ebd2; margin-top: 0.8em; }
.rc-src-list dd { margin: 0.25em 0 0; color: #cdc2a0; line-height: 1.5; }

.rc-proof-cta { margin-top: 18px !important; }
.rc-proof-cta a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: 14px; color: #131311; background: #d9b45a; text-decoration: none; border-radius: 8px;
}
.rc-proof-cta a:hover { background: #f0d488; color: #131311; }
.rc-hero .rc-lede a { color: #f0d488; }

/* Grave location toggle */
.rc-gr-row{display:block;font-size:.78em;opacity:.75;font-weight:400}
.rc-gr-pct{font-size:.92em}
.rc-gr-found{margin:.4rem 0 .8rem;padding:.6rem .75rem;border:1px solid rgba(0,0,0,.15);border-radius:6px}
.rc-gr-found p{margin:.15rem 0}
.rc-gr-k{font-family:"IM Fell English",serif;font-size:1.1em}
.rc-gr-src{display:inline-block;font-size:.7em;letter-spacing:.03em;padding:0 .35em;border:1px solid currentColor;border-radius:3px;opacity:.65;white-space:nowrap;vertical-align:1px}
.rc-gr-cem a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.rc-table.rc-gr-table,#rc-table:has(.rc-gr-cem){min-width:0}
@media (max-width:640px){.rc-gr-cem,.rc-gr-loc{min-width:8em}.rc-table td{word-break:normal}}

/* Compact campaign switches (shared with /ww2) */
.rc-filters { gap: 14px; padding: 14px 16px; }
.cs-block { display: grid; gap: 6px; }
.cs-block + .cs-block { padding-top: 12px; border-top: 1px solid #2e2a21; }
.cs-head { margin: 0; font-family: 'IM Fell English', 'EB Garamond', serif; font-size: 17px; color: var(--brass); letter-spacing: .01em; }
.cs-hint { margin: 0; font-size: 13px; color: #8f8568; line-height: 1.4; }
.cs-row { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cs-sw { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 2px 2px; background: none; border: 0; color: #b9ae8c; font-family: 'EB Garamond', serif; font-size: 15px; cursor: pointer; text-decoration: none; }
.cs-track { position: relative; flex: none; width: 28px; height: 16px; border-radius: 8px; background: #2a261c; border: 1px solid #5a5040; transition: background .15s, border-color .15s; }
.cs-knob { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #8f8568; transition: transform .15s, background .15s; }
.cs-sw.is-on { color: #f0d488; }
.cs-sw.is-on .cs-track { background: #5a4520; border-color: #d9b45a; }
.cs-sw.is-on .cs-knob { transform: translateX(12px); background: #f0d488; }
.cs-sw:hover:not([disabled]) { color: #f0d488; }
.cs-sw:hover:not([disabled]) .cs-track { border-color: #d9b45a; }
.cs-sw:focus-visible { outline: 2px solid #d9b45a; outline-offset: 2px; border-radius: 4px; }
.cs-sw[disabled] { cursor: not-allowed; opacity: .5; }
.cs-sw[disabled] .cs-track { border-style: dashed; }
.cs-note { font-size: 11px; font-style: italic; color: #8f8568; }
.cs-sw.is-link .cs-track { border-style: solid; }
.cs-sw.is-link .cs-label { text-decoration: underline; text-decoration-color: #5a5040; text-underline-offset: 3px; }
.cs-sw.is-link::after { content: "\2192"; font-size: 13px; color: #8f8568; }
.cs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding-top: 12px; border-top: 1px solid #2e2a21; }
.cs-grid .cs-block + .cs-block { padding-top: 0; border-top: 0; }
@media (max-width: 700px) { .cs-grid { grid-template-columns: 1fr; gap: 10px; } .cs-row { gap: 2px 12px; } .cs-sw { font-size: 14.5px; } }

.rc-name-list{list-style:none;margin:0;padding:0}.rc-name-list li{padding:8px 0;border-bottom:1px solid #3a3428;overflow-wrap:anywhere}.rc-name-list small{opacity:.75}
