/* Open Source section styles (loaded after style.css, directory.css, supply-chain-atlas.css, profiles.css).
   Uses only existing Stone Light / Dark tokens from style.css. No pill chips for licenses. */

/* ---- Aligned license-by-part ledger (shared across hub, category tables, and company profiles) ---- */
.os-lic-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.os-lic-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  gap: 2px 12px;
  align-items: baseline;
  padding: 5px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.os-lic-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.os-lic-row:last-child {
  padding-bottom: 2px;
}

/* Unusual terms are marked typographically (italic semibold --ink-2), not with an accent rule. */
.os-lic-row--flag {
}

.os-lic-row dt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink-2);
}

.os-lic-row dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.os-lic-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
}

.os-lic-code:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.os-lic-term {
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

a.os-lic-term:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.os-nowrap {
  white-space: nowrap;
}

.os-lic-tagwrap {
  white-space: normal;
}

.os-lic-sep {
  color: var(--muted);
  user-select: none;
}

.os-lic-sub {
  font-size: 12.5px;
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.os-lic-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  padding-left: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
}

.os-status-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink-2);
}

.os-lic-note a {
  color: var(--link);
}

/* ---- Hub: Weekly project spotlight (Stone Light card, no dark fill) ---- */
.os-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
  margin: 22px 0 34px;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-container);
}

.os-spot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.os-spot-meta .kind {
  margin: 0;
  color: var(--warm-ink);
}

.os-spot-meta a {
  color: var(--ink-2);
  font-weight: 600;
}

.os-spotlight h2 {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.os-spot-by {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.os-spot-by a {
  color: var(--ink-2);
  font-weight: 600;
}

.os-spot-desc {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.os-spot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.os-spot-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.os-spot-primary:hover {
  text-decoration-thickness: 3px;
}

.os-spot-ext {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--link);
}

.os-spotlight-ledger {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-el);
}

.os-ledger-head {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.os-spotlight-ledger .os-lic-row {
  grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 1fr);
}

.os-spotlight-ledger .os-lic-note {
  margin-top: 10px;
  padding-top: 8px;
  padding-left: 0;
  border-top: 1px solid var(--line);
}

/* ---- License terms guide shared by the hub and categories ---- */
.os-license-guide {
  max-width: 46rem;
  margin: 28px 0 0;
}

.os-license-guide h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 16px;
  color: var(--ink-2);
}

.os-license-guide > .fine {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

.os-license-guide > .fine + .fine {
  margin-top: 6px;
}

.os-guide-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.os-guide-list dt {
  font-size: 13.5px;
  font-weight: 700;
  font-style: italic;
  color: var(--ink-2);
}

.os-guide-list dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Desktop: three equal columns, label above explanation, hairline between. */
@media (min-width: 760px) {
  .os-guide-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
  }

  .os-guide-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }

  .os-guide-row:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .os-guide-row:last-child {
    padding-right: 0;
  }

  .os-guide-list dd {
    margin: 0;
  }
}

/* Horizontal signup band in category project tables, after the 4th visible project.
   On desktop the tint matches the table row (the content column). On phone it
   bleeds to the viewport edges by pulling out of the 22px wrap padding, while
   the band contents stay aligned with the project text. On phone the band
   draws its own full-width top and bottom borders, and neighboring project
   row dividers that would stub or double against the tint are suppressed.
   Inside, a stacked group (heading, form, note) uses the footer card type
   sizes and is centered as a block, with contents left-aligned. */
.atlas .atlas-table tbody tr.os-inline-signup-row,
.atlas .atlas-table tbody tr.os-inline-signup-row:hover {
  background: color-mix(in srgb, var(--soft) 85%, var(--bg));
}

.atlas .atlas-table tbody tr.os-inline-signup-row > td {
  padding: 0;
  border-bottom: 1px solid var(--line);
  overflow: visible;
  background: color-mix(in srgb, var(--soft) 85%, var(--bg));
}

.os-inline-signup-band.sub,
.os-inline-signup-band {
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 22px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.os-inline-signup-group {
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem; /* ~ the footer form row (320px field + gap + Subscribe) */
  text-align: left;
}

.os-inline-signup-band .sub-h {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
}

.os-inline-signup-band .sub-fine {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}

.os-inline-signup-band form {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 10px !important;
  margin: 0;
}

.os-inline-signup-band .sub-field {
  flex: none;
  width: 320px;
  max-width: 100%;
  gap: 0;
}

.os-inline-signup-band input[type=email] {
  width: 100%;
  height: auto;
  min-height: 44px;
  font-size: 16px;
  padding: 8px 12px;
}

.os-inline-signup-band input[type=submit] {
  width: auto !important;
  min-width: 0;
  height: auto;
  min-height: 44px;
  padding: 8px 20px;
  font-size: 16px;
}

@container (max-width: 759px) {
  .atlas .os-table tr.os-inline-signup-row {
    display: block !important;
    box-sizing: border-box;
    grid-template-columns: none !important;
    width: auto;
    /* 22px matches .wrap side padding so the tint reaches the viewport edge. */
    margin-inline: -22px;
    padding-block: 0 !important;
    padding-inline: 22px !important;
    border-top: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
    row-gap: 0 !important;
    background: color-mix(in srgb, var(--soft) 85%, var(--bg));
  }

  /* One full-bleed line at each edge of the tint; drop inset stubs. */
  .atlas .os-table tr:has(+ tr.os-inline-signup-row:not([hidden])) {
    border-bottom: none !important;
  }

  .atlas .os-table tr.os-inline-signup-row:not([hidden]) + tr {
    border-top: none !important;
  }

  .atlas .os-table tr.os-inline-signup-row td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border-bottom: 0 !important;
    background: transparent;
  }

  .os-inline-signup-band.sub,
  .os-inline-signup-band {
    display: flex !important;
    justify-content: center;
    padding: 16px 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .os-inline-signup-group {
    max-width: 28rem;
  }

  .os-inline-signup-band .sub-h {
    font-size: 17px;
    margin: 0 0 12px;
  }

  .os-inline-signup-band .sub-fine {
    font-size: 13px;
    margin: 12px 0 0;
  }

  .os-inline-signup-band form {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  .os-inline-signup-band .sub-field {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 759px) {
  /* Allow the phone full-bleed tint to escape the table wrapper. */
  .atlas .os-tablewrap {
    overflow: visible;
  }

  .os-inline-signup-band.sub,
  .os-inline-signup-band {
    display: flex !important;
    justify-content: center;
  }

  .os-inline-signup-band .sub-h {
    font-size: 17px;
  }
}

@media (max-width: 359.98px) {
  .os-inline-signup-band form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .os-inline-signup-band .sub-field {
    flex: none;
    width: 100%;
  }

  .os-inline-signup-band input[type=submit] {
    width: 100% !important;
  }
}

/* ---- Category project controls ---- */
.os-controls {
  margin-top: 14px;
}

.os-controls .dir-search {
  flex: 1 1 240px;
}

.os-controls .dir-select {
  flex: 0 1 180px;
}

.os-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 8px 0 10px;
}

.os-meta-bar .dir-count {
  margin: 0;
}

.os-sort {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

.os-sort select {
  appearance: none;
  field-sizing: content;
  padding: 4px 14px 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.os-sort::after {
  content: "";
  position: absolute;
  inset-inline-end: 2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

.os-sort select:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* Open Source table column proportions and sticky header */
.atlas .os-table .c-proj {
  width: 19%;
}

.atlas .os-table .c-co {
  width: 12%;
}

.atlas .os-table .c-desc {
  width: 25%;
}

.atlas .os-table .c-lic {
  width: 44%;
}

/* Inside the table, one shared part-name column per project (as wide as its longest part name, up to 8rem)
   so license names start at the same x and get the rest of the cell. Short SPDX identifiers stay on one
   line; longer license names wrap at word boundaries so they cannot stretch the page. */
.atlas .os-table .os-lic-list {
  grid-template-columns: fit-content(8rem) minmax(0, 1fr);
}

.atlas .os-table .os-lic-row {
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  column-gap: 12px;
}

.atlas .os-table .os-lic-row dd {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.os-proj-link {
  display: inline;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.os-proj-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.os-ext-arrow {
  display: inline-block;
  margin-left: 3px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.os-co-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.os-co-link:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.atlas .os-table tbody tr:target {
  background: var(--warm-bg);
}

.atlas .os-table tbody tr:target > th {
  box-shadow: inset 3px 0 0 var(--accent);
}

@media (min-width: 760px) {
  .atlas .os-tablewrap {
    overflow: visible;
  }

  .atlas .os-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg);
    box-shadow: inset 0 -1px 0 var(--line);
  }
}

/* ---- Long-list pagination / Show more footer (scales to 50-200+ rows) ---- */
.os-list-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.os-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.os-progress-label {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.os-progress-track {
  width: 180px;
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.os-progress-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.os-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.os-more-btn {
  min-height: 44px;
  padding: 8px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-el);
  background: var(--card);
  color: var(--ink);
  font: 700 14.5px/1.2 var(--font-body);
  cursor: pointer;
}

.os-more-btn:hover:not(:disabled) {
  background: var(--soft);
}

.os-more-btn:disabled {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: default;
}

.os-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.os-top-link:hover {
  color: var(--ink);
}

/* ---- Company profile Open Source chapter (fits inside .profile-chapter) ---- */
.os-profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.os-profile-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.os-profile-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.os-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  margin-bottom: 4px;
}

.os-profile-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.os-profile-name:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.os-profile-cat {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.os-profile-desc {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.os-profile-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.os-profile-foot a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ---- Responsive adjustments for Open Source content ---- */
@media (max-width: 860px) {
  .os-spotlight {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
}

@container (max-width: 759px) {
  .atlas .os-table tr {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    padding: 16px 2px;
  }

  .atlas .os-table .c-proj {
    grid-column: 1;
    grid-row: auto;
    font-size: 16px;
  }

  .atlas .os-table .c-co {
    grid-column: 1;
    font-size: 14px;
    color: var(--ink-2);
  }

  .atlas .os-table .c-lic {
    margin-top: 6px;
  }

  .atlas .os-table td[data-label]::before {
    margin-bottom: 6px;
    font-size: 12.5px;
    color: var(--ink-2);
  }

  .atlas .os-table .os-lic-list {
    grid-template-columns: fit-content(9rem) minmax(0, 1fr);
    gap: 8px 0;
  }

  .atlas .os-table .os-lic-row,
  .atlas .os-table .os-lic-row:first-child,
  .atlas .os-table .os-lic-row:last-child {
    border-top: 0;
    padding: 0;
  }
}

@media (max-width: 759px) {
  .os-lic-row,
  .os-lic-row:first-child,
  .os-lic-row:last-child {
    border-top: 0;
  }

  .os-profile-item .os-lic-list {
    margin-top: 4px;
    gap: 8px;
  }

  .os-profile-item .os-lic-row,
  .os-profile-item .os-lic-row:first-child,
  .os-profile-item .os-lic-row:last-child {
    border-top: 0;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .os-spotlight {
    padding: 16px;
  }

  .os-spotlight h2 {
    font-size: 22px;
  }

  .os-spotlight-ledger {
    padding: 14px;
  }

  .os-controls .dir-select {
    flex: 1 1 140px;
  }

  .os-meta-bar {
    gap: 4px 8px;
  }

  .os-list-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .os-progress-track {
    width: 100%;
  }

  .os-more-btn {
    width: 100%;
  }

  .os-lic-row {
    grid-template-columns: 1fr;
    gap: 1px;
    padding-block: 6px;
  }

  .os-lic-row dt {
    font-size: 12.5px;
  }

  .os-lic-row dd {
    min-height: 28px;
  }
}

/* ---- Design recs (Nov 29): repo name under title, credit notes, hub "and N more", spotlight overflow ---- */
.os-repo-name { display:block; margin:2px 0 1px; font-family:var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.os-credit-note { margin:4px 0 0; font-size:12.5px; line-height:1.4; color:var(--muted); }
.cat-card-more { position:relative; z-index:1; font-weight:600; white-space:nowrap; }
/* Open Source hub only. The project count is a link after the sample names.
   Beat style.css / atlas margin:auto so leftover row-height space stays below the link.
   Reset the shared count typography so the link matches .cat-card-more. */
.atlas.cat-page[data-view="hub"] .cat-card-count {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: inherit;
  letter-spacing: 0;
  color: inherit;
  display: block;
}
/* Same 600px breakpoint as style.css .cat-grid going to 1 column.
   960px is still a 3-column desktop grid, so "See all" stays visible there.
   Use the site .vh visually-hidden pattern, not display:none, so the
   accessible name stays "See all N projects" on the phone too. */
@media (max-width: 600px) {
  .atlas.cat-page[data-view="hub"] .cat-card-see {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
.atlas details.os-spot-more,
.atlas details.os-lic-more,
details.os-spot-more,
details.os-lic-more {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.atlas details.os-spot-more > summary,
.atlas details.os-lic-more > summary,
details.os-spot-more > summary,
details.os-lic-more > summary {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 0 2px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  min-height: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  list-style: none;
}
.atlas details.os-spot-more > summary::-webkit-details-marker,
.atlas details.os-lic-more > summary::-webkit-details-marker,
details.os-spot-more > summary::-webkit-details-marker,
details.os-lic-more > summary::-webkit-details-marker {
  display: none;
}
.atlas details.os-spot-more > summary::before,
.atlas details.os-lic-more > summary::before,
details.os-spot-more > summary::before,
details.os-lic-more > summary::before {
  content: none;
  display: none;
}
.atlas details.os-spot-more > summary:hover,
.atlas details.os-lic-more > summary:hover,
details.os-spot-more > summary:hover,
details.os-lic-more > summary:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.atlas details.os-spot-more > summary:focus,
.atlas details.os-lic-more > summary:focus,
details.os-spot-more > summary:focus,
details.os-lic-more > summary:focus {
  outline: none;
}
.atlas details.os-spot-more > summary:focus-visible,
.atlas details.os-lic-more > summary:focus-visible,
details.os-spot-more > summary:focus-visible,
details.os-lic-more > summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.atlas details.os-spot-more > :not(summary),
.atlas details.os-lic-more > :not(summary),
details.os-spot-more > :not(summary),
details.os-lic-more > :not(summary) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.atlas details.os-spot-more > :last-child,
.atlas details.os-lic-more > :last-child,
details.os-spot-more > :last-child,
details.os-lic-more > :last-child {
  margin: 0;
}
/* Extra rows continue the same ledger: keep the hairline, same columns, no indent. */
.os-lic-list-rest .os-lic-row:first-child {
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding-top: 5px;
}
@media (max-width: 759px) {
  .os-lic-list-rest .os-lic-row:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* Deep links: clear the sticky table header (desktop) and leave breathing room. */
.atlas .os-table tbody tr[id], .atlas .os-spotlight, .atlas [id].os-profile-item { scroll-margin-top:16px; }
@media (min-width: 760px) { .atlas .os-table tbody tr[id] { scroll-margin-top:60px; } }

/* Hub company filter: /open-source/?company=<id> */
.os-company-view {
  margin: 0 0 32px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
}
.os-company-view h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.os-company-view h3 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
}
.os-company-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.os-company-list li {
  break-inside: avoid;
  padding: 4px 0;
  line-height: 1.4;
}
.os-company-back {
  margin: 20px 0 0;
}
@media (max-width: 759.98px) {
  .os-company-list { columns: 1; }
}
