/* RESource landing page — self-contained CSS
   Loaded exclusively on /RESource; no shared stylesheet edits.
   Font families: Public Sans (sans), Newsreader (serif) — local woff2 in /assets/fonts/resource/.
   Design tokens: Phoenix CSS custom properties (subset, light-mode only). */

/* ===== Font faces ===== */
/* Newsreader — weights 400 500 600 */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/resource/newsreader-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/resource/newsreader-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/resource/newsreader-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/resource/newsreader-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/resource/newsreader-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/resource/newsreader-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Public Sans — weights 400 500 600 700 */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/resource/public-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/resource/public-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/resource/public-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/resource/public-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/resource/public-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/resource/public-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/resource/public-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/resource/public-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Design tokens (Phoenix light theme subset) ===== */
:root {
  --phoenix-font-sans-serif: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --phoenix-font-monospace: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --phoenix-body-font-family: var(--phoenix-font-sans-serif);
  --phoenix-body-font-size: 1rem;
  --phoenix-body-font-weight: 400;
  --phoenix-body-line-height: 1.49;
  --phoenix-body-color: #1a2820;
  --phoenix-body-bg: #f7f7f7;
  --phoenix-emphasis-color: #1a2820;
  --phoenix-emphasis-bg: #fff;
  --phoenix-secondary-color: #56615b;
  --phoenix-primary: #1f4d33;
  --phoenix-primary-text-emphasis: #143626;
  --phoenix-link-color: #1f4d33;
  --phoenix-link-hover-color: #143626;
  --phoenix-link-decoration: none;
  --phoenix-link-hover-decoration: underline;
  --phoenix-border-color: #e2e4e2;
  --phoenix-border-color-strong: #8d948f;
  --phoenix-border-color-translucent: rgba(173, 179, 175, 0.54);
  --phoenix-border-radius: 0.375rem;
  --phoenix-gray-50: #f7f7f7;
  --phoenix-gray-100: #ededee;
  --phoenix-gray-200: #e2e4e2;
  --phoenix-gray-300: #cfd2cf;
  --phoenix-gray-400: #adb3af;
  --phoenix-gray-500: #8d948f;
  --phoenix-gray-600: #717a75;
  --phoenix-gray-700: #56615b;
  --phoenix-gray-800: #43504a;
  --phoenix-gray-900: #354840;
  --phoenix-gray-1000: #2d3e37;
  --phoenix-gray-1100: #1a2820;
  --phoenix-orange-50: #f5d26e;
  --phoenix-orange-100: #faecca;
  --phoenix-orange-300: #d9bc78;
  --phoenix-orange-500: #c08e3a;
  --phoenix-orange-700: #5d3f06;
  --phoenix-blue-200: #b8d0bf;
  --phoenix-blue-500: #1f4d33;
  --phoenix-blue-700: #0d2218;
  --phoenix-green-300: #7ba37e;
  --phoenix-green-500: #3a7d3f;
}

/* ===== Base reset ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--phoenix-body-font-family);
  font-size: var(--phoenix-body-font-size);
  font-weight: var(--phoenix-body-font-weight);
  line-height: var(--phoenix-body-line-height);
  color: var(--phoenix-body-color);
  background: var(--phoenix-body-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--phoenix-link-color); text-decoration: var(--phoenix-link-decoration); }
a:hover { color: var(--phoenix-link-hover-color); text-decoration: var(--phoenix-link-hover-decoration); }
h1, h2, h3, h4, h5, h6 { color: var(--phoenix-emphasis-color); margin-top: 0; }
h1, h2, h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; }
p { margin-top: 0; }
table { border-collapse: collapse; }

/* ===== Utility classes (Phoenix subset) ===== */
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.fw-semibold { font-weight: 600 !important; }
.text-body-secondary { color: var(--phoenix-secondary-color) !important; }
.text-end { text-align: right !important; }
.align-middle { vertical-align: middle !important; }

/* Type scale — Phoenix 1.25 ratio, no responsive clamp (same on mobile) */
.fs-2 { font-size: 3.8146972656rem !important; }
.fs-3 { font-size: 3.0517578125rem !important; }
.fs-6 { font-size: 1.5625rem !important; }
.fs-7 { font-size: 1.25rem !important; }
.fs-8 { font-size: 1rem !important; }
.fs-9 { font-size: 0.8rem !important; }
.fs-10 { font-size: 0.64rem !important; }
.font-serif { font-family: Newsreader, Georgia, serif; }

/* Micro label */
.ds-micro {
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phoenix-secondary-color);
  display: inline-flex;
}

/* Tabular figures */
.ds-tabular { font-variant-numeric: tabular-nums; }

/* Badge / pill */
.badge {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--phoenix-border-radius);
}
.pill-attention {
  background: var(--phoenix-orange-100);
  color: var(--phoenix-orange-700);
  border: 1px solid var(--phoenix-orange-300);
}

/* KPI action link */
.kpi-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--phoenix-border-color-strong);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--phoenix-primary);
  margin-top: 0.5rem;
}

/* ===== Data table ===== */
.table { width: 100%; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: 0.5rem; border-bottom: 1px solid var(--phoenix-border-color); }
.table-sm > :not(caption) > * > * { padding: 0.375rem 0.5rem; }
.ds-table-wrap { border: 1px solid var(--phoenix-border-color); border-radius: 8px; overflow: hidden; }
.ds-table-wrap > div { overflow-x: auto; }
.ds-table { font-size: 0.8rem; }
.ds-table > thead > tr > th {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--phoenix-secondary-color);
  background: var(--phoenix-body-bg); white-space: nowrap;
}
.ds-table > :not(caption) > * > :first-child { padding-left: 14px; }
.ds-table > tbody > tr:last-child > td { border-bottom: 0; }
.ds-table > tbody > tr.total-row > td { font-weight: 600; border-top: 2px solid var(--phoenix-gray-300); }
.ds-table-title {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 12px;
}

/* Standalone scroll wrapper (no added border — parent card provides chrome) */
.rs-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== CTA buttons (hover) ===== */
.rs-cta:hover { filter: brightness(1.15); color: #fff; }
.rs-cta-alt:hover { filter: brightness(1.08); color: var(--phoenix-gray-1100); }

/* ===== Header brand (larger logo) ===== */
.rs-header-brand { font-size: 1.25rem; display: inline-flex; align-items: center; }
.rs-header-logo {
  display: block;
  height: 30px;
  width: 146px;
  -webkit-mask-image: url("/assets/images/resource/soldera-logo.svg");
  mask-image: url("/assets/images/resource/soldera-logo.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background: #666666;
}

/* ===== Trusted-by logo strip ===== */
.rs-trusted-logos {
  flex: 1 1 520px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}
.rs-trusted-logos > img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  justify-self: center;
  align-self: center;
  filter: brightness(0) saturate(100%) invert(50%);
}
.rs-trusted-logos > img:hover {
  filter: brightness(0) saturate(100%) invert(50%);
}

/* ===== Footer Soldera wordmark ===== */
.rs-footer-logo {
  filter: grayscale(1);
}
.rs-footer-logo:hover {
  filter: grayscale(1);
}

/* ===== Event countdown ===== */
.rs-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.rs-countdown-label {
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  opacity: 1;
  white-space: nowrap;
}
.rs-countdown-inner {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ===== Responsive ===== */

/* Mobile data cards: accessible horizontal scroll instead of clipping */
@media (max-width: 767px) {
  .ds-table-wrap { min-width: 0; }
  .ds-table-wrap > div {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ds-table { min-width: 32rem; }
  /* Chips / badges: allow wrapping */
  .badge { white-space: normal; }
  /* Prevent grid/flex children from overflowing */
  [style*="grid"], [style*="flex"] { min-width: 0; }
  /* Trusted-by logos: wrap on narrow viewports */
  .rs-trusted-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
