:root {
  --navy: #0A192F;
  --navy-2: #12243f;
  --slate: #475569;
  --white: #F8FAFC;
  --black: #000000;
  --copper: #F87F26;
  --panel: #ffffff;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --muted: #CBD5E1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--navy); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  background: var(--black);
  color: white;
  border-bottom: 4px solid var(--copper);
}

.banner {
  text-align: center;
  padding: .25rem 1rem 0.1rem;
}

.logo-link {
  display: inline-block;
}

.logo-img {
  height: 140px;
  width: auto;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  object-fit: contain;
}

.phase-nav-wrap {
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.phase-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 1rem;
  min-height: auto;
  text-align: center;
}

.phase-nav-links {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.phase-nav-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: .95rem;
  padding: .4rem .55rem;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease;
}

.phase-nav-links a:hover,
.phase-nav-links a.active {
  background: rgba(248,127,38,.14);
  color: white;
}

.right-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-header {
  margin: 25px 0 20px 0;   /* space below heading */
  text-align: center;
}

.content-header h3 {
  margin: 0;
  line-height: 1.2;
}

.hero {
  background-image: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.62)), url('../images/ramp-tiedown.jpg');
  background-size: cover;
  background-position: center;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}
.hero-content { max-width: 920px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.04; margin-bottom: 1rem; }
.hero p { font-size: 1.12rem; max-width: 760px; margin: 0 auto 1.7rem; color: #D7E2EE; }

.page-hero {
  background-image: linear-gradient(rgba(0,0,0,.66), rgba(0,0,0,.66)), url('../images/ramp-tiedown.jpg');
  background-size: cover;
  background-position: center;
  min-height: 28vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 4rem 1rem 3rem;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); margin-bottom: .8rem; }
.page-hero p { color: #D7E2EE; max-width: 760px; margin: 0 auto; font-size: 1.08rem; }

.section { padding: 1rem 1rem; max-width: 1100px; margin: 0 auto; }
.section.tight { padding-top: .5rem; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: 2rem; margin-bottom: .4rem; }
.section-header p { color: var(--slate); max-width: 760px; margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: .25rem; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: start; }
.stack > * + * { margin-top: 1rem; }

.card, .resource-item, .faq-item {
  border: 1px solid var(--line);
  padding: 1.35rem 1.35rem;
  border-radius: 12px;
  background: var(--panel);
}
.card h3, .resource-item h3, .faq-item h3 { color: var(--navy); margin-bottom: .3rem; }
.card.accent { border-color: var(--copper); }
.card.accent h3 { color: var(--copper); }

.card h4 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.callout {
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  padding: 1.25rem;
  border-radius: 12px;
  margin-top: 1.25rem;
}
.small { font-size: .95rem; color: var(--slate); }
.checklist { padding-left: 18px; }
.checklist li { margin: .35rem 0; }

.button-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.25rem; }

.cta-button,
.secondary-button {
  padding: 1rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-button { background: var(--copper); color: var(--black); transition: transform .2s; }
.cta-button:hover { transform: scale(1.03); }
.secondary-button { background: var(--navy); color: white; }

.kicker {
  display: inline-block;
  background: rgba(248,127,38,.12);
  color: #fff;
  border: 1px solid rgba(248,127,38,.3);
  border-radius: 999px;
  padding: .35rem .75rem;
  margin-bottom: .8rem;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; background: white; }
.step strong { color: var(--copper); display: block; margin-bottom: .35rem; }

.footer { background: var(--black); color: #94A3B8; padding: 2rem 1rem; text-align: center; font-size: 0.95rem; margin-top: 2rem; }
.footer a { color: var(--copper); text-decoration: none; }

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  border-color: var(--copper);
  background: rgba(248,127,38,.08);
}

.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}



.hero-calculator-button {
  background: rgba(248,127,38,.14);
  border: 2px solid #ffae66;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(248,127,38,.20);
}

.hero-calculator-button:hover {
  transform: scale(1.03);
  border-color: #ffb06a;
  box-shadow: 0 0 0 1px rgba(255,176,106,.28), 0 0 22px rgba(248,127,38,.30);
}

.section-podcast-feature {
  margin-top: -1.25rem;
  margin-bottom: 1.25rem;
}

.section-shell {
  max-width: 960px;
  margin: 0 auto;
}

.hero-podcast-card {
  margin: 0 auto;
  max-width: 760px;
  background: rgba(10, 25, 47, 0.96);
  border: 1px solid rgba(248, 127, 38, 0.35);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

.hero-podcast-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(248,127,38,.14);
  border: 1px solid rgba(248,127,38,.34);
  color: #F8FAFC;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-podcast-copy h3 {
  margin: 0 0 0.4rem;
  color: #ffffff;
  font-size: 1.2rem;
}

.hero-podcast-copy p {
  margin: 0 0 0.75rem;
  color: #D7E2EE;
  font-size: 0.98rem;
  max-width: 640px;
}

.hero-podcast-meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  color: #CBD5E1;
  font-size: 0.9rem;
}

.hero-podcast-player {
  width: 100%;
  max-width: 520px;
  display: block;
}

.hero-podcast-actions {
  margin-top: 0.9rem;
}

.podcast-link {
  display: inline-block;
  padding: .8rem 1rem;
  background: var(--copper);
  color: var(--black);
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

.podcast-link:hover,
.hero-calculator-button:hover {
  transform: scale(1.03);
}

.hero-calculator-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-calculator-button .button-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  flex-shrink: 0;
}


@media (max-width: 840px) {
  .two-col { grid-template-columns: 1fr; }
}

.resource-library-card {
  padding: 1.5rem 1.5rem;
}

.resource-library-header {
  margin-bottom: 1.4rem;
}

.resource-library-header h3 {
  margin-bottom: 0.45rem;
}

.resource-library-header p {
  margin: 0;
  color: var(--slate);
  max-width: 880px;
}

.resource-download-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.resource-download-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.resource-download-row + .resource-download-row {
  border-top: 1px solid var(--line);
}

.resource-download-cta {
  flex: 0 0 190px;
}

.resource-download-button {
  width: 100%;
  text-align: center;
}

.resource-download-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.resource-download-copy h4 {
  color: var(--navy);
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.resource-download-copy p {
  margin: 0;
  color: var(--slate);
}

.resource-library-header-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.resource-library-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.library-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}

.library-list .resource-download-row:first-child {
  padding-top: 0;
}

.media-list .resource-download-row,
.podcast-list .resource-download-row {
  align-items: flex-start;
}

.media-embed-placeholder {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px dashed var(--muted);
  border-radius: 10px;
  background: var(--soft);
  color: var(--slate);
}

.podcast-player {
  width: 100%;
  margin-top: 0.85rem;
}

@media (max-width: 840px) {
  .resource-download-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .resource-download-cta {
    flex: none;
    width: 100%;
    max-width: 240px;
  }

  .resource-library-header-split {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 840px) {
  .section-podcast-feature {
    margin-top: 0.5rem;
  }

  .hero-podcast-card {
    padding: 1rem;
  }

  .hero-podcast-copy h3 {
    font-size: 1.08rem;
  }

  .hero-podcast-copy p {
    font-size: 0.95rem;
  }

  .hero-podcast-player {
    max-width: 100%;
  }
}

@media (max-width: 840px) {
  .hero {
    min-height: auto;
    padding: 2.75rem 1rem 3rem;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.08;
  }

  .hero p {
    font-size: 1rem;
    margin: 0 auto 1.4rem;
  }

  .button-row {
    margin-top: 1.25rem;
    gap: 0.75rem;
  }

  .button-row a,
  .cta-button,
  .secondary-button {
    width: 100%;
    max-width: 100%;
  }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #F8FAFC;
  margin: 3px 0;
  border-radius: 999px;
}

@media (max-width: 840px) {
  .mobile-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.75rem 0.2rem;
    text-align: left;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    margin: 0;
  }

  .logo-link {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
  }

  .logo-img {
    height: 72px;
    width: auto;
    margin: 0;
    max-width: 100%;
  }

  .phase-nav {
    padding: 0 1rem 0.6rem;
    text-align: left;
  }

  .phase-nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .phase-nav-links.open {
    display: flex;
  }

  .phase-nav-links a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.5rem;
  }

  .footer-social {
    gap: 0.85rem;
  }

  .footer-social a {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
  }

  .footer-social img {
    width: 22px;
    height: 22px;
  }
}
/* =========================================================
   RAMPWARDEN KNOWLEDGE BASE PAGE
   ========================================================= */

.knowledge-page {
  background: #101010;
  color: #f4f4f4;
}

.knowledge-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* HERO */

.knowledge-hero {
  padding: 84px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(184, 115, 51, 0.18), transparent 34%),
    linear-gradient(135deg, #111111 0%, #1a1a1a 55%, #0c0c0c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.knowledge-hero-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.section-kicker,
.card-kicker,
.article-category {
  margin: 0 0 10px;
  color: #c27a3a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.knowledge-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.knowledge-hero-subtitle {
  max-width: 780px;
  margin: 22px auto 0;
  color: #d0d0d0;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.knowledge-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* BUTTONS */

.rw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rw-btn:hover {
  transform: translateY(-2px);
}

.rw-btn-primary {
  color: #111111;
  background: #c27a3a;
  border: 1px solid #c27a3a;
}

.rw-btn-primary:hover {
  background: #d08a49;
  border-color: #d08a49;
}

.rw-btn-secondary {
  color: #f4f4f4;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.rw-btn-secondary:hover {
  border-color: #c27a3a;
  background: rgba(194, 122, 58, 0.1);
}

/* INTRO */

.knowledge-intro {
  padding: 34px 0 0;
}

.knowledge-intro p {
  max-width: 880px;
  margin: 0 auto;
  color: #d6d6d6;
  font-size: 1.02rem;
  line-height: 1.75;
  text-align: center;
}

/* FEATURED CALCULATOR CARD */

.knowledge-feature {
  padding: 38px 0 24px;
}

.calculator-feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(194, 122, 58, 0.18), rgba(255, 255, 255, 0.04)),
    #181818;
  border: 1px solid rgba(194, 122, 58, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.calculator-feature-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.calculator-feature-card p:not(.card-kicker) {
  max-width: 760px;
  margin: 0;
  color: #d4d4d4;
  line-height: 1.65;
}

/* SECTIONS */

.knowledge-section {
  padding: 56px 0;
}

.knowledge-section-alt {
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.knowledge-section-header {
  max-width: 800px;
  margin-bottom: 24px;
}

.knowledge-section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
}

.knowledge-section-header p:not(.section-kicker) {
  margin: 0;
  color: #cfcfcf;
  line-height: 1.65;
}

/* ARTICLE CARDS */

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  border-radius: 22px;
  overflow: hidden;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 122, 58, 0.7);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
}

.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.article-card-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  padding: 0px;
  background:
    radial-gradient(circle at center, rgba(194, 122, 58, 0.2), transparent 58%),
    #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.article-card-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.article-card-body h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.14rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.article-card-body p:not(.article-category) {
  margin: 0;
  color: #cfcfcf;
  line-height: 1.58;
  font-size: 0.95rem;
}

.article-read-time {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  color: #c27a3a;
  font-size: 0.92rem;
  font-weight: 800;
}

/* LAB CTA */

.knowledge-lab-cta {
  padding: 58px 0;
  background: #101010;
}

.lab-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 24px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.lab-cta-card p:not(.card-kicker) {
  max-width: 780px;
  margin: 0;
  color: #d0d0d0;
  line-height: 1.65;
}

/* FINAL CTA */

.knowledge-final-cta {
  padding: 66px 0 76px;
  text-align: center;
  background:
    radial-gradient(circle at bottom right, rgba(194, 122, 58, 0.18), transparent 35%),
    #151515;
}

.knowledge-final-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -0.03em;
}

.knowledge-final-cta p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #d0d0d0;
  line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .article-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-feature-card,
  .lab-cta-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .knowledge-hero {
    padding: 64px 0 44px;
  }

  .article-card-grid {
    grid-template-columns: 1fr;
  }

  .calculator-feature-card,
  .lab-cta-card {
    padding: 24px;
  }

.article-card-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  padding: 12px;
  background:
    radial-gradient(circle at center, rgba(194, 122, 58, 0.2), transparent 58%),
    #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.article-card-graphic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
  
.knowledge-section {
    padding: 44px 0;
  }
}
/* =========================================================
   RAMPWARDEN ARTICLE PAGES
   ========================================================= */

.article-page {
  background: #101010;
  color: #f4f4f4;
}

/* ARTICLE HERO */

.article-hero {
  padding: 68px 0 52px;
  background:
    radial-gradient(circle at top right, rgba(194, 122, 58, 0.16), transparent 34%),
    linear-gradient(135deg, #111111 0%, #1a1a1a 60%, #0c0c0c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 42px;
  align-items: center;
}

.article-back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: #cfcfcf;
  font-weight: 700;
  text-decoration: none;
}

.article-back-link:hover {
  color: #c27a3a;
}

.article-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.article-subtitle {
  max-width: 780px;
  margin: 20px 0 0;
  color: #d0d0d0;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: #a9a9a9;
  font-size: 0.92rem;
}

.article-meta span {
  position: relative;
}

.article-meta span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -12px;
  color: #777;
}

.article-hero-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  padding: 0px;
  border-radius: 32px;
  background:
    radial-gradient(circle at center, rgba(194, 122, 58, 0.22), transparent 58%),
    #151515;
  border: 1px solid rgba(194, 122, 58, 0.28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.article-hero-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ARTICLE BODY LAYOUT */

.article-content-section {
  padding: 58px 0 64px;
}

.article-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 740px) 320px;
  gap: 52px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-body p {
  margin: 0 0 22px;
  color: #dddddd;
  font-size: 1.04rem;
  line-height: 1.78;
}

.article-body .article-lede {
  color: #f1f1f1;
  font-size: 1.16rem;
  line-height: 1.74;
}

.article-body h2 {
  margin: 42px 0 16px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.article-body h3 {
  margin: 30px 0 12px;
  color: #ffffff;
  font-size: 1.28rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 22px;
  color: #dddddd;
  line-height: 1.75;
}

.article-body li {
  margin-bottom: 8px;
}

.article-math-box {
  margin: 26px 0;
  padding: 22px;
  border-radius: 18px;
  background: rgba(194, 122, 58, 0.1);
  border: 1px solid rgba(194, 122, 58, 0.35);
}

.article-math-box p {
  margin: 0 0 8px;
  color: #f4f4f4;
  font-weight: 700;
}

.article-math-box p:last-child {
  margin-bottom: 0;
}

.article-takeaway {
  margin: 36px 0 0;
  padding: 26px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(194, 122, 58, 0.18), rgba(255, 255, 255, 0.04)),
    #181818;
  border: 1px solid rgba(194, 122, 58, 0.35);
}

.article-takeaway h3 {
  margin: 0 0 10px;
}

.article-takeaway p {
  margin-bottom: 0;
}

/* SIDEBAR */

.article-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 24px;
  border-radius: 22px;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.sidebar-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.22rem;
}

.sidebar-card p:not(.card-kicker) {
  margin: 0 0 18px;
  color: #cfcfcf;
  line-height: 1.62;
  font-size: 0.95rem;
}

.text-link {
  color: #c27a3a;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ARTICLE CALCULATOR CTA */

.article-calculator-cta {
  padding: 58px 0;
  background:
    radial-gradient(circle at bottom right, rgba(194, 122, 58, 0.16), transparent 36%),
    #151515;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.article-cta-inner {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.article-cta-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
}

.article-cta-inner p {
  max-width: 740px;
  margin: 0 auto 26px;
  color: #d0d0d0;
  line-height: 1.68;
}

/* RELATED ARTICLES */

.related-articles-section {
  padding: 58px 0 76px;
  background: #101010;
}

.related-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.related-article-card {
  display: block;
  padding: 24px;
  border-radius: 20px;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.related-article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(194, 122, 58, 0.7);
}

.related-article-card span {
  display: block;
  margin-bottom: 10px;
  color: #c27a3a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.related-article-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.3;
}

.related-article-card p {
  margin: 0;
  color: #cfcfcf;
  line-height: 1.55;
  font-size: 0.94rem;
}

/* RESPONSIVE ARTICLE PAGES */

@media (max-width: 950px) {
  .article-hero-inner {
    grid-template-columns: 1fr;
  }

  .article-hero-graphic {
    width: 160px;
    height: 160px;
  }

  .article-hero-graphic img {
    width: 88px;
    height: 88px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding: 52px 0 42px;
  }

  .article-content-section {
    padding: 42px 0 52px;
  }

  .article-body p {
    font-size: 1rem;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-meta {
    display: block;
  }

  .article-meta span {
    display: block;
    margin-bottom: 6px;
  }

  .article-meta span::after {
    display: none;
  }
}
.article-table-wrap {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #181818;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.article-table th,
.article-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-table th {
  color: #ffffff;
  background: rgba(194, 122, 58, 0.14);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-table td {
  color: #d8d8d8;
  font-size: 0.96rem;
  line-height: 1.55;
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table td:nth-child(2) {
  color: #c27a3a;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .article-table th,
  .article-table td {
    padding: 14px;
    font-size: 0.92rem;
  }
}
.article-table-wrap {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #181818;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.article-table th,
.article-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-table th {
  color: #ffffff;
  background: rgba(194, 122, 58, 0.14);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-table td {
  color: #d8d8d8;
  font-size: 0.96rem;
  line-height: 1.55;
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table td:nth-child(2),
.article-table td:nth-child(3) {
  color: #c27a3a;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .article-table th,
  .article-table td {
    padding: 14px;
    font-size: 0.92rem;
  }
}

/* =========================================================
   RAMPWARDEN LAB LANDING PAGE
   ========================================================= */

.lab-page {
  background: #101010;
  color: #f4f4f4;
}

.lab-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* HERO */

.lab-hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(circle at top right, rgba(194, 122, 58, 0.18), transparent 34%),
    linear-gradient(135deg, #111111 0%, #1a1a1a 58%, #0c0c0c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.lab-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lab-hero-subtitle {
  max-width: 780px;
  margin: 22px 0 0;
  color: #d0d0d0;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.lab-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.lab-hero-card {
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(194, 122, 58, 0.16), rgba(255, 255, 255, 0.04)),
    #181818;
  border: 1px solid rgba(194, 122, 58, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.lab-hero-card h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.55rem;
}

.lab-hero-card p:not(.card-kicker) {
  margin: 0;
  color: #d0d0d0;
  line-height: 1.65;
}

/* PHOTO STRIP */

.lab-photo-section {
  padding: 38px 0 20px;
}

.lab-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.lab-photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.lab-photo-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.lab-photo-card figcaption {
  padding: 14px 16px;
  color: #cfcfcf;
  font-size: 0.92rem;
  font-weight: 700;
}

/* SECTIONS */

.lab-section {
  padding: 62px 0;
}

.lab-section-alt {
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lab-two-column {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.lab-section h2,
.lab-section-header h2,
.lab-final-cta h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.lab-text-block p,
.lab-section-header p,
.lab-final-cta p {
  margin: 0 0 18px;
  color: #d0d0d0;
  line-height: 1.72;
}

.lab-text-block p:last-child {
  margin-bottom: 0;
}

.lab-section-header {
  max-width: 820px;
  margin-bottom: 26px;
}

/* RESEARCH CARDS */

.lab-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.lab-info-card {
  padding: 24px;
  border-radius: 22px;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.lab-info-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.18rem;
}

.lab-info-card p {
  margin: 0;
  color: #cfcfcf;
  line-height: 1.6;
}

/* PROGRAM CARDS */

.lab-program-list {
  display: grid;
  gap: 18px;
}

.lab-program-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border-radius: 22px;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.lab-program-card h3 {
  margin: 10px 0 10px;
  color: #ffffff;
  font-size: 1.25rem;
}

.lab-program-card p {
  max-width: 780px;
  margin: 0;
  color: #cfcfcf;
  line-height: 1.62;
}

.lab-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-status-complete {
  color: #101010;
  background: #c27a3a;
}

.lab-status-upcoming {
  color: #f4f4f4;
  background: rgba(255, 255, 255, 0.12);
}

.lab-status-planned {
  color: #f4f4f4;
  background: rgba(194, 122, 58, 0.22);
  border: 1px solid rgba(194, 122, 58, 0.35);
}

/* PLACEHOLDERS */

.lab-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.lab-placeholder-card {
  padding: 26px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(194, 122, 58, 0.08)),
    #1b1b1b;
  border: 1px dashed rgba(194, 122, 58, 0.45);
}

.lab-placeholder-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

.lab-placeholder-card p {
  margin: 0;
  color: #cfcfcf;
  line-height: 1.6;
}

/* FINAL CTA */

.lab-final-cta {
  padding: 70px 0 78px;
  text-align: center;
  background:
    radial-gradient(circle at bottom left, rgba(194, 122, 58, 0.17), transparent 36%),
    #151515;
}

.lab-final-cta p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.lab-final-cta .lab-hero-actions {
  justify-content: center;
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .lab-hero-grid,
  .lab-two-column {
    grid-template-columns: 1fr;
  }

  .lab-hero-card {
    max-width: 640px;
  }

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

  .lab-program-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .lab-hero {
    padding: 62px 0 46px;
  }

  .lab-section {
    padding: 48px 0;
  }

  .lab-card-grid,
  .lab-photo-grid,
  .lab-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .lab-photo-card img {
    height: 210px;
  }

  .lab-program-card,
  .lab-info-card,
  .lab-placeholder-card,
  .lab-hero-card {
    padding: 22px;
  }
}

/* =========================================================
   KNOWLEDGE BASE: KNOTS & HITCHES VIDEO CARDS
   ========================================================= */

.knot-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.knot-card {
  overflow: hidden;
  border-radius: 22px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.knot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 122, 58, 0.7);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
}

.knot-video-placeholder {
  position: relative;
  height: 178px;
  background:
    radial-gradient(circle at center, rgba(194, 122, 58, 0.16), transparent 58%),
    #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.knot-video-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.knot-video-placeholder::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  color: #101010;
  background: rgba(194, 122, 58, 0.92);
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.knot-card-body {
  padding: 22px;
}

.knot-card-body h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.knot-card-body p:not(.article-category) {
  margin: 0 0 16px;
  color: #cfcfcf;
  line-height: 1.58;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .knot-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .knot-video-placeholder {
    height: 210px;
  }
}
/* Calculator knot dropdown help text */

.knot-help-text {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(194, 122, 58, 0.08);
  border: 1px solid rgba(194, 122, 58, 0.24);
}

.knot-help-text p {
  margin: 0;
  color: #d0d0d0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.knot-help-text p + p {
  margin-top: 5px;
}

.knot-help-text a {
  color: #c27a3a;
  font-weight: 800;
  text-decoration: none;
}

.knot-help-text a:hover {
  text-decoration: underline;
}

.knot-help-note {
  color: #aeb0b3 !important;
  font-size: 0.84rem !important;
}

.article-related-section {
  background: #0f0f0f;
  padding: 3.5rem 1.25rem 4rem;
}

.article-related-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.article-related-card {
  display: block;
  padding: 1.25rem;
  border-radius: 16px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.article-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(182, 106, 44, 0.65);
}

.article-related-card span {
  display: block;
  margin-bottom: 0.45rem;
  color: #b66a2c;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-related-card h3 {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.3;
}

.article-related-card p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .article-related-grid {
    grid-template-columns: 1fr;
  }
}