@import url("/assets/instrument-sans-v51.css");

/* Proof & Principle v49: unified, responsive guide headers and editorial openers. */
:root {
  --pp-green: #102820;
  --pp-orange: #e94b16;
  --pp-line: #deddd7;
  --pp-muted: #555b55;
}

html,
body {
  overflow-x: clip;
}

body .nav-shell,
body .guide-header,
body .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--pp-line);
  box-shadow: none;
  backdrop-filter: none;
}

body .nav-shell header.nav,
body .guide-header,
body .site-header {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 92px;
  height: 92px;
  margin: 0;
  padding: 15px clamp(24px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

body .nav-shell .nav img,
body .guide-header img,
body .site-header .brand img {
  display: block;
  width: 222px !important;
  height: 61px !important;
  max-height: none !important;
  object-fit: contain;
  object-position: left center;
}

body .site-header .site-nav,
body .site-header .header-cta,
body .guide-header > a:not(:first-child),
body .hub-breadcrumbs {
  display: none !important;
}

body .guide-hero,
body main > .hero.wrap,
body main > .tequila-hero {
  box-sizing: border-box;
  width: min(1600px, 100%);
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(50px, 5.2vw, 78px) clamp(24px, 5vw, 78px) clamp(58px, 6vw, 90px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr) !important;
  gap: clamp(40px, 4.6vw, 74px) !important;
  align-items: center !important;
}

body .guide-hero-copy,
body main > .hero.wrap > div:first-child,
body main > .tequila-hero > div:first-child {
  min-width: 0;
  align-self: center;
}

body .guide-hero .eyebrow {
  font-size: 0 !important;
}

body .guide-hero .eyebrow::after {
  content: "ACADEMY GUIDE / EXPANDED EDITION";
  color: var(--pp-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

body main > .tequila-hero > div:first-child {
  display: flex;
  flex-direction: column;
}

body main > .tequila-hero > div:first-child::before {
  content: "ACADEMY GUIDE / EXPANDED EDITION";
  order: 1;
  margin: 0 0 24px;
  color: var(--pp-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

body .guide-hero h1,
body main > .hero.wrap h1,
body main > .tequila-hero h1 {
  max-width: 100%;
  margin: 0 !important;
  color: var(--pp-green) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(64px, 6.4vw, 104px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.06em !important;
  line-height: 0.84 !important;
  text-transform: uppercase;
}

body main > .tequila-hero h1 {
  order: 2;
}

body .guide-kicker,
body main > .hero.wrap .kicker,
body main > .tequila-hero .eyebrow {
  box-sizing: border-box;
  margin: 27px 0 0 !important;
  padding: 4px 0 4px 18px !important;
  border-left: 4px solid var(--pp-orange) !important;
  color: var(--pp-orange) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.35 !important;
  text-transform: uppercase;
}

body main > .tequila-hero .eyebrow {
  order: 3;
}

body .guide-deck,
body main > .hero.wrap .lead,
body main > .tequila-hero .lead {
  max-width: 720px;
  margin: 27px 0 0 !important;
  color: var(--pp-muted) !important;
  font-family: "Times New Roman", Times, serif !important;
  font-size: clamp(19px, 1.55vw, 24px) !important;
  line-height: 1.55 !important;
}

body main > .tequila-hero .lead {
  order: 4;
}

body .guide-actions,
body main > .tequila-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

body main > .tequila-hero .hero-actions {
  order: 5;
}

body .guide-cover,
body main > .hero.wrap .hero-photo,
body main > .tequila-hero .tequila-cover-card {
  box-sizing: border-box;
  width: min(100%, 640px) !important;
  max-width: 640px !important;
  margin: 0 !important;
  padding: 12px !important;
  justify-self: end !important;
  align-self: center;
  background: #fff;
  border: 1px solid var(--pp-line) !important;
  box-shadow: 0 20px 55px rgba(18, 34, 28, 0.12) !important;
  overflow: hidden;
}

body .guide-cover img,
body main > .hero.wrap .hero-photo img,
body main > .tequila-hero .tequila-cover-card img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
}

body main > .tequila-hero .tequila-cover-card img {
  content: url("/assets/guides/tequila/field.jpg");
}

@media (max-width: 980px) {
  body .guide-hero,
  body main > .hero.wrap,
  body main > .tequila-hero {
    grid-template-columns: 1fr !important;
    gap: 38px !important;
  }

  body .guide-cover,
  body main > .hero.wrap .hero-photo,
  body main > .tequila-hero .tequila-cover-card {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
    justify-self: start !important;
  }
}

@media (max-width: 640px) {
  body .nav-shell header.nav,
  body .guide-header,
  body .site-header {
    min-height: 76px;
    height: 76px;
    padding: 10px 18px;
  }

  body .nav-shell .nav img,
  body .guide-header img,
  body .site-header .brand img {
    width: 180px !important;
    height: 52px !important;
  }

  body .guide-hero,
  body main > .hero.wrap,
  body main > .tequila-hero {
    padding: 38px 18px 52px !important;
    gap: 30px !important;
  }

  body .guide-hero h1,
  body main > .hero.wrap h1,
  body main > .tequila-hero h1 {
    font-size: clamp(50px, 17vw, 76px) !important;
  }

  body .guide-deck,
  body main > .hero.wrap .lead,
  body main > .tequila-hero .lead {
    font-size: 18px !important;
  }

  body .guide-actions,
  body main > .tequila-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
