/* ===== Trinity School Brand Guide — Redesign ===== */

/* Import Google Fonts (Cinzel) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

/* ===== CSS Tokens ===== */
:root {
  --navy: #203462;
  --navy-hover: #182a52;
  --gold: #F6C64F;
  --cream: #FBF7EC;
  --ink: #26314a;
  --line: #e6dfc9;
  --bad: #b3382c;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

h1 {
  font-family: Cinzel, serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  line-height: 1.2;
}

h2 {
  font-family: Cinzel, serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}

h3 {
  font-family: Cinzel, serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--navy-hover);
}

em {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

/* ===== Eyebrow ===== */
.eyebrow {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin: 0 0 0.5rem 0;
}

.eyebrow::before {
  content: '// ';
  color: var(--gold);
  letter-spacing: 0;
}

.topbar .eyebrow,
.navy-section .eyebrow {
  color: #fff;
}

/* ===== Navy Topbar ===== */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.topbar img.crest {
  height: 48px;
  flex-shrink: 0;
}

.topbar .wordmark {
  font-family: Cinzel, serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar nav a {
  color: #fff;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.topbar nav a:hover {
  color: #fff;
}

.topbar nav a.current {
  border-bottom-color: var(--gold);
  color: #fff;
}

.btn-feedback {
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 0 12px 0 12px;
  cursor: pointer;
  border: none;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
  display: inline-block;
  margin-left: 12px;
  flex-shrink: 0;
}

.btn-feedback:hover {
  filter: brightness(0.96);
  color: var(--navy);
}

.btn-feedback:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.topbar .hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
}

.topbar .hamburger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (min-width: 841px) and (max-width: 1120px) {
  .topbar {
    flex-wrap: nowrap;
  }
  .topbar .wordmark {
    font-size: 12px;
  }
  .topbar nav {
    gap: 14px;
    font-size: 11px;
  }
}

/* ===== Wayfinding Strip ===== */
.wayfinding {
  background: var(--cream);
  position: sticky;
  top: 72px; /* topbar height: 48px crest + 12px padding x2 */
  z-index: 99;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 24px;
}

.wayfinding .chapter-label {
  flex-shrink: 0;
  font-weight: 700;
}

.wayfinding .chapter-name {
  flex-shrink: 0;
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.wayfinding .progress-rule {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.wayfinding .progress-rule::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gold);
  width: var(--progress, 0%); /* set from site.js */
  transition: width 0.1s linear;
}

.wayfinding .next-chapter {
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.wayfinding .next-chapter:hover {
  color: var(--navy-hover);
}

/* ===== Navy Footer ===== */
footer {
  background: var(--navy);
  color: #fff;
  padding: 32px;
  text-align: center;
  border-top: 4px solid var(--gold);
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  margin-top: 60px;
}

footer img.crest {
  height: 48px;
  margin-bottom: 16px;
  display: block;
}

footer p {
  font-size: 14px;
  color: #fff;
  margin: 0;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  min-height: 380px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.hero .title-block {
  position: relative;
  z-index: 10;
  background: var(--navy);
  padding: 32px;
  margin-top: auto;
  margin-left: 0;
  max-width: 600px;
}

.hero .title-block .eyebrow {
  color: #fff;
}

.hero .title-block h1 {
  color: #fff;
  margin-bottom: 8px;
}

.hero .title-block .subtitle {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 16px;
  color: #fff;
  margin: 0;
}

/* ===== Notice Panels ===== */
.notice {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 0 28px 0;
  font-style: italic;
  margin: 16px 0;
}

/* Boxed heading — the print brand's keyline device */
.boxhead {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--navy);
  font-family: Cinzel, serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 22px;
  font-size: 1rem;
  margin: 4px 0 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.notice.small {
  font-size: 14px;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 48px 0;
  padding: 24px;
}

.card.cream {
  background: var(--cream);
  border: none;
}

/* ===== Main Content ===== */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

main.narrow {
  max-width: 760px;
}

/* ===== Photo Thumbnail ===== */
.photo-thumb {
  border-radius: 0 0 24px 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 240px;
  background: var(--line);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb.large {
  border-radius: 0 0 36px 0;
}

/* ===== Button Styles ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: none;
  cursor: pointer;
  border-radius: 0 14px 0 14px;
  transition: all 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-hover);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: rgba(32, 52, 98, 0.08);
}

.btn-back {
  border-radius: 14px 0 14px 0;
}

/* ===== Copy-to-Clipboard ===== */
.copy-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  transition: color 0.2s;
}

.copy-btn:hover {
  color: var(--navy-hover);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 14px 0 14px;
  font-size: 14px;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Mobile Bottom Sheet ===== */
.bottom-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  animation: fadeIn 0.2s;
}

.bottom-sheet.open {
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bottom-sheet .sheet-content {
  background: #fff;
  margin-left: auto;
  margin-top: auto;
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 0 20px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.bottom-sheet .grabber {
  width: 40px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.bottom-sheet .chapters-list {
  list-style: none;
  margin: 20px 0;
}

.bottom-sheet .chapters-list li {
  margin-bottom: 12px;
}

.bottom-sheet .chapters-list a {
  display: block;
  padding: 12px 16px;
  color: var(--navy);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 0 12px 0;
  transition: all 0.2s;
}

.bottom-sheet .chapters-list a:hover {
  background: rgba(32, 52, 98, 0.08);
}

.bottom-sheet .chapters-list a.current {
  background: var(--cream);
  border-left-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.bottom-sheet .chapters-list a.current::after {
  content: '  You are here';
  display: inline-block;
  font-size: 12px;
  font-family: Arial, 'Helvetica Neue', sans-serif;
}

.bottom-sheet .sheet-buttons {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  padding-bottom: 20px;
}

.bottom-sheet .sheet-buttons a,
.bottom-sheet .sheet-buttons button {
  flex: 1;
}

/* ===== Floating Feedback Button ===== */
.floating-feedback {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  z-index: 150;
  animation: slideUp 0.3s;
}

@media (max-width: 840px) {
  .floating-feedback.visible {
    display: block;
  }
}

.floating-feedback .btn-feedback {
  width: 100%;
  padding: 14px 16px;
  border-radius: 0 16px 0 16px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(32, 52, 98, 0.3);
}

/* ===== Six Chapters Grid ===== */
.chapters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.chapter-row {
  display: flex;
  flex-direction: column;
}

.chapter-row .photo-thumb {
  margin-bottom: 16px;
}

.chapter-row .eyebrow {
  margin-bottom: 4px;
}

.chapter-row h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.chapter-row .chapter-blurb {
  font-style: italic;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 12px;
  flex: 1;
}

.chapter-row .btn {
  align-self: flex-start;
}

/* ===== Prev/Next Footer ===== */
.chapter-nav {
  display: flex;
  gap: 16px;
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.chapter-nav .btn {
  flex: none;
}

.chapter-nav .btn-back {
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
}

.chapter-nav .btn-next {
  margin-left: auto;
  background: var(--navy);
  color: #fff;
}

/* ===== Habit Cards ===== */
.habits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.habit-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  position: relative;
}

.habit-card .corner-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: 0 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Cinzel, serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  padding: 0 8px 8px 0;
}

.habit-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-right: 20px;
}

.habit-card p {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--ink);
}

.habit-card .how {
  background: var(--cream);
  padding: 12px;
  border-radius: 0 0 12px 0;
  font-size: 14px;
}

/* ===== Color Swatches ===== */
.swatches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.swatch {
  display: flex;
  flex-direction: column;
}

.swatch .color-chip {
  aspect-ratio: 2/1;
  border-radius: 0 0 48px 0;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.swatch .color-chip:hover {
  transform: scale(1.02);
}

.swatch .color-chip button {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.swatch .color-chip button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.swatch .meta {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.swatch .meta b {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== Ratio Bar ===== */
.ratio-bar {
  display: flex;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  margin: 24px 0;
  overflow: hidden;
}

.ratio-bar span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0 12px;
}

/* ===== Type Cards ===== */
.typecards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.typecard {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 0 0 36px 0;
}

.typecard .role {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  display: block;
}

.typecard .demo {
  padding: 16px;
  background: var(--cream);
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--navy);
}

.typecard p {
  font-size: 14px;
  margin-bottom: 12px;
}

.typecard .fallback {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 13px;
  font-family: Arial, 'Helvetica Neue', sans-serif;
}

/* ===== Logo Tiers ===== */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.logo-tier {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 48px 0;
  overflow: hidden;
}

.logo-tier .logo-image {
  background: #fff;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-bottom: 1px solid var(--line);
}

.logo-tier .logo-image img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.logo-tier .logo-content {
  padding: 20px;
}

.logo-tier .level {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

.logo-tier h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.logo-tier p {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--ink);
}

.logo-tier .apps {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
}

.logo-tier .apps b {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.logo-tier .btn {
  width: 100%;
  text-align: center;
  display: block;
}

/* ===== Background Rules ===== */
.bgrules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}

.bgrule {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
}

.bgrule .field {
  aspect-ratio: 2/1;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}

.bgrule .field img {
  max-height: 60px;
  max-width: 100%;
}

.bgrule .label {
  font-size: 15px;
  color: var(--ink);
}

.bgrule .label b {
  font-weight: 700;
}

/* ===== Never-Do-This Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.gallery-item {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery-item .demo {
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  min-height: 200px;
}

.gallery-item .demo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.gallery-item .caption {
  padding: 12px;
  font-size: 13px;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.gallery-item .caption::before {
  content: '✕  ';
  font-weight: 700;
  color: var(--bad);
}

/* ===== Do / Don't ===== */
.dodont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.dodont-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 0 0 24px 0;
}

.dodont-card h4 {
  margin-bottom: 12px;
  color: var(--navy);
}

.dodont-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dodont-card li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
}

.dodont-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

.dodont-card.dont li::before {
  content: '✕';
  color: var(--bad);
}

/* ===== Words Table ===== */
.words-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--line);
}

.words-table thead {
  background: var(--cream);
}

.words-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.words-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

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

/* ===== Recipe Cards ===== */
.recipe {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 24px;
  border-radius: 0 0 24px 0;
  overflow: hidden;
}

.recipe .header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: var(--cream);
}

.recipe .header img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0 0 24px 0;
}

.recipe .header .who {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.recipe .header h3 {
  margin-bottom: 12px;
}

.recipe .content {
  padding: 24px;
}

.recipe .content ol {
  list-style: decimal;
  margin-left: 24px;
  color: var(--ink);
}

.recipe .content li {
  margin-bottom: 12px;
  font-size: 15px;
}

.recipe .content li b {
  font-weight: 700;
}

.recipe .aside {
  background: var(--cream);
  padding: 16px;
  border-radius: 0 0 12px 0;
  margin: 12px 0;
  font-size: 13px;
  color: var(--ink);
}

.recipe .dorow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.recipe .dorow span {
  padding: 4px 0;
  font-size: 13px;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  color: var(--ink);
}

.recipe .dorow .y::before {
  content: '✓ ';
  font-weight: 700;
  color: var(--navy);
}

.recipe .dorow .n::before {
  content: '✕ ';
  font-weight: 700;
  color: var(--bad);
}

/* ===== Checklist ===== */
.checklist {
  background: var(--navy);
  color: #fff;
  padding: 34px;
  border-radius: 0 0 48px 0;
  margin: 40px 0 0;
}

.checklist h3 {
  margin-bottom: 20px;
  color: var(--gold);
}

.checklist ol {
  list-style: decimal;
  margin-left: 24px;
  color: #fff;
}

.checklist li {
  margin-bottom: 10px;
  font-size: 16px;
}

.checklist li i {
  font-style: italic;
  color: #fff;
}

/* ===== Approval Cards ===== */
.approval-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.approval-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 20px;
  border-radius: 0 0 24px 0;
}

.approval-card h4 {
  margin-bottom: 12px;
}

.approval-card ul {
  list-style: disc;
  margin-left: 20px;
  color: var(--ink);
}

.approval-card li {
  margin-bottom: 8px;
  font-size: 14px;
}

.approval-card li b {
  font-weight: 700;
}

.approval-card li i {
  font-style: italic;
}

/* ===== Contact Panel ===== */
.contact-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 0 0 24px 0;
  margin: 24px 0;
  text-align: center;
}

.contact-panel b {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-panel a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.contact-panel a:hover {
  text-decoration: underline;
}

.contact-panel .note {
  font-size: 13px;
  color: var(--ink);
  margin-top: 8px;
}

/* ===== Feedback Form ===== */
.feedback-form {
  background: var(--cream);
  padding: 40px 20px;
  border-radius: 0 0 24px 0;
}

.feedback-form .form-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 48px 0;
  padding: 32px;
  margin-bottom: 24px;
}

.dropzone {
  border: 2px dashed var(--navy);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 0 0 36px 0;
  transition: background 0.2s;
  background: var(--cream);
}

.dropzone:hover {
  background: rgba(32, 52, 98, 0.05);
}

.dropzone:focus-within {
  outline: 2px solid var(--gold);
}

.dropzone-text {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.dropzone-note {
  font-size: 13px;
  color: var(--ink);
}

.dropzone input[type="file"] {
  display: none;
}

/* ===== Kind Chips ===== */
.kind-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.kind-chip {
  display: flex;
  align-items: center;
}

.kind-chip input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.kind-chip label {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid transparent;
  background: var(--cream);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 14px 0 14px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: Arial, 'Helvetica Neue', sans-serif;
}

.kind-chip input[type="radio"]:checked + label {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.kind-chip label:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#preview-area {
  margin: 24px 0;
}

#preview-img {
  width: 100%;
  max-width: 400px;
  display: block;
  border-radius: 0 0 24px 0;
  margin-bottom: 16px;
}

/* ===== Result Card ===== */
.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 48px 0;
  padding: 32px;
  margin-top: 24px;
}

.verdict-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 0 12px 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  background: var(--cream);
  color: var(--navy);
  border: 1.5px solid var(--gold);
}

/* ===== Responsive ===== */
@media (max-width: 840px) {
  .topbar {
    padding: 12px 16px;
    gap: 12px;
  }

  .topbar .wordmark {
    display: none;
  }

  .topbar nav {
    display: none;
  }

  .topbar .hamburger {
    display: block;
    order: 3;
  }

  .topbar .btn-feedback {
    display: none;
  }

  .hamburger {
    width: 44px;
    height: 44px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 6px auto;
  }

  .wayfinding {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
    top: 72px;
    align-items: flex-start;
  }

  .wayfinding .progress-rule {
    width: 100%;
  }

  .chapters-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .typecards-grid {
    grid-template-columns: 1fr;
  }

  .logos-grid {
    grid-template-columns: 1fr;
  }

  .approval-cards {
    grid-template-columns: 1fr;
  }

  .swatches-grid {
    grid-template-columns: 1fr;
  }

  .bgrule {
    grid-template-columns: 1fr;
  }

  .recipe .header {
    grid-template-columns: 1fr;
  }

  .dorow {
    grid-template-columns: 1fr !important;
  }

  .floating-feedback {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  footer {
    padding: 20px;
  }
}
