/* Shared left-rail and filterable card board. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.svc-board {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  width: 100%;
  max-width: calc(var(--wrap) + 16rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) var(--sec-pad);
}
.svc-rail { position: sticky; top: 5rem; align-self: start; }
.svc-rail h1 { margin: 1rem 0 1.6rem; }
.svc-rail h1 em { display: block; color: var(--accent); font-style: normal; }
.operator-rule { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: .9rem; align-items: center; overflow: hidden; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper-2); }
.operator-rule::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
.operator-rule img { width: 58px; height: 58px; border-radius: var(--radius); object-fit: cover; object-position: center 20%; }
.operator-rule small { display: block; margin-bottom: .25rem; font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.operator-rule strong { display: block; font-family: var(--ff-display); font-size: .96rem; line-height: 1.3; }
.svc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.35rem; border-block: 1px solid var(--line); }
.svc-stat { min-width: 0; padding: .75rem .5rem .75rem 0; border-right: 1px solid var(--line); }
.svc-stat + .svc-stat { padding-left: .65rem; }
.svc-stat:last-child { border-right: 0; }
.svc-stat strong { display: block; font-family: var(--ff-mono); font-size: 1rem; color: var(--ink); }
.svc-stat small { display: block; font-family: var(--ff-mono); font-size: .55rem; letter-spacing: .08em; line-height: 1.35; color: var(--muted); }
.svc-rail .btn { width: 100%; justify-content: space-between; }

.svc-grid-wrap { min-width: 0; }
.svc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.svc-toolbar-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .65rem; align-items: center; min-width: 0; }
.svc-toolbar-dot { grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.svc-toolbar strong { font-family: var(--ff-display); font-size: 1rem; line-height: 1.2; }
.svc-toolbar small { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.svc-filters { display: flex; flex: none; flex-wrap: wrap; gap: .4rem; }
.svc-filter { border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--muted); padding: .45rem .65rem; font-family: var(--ff-mono); font-size: .66rem; cursor: pointer; }
.svc-filter:hover { color: var(--ink); border-color: var(--ink); }
.svc-filter.is-active { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.svc-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-note { margin: 0 0 1.35rem; padding: .8rem .95rem; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--paper-2); color: var(--muted); font-size: .8rem; line-height: 1.55; }
.svc-note strong { color: var(--ink); }
.svc-note span { display: block; margin-top: .3rem; }
.svc-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.svc-note a:hover { color: var(--accent); }
/* 250px keeps the board three-up from ~800px of grid width, so a 1280–1440px
   laptop shows 3 across rather than dropping to 2 and doubling the scroll. */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; align-items: stretch; }

.svc-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-color .16s ease;
}
.svc-card[hidden] { display: none; }
.svc-cover { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper-3); }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; }
.svc-cover.is-type { position: relative; display: flex; align-items: flex-end; padding: 1.25rem; border-top: 4px solid var(--accent); }
.svc-cover.is-type span { max-width: 9ch; font-family: var(--ff-display); font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.035em; line-height: .95; color: var(--ink); }
.svc-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 1.15rem 3rem 1.35rem 1.2rem; }
.svc-card h2 { margin: 0 0 .55rem; font-family: var(--ff-display); font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.018em; line-height: 1.08; }
.svc-value { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.svc-go { position: absolute; right: 1.15rem; bottom: 1.15rem; color: var(--accent); font-family: var(--ff-mono); font-size: 1.2rem; line-height: 1; transition: transform .16s ease; }
.svc-card:hover { border-color: var(--line-2); }
.svc-card:hover .svc-go { transform: translateX(4px); }
.svc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-color: var(--line-2); }
.svc-card:focus-visible .svc-go { transform: translateX(4px); }

@media (max-width: 1000px) {
  .svc-board { grid-template-columns: minmax(0, 1fr); }
  .svc-rail { position: static; }
  .svc-rail .display { max-width: 8ch; }
  .svc-rail .btn { width: auto; }
  .operator-rule { max-width: 620px; }
  .svc-stats { max-width: 620px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .svc-toolbar { align-items: flex-start; flex-direction: column; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .svc-board { padding-top: 2.75rem; }
  .svc-stat small { font-size: .5rem; letter-spacing: .04em; }
  .svc-rail .btn { width: 100%; }
  .svc-filters { width: 100%; }
  .svc-filter { flex: 1 1 auto; }
}

/* Compact Company OS roster; shares the board's theme tokens and filters. */
.os-list { list-style: none; margin: 0; padding: 0; font-family: var(--ff-body); }
.os-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: .8rem .5rem;
  border-bottom: 1px solid var(--line);
}
.os-row[hidden] { display: none; }
.os-row:nth-last-child(1 of :not([hidden])) { border-bottom: 0; }
.os-tag { color: var(--accent); font-family: var(--ff-mono); font-size: .7rem; font-weight: 600; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.os-row-body { min-width: 0; overflow-wrap: anywhere; }
.os-row h3 { margin: 0 0 .2rem; color: var(--ink); font-family: var(--ff-body); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.os-row h3 a { color: var(--ink); text-decoration: none; }
.os-row h3 a:hover, .os-row h3 a:focus { color: var(--accent); }
.os-row h3 a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.os-row-body p { margin: 0; color: var(--ink-soft); font-size: .875rem; line-height: 1.45; }
.os-go { color: var(--accent); font-family: var(--ff-mono); font-size: 1.1rem; line-height: 1; transition: transform .16s ease; }
.os-row:hover, .os-row:focus-within { background: var(--paper-2); }
.os-row:hover .os-go, .os-row:focus-within .os-go { transform: translateX(3px); }

@media (max-width: 520px) {
  .os-row { grid-template-columns: minmax(0, 1fr) 1rem; gap: .35rem .75rem; }
  .os-tag { grid-column: 1; grid-row: 1; }
  .os-row-body { grid-column: 1; grid-row: 2; }
  .os-go { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .os-go { transition: none; }
}
