/* Resources guide pages (tools/resources-build.mjs): the front page's palette (landing.css), static HTML. */
:root {
  --r-navy: #0d1b2a; --r-ink: #1b2a3a; --r-slate: #5a6b7d; --r-line: #e2e8ee; --r-soft: #f4f7fa;
  --r-brand: #0a8f89; --r-brand-d: #076d68; --r-brand-l: #e3f4f2; --r-gold: #f2b134;
  --r-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--r-ink); font-family: var(--r-font); font-size: 17px; line-height: 1.65; -webkit-text-size-adjust: 100%; }
a { color: var(--r-brand-d); }
img { max-width: 100%; }
.r-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--r-navy); letter-spacing: -.02em; line-height: 1.2; }

/* buttons */
.r-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.r-btn.primary { background: var(--r-brand); color: #fff; box-shadow: 0 6px 18px rgba(10,143,137,.28); }
.r-btn.primary:hover { background: var(--r-brand-d); }
.r-btn.outline { background: #fff; color: var(--r-navy); border-color: #c9d3dc; }
.r-btn.outline:hover { border-color: var(--r-navy); }
.r-btn.small { padding: 8px 14px; font-size: 14px; }

/* top bar */
.r-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--r-line); }
.r-nav .r-wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.r-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--r-navy); text-decoration: none; white-space: nowrap; }
.r-logo i { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--r-brand), var(--r-navy)); position: relative; flex: none; }
.r-logo i::after { content: ''; position: absolute; inset: 8px; border: 2.5px solid #fff; border-radius: 3px; border-top-color: var(--r-gold); }
.r-links { display: flex; gap: 24px; flex: 1; }
.r-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--r-slate); white-space: nowrap; }
.r-links a:hover, .r-links a[aria-current] { color: var(--r-navy); }
.r-links a[aria-current] { box-shadow: inset 0 -2px var(--r-brand); }
.r-actions { display: flex; gap: 10px; }
@media (max-width: 900px) {
  .r-nav .r-wrap { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 10px 18px; }
  .r-actions { margin-left: auto; }
  .r-actions .outline { display: none; }
  .r-links { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 10px; gap: 20px; }
}

/* article */
.r-article { max-width: 820px; padding-top: 28px; padding-bottom: 64px; }
.r-crumbs { font-size: 14px; color: var(--r-slate); }
.r-crumbs a { color: var(--r-slate); text-decoration: none; font-weight: 600; }
.r-crumbs a:hover { color: var(--r-navy); }
.r-crumbs span { margin: 0 6px; }
.r-article h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; margin: 14px 0 14px; }
.r-answer { font-size: 20px; line-height: 1.55; color: var(--r-ink); font-weight: 500; margin: 0; }
.r-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; margin: 24px 0 0; background: var(--r-soft); }
.r-meta { font-size: 13px; color: var(--r-slate); margin: 14px 0 28px; }
.r-article h2 { font-size: clamp(23px, 2.6vw, 28px); font-weight: 800; margin: 44px 0 12px; }
.r-article h3 { font-size: 19px; font-weight: 700; margin: 26px 0 6px; }
.r-article section > p, .r-article li { color: var(--r-ink); }
.r-article ul, .r-article ol { padding-left: 1.3em; }
.r-article li { margin: 4px 0; }
.r-article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; display: block; overflow-x: auto; }
.r-article th, .r-article td { border: 1px solid var(--r-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.r-article th { background: var(--r-soft); color: var(--r-navy); }

.r-fig { margin: 24px 0; padding: 8px; border: 1px solid var(--r-line); border-radius: 14px; background: #fff; }
.r-fig img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.r-key { background: var(--r-brand-l); border-radius: 14px; padding: 4px 24px 12px; }
.r-key h2 { font-size: 18px; margin: 18px 0 6px; }
.r-toc { border: 1px solid var(--r-line); border-radius: 14px; padding: 16px 24px; margin-top: 20px; font-size: 15px; }
.r-toc ol { margin: 8px 0 0; columns: 2; column-gap: 28px; }
.r-toc a { text-decoration: none; }
.r-toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .r-toc ol { columns: 1; } }

.r-download { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 44px; padding: 22px 24px; border-radius: 14px; background: var(--r-navy); color: #fff; }
.r-download b { color: var(--r-gold); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.r-download h2 { color: #fff; margin: 4px 0 4px; font-size: 22px; }
.r-download p { margin: 0; color: #c6d3df; font-size: 15px; }

.r-try { margin-top: 44px; padding-top: 4px; border-top: 1px solid var(--r-line); }
.r-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 18px 0; }
.r-card { display: flex; flex-direction: column; border: 1px solid var(--r-line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--r-slate); font-size: 14px; line-height: 1.5; background: #fff; transition: box-shadow .15s, transform .15s; }
.r-card:hover { box-shadow: 0 10px 26px rgba(13,27,42,.12); transform: translateY(-2px); }
.r-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--r-soft); display: block; height: auto; }
.r-card span { padding: 12px 14px 16px; }
.r-card small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--r-brand); }
.r-card b { display: block; color: var(--r-navy); font-size: 16px; margin: 2px 0 4px; }
.r-topic { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-top: 12px; border-radius: 14px; background: var(--r-soft); text-decoration: none; color: var(--r-slate); font-size: 15px; line-height: 1.5; }
.r-topic > span:first-child { font-size: 28px; }
.r-topic b { display: block; color: var(--r-navy); }
.r-topic em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--r-brand-d); white-space: nowrap; }
@media (max-width: 640px) { .r-topic { flex-wrap: wrap; } .r-topic em { margin-left: 42px; } }

.r-faq details { border-bottom: 1px solid var(--r-line); padding: 12px 0; }
.r-faq summary { cursor: pointer; font-weight: 700; color: var(--r-navy); }
.r-faq details > div { margin-top: 8px; }
.r-related ul, .r-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.r-related a, .r-list a { display: block; padding: 14px 18px; border: 1px solid var(--r-line); border-radius: 12px; text-decoration: none; color: var(--r-slate); font-size: 15px; line-height: 1.5; }
.r-related a:hover, .r-list a:hover { border-color: var(--r-brand); }
.r-list img { display: block; width: calc(100% + 36px); max-width: none; margin: -14px -18px 12px; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 11px 11px 0 0; background: var(--r-soft); }
.r-list a { overflow: hidden; }
.r-related b, .r-list b { display: block; color: var(--r-navy); font-size: 17px; margin-bottom: 2px; }
.r-sources { font-size: 14px; color: var(--r-slate); }
.r-sources h2 { font-size: 18px; }
.r-sources li { color: var(--r-slate); }

/* hub */
.r-hub { padding-bottom: 72px; }
.r-hero { max-width: 760px; padding: 56px 0 12px; }
.r-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--r-brand); }
.r-eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.r-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; margin: 12px 0; }
.r-hero p { font-size: 19px; color: var(--r-slate); margin: 0; }
.r-hub > section { margin-top: 44px; }
.r-hub h2 { font-size: 26px; margin: 0; }
.r-hub section > p { color: var(--r-slate); margin: 4px 0 14px; }
.r-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 400px) { .r-list { grid-template-columns: 1fr; } }
.r-cta { background: var(--r-soft); border-radius: 18px; padding: 28px 32px; }
.r-cta .r-btn { margin: 8px 8px 0 0; }

/* footer */
.r-foot { background: var(--r-navy); color: #8ea1b3; padding: 40px 0; font-size: 14px; }
.r-foot .r-wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.r-foot .r-logo { color: #fff; }
.r-foot p { margin: 8px 0 0; max-width: 520px; }
.r-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.r-foot a { color: #c6d3df; text-decoration: none; font-weight: 600; }
.r-foot .r-legal { flex-basis: 100%; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.r-foot .r-fine { flex-basis: 100%; max-width: none; font-size: 12px; line-height: 1.5; margin: 0; }
.r-legal-page h2 { font-size: 22px; margin-top: 36px; }
.r-legal-page .r-answer { font-size: 18px; }
.r-foot address { flex-basis: 100%; font-style: normal; font-size: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }

/* Industries dropdown (src/industry-menu.js), shared look with the front page's .l-dd */
.r-dd { position: relative; }
.r-dd > a span { font-size: 11px; }
.r-dd-menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 40; min-width: 270px; padding: 8px; margin-top: 10px; background: #fff; border: 1px solid var(--r-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(13,27,42,.16); }
.r-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.r-dd:hover .r-dd-menu, .r-dd:focus-within .r-dd-menu { display: grid; }
.r-links .r-dd-menu a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--r-ink); font-size: 14px; box-shadow: none; }
.r-links .r-dd-menu a:hover, .r-links .r-dd-menu a[aria-current] { background: var(--r-soft); color: var(--r-navy); }
.r-links .r-dd-menu a.all { color: var(--r-brand-d); font-weight: 700; border-top: 1px solid var(--r-line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 10px; }
@media (max-width: 900px) { .r-dd-menu { display: none !important; } }

/* industry pages */
.r-ihero { background: radial-gradient(900px 480px at 85% 0%, #e6f4f3 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, #fbfcfd, #fff); padding: 40px 0 48px; border-bottom: 1px solid var(--r-line); }
.r-ihero .r-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.r-ihero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; margin: 14px 0; }
.r-ihero-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px rgba(13,27,42,.18); background: var(--r-soft); }
.r-istats { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.r-istats li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--r-line); font-size: 14px; color: var(--r-slate); }
.r-istats b { color: var(--r-navy); margin-right: 4px; }
.r-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.r-industry { padding-bottom: 64px; }
.r-isec { margin-top: 52px; }
.r-isec h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; margin: 0 0 8px; }
.r-lede { color: var(--r-slate); margin: 0 0 18px; max-width: 760px; }
.r-igrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.r-igrid.three { grid-template-columns: repeat(3, 1fr); }
.r-iitem { border: 1px solid var(--r-line); border-radius: 14px; padding: 18px 20px; background: #fff; }
.r-iitem h3 { margin: 0 0 6px; font-size: 18px; }
.r-iitem p { margin: 0; color: var(--r-slate); font-size: 15px; line-height: 1.55; }
/* industry explainer videos (tools/explainer) */
.r-videos { display: grid; gap: 20px; margin-top: 18px; }
.r-videos:has(figure + figure) { grid-template-columns: 1fr 1fr; }
.r-videos figure { margin: 0; }
.r-videos video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--r-navy); box-shadow: 0 20px 44px rgba(13,27,42,.18); }
.r-videos figcaption { margin-top: 10px; font-weight: 700; font-size: 15px; color: var(--r-slate); }
.r-igallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.r-igallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--r-soft); display: block; }
.r-mods { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.r-mods a { display: block; padding: 14px 16px; border: 1px solid var(--r-line); border-radius: 12px; text-decoration: none; background: var(--r-soft); }
.r-mods a:hover { border-color: var(--r-brand); background: #fff; }
.r-mods b { display: block; color: var(--r-navy); font-size: 16px; line-height: 1.35; }
.r-mods span { font-size: 13px; color: var(--r-slate); }
.r-icols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.r-ticks, .r-regs { list-style: none; padding: 0; margin: 0; }
.r-ticks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--r-line); }
.r-ticks li::before { content: '✓'; position: absolute; left: 4px; color: var(--r-brand); font-weight: 800; }
.r-regs li { padding: 10px 0; border-bottom: 1px solid var(--r-line); color: var(--r-slate); font-size: 15px; line-height: 1.5; }
.r-regs b { display: block; color: var(--r-navy); font-size: 16px; }
.r-small { font-size: 13px; color: var(--r-slate); }
.r-others div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.r-others a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 1px solid var(--r-line); border-radius: 999px; text-decoration: none; color: var(--r-navy); font-weight: 600; font-size: 15px; }
.r-others a:hover { border-color: var(--r-brand); }
.r-illus { margin-top: 28px; }
.r-inds small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--r-brand); margin-bottom: 2px; }
@media (max-width: 900px) {
  .r-ihero .r-wrap, .r-icols { grid-template-columns: 1fr; gap: 28px; }
  .r-igrid.three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .r-wrap { padding: 0 16px; }
  .r-igrid { grid-template-columns: 1fr; }
  .r-igallery { grid-template-columns: 1fr 1fr; }
  .r-videos:has(figure + figure) { grid-template-columns: 1fr; }
  .r-igallery img:first-child { grid-column: span 2; }
  .r-ihero { padding-top: 24px; }
}
