@import url('/assets/css/fonts.css');

.brand-guide-page {
  --guide-red: #ed4141;
  --guide-ui-red: #b71c1c;
  --guide-deep-red: #5c0000;
  --guide-black: #0a0a0a;
  --guide-ink: #171717;
  --guide-gray: #666;
  --guide-warm-gray: #f7f7f7;
  --guide-paper: #fff;
  --guide-line: #dedbd6;
  --guide-shadow: 0 18px 60px rgba(10, 10, 10, 0.1);
  --text: var(--guide-ink);
  --bg: #f2efea;
  --surface: var(--guide-paper);
  --surface-alt: var(--guide-warm-gray);
  --border: var(--guide-line);
  --muted: var(--guide-gray);
  --primary: var(--guide-ui-red);
  --primary-variant: var(--guide-deep-red);
  --on-primary: #fff;
  background: var(--bg);
  color: var(--guide-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.brand-guide-page main {
  display: block;
}

.guide-hero {
  position: relative;
  overflow: hidden;
  background: var(--guide-black);
  color: #fff;
  isolation: isolate;
}

.guide-hero::before,
.guide-hero::after {
  position: absolute;
  content: '';
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.85;
  z-index: -1;
}

.guide-hero::before {
  width: 42rem;
  height: 42rem;
  right: -18rem;
  top: -26rem;
  background: radial-gradient(circle, rgba(237, 65, 65, 0.48), rgba(237, 65, 65, 0));
}

.guide-hero::after {
  width: 30rem;
  height: 30rem;
  left: -12rem;
  bottom: -24rem;
  background: radial-gradient(circle, rgba(92, 0, 0, 0.8), rgba(92, 0, 0, 0));
}

.guide-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 64px;
  align-items: center;
}

.guide-eyebrow,
.guide-kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guide-eyebrow { color: var(--guide-red); }
.guide-kicker { color: var(--guide-ui-red); }

.guide-hero h1,
.guide-section h2,
.guide-display,
.poster-preview-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.guide-hero h1 {
  max-width: 780px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.88;
}

.guide-hero h1 span {
  display: block;
  color: var(--guide-red);
}

.guide-hero-lede {
  max-width: 650px;
  margin: 0;
  color: #ddd;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.65;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.guide-meta span {
  padding: 8px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  color: #ddd;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-hero-mark {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 48px 38px;
  border: 1px solid #333;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.guide-hero-mark::after {
  position: absolute;
  right: 24px;
  bottom: 20px;
  content: 'STRENGTH • COMMUNITY • 24/7';
  color: #777;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.guide-hero-mark img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 25px rgba(237, 65, 65, 0.2));
}

.guide-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 100px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 30px rgba(10, 10, 10, 0.05);
  backdrop-filter: blur(12px);
}

.guide-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-toc a {
  display: block;
  padding: 7px 0;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
  color: var(--guide-ui-red);
  text-decoration: underline;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  scroll-margin-top: 24px;
  padding: 0 0 74px;
  margin: 0 0 74px;
  border-bottom: 1px solid #d3cfc8;
}

.guide-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.guide-section h2 {
  margin: 0 0 14px;
  color: var(--guide-black);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.guide-section-intro {
  max-width: 760px;
  margin: 0 0 34px;
  color: #4c4c4c;
  font-size: 1.08rem;
  line-height: 1.7;
}

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

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

.guide-card {
  padding: 24px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.04);
}

.guide-card-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--guide-black);
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-card h3 {
  margin: 0 0 10px;
  color: var(--guide-black);
  font-size: 1.05rem;
}

.guide-card p,
.guide-card li {
  color: #555;
  font-size: 0.94rem;
  line-height: 1.65;
}

.guide-card p:last-child {
  margin-bottom: 0;
}

.guide-positioning {
  margin-top: 22px;
  padding: 34px;
  border-left: 7px solid var(--guide-red);
  border-radius: 0 16px 16px 0;
  background: var(--guide-black);
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.5;
}

.logo-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.logo-stage {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 48px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: #fff;
}

.logo-stage.dark {
  border-color: #222;
  background: var(--guide-black);
}

.logo-stage img {
  width: min(100%, 390px);
  height: auto;
}

.asset-actions,
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 2px solid var(--guide-black);
  border-radius: 7px;
  color: #fff;
  background: var(--guide-black);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.guide-button.secondary {
  color: var(--guide-black);
  background: transparent;
}

.guide-button:hover,
.guide-button:focus-visible {
  color: #fff;
  border-color: var(--guide-ui-red);
  background: var(--guide-ui-red);
}

.rule-list,
.check-list,
.avoid-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li,
.check-list li,
.avoid-list li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
  color: #444;
  line-height: 1.55;
}

.check-list li::before,
.rule-list li::before {
  position: absolute;
  left: 0;
  content: '✓';
  color: var(--guide-ui-red);
  font-weight: 700;
}

.avoid-list li::before {
  position: absolute;
  left: 2px;
  content: '×';
  color: var(--guide-ui-red);
  font-weight: 700;
}

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

.swatch {
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: #fff;
}

.swatch-color {
  height: 126px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.swatch-color.logo-red { background: #ed4141; }
.swatch-color.action-red { background: #b71c1c; }
.swatch-color.deep-red { background: #5c0000; }
.swatch-color.gym-black { background: #0a0a0a; }
.swatch-color.chalk-white { background: #fff; }
.swatch-color.warm-concrete { background: #f7f7f7; }

.swatch-info {
  padding: 17px;
}

.swatch-info strong,
.swatch-info code,
.swatch-info span {
  display: block;
}

.swatch-info code {
  margin: 4px 0;
  color: #222;
  font-size: 0.88rem;
}

.swatch-info span {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.45;
}

.guide-note {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #e5c3c3;
  border-radius: 12px;
  background: #fff5f5;
  color: #4d2626;
  font-size: 0.9rem;
  line-height: 1.6;
}

.type-specimen {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #222;
  border-radius: 16px;
  background: var(--guide-black);
  color: #fff;
}

.type-display,
.type-body {
  padding: 34px;
}

.type-display {
  border-bottom: 1px solid #2e2e2e;
}

.type-display strong {
  display: block;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(3.8rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.88;
}

.type-display strong span {
  color: var(--guide-red);
}

.type-label {
  display: block;
  margin-bottom: 14px;
  color: #8d8d8d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.type-body p {
  max-width: 650px;
  margin: 0;
  color: #d8d8d8;
  font-size: 1rem;
  line-height: 1.7;
}

.voice-example {
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--guide-line);
}

.voice-example.good {
  border-top: 5px solid var(--guide-ui-red);
}

.voice-example.avoid {
  border-top: 5px solid #777;
}

.voice-example h3 {
  margin-top: 0;
}

.headline-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.headline-bank span {
  padding: 20px;
  border-radius: 10px;
  color: #fff;
  background: var(--guide-black);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.headline-bank span:nth-child(even) {
  color: var(--guide-black);
  background: var(--guide-red);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: 210px 210px;
  gap: 12px;
  margin-bottom: 24px;
}

.photo-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: #111;
}

.photo-grid figure:first-child {
  grid-row: 1 / 3;
}

.photo-grid figure:last-child {
  grid-column: 2 / 4;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.photo-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 14px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  font-size: 0.78rem;
  font-weight: 600;
}

.ad-anatomy {
  counter-reset: anatomy;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.ad-anatomy li {
  counter-increment: anatomy;
  min-height: 98px;
  padding: 18px 18px 18px 64px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: #fff;
  line-height: 1.55;
  position: relative;
}

.ad-anatomy li::before {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  content: counter(anatomy);
  color: #fff;
  background: var(--guide-ui-red);
  font-size: 0.76rem;
  font-weight: 700;
}

.poster-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.poster-preview-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--guide-shadow);
}

.poster-frame {
  overflow: hidden;
  aspect-ratio: 11 / 17;
  border: 1px solid #222;
  background: #111;
}

.poster-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.poster-preview-title {
  margin: 18px 0 6px;
  color: var(--guide-black);
  font-size: 2rem;
  line-height: 1;
}

.poster-preview-card p {
  margin: 0;
  color: #666;
  font-size: 0.88rem;
}

.poster-preview-card--single {
  max-width: 660px;
}

.guide-shell-single {
  display: block;
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: #fff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--guide-line);
  vertical-align: top;
}

.spec-table th {
  color: #fff;
  background: var(--guide-black);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-table td {
  color: #444;
  font-size: 0.88rem;
  line-height: 1.55;
}

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

.approval-box {
  padding: 34px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--guide-deep-red), #7f0000);
}

.approval-box h3 {
  margin-top: 0;
  color: #fff;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
}

.approval-box .check-list li {
  color: #fff;
}

.approval-box .check-list li::before {
  color: #ffd0d0;
}

.guide-fine-print {
  margin-top: 28px;
  color: #666;
  font-size: 0.75rem;
  line-height: 1.6;
}

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

  .guide-hero-mark {
    min-height: 260px;
  }

  .guide-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .guide-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .guide-toc strong {
    width: 100%;
  }

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

@media (max-width: 700px) {
  .guide-hero-inner {
    padding-top: 58px;
  }

  .guide-hero h1 {
    font-size: clamp(3.5rem, 19vw, 5.5rem);
  }

  .guide-shell {
    padding: 40px 16px 70px;
  }

  .guide-section {
    padding-bottom: 52px;
    margin-bottom: 52px;
  }

  .guide-grid,
  .guide-grid.two,
  .logo-stage-grid,
  .swatch-grid,
  .headline-bank,
  .ad-anatomy,
  .poster-preview-grid {
    grid-template-columns: 1fr;
  }

  .logo-stage {
    min-height: 210px;
    padding: 32px;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 170px;
  }

  .photo-grid figure:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .photo-grid figure:last-child {
    grid-column: auto;
  }
}

@media print {
  .brand-guide-page {
    background: #fff;
  }

  .brand-guide-page .nav,
  .brand-guide-page .footer,
  .guide-toc,
  .guide-actions {
    display: none !important;
  }

  .guide-hero-inner,
  .guide-shell {
    max-width: none;
  }

  .guide-shell {
    display: block;
    padding: 40px;
  }

  .guide-section {
    break-inside: avoid;
  }
}
