/* SuperintelligenceCompliance.ai only: industry pages and the dated change log.
   Loaded after styles.css and theme.css, which stay in step with the sister sites;
   anything specific to this site goes here instead. */
:root { --fs-card: 1.0625rem; }   /* 17px: change-log summaries, one step under 18px prose */

/* ---- Change-log entries ---- */
.upd-list { list-style: none; margin: 8px 0 28px; padding: 0; }
.upd { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 16px 20px; margin-bottom: 12px; }
.upd :is(h3, h4) { font-size: var(--fs-lg); line-height: 1.35; margin: 4px 0 8px; }
.upd p { margin: 0 0 8px; color: var(--ink-body); }
.upd > p:not([class]) { font-size: var(--fs-card); line-height: 1.65; max-width: 68ch; }
.upd > :last-child { margin-bottom: 0; }
.upd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.upd-meta .date { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.upd-type { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.upd-upcoming { border-style: dashed; }
.upd-upcoming .upd-type { color: #b45309; }
.upd-src, .upd-tags { font-size: var(--fs-sm); line-height: 1.55; }
.upd .upd-src, .upd .upd-tags { color: var(--ink-faint); }
.upd-tags-label { font-weight: 600; }

/* Compact rows: home, hub, older entries on industry pages */
.upd-compact { position: relative; padding: 12px 20px; margin-bottom: 8px; transition: border-color .15s; }
.upd-compact :is(h3, h4) { font-size: var(--fs-card); line-height: 1.4; margin: 2px 0 0; }
.upd-compact :is(h3, h4) a { color: var(--ink); text-decoration: none; }
.upd-compact :is(h3, h4) a::after { content: ""; position: absolute; inset: 0; }
.upd-compact:hover { border-color: var(--accent-mid); }
.upd-compact:hover :is(h3, h4) a { color: var(--accent); text-decoration: underline; }

/* Industry pages: entries sit inside .article-body, whose ol/li rules outrank the ones above */
.article-body .upd-list { margin: 8px 0 28px; }
.article-body .upd { margin: 0 0 12px; }
.article-body .upd-compact { margin-bottom: 8px; }
.ind-changes { margin-top: 48px; }
.ind-changes-lede { color: var(--ink-soft); font-size: var(--fs-ui); }
.ind-changes .upd-ahead { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.ind-changes-lede + .upd-ahead { margin-top: 8px; padding-top: 0; border-top: 0; }

/* Rules tables: no mid-word breaks in narrow columns */
.article-body td { hyphens: manual; }

/* ---- Home + hub ---- */
.section .upd-list { max-width: 760px; }
#library + .section { border-top: 1px solid var(--border); }   /* two white bands in a row need a seam */
.article-hero + .section { padding-top: 48px; }
@media (min-width: 861px) {
  .ind-grid:has(> .card:nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .ind-grid:has(> .card:nth-child(5):last-child) > .card { grid-column: span 2; }
  .ind-grid:has(> .card:nth-child(5):last-child) > .card:nth-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 621px) and (max-width: 860px) {
  .ind-grid:has(> .card:nth-child(5):last-child) > .card:first-child { grid-column: 1 / -1; }
}

/* ---- /updates ---- */
.upd-feeds { font-size: var(--fs-sm); color: var(--ink-soft); }
.upd-log { padding-bottom: 72px; }
.upd-month { margin-top: 40px; }
.upd-log .upd-month:first-of-type { margin-top: 0; }
.upd-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 32px; font-family: var(--sans); font-size: var(--fs-sm); }
.upd-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--ink-soft); text-decoration: none; }
.upd-jump a:hover { border-color: var(--accent-mid); color: var(--accent); }

@media (max-width: 640px) {
  .upd { padding: 14px 16px; }
  .upd-compact { padding: 12px 16px; }
  .upd-src a, .upd-tags a { padding-block: 4px; }      /* larger hit area, same layout */
  .ind-grid > .card { padding: 20px 22px; }
  .upd-jump a { min-height: 44px; }
}
