/* GoTezU Resources — listing + detail */
.res-page {
  --res-ink: #1c2539;
  --res-muted: #5d666f;
  --res-accent: #fa8b17;
  --res-accent-hover: #e07a0f;
  --res-cream: #f7f4ef;
  --res-soft: #efeae2;
  --res-line: rgba(28, 37, 57, 0.12);
  --res-surface: #fff;
  --res-max: 1180px;
  --res-prose: 720px;
  --res-gutter: 24px;
  background: var(--res-cream);
  color: var(--res-ink);
  font-family: "DM Sans", sans-serif;
}

/* Shared */
.res-eyebrow {
  margin: 0 0 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--res-accent);
}

.res-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--res-muted);
}

.res-crumb a {
  color: var(--res-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.res-crumb a:hover {
  color: var(--res-accent);
}

.res-crumb--pill {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--res-ink);
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  font-size: 13px;
}

.res-crumb--pill a {
  color: #fff;
}

.res-crumb--pill a:hover {
  color: var(--res-accent);
}

.res-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.res-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.res-btn--fill {
  background: var(--res-accent);
  color: #fff;
  border: 2px solid var(--res-accent);
}

.res-btn--fill:hover {
  background: var(--res-accent-hover);
  border-color: var(--res-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.res-btn--outline {
  background: var(--res-surface);
  color: var(--res-ink);
  border: 2px solid var(--res-line);
}

.res-btn--outline:hover {
  border-color: var(--res-accent);
  color: var(--res-accent);
  background: rgba(250, 139, 23, 0.06);
}

/* Listing hero */
.res-list-hero {
  padding: clamp(72px, 9vw, 120px) var(--res-gutter) clamp(48px, 5vw, 72px);
  text-align: center;
  background: var(--res-surface);
  border-bottom: 1px solid var(--res-line);
}

.res-list-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.res-list-hero__title {
  margin: 0 0 18px;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--res-ink);
}

.res-list-hero__lead {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.75;
  color: var(--res-muted);
}

.res-list-hero .res-actions {
  justify-content: center;
}

/* Listing grid */
.res-list-grid {
  padding: clamp(56px, 6vw, 88px) var(--res-gutter);
}

.res-list-grid__inner {
  max-width: var(--res-max);
  margin: 0 auto;
}

.res-list-grid__head {
  text-align: center;
  margin-bottom: clamp(32px, 3.5vw, 48px);
}

.res-list-grid__title {
  margin: 0;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--res-ink);
}

.res-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
}

.res-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--res-surface);
  border: 1px solid rgba(28, 37, 57, 0.06);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(28, 37, 57, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.res-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(28, 37, 57, 0.1);
  border-color: rgba(250, 139, 23, 0.35);
}

.res-card__cat {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--res-accent);
}

.res-card__title {
  margin: 0 0 12px;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--res-ink);
}

.res-card__excerpt {
  margin: 0 0 20px;
  flex: 1;
  font-size: 15px;
  line-height: 1.65;
  color: var(--res-muted);
}

.res-card__more {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--res-accent);
}

.res-empty {
  text-align: center;
  color: var(--res-muted);
}

/* Detail hero */
.res-hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) var(--res-gutter) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--res-line);
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(250, 139, 23, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 35% at 88% 12%, rgba(250, 139, 23, 0.06), transparent 55%),
    var(--res-cream);
  overflow: hidden;
}

.res-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -18deg,
    transparent 0,
    transparent 46px,
    rgba(250, 139, 23, 0.045) 46px,
    rgba(250, 139, 23, 0.045) 47px
  );
  mask-image: radial-gradient(ellipse 75% 65% at 40% 30%, #000 15%, transparent 72%);
  opacity: 0.9;
}

.res-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--res-max);
  margin: 0 auto;
}

.res-hero__title {
  margin: 0 0 20px;
  max-width: 18ch;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--res-ink);
}

.res-hero__lead {
  margin: 0 0 16px;
  max-width: 620px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--res-muted);
}

.res-hero__meta {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--res-muted);
}

/* Layout: TOC + content */
.res-layout {
  padding: clamp(40px, 5vw, 72px) var(--res-gutter) clamp(64px, 8vw, 100px);
}

.res-layout__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  max-width: var(--res-max);
  margin: 0 auto;
}

.res-toc {
  position: sticky;
  top: 110px;
  padding: 22px 20px;
  background: var(--res-surface);
  border: 1px solid rgba(28, 37, 57, 0.06);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(28, 37, 57, 0.04);
}

.res-toc__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--res-accent);
}

.res-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.res-toc__list a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--res-ink);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.res-toc__list a:hover {
  color: var(--res-accent);
  border-left-color: var(--res-accent);
}

/* Prose */
.res-content {
  max-width: 780px;
}

.res-section {
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--res-line);
}

.res-section:last-of-type {
  border-bottom: 0;
}

.res-intro p:first-child {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--res-ink);
  font-weight: 500;
}

.res-content h2 {
  margin: 0 0 18px;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--res-ink);
}

.res-content h3 {
  margin: 28px 0 12px;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--res-ink);
}

.res-content p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--res-muted);
}

.res-content p:last-child {
  margin-bottom: 0;
}

.res-content a:not(.res-btn) {
  color: var(--res-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.res-content a:not(.res-btn):hover {
  color: var(--res-accent-hover);
}

.res-content .res-btn {
  text-decoration: none;
}

.res-content .res-btn--fill,
.res-content .res-btn--fill:hover {
  color: #fff;
}

.res-list {
  margin: 0 0 18px;
  padding-left: 1.15em;
  color: var(--res-muted);
}

.res-list li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.65;
}

.res-activity {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px dashed rgba(28, 37, 57, 0.12);
}

.res-activity:first-of-type {
  margin-top: 28px;
}

.res-activity h3 {
  margin-top: 0;
}

.res-activity strong {
  color: var(--res-ink);
  font-weight: 700;
}

/* Tables */
.res-table-wrap {
  margin: 20px 0 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--res-line);
  border-radius: 4px;
  background: var(--res-surface);
}

.res-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.res-table th,
.res-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--res-line);
  vertical-align: top;
}

.res-table th {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--res-ink);
  background: var(--res-soft);
}

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

.res-table tbody tr:last-child td {
  border-bottom: 0;
}

.res-table tbody tr:hover td {
  background: rgba(250, 139, 23, 0.04);
}

/* FAQ */
.res-faq {
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--res-line);
}

.res-faq__list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.res-faq__item {
  background: var(--res-surface);
  border: 1px solid rgba(28, 37, 57, 0.08);
  border-radius: 4px;
  padding: 0;
}

.res-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  position: relative;
  font-family: "Red Hat Display", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--res-ink);
  line-height: 1.35;
}

.res-faq__item summary::-webkit-details-marker {
  display: none;
}

.res-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--res-accent);
}

.res-faq__item[open] summary::after {
  content: "–";
}

.res-faq__item p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--res-muted);
}

/* Closer */
.res-closer {
  margin-top: clamp(24px, 3vw, 36px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.res-closer .res-actions {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .res-layout__inner {
    grid-template-columns: 1fr;
  }

  .res-toc {
    position: static;
  }

  .res-toc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .res-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .res-hero__title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .res-card-grid {
    grid-template-columns: 1fr;
  }

  .res-toc__list {
    grid-template-columns: 1fr;
  }

  .res-btn {
    width: 100%;
  }

  .res-hero__title {
    font-size: clamp(32px, 9vw, 42px);
  }
}
