/* Rocam Illuminated — component reference.
   Mockups load this after tokens.css. Implementers: match these
   classes, or the same tokens if the app uses different names.
   Spec: docs/design/COMPONENTS.md */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.rc-body {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--bg-atmosphere);
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--rocam-blue-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: rgba(37, 74, 159, 0.35);
  color: var(--text);
}

.rc-app {
  min-height: 100vh;
}

.rc-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px);
}

.rc-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 72px;
  padding: 0 var(--space-6);
}

.rc-header::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 74, 159, 0.85) 28%, rgba(237, 28, 36, 0.7) 72%, transparent);
  pointer-events: none;
}

.rc-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.rc-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.rc-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.rc-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.rc-search input::placeholder {
  color: var(--text-muted);
}

.rc-search input:focus {
  border-color: rgba(37, 74, 159, 0.7);
  box-shadow: var(--ring);
}

.rc-search svg {
  position: absolute;
  left: 14px;
  top: 12px;
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.8;
}

.rc-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.rc-theme,
.rc-icon-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.rc-theme:hover,
.rc-icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.rc-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
}

.rc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: white;
  background: var(--rocam-blue);
  box-shadow: var(--shadow-glow-blue);
}

.rc-who {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.rc-who strong {
  font-weight: 600;
  font-size: var(--text-sm);
}

.rc-who span {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.rc-tabs {
  display: flex;
  gap: 2px;
  padding: 0 var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.rc-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 16px 16px 18px;
  scroll-snap-align: start;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-base) var(--ease-out);
}

.rc-tab:hover {
  color: var(--text);
  text-decoration: none;
}

.rc-tab.is-active {
  color: var(--text);
}

.rc-tab.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--lamp);
  box-shadow: 0 0 14px var(--rocam-blue), 0 0 3px var(--rocam-blue);
  animation: rc-breathe var(--duration-glow) var(--ease-in-out) infinite;
}

.rc-main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: var(--space-8) 0 var(--space-16);
}

.rc-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  animation: rc-rise var(--duration-slow) var(--ease-out) both;
}

.rc-kicker {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-sign);
  text-transform: uppercase;
  color: var(--text-muted);
}

.rc-kicker b {
  color: var(--rocam-red-text);
  font-weight: 500;
}

.rc-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.rc-sign {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rc-lede {
  margin: 8px 0 0;
  max-width: 46rem;
  color: var(--text-secondary);
}

.rc-rule {
  width: 42px;
  height: 7px;
  margin-top: 12px;
  background:
    linear-gradient(var(--rocam-blue), var(--rocam-blue)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--rocam-red), var(--rocam-red)) 0 5px / 100% 2px no-repeat;
}

.rc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
}

.rc-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.rc-btn:active {
  transform: translateY(0);
}

.rc-btn:focus-visible,
.rc-tab:focus-visible,
.rc-chip:focus-visible,
.rc-theme:focus-visible,
.rc-input:focus-visible,
.rc-select:focus-visible,
.rc-textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.rc-btn-primary {
  background: var(--rocam-blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 74, 159, 0.28);
}

.rc-btn-primary:hover {
  color: #fff;
  box-shadow: var(--shadow-glow-blue);
}

.rc-btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.rc-btn-secondary:hover {
  border-color: var(--rocam-blue);
  color: var(--text);
  box-shadow: var(--shadow-glow-blue);
}

.rc-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.rc-btn-ghost:hover {
  color: var(--text);
  background: var(--surface-raised);
}

.rc-btn-danger {
  background: var(--rocam-red-deep);
  color: #fff;
  box-shadow: 0 8px 20px rgba(237, 28, 36, 0.22);
}

.rc-btn-danger:hover {
  color: #fff;
  box-shadow: var(--shadow-glow-red);
}

.rc-btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.rc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.rc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px);
}

.rc-stat {
  padding: 18px 18px 16px;
  animation: rc-rise var(--duration-slow) var(--ease-out) both;
}

.rc-stat:nth-child(2) { animation-delay: 40ms; }
.rc-stat:nth-child(3) { animation-delay: 80ms; }
.rc-stat:nth-child(4) { animation-delay: 120ms; }

.rc-stat-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: var(--tracking-sign);
  text-transform: uppercase;
  color: var(--text-muted);
}

.rc-stat-value {
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rc-stat-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.rc-card-glow {
  box-shadow: var(--shadow-glass), var(--shadow-glow-blue);
}

.rc-split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
  gap: var(--space-4);
}

.rc-card-pad {
  padding: 18px 20px 16px;
}

.rc-card > .rc-card-pad:first-child:not(:last-child) {
  padding-bottom: 0;
}

.rc-card h2,
.rc-section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rc-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px);
}

.rc-card .rc-table-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.rc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.rc-table th {
  padding: 16px 14px 12px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--table-line);
  white-space: nowrap;
}

.rc-table td {
  padding: 14px;
  border-bottom: 1px solid var(--table-line);
  vertical-align: middle;
}

.rc-table tr:last-child td {
  border-bottom: 0;
}

.rc-table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}

.rc-table tbody tr:hover {
  background: var(--row-hover);
}

.rc-table a.rc-job {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.rc-table a.rc-job:hover {
  color: var(--rocam-blue-text);
}

.rc-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: right;
  white-space: nowrap;
}

.rc-table th.rc-num,
.rc-table td.rc-num {
  text-align: right;
}

.rc-subtle {
  color: var(--text-muted);
}

.rc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.rc-chip {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.rc-chip.is-on,
.rc-chip[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(37, 74, 159, 0.7);
  box-shadow: var(--shadow-glow-blue);
  background: var(--badge-blue-bg);
}

.rc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--badge-neutral-bg);
  color: var(--badge-neutral-text);
}

.rc-badge-sent,
.rc-badge-approved,
.rc-badge-production {
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
}

.rc-badge-ready,
.rc-badge-paid {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.rc-badge-overdue,
.rc-badge-hold {
  background: var(--badge-red-bg);
  color: var(--badge-red-text);
}

.rc-badge-production::before,
.rc-badge-overdue::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: rc-breathe var(--duration-glow) var(--ease-in-out) infinite;
}

.rc-attention {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 8px 12px;
}

.rc-attention a {
  display: grid;
  gap: 2px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--radius-md);
  border-left: 2px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}

.rc-attention a:hover {
  background: var(--row-hover);
  border-left-color: var(--rocam-blue);
  text-decoration: none;
}

.rc-attention strong {
  font-weight: 600;
  font-size: var(--text-sm);
}

.rc-attention span {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.rc-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.rc-linkcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 14px;
  color: inherit;
  text-decoration: none;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.rc-linkcard:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: var(--shadow-glass), var(--shadow-glow-blue);
}

.rc-linkcard strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 14px;
  padding: 16px 18px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.rc-meta b {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.rc-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.rc-input,
.rc-select,
.rc-textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--input-bg);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.rc-select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.rc-textarea {
  min-height: 96px;
  resize: vertical;
}

.rc-input:focus,
.rc-select:focus,
.rc-textarea:focus {
  border-color: rgba(37, 74, 159, 0.75);
  box-shadow: var(--ring);
}

[data-theme="light"] .rc-input,
[data-theme="light"] .rc-select,
[data-theme="light"] .rc-textarea {
  box-shadow: inset 0 1px 2px rgba(35, 35, 35, 0.05);
}

.rc-help {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.rc-error {
  margin: 0;
  color: var(--rocam-red-text);
  font-size: var(--text-xs);
}

.is-invalid {
  border-color: rgba(237, 28, 36, 0.75);
  box-shadow: var(--shadow-glow-red);
}

.rc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.rc-check input {
  accent-color: var(--rocam-blue);
  width: 16px;
  height: 16px;
}

.rc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 12, 0.62);
  backdrop-filter: blur(8px);
}

.rc-modal-backdrop[hidden] {
  display: none;
}

.rc-modal {
  width: min(560px, 100%);
  padding: 22px 22px 18px;
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glass), var(--shadow-glow-blue);
  animation: rc-rise var(--duration-base) var(--ease-out) both;
}

.rc-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.rc-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rc-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.rc-back {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.rc-back:hover {
  color: var(--text);
}

.rc-spec {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
}

.rc-spec .rc-card,
.rc-pad {
  padding: 18px;
}

.rc-spec dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: var(--text-sm);
}

.rc-spec dt {
  color: var(--text-muted);
}

.rc-spec dd {
  margin: 0;
}

.rc-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-steps li {
  position: relative;
  padding: 0 0 16px 18px;
  border-left: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.rc-steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.rc-steps li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.rc-steps li.is-now {
  color: var(--text);
}

.rc-steps li.is-now::before {
  background: var(--rocam-blue);
  box-shadow: 0 0 10px var(--rocam-blue);
}

.rc-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.rc-login-card {
  width: min(440px, 100%);
  padding: 36px 32px 28px;
  text-align: left;
  animation: rc-rise var(--duration-slow) var(--ease-out) both;
}

.rc-login-card img {
  height: 64px;
  width: auto;
  margin-bottom: 22px;
}

.rc-login-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rc-login-card .rc-lede {
  margin-bottom: 22px;
}

.rc-login-card .rc-btn {
  width: 100%;
  margin-top: 6px;
}

.rc-login-foot {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-align: center;
}

.rc-stage {
  min-height: 100vh;
  padding: 28px 16px 64px;
}

.rc-stage-bar {
  width: min(860px, 100%);
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.rc-sheet {
  width: min(860px, 100%);
  margin: 0 auto;
  background: #fff;
  color: #232323;
  border-radius: 2px;
  box-shadow: var(--sheet-shadow);
  padding: 42px 46px 36px;
}

.rc-sheet * {
  color: inherit;
}

.rc-sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.rc-sheet img {
  height: 72px;
  width: auto;
}

.rc-sheet h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}

.rc-sheet .rc-docno {
  margin: 4px 0 0;
  text-align: right;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  color: #254a9f;
}

.rc-sheet-rule {
  height: 8px;
  margin: 18px 0 22px;
  background:
    linear-gradient(#254a9f, #254a9f) 0 0 / 100% 3px no-repeat,
    linear-gradient(#ed1c24, #ed1c24) 0 6px / 100% 2px no-repeat;
}

.rc-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.5;
}

.rc-sheet h2 {
  margin: 0 0 6px;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #254a9f;
}

.rc-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rc-sheet th {
  text-align: left;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #454545;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid #254a9f;
}

.rc-sheet td {
  padding: 11px 8px 11px 0;
  border-bottom: 1px solid #e4e4e4;
  vertical-align: top;
}

.rc-sheet .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rc-totals {
  width: 280px;
  margin-left: auto;
  margin-top: 12px;
  font-size: 13px;
}

.rc-totals div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.rc-totals .grand {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid #ed1c24;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.rc-sheet-note {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #e4e4e4;
  font-size: 12px;
  color: #454545;
  line-height: 1.5;
}

.rc-sheet-note strong {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #232323;
}

.rc-index {
  width: min(880px, calc(100% - 40px));
  margin: 48px auto 64px;
}

.rc-index-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.rc-index-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

.rc-index-list a:hover {
  text-decoration: none;
  box-shadow: var(--shadow-glass), var(--shadow-glow-blue);
}

.rc-index-list strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.rc-index-list span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

@keyframes rc-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rc-breathe {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.rc-empty,
.empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 36px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.rc-card .rc-empty,
.rc-card .empty {
  margin: 0 16px 18px;
  padding: 4px 4px 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.rc-empty .rc-rule,
.empty .rc-rule {
  margin-top: 0;
}

.rc-empty p,
.empty p {
  margin: 4px 0 0;
  max-width: 38rem;
  color: var(--text-secondary);
}

.empty h1,
.rc-empty h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .rc-stats,
  .rc-links,
  .rc-spec,
  .rc-split {
    grid-template-columns: 1fr;
  }

  .rc-header {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px;
  }

  .rc-header::after {
    left: 16px;
    right: 16px;
  }

  .rc-search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }

  .rc-main {
    width: min(100% - 28px, 1240px);
  }

  .rc-pagehead {
    flex-direction: column;
    align-items: flex-start;
  }

  .rc-who {
    display: none;
  }

  .rc-sheet {
    padding: 24px 18px;
  }

  .rc-sheet-top,
  .rc-sheet-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .rc-sheet h1,
  .rc-sheet .rc-docno {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .rc-table:has(td[data-label]) thead {
    display: none;
  }

  .rc-table:has(td[data-label]),
  .rc-table:has(td[data-label]) tbody,
  .rc-table:has(td[data-label]) tr,
  .rc-table:has(td[data-label]) td {
    display: block;
    width: 100%;
  }

  .rc-table:has(td[data-label]) tr {
    padding: 12px 8px;
    border-bottom: 1px solid var(--table-line);
  }

  .rc-table:has(td[data-label]) tr:last-child {
    border-bottom: 0;
  }

  .rc-table:has(td[data-label]) td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 5px 8px;
    border-bottom: 0;
    text-align: right;
  }

  .rc-table:has(td[data-label]) td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body.rc-body {
    background: white;
  }

  .rc-stage-bar,
  .rc-no-print {
    display: none !important;
  }

  .rc-sheet {
    box-shadow: none;
    width: auto;
    border-radius: 0;
  }
}
