/* ESGTrack — Resources (update 112): the hubs and the reading page for guides, stories and insights. Loaded after site.css on
   resources/ pages only. Reading text is set at 18px with 1.72 leading in a column of at most 70 characters. */

/* ---------- hub ---------- */
.cm-hub-hero .pg-hero-copy, .cm-hero .pg-hero-copy { max-width: 860px; }
.cm-search { margin-top: 26px; max-width: 620px; }
.cm-search label { display: block; color: var(--on-dark-2); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.cm-search-row { display: flex; gap: 10px; }
.cm-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(167, 243, 208, .3); background: #fff; color: var(--ink); font: 16px var(--font); }
.cm-search input:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.cm-search .lp-btn { height: 48px; }
.cm-kinds { background: var(--white); border-bottom: 1px solid var(--line); }
.cm-kinds ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.cm-kinds a { display: inline-block; white-space: nowrap; padding: 15px 12px 13px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.cm-kinds a:hover { color: var(--ink); }
.cm-kinds a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); }
.cm-kinds :focus-visible { outline-color: var(--brand); outline-offset: -3px; }
.cm-hub { padding-top: 40px; }
.cm-hub-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 26px; }
.cm-count { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: 0; }
.cm-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-cats a, .cm-tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--white); }
.cm-cats a:hover, .cm-tags a:hover { border-color: var(--brand); color: var(--brand-600); }
.cm-cats a[aria-current] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.cm-clear { margin: 0; font-size: 14.5px; }
.cm-clear a { color: var(--brand-600); }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.cm-card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.cm-card:hover { border-color: #c7d6cd; box-shadow: var(--shadow); }
.cm-card.is-featured { border-color: #bfe0cd; background: linear-gradient(180deg, var(--brand-50), var(--white) 70%); }
.cm-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.cm-kind { font-weight: 700; color: var(--brand-600); }
.cm-card-t { font-size: 20px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.01em; }
.cm-card-t a { color: var(--ink); text-decoration: none; }
.cm-card-t a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.cm-card-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-card-t a:focus-visible { outline: none; }
.cm-card:has(.cm-card-t a:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.cm-card-sum { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cm-card-foot { margin: auto 0 0; display: flex; gap: 14px; font-size: 13.5px; color: var(--muted); }
.cm-flag { display: inline-block; align-self: flex-start; margin: -2px 0 10px; padding: 2px 9px; border: 1px dashed #8995a3; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #3d4757; }
.cm-pager ul { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cm-pager a, .cm-pager span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.cm-pager span[aria-current] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.cm-empty { padding: 40px; border: 1px dashed #c7d0d9; border-radius: 18px; text-align: center; color: var(--muted); }
.cm-empty a { color: var(--brand-600); }

/* ---------- the reading page ---------- */
.cm-preview { background: var(--warn-50); border-bottom: 1px solid #f1dcae; color: #5b3b00; padding: 10px 0; font-size: 14.5px; }
.cm-preview a { color: inherit; font-weight: 700; }
.cm-hero-kind { margin: 18px 0 10px; font-size: 14px; font-weight: 600; color: var(--on-dark-2); }
.cm-hero-kind a { color: var(--mint-2); text-decoration: none; }
.cm-hero-kind a:hover { text-decoration: underline; }
.cm-hero h1 { max-width: 22ch; }
.cm-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 20px 0 0; color: var(--on-dark-2); font-size: 14.5px; }
.cm-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: center; gap: 56px; padding-top: 56px; padding-bottom: 72px; }
.cm-layout.has-toc { grid-template-columns: 236px minmax(0, 720px); }
.cm-layout :focus-visible, .cm-related :focus-visible, .cm-hub :focus-visible { outline-color: var(--brand); }
.cm-article { min-width: 0; max-width: 720px; width: 100%; justify-self: center; }
.cm-layout.has-toc .cm-article { justify-self: start; }
.cm-toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; font-size: 14.5px; }
.cm-toc summary { font-weight: 700; color: var(--ink); cursor: pointer; padding: 4px 0 10px; list-style: none; }
.cm-toc summary::-webkit-details-marker { display: none; }
.cm-toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.cm-toc li a { display: block; padding: 6px 0 6px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.cm-toc li.is-h3 a { padding-inline-start: 26px; font-size: 13.5px; }
.cm-toc li a:hover { color: var(--ink); }
.cm-toc li a.is-here { color: var(--brand-600); border-inline-start-color: var(--brand); font-weight: 600; }
.cm-short { margin: 0 0 34px; padding: 18px 22px; border: 1px solid #cde5d7; border-radius: 16px; background: var(--brand-50); }
.cm-short h2 { margin: 0 0 6px; font-size: 13.5px; font-weight: 800; color: var(--brand-600); letter-spacing: 0; }
.cm-short p { margin: 0; font-size: 17.5px; line-height: 1.65; color: var(--ink); }
.cm-body { font-size: 18px; line-height: 1.72; color: var(--ink-2); }
.cm-body > :first-child { margin-top: 0; }
.cm-body h2 { margin: 52px 0 14px; font-size: 28px; line-height: 1.22; color: var(--ink); letter-spacing: -.018em; scroll-margin-top: 92px; }
.cm-body h3 { margin: 34px 0 10px; font-size: 21px; line-height: 1.3; color: var(--ink); scroll-margin-top: 92px; }
.cm-body h4 { margin: 26px 0 8px; font-size: 18px; color: var(--ink); scroll-margin-top: 92px; }
.cm-body p { margin: 0 0 18px; }
.cm-body ul, .cm-body ol { margin: 0 0 20px; padding-inline-start: 24px; }
.cm-body li { margin: 6px 0; }
.cm-body a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.cm-body a:hover { text-decoration-thickness: 2px; }
.cm-body strong { color: var(--ink); }
.cm-body code { font: .86em var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.cm-body blockquote { margin: 0 0 20px; padding: 2px 0 2px 18px; border-inline-start: 3px solid #c9d6ce; color: var(--muted); }
.cm-body blockquote > :last-child, .cm-callout > :last-child { margin-bottom: 0; }
.cm-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.cm-code { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; background: #0d1b14; color: #e3f4ea; overflow-x: auto; font: 14px/1.6 var(--mono); }
.cm-code code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.cm-callout { margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); font-size: 16.5px; line-height: 1.65; }
.cm-callout-t { margin: 0 0 6px !important; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.cm-callout.is-note { background: #eef5fb; border-color: #cfe0f1; }
.cm-callout.is-example { background: var(--brand-50); border-color: #cde5d7; }
.cm-callout.is-warning { background: var(--warn-50); border-color: #f1dcae; }
.cm-callout.is-illustrative { background: var(--white); border: 1px dashed #8995a3; }
.cm-table-wrap { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: var(--white); }
.cm-table { font-size: 15px; }
.cm-table .is-center { text-align: center; }
.cm-table .is-end { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-fig { margin: 0 0 24px; }
.cm-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.cm-fig figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.cm-cite { line-height: 0; }
.cm-cite a { font-size: .72em; font-weight: 700; text-decoration: none; padding: 0 2px; }
.cm-refs { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.cm-refs h2 { font-size: 21px; margin: 0 0 12px; color: var(--ink); }
.cm-refs ol { margin: 0; padding-inline-start: 24px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cm-refs li { margin: 6px 0; scroll-margin-top: 92px; }
.cm-refs li:target { background: var(--brand-50); border-radius: 6px; }
.cm-refs a { color: var(--brand-600); overflow-wrap: anywhere; }
.cm-reviewed { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.cm-tags { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-share { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cm-share-h { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.cm-share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-share a, .cm-copy { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink-2); font: 600 14px var(--font); text-decoration: none; cursor: pointer; }
.cm-share a:hover, .cm-copy:hover { border-color: var(--brand); color: var(--brand-600); }
.cm-copy-msg { margin: 0; font-size: 14px; color: var(--brand-600); min-height: 1em; }
.cm-author { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.cm-author-n { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.cm-author-n span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
.cm-author p:last-child { margin-bottom: 0; }
.cm-related .pg-h2 { margin-bottom: 22px; }

@media (max-width: 1099px) {
  .cm-layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cm-layout.has-toc .cm-article { justify-self: center; }
  .cm-toc { position: static; max-height: none; margin: 0 auto 30px; width: 100%; max-width: 720px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
  .cm-toc summary { padding: 2px 0; }
  .cm-toc details[open] summary { padding-bottom: 10px; }
  .cm-toc summary::after { content: "+"; float: inline-end; font-weight: 700; color: var(--brand-600); }
  .cm-toc details[open] summary::after { content: "−"; }
}
@media (max-width: 640px) {
  .cm-layout { padding-top: 36px; padding-bottom: 56px; }
  .cm-body { font-size: 17px; }
  .cm-body h2 { font-size: 24px; margin-top: 42px; }
  .cm-body h3 { font-size: 19px; }
  .cm-search-row { flex-direction: column; }
  .cm-search .lp-btn { width: 100%; }
  .cm-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .cm-card { transition: none; } }
@media print {
  .lp-header, .lp-footer, .cm-toc, .cm-share, .cm-related, .pg-cta, .cm-preview { display: none !important; }
  .cm-hero { background: none !important; color: #000; padding: 0; }
  .cm-hero h1, .cm-hero-meta, .cm-hero-kind a { color: #000 !important; }
  .cm-layout { display: block; padding: 0; }
  .cm-body a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; overflow-wrap: anywhere; }
}
