/* Skelmore Insights portal: layered on the research design system in style.css (same tokens, both themes).
   A publisher's catalogue, not a product page: covers carry the weight, type does the rest. */
:root { --card: var(--surface); --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow: 0 1px 2px rgb(0 0 0 / .4); } }
:root[data-theme="dark"] { --shadow: 0 1px 2px rgb(0 0 0 / .4); }

.mast .brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.mast .brand .tag { font: 600 .72rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
  border-left: 1px solid var(--rule); padding-left: 1rem; }
.mast nav a[aria-current="page"] { color: var(--brand); }

/* Catalogue */
.cat-hero { padding-block: 3.5rem 2.5rem; max-width: 820px; }
.cat-hero h1 { max-width: 16ch; }
.issue { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding-block: 2.5rem; border-top: 1px solid var(--rule); }
.issue.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.issue.flip .cover { order: 2; }
.cover { display: block; aspect-ratio: 210 / 297; max-width: 100%; box-shadow: var(--shadow); border: 1px solid var(--rule); overflow: hidden; background: var(--paper-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover:hover, .cover:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.issue h2 { margin-top: .5rem; }
.issue .dek { font-size: 1.15rem; max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-block: 1.5rem; border-top: 2px solid var(--brand); }
.facts div { padding: .9rem 1.2rem .9rem 0; border-right: 1px solid var(--rule); display: grid; gap: .25rem; align-content: start; }
.facts div + div { padding-left: 1.2rem; }
.facts div:last-child { border-right: 0; }
.facts b { font: 500 2rem/1 var(--f-display); color: var(--brand); font-variant-numeric: lining-nums tabular-nums; }
.facts b.cn { color: var(--cn); }
.facts span { font: 400 .82rem/1.35 var(--f-ui); color: var(--ink-2); }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.button { display: inline-flex; align-items: center; gap: .5rem; font: 600 .8rem/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase;
  padding: .85rem 1.1rem; border: 1px solid var(--brand); color: var(--brand); text-decoration: none; border-radius: 2px; background: transparent; cursor: pointer; }
.button.primary { background: var(--brand); color: var(--on-brand); }
.button:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.button small { font: 400 .72rem/1 var(--f-ui); letter-spacing: .04em; text-transform: none; opacity: .8; }
.button svg { width: 15px; height: 15px; flex: none; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 2.5rem; margin-top: 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; margin-block: 1.5rem 3rem; }
.card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--rule); min-width: 0; }
.card img { width: 100%; height: auto; aspect-ratio: 1200 / 627; object-fit: cover; display: block; border-bottom: 1px solid var(--rule); }
.card div { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .5rem; align-content: start; }
.card .kicker { font-size: .7rem; }
.card h3 { font: 600 1.25rem/1.25 var(--f-display); margin: 0; text-wrap: balance; }
.card p { font: 400 .95rem/1.5 var(--f-body); color: var(--ink-2); margin: 0; }
.card small { font: 400 .78rem/1 var(--f-ui); color: var(--ink-3); letter-spacing: .02em; }
.card:hover h3, .card:focus-visible h3 { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; padding-block: 2.5rem; border-top: 1px solid var(--rule); }
.about h3 { font: 600 1.15rem/1.3 var(--f-display); margin: 0 0 .5rem; }
.about p { color: var(--ink-2); font-size: 1rem; }

/* Article */
.art { padding-block: 3rem 1rem; }
.art h1 { max-width: 20ch; }
.art .meta { font: 400 .85rem/1.4 var(--f-ui); color: var(--ink-3); letter-spacing: .02em; margin-top: 1.2rem; }
.art p, .art li { font-size: 1.12rem; }
.art h2 { margin-top: 2.5rem; }
.art ul.points { padding-left: 1.2rem; }
.art ul.points li { margin-bottom: .5rem; }
.findings { list-style: none; padding: 0; margin: 2rem 0; border-top: 2px solid var(--brand); }
.findings li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.findings b { font: 500 2.2rem/1 var(--f-display); color: var(--brand); font-variant-numeric: lining-nums; }
.findings b.cn { color: var(--cn); }
.findings h3 { font: 600 1.15rem/1.3 var(--f-display); margin: 0 0 .3rem; }
.findings p { margin: 0; font-size: 1rem; color: var(--ink-2); }

.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-block: 1.6rem; }
.share .lbl { font: 600 .72rem/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-right: .3rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: .45rem; font: 500 .82rem/1 var(--f-ui); color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--rule); background: var(--surface); padding: .6rem .8rem; border-radius: 2px; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); }
.share a:focus-visible, .share button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.share a.li { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share a.li:hover { background: #004182; color: #fff; }
.share svg { width: 15px; height: 15px; flex: none; }
.share .copied { color: var(--brand); border-color: var(--brand); }
.share-end { border-top: 2px solid var(--brand); padding-top: 1.2rem; margin-top: 3rem; }
.share-end h3 { font: 600 1.2rem/1.3 var(--f-display); margin: 0; }

.cta { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 1.4rem; align-items: center; background: var(--paper-2);
  border-left: 3px solid var(--brand); padding: 1.3rem 1.4rem; margin-block: 2.5rem; }
.cta .cover { box-shadow: none; }
.cta h3 { font: 600 1.2rem/1.3 var(--f-display); margin: 0 0 .4rem; }
.cta p { font-size: 1rem; margin: 0 0 .9rem; color: var(--ink-2); }

.related { margin-top: 3rem; }

@media (max-width: 760px) {
  .issue, .issue.flip { grid-template-columns: minmax(0, 1fr); }
  .issue .cover, .issue.flip .cover { order: 0; max-width: 220px; }
  .mast .brand .tag { display: none; }
  .findings li { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta .cover { max-width: 120px; }
  .facts div { border-right: 0; }
  .facts div + div { padding-left: 0; }
}

/* Figures inside article grids stay in their column (style.css lets standalone figures break out). */
.art .grid2 .figure { width: auto; left: auto; transform: none; margin-block: 1rem; min-width: 0; }
