/* ============================================================
   SOLVÉ — Resources / SEO content pages
   Companion to brand.css
   ============================================================ */

body { background: var(--ivory); }

/* ============================================================
   RES HERO
   ============================================================ */
.res-hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}
@media (min-width: 720px)  { .res-hero { padding: 64px 0 80px; } }
.res-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 460px at 95% 10%, rgba(125,217,217,.18), transparent 60%),
    radial-gradient(ellipse 500px 350px at 5% 90%, rgba(196,239,240,.45), transparent 70%);
  pointer-events: none;
}
.res-hero-inner { position: relative; }

.res-crumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--ink-4);
  margin-bottom: 24px;
}
.res-crumbs a { color: var(--ink-3); }
.res-crumbs a:hover { color: var(--teal-700); }
.res-crumbs span.sep { color: var(--ink-5); }

.res-hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink-0);
  margin-bottom: 18px;
  text-wrap: balance;
  max-width: 18ch;
}
.res-hero h1 em { font-style: italic; color: var(--teal-600); font-weight: 400; }
.res-hero p.lead { font-size: 17px; color: var(--ink-3); max-width: 56ch; line-height: 1.6; }

.res-search {
  position: relative;
  max-width: 580px;
  margin-top: 28px;
}
.res-search input {
  width: 100%;
  padding: 16px 18px 16px 48px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  outline: none;
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.res-search input:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px var(--teal-50);
}
.res-search svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-4);
}

/* ============================================================
   FEATURED CARDS
   ============================================================ */
.res-feat {
  padding: 48px 0;
  background: var(--ivory);
}
.res-feat-head { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: end; margin-bottom: 32px; }
@media (min-width: 720px) { .res-feat-head { grid-template-columns: 1fr auto; gap: 28px; } }

.res-feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) { .res-feat-grid { grid-template-columns: 2fr 1fr; gap: 24px; } }

.res-feat-main {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all .25s var(--ease);
  text-decoration: none;
  color: inherit;
}
.res-feat-main:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}
.res-feat-main-img {
  aspect-ratio: 16 / 8;
  background-size: cover; background-position: center;
  position: relative;
}
.res-feat-main-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,24,34,.45));
}
.res-feat-main-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-700);
  padding: 5px 12px; border-radius: 999px;
  z-index: 2;
}
.res-feat-main-body { padding: 28px 32px 32px; }
.res-feat-main-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 11px; color: var(--ink-4); letter-spacing: .03em;
  margin-bottom: 10px;
}
.res-feat-main-meta .dot { color: var(--ink-5); }
.res-feat-main h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  color: var(--ink-0);
  margin-bottom: 10px;
}
.res-feat-main h3 em { font-style: italic; color: var(--teal-700); }
.res-feat-main p {
  font-size: 14.5px; color: var(--ink-3);
  line-height: 1.6; max-width: 52ch;
}

.res-feat-side { display: flex; flex-direction: column; gap: 16px; }
.res-feat-side-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex; flex-direction: column;
}
.res-feat-side-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.res-feat-side-card .pill {
  align-self: flex-start;
  margin-bottom: 10px;
}
.res-feat-side-card h4 {
  font-family: var(--display);
  font-size: 19px; font-weight: 500;
  color: var(--ink-0);
  line-height: 1.15;
  margin-bottom: 8px;
}
.res-feat-side-card h4 em { font-style: italic; color: var(--teal-600); }
.res-feat-side-card p {
  font-size: 13px; color: var(--ink-4); line-height: 1.55;
  flex: 1;
}
.res-feat-side-card .read {
  margin-top: 14px;
  font-size: 11px; font-weight: 700;
  color: var(--teal-700);
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.res-cats {
  padding: 64px 0;
  background: var(--cream);
}
.res-cats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 600px) { .res-cats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .res-cats-grid { grid-template-columns: repeat(4, 1fr); } }

.res-cat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.res-cat-card:hover {
  border-color: var(--teal-200);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.res-cat-card-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-50); color: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.res-cat-card-ic svg { width: 22px; height: 22px; }
.res-cat-card h3 {
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  color: var(--ink-0);
  line-height: 1.1;
  margin-bottom: 6px;
}
.res-cat-card h3 em { font-style: italic; color: var(--teal-600); }
.res-cat-card p {
  font-size: 13px; color: var(--ink-4); line-height: 1.55;
  margin-bottom: 14px;
}
.res-cat-card-count {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-700);
}

/* ============================================================
   LATEST ARTICLES LIST
   ============================================================ */
.res-list {
  padding: 80px 0;
  background: var(--ivory);
}
.res-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 720px) { .res-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .res-list-grid { grid-template-columns: repeat(3, 1fr); } }

.res-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .25s;
  display: flex; flex-direction: column;
}
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--teal-200); }
.res-card-img {
  aspect-ratio: 16 / 9;
  background-size: cover; background-position: center;
}
.res-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.res-card-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 11px; color: var(--ink-4);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.res-card-meta .cat {
  background: var(--teal-50); color: var(--teal-700);
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
.res-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink-0);
  line-height: 1.2;
  margin-bottom: 8px;
}
.res-card h3 em { font-style: italic; color: var(--teal-700); }
.res-card p {
  font-size: 13.5px; color: var(--ink-4); line-height: 1.55;
  flex: 1; margin-bottom: 14px;
}
.res-card .read-time {
  font-size: 11px; font-weight: 600; color: var(--ink-4); margin-top: auto;
  display: flex; align-items: center; gap: 8px;
}
.res-card .read-time::after {
  content: '→'; color: var(--teal-700);
  margin-left: auto; transition: transform .2s;
}
.res-card:hover .read-time::after { transform: translateX(3px); }

/* ============================================================
   ARTICLE (long-form)
   ============================================================ */
.article-hero {
  background: var(--ivory);
  padding: 32px 0 56px;
  position: relative;
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 360px at 80% 0%, rgba(125,217,217,.16), transparent 60%);
  pointer-events: none;
}
.article-hero-inner { position: relative; }
.article-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 12px; color: var(--ink-4);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-meta .cat {
  background: var(--teal-50); color: var(--teal-700);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.article-hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -.018em;
  color: var(--ink-0);
  margin-bottom: 18px;
  text-wrap: balance;
  max-width: 18ch;
}
.article-hero h1 em { font-style: italic; color: var(--teal-700); font-weight: 400; }
.article-hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 56ch;
  margin-bottom: 24px;
}

.article-byline {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}
.article-byline .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.article-byline strong { font-size: 13.5px; color: var(--ink-0); }
.article-byline span { font-size: 11.5px; color: var(--ink-4); }

.article-body {
  padding: 64px 0 88px;
  background: var(--ivory);
}
.article-prose {
  max-width: 720px;
  margin: 0 auto;
}
.article-prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.article-prose p:first-of-type::first-letter {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 4em;
  color: var(--teal-700);
  float: left;
  margin: 0.05em 0.12em 0 0;
  line-height: 0.85;
}
.article-prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--ink-0);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 48px 0 16px;
}
.article-prose h2 em { font-style: italic; color: var(--teal-700); }
.article-prose h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink-0);
  margin: 32px 0 12px;
}
.article-prose ul, .article-prose ol {
  margin: 16px 0 22px;
  padding-left: 24px;
}
.article-prose li { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 6px; }
.article-prose strong { color: var(--ink-0); font-weight: 600; }
.article-prose blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 3px solid var(--teal-500);
  background: var(--cream);
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-1);
  border-radius: 0 var(--r) var(--r) 0;
}
.article-prose blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-4);
}
.article-prose figure { margin: 28px 0; }
.article-prose figure img { width: 100%; border-radius: var(--r-lg); }
.article-prose figcaption {
  font-size: 12.5px; color: var(--ink-4);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}
.article-prose a { color: var(--teal-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-prose a:hover { color: var(--teal-800); }
.article-prose code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-1);
}

.article-callout {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: var(--r);
}
.article-callout strong {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 8px;
}
.article-callout p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

.article-ruo {
  margin: 40px 0 0;
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-3);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
}
.article-ruo strong {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
