/* ============================================
   Resource Page Template
   Purpose: Educational / thought-leadership
   content. Article layout with optional sidebar.
   ============================================ */

/* Hero — editorial with sidebar pulled up */
.res-hero {
  padding: 80px 0 48px;
  background: var(--f3-paper);
}

.res-hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.res-hero-title {
  margin: 0 0 0.75rem;
  font-family: "Canela", Georgia, serif;
  font-size: clamp(2.25rem, 3.2vw, 3rem);
  line-height: 1.04;
  color: var(--f3-text);
  max-width: 22ch;
}

.res-hero-summary {
  margin: 0;
  max-width: 52ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--f3-text-soft);
}

.res-hero-aside {
  padding-top: 0.5rem;
}

/* Transparent quote */
.res-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 2px solid var(--f3-rule);
}

.res-quote-mark {
  position: absolute;
  top: -0.35rem;
  left: 1.5rem;
  font-family: "Canela", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--f3-rule);
  opacity: 0.5;
  pointer-events: none;
}

.res-quote-text {
  margin: 0 0 0.75rem;
  font-family: "Canela", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--f3-text);
  font-style: italic;
}

.res-quote-attr {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--f3-text-soft);
}

/* Two-column layout */
.res-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
  padding: 64px 0 96px;
}

/* Main content */
.res-main h2 {
  margin: 2.5rem 0 0.6rem;
  font-family: "Canela", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--f3-text);
}

.res-main h2:first-child {
  margin-top: 0;
}

.res-main h3 {
  margin: 2rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--f3-text);
}

.res-main p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--f3-text-soft);
}

.res-main ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.res-main li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--f3-text-soft);
}

/* Callout block — left border accent, no box */
.res-callout {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--f3-text);
}

.res-callout p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--f3-text);
  font-weight: 500;
}

/* Sidebar */
.res-sidebar {
  position: sticky;
  top: 2rem;
}

.res-sidebar-block {
  padding: 1.25rem;
  border: 1px solid var(--f3-rule);
  margin-bottom: 1.5rem;
}

.res-sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--f3-text-soft);
}

.res-sidebar-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--f3-text);
  text-decoration: none;
  border-top: 1px solid var(--f3-rule);
  transition: color 0.15s;
}

.res-sidebar-link:first-of-type {
  border-top: none;
}

.res-sidebar-link:hover {
  color: var(--f3-text-soft);
}

/* Data table */
.res-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.res-table th,
.res-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
  border-top: 1px solid var(--f3-rule);
}

.res-table th {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--f3-text-soft);
}

.res-table td {
  color: var(--f3-text);
}

/* Responsive */
@media (max-width: 1024px) {
  .res-hero { padding: 64px 0 40px; }
  .res-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .res-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 48px 0 72px;
  }
  .res-sidebar { position: static; }
}

@media (max-width: 720px) {
  .res-hero { padding: 48px 0 32px; }
  .res-layout { padding: 40px 0 56px; }
  .res-sidebar { display: none; }
}
