:root {
  color-scheme: light;
  --ink: #171712;
  --muted: #69685f;
  --line: #dcd9ce;
  --paper: #f0f2ed;
  --card: #fffefa;
  --teal: #0b695e;
  --teal-dark: #064c44;
  --positive: #08775c;
  --negative: #b13b32;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(11, 105, 94, .08), transparent 26rem),
    var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding-inline: 20px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand img { display: block; width: 174px; height: auto; }
.site-header nav,
footer nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a,
footer a { font-size: 14px; font-weight: 600; text-decoration: none; }
.site-header nav a:hover,
footer a:hover { color: var(--teal); }
.site-header .nav-cta {
  padding: 10px 15px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
}
.site-header .nav-cta:hover,
.site-header .nav-cta:focus-visible {
  color: #fff;
  background: var(--teal-dark);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 26px 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); }

.stock-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 34px 0 42px;
}
.stock-identity { display: flex; align-items: center; gap: 20px; }
.stock-identity img {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.asset-badge {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--teal), #168f80);
  border: 1px solid rgba(6, 76, 68, .22);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  font: 800 15px/1 "Manrope", sans-serif;
  letter-spacing: -.02em;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--teal);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
h1 { max-width: 780px; font-size: clamp(36px, 5.8vw, 66px); line-height: 1.01; letter-spacing: -.035em; }
.stock-hero h1 { font-size: clamp(34px, 4.7vw, 58px); }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; }
.sector { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.quote { min-width: 245px; display: grid; justify-items: end; }
.quote > span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.quote strong { margin: 4px 0 2px; font: 700 clamp(34px, 4vw, 50px)/1 "Manrope", sans-serif; letter-spacing: -.045em; }
.quote em { font-style: normal; font-weight: 700; }
.quote small { margin-top: 8px; color: var(--muted); }
.is-positive { color: var(--positive); }
.is-negative { color: var(--negative); }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.metric-strip article { padding: 23px 24px; border-right: 1px solid var(--line); }
.metric-strip article:first-child { padding-left: 0; }
.metric-strip article:last-child { border-right: 0; }
.metric-strip span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric-strip strong { font: 700 21px/1.2 "Manrope", sans-serif; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr); gap: 24px; padding: 54px 0; }
.content-card {
  background: rgba(255, 254, 250, .82);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 44px);
}
.answer-card > p:not(.eyebrow) { max-width: 720px; color: #4e4d46; font-size: 17px; line-height: 1.72; }
.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 17px;
  color: #fff;
  background: var(--teal);
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
}
.primary-cta:hover { background: var(--teal-dark); }
.fundamentals-card dl { margin: 26px 0 0; }
.fundamentals-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.fundamentals-card dt { color: var(--muted); }
.fundamentals-card dd { margin: 0; font-weight: 700; text-align: right; }

.peer-section { padding: 18px 0 62px; }
.section-heading { margin-bottom: 24px; }
.peer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.peer-grid a {
  display: grid;
  gap: 7px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}
.peer-grid a:hover { border-color: var(--teal); transform: translateY(-1px); }
.peer-grid a strong { line-height: 1.25; }
.peer-grid a span,
.stock-seo-empty { color: var(--muted); font-size: 13px; }

.directory-hero { max-width: 800px; padding: 64px 0 44px; }
.directory-hero h1 { margin: 8px 0 14px; font-family: "DM Serif Display", serif; font-size: clamp(40px, 6vw, 68px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.directory-hero > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.directory-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.secondary-cta { display: inline-flex; align-items: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; }
.directory-section { margin-bottom: 32px; }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.directory-heading > span { flex: none; color: var(--muted); font-size: 13px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.directory-stock { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; min-height: 126px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.directory-stock:hover { transform: translateY(-2px); border-color: rgba(11,105,94,.42); }
.directory-symbol { color: var(--accent); font: 700 11px/1.2 "Manrope", sans-serif; letter-spacing: .08em; }
.directory-stock strong { grid-column: 1 / -1; overflow: hidden; font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.directory-stock small { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.directory-quote { display: flex; grid-column: 1 / -1; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 5px; }
.directory-quote b { font-size: 15px; }
.directory-quote em { font-size: 12px; font-style: normal; font-weight: 700; }
.directory-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 28px 0 4px; }
.directory-pagination a, .directory-pagination span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; }
.directory-pagination span[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: #fff; }

body[data-cm-marketing-footer-only] :is(.content-card, .peer-grid a, .directory-stock) {
  border-radius: 18px !important;
}
body[data-cm-marketing-footer-only] :is(.stock-identity img, .asset-badge) {
  border-radius: 18px !important;
}

@media (max-width: 900px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .directory-hero { padding-top: 42px; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-heading { align-items: start; flex-direction: column; }
}

.methodology { max-width: 850px; padding: 0 0 66px; }
.methodology h2 { font-size: 26px; }
.methodology p { color: var(--muted); font-size: 14px; line-height: 1.65; }
footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}
footer > div { display: grid; gap: 5px; }
footer span { color: var(--muted); font-size: 13px; }

body[data-cm-marketing-footer-only] .cm-marketing-footer {
  width: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 44px 40px 26px;
  display: block;
  border-top: 0;
  background: #fff;
}
body[data-cm-marketing-footer-only] .cm-marketing-footer-inner {
  width: 100%;
  max-width: 1368px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, .8fr));
  gap: 32px;
}
body[data-cm-marketing-footer-only] .cm-marketing-footer-brand {
  display: block;
}
body[data-cm-marketing-footer-only] .cm-marketing-footer-brand img {
  display: block;
  width: auto;
  height: 32px;
  margin-bottom: 18px;
}
body[data-cm-marketing-footer-only] .cm-marketing-footer-brand p,
body[data-cm-marketing-footer-only] .cm-marketing-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
body[data-cm-marketing-footer-only] .cm-marketing-footer nav {
  display: grid;
  align-content: start;
  align-items: initial;
  gap: 12px;
}
body[data-cm-marketing-footer-only] .cm-marketing-footer strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body[data-cm-marketing-footer-only] .cm-marketing-footer a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
body[data-cm-marketing-footer-only] .cm-marketing-footer a:hover { color: var(--teal); }
body[data-cm-marketing-footer-only] .cm-marketing-footer-meta {
  width: 100%;
  max-width: 1368px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
body[data-cm-marketing-footer-only] .cm-marketing-footer-meta .cm-marketing-disclaimer {
  max-width: 820px;
  padding: 0;
  border: 0;
}
body[data-cm-marketing-footer-only] .cm-marketing-copyright {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .site-header nav > a:not(.nav-cta) { display: none; }
  .stock-hero { align-items: start; flex-direction: column; }
  .quote { justify-items: start; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip article { border-bottom: 1px solid var(--line); }
  .metric-strip article:nth-child(2) { border-right: 0; }
  .metric-strip article:nth-child(3), .metric-strip article:nth-child(4) { border-bottom: 0; }
  .metric-strip article:nth-child(3) { padding-left: 0; }
  .content-grid { grid-template-columns: 1fr; }
  .peer-grid { grid-template-columns: repeat(2, 1fr); }
  body[data-cm-marketing-footer-only] .cm-marketing-footer { padding: 36px 20px 24px; }
  body[data-cm-marketing-footer-only] .cm-marketing-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  body[data-cm-marketing-footer-only] .cm-marketing-footer-brand { grid-column: 1 / -1; }
  body[data-cm-marketing-footer-only] .cm-marketing-footer-meta { margin-top: 30px; padding-top: 18px; flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
  main, footer { width: min(100% - 28px, 1180px); }
  .site-header { width: 100%; min-height: 68px; padding-inline: 14px; }
  .brand img { width: 150px; }
  .stock-identity { align-items: flex-start; gap: 13px; }
  .stock-identity img { width: 54px; height: 54px; flex-basis: 54px; border-radius: 13px; }
  .asset-badge { width: 54px; height: 54px; flex-basis: 54px; border-radius: 13px; font-size: 12px; }
  .metric-strip article { padding: 18px 12px; }
  .metric-strip strong { font-size: 17px; }
  .content-card { padding: 24px 20px; }
  .peer-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; padding: 28px 0; }
  footer nav { flex-wrap: wrap; gap: 16px; }
  body[data-cm-marketing-footer-only] :is(.content-card, .peer-grid a, .directory-stock) { border-radius: 14px !important; }
  .stock-identity img { width: 68px; height: 68px; flex-basis: 68px; }
}
