/* =====================================================================
   Vacation Math — printable city briefs
   Editorial brief, not form output. Honey / navy tips box sits last.
   ===================================================================== */

.cg-page {
  background: var(--cream, #FBF7EF);
  color: var(--ink, #1A1A1A);
}

.cg-wrap {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 1.75rem var(--gutter, clamp(20px, 5vw, 56px)) 4.5rem;
}

.cg-print-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  margin: 0 0 4px;
  background: var(--cream, #FBF7EF);
  border-bottom: 1px solid var(--hairline, rgba(14, 42, 71, 0.12));
}

.cg-print-bar-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #6B6660);
  line-height: 1.45;
}

.cg-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--honey, #E6A340);
  color: var(--navy, #0E2A47);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.cg-print-btn:hover,
.cg-print-btn:focus-visible {
  background: var(--honey-soft, #F2C879);
}

.cg-hero {
  padding: 1.85rem 0 0.4rem;
}

.cg-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey, #E6A340);
  margin: 0 0 10px;
}

.cg-h1 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: clamp(2.15rem, 4.4vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--navy, #0E2A47);
  margin: 0 0 16px;
  text-wrap: balance;
}

.cg-hook {
  font-size: 1.22rem;
  line-height: 1.55;
  margin: 0 0 18px;
  color: var(--ink-soft, #3D3A36);
  max-width: 40rem;
}

.cg-orient {
  display: inline-block;
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--navy, #0E2A47);
  color: var(--cream, #FBF7EF);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.cg-crumb {
  margin: 16px 0 0;
  font-size: 0.88rem;
}

.cg-crumb a {
  color: var(--navy, #0E2A47);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cg-section {
  padding: 2.15rem 0 0.15rem;
}

.cg-h2 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: clamp(1.55rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--navy, #0E2A47);
  margin: 0 0 12px;
  text-wrap: balance;
}

.cg-lede,
.cg-prose {
  margin: 0 0 14px;
  line-height: 1.68;
  font-size: 1.02rem;
}

.cg-prose + .cg-prose {
  margin-top: -2px;
}

.cg-subhead {
  margin: 1.15rem 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy, #0E2A47);
}

.cg-align {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted, #6B6660);
  line-height: 1.5;
}

.cg-align a {
  color: var(--navy, #0E2A47);
  font-weight: 600;
}

.cg-works .cg-prose {
  font-size: 1.08rem;
  line-height: 1.7;
}

.cg-base {
  margin: 1.6rem 0 0.4rem;
  padding: 1.15rem 1.2rem 1rem;
  background: #fff;
  border: 1px solid var(--hairline, rgba(14, 42, 71, 0.12));
  border-left: 5px solid var(--honey, #E6A340);
  border-radius: 0 14px 14px 0;
}

.cg-base-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey, #E6A340);
}

.cg-base-lede {
  margin: 0 0 10px;
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.15rem;
  color: var(--navy, #0E2A47);
  line-height: 1.4;
}

.cg-base p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.cg-base p:last-child {
  margin-bottom: 0;
}

.cg-days {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.cg-day {
  background: #fff;
  border: 1px solid var(--hairline, rgba(14, 42, 71, 0.1));
  border-radius: 14px;
  padding: 16px 18px 14px;
}

.cg-day-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey, #E6A340);
}

.cg-day h3 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.18rem;
  color: var(--navy, #0E2A47);
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

.cg-day p {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft, #3D3A36);
}

.cg-when-line {
  margin: 0 0 8px;
  line-height: 1.55;
}

.cg-when-line span {
  display: inline-block;
  min-width: 4.5rem;
  margin-right: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey, #E6A340);
}

.cg-bands {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.cg-band {
  background: #fff;
  border: 1px solid var(--hairline, rgba(14, 42, 71, 0.1));
  border-radius: 14px;
  padding: 14px 16px 12px;
}

.cg-band-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey, #E6A340);
  margin: 0 0 6px;
}

.cg-why {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft, #3D3A36);
}

.cg-namewhy {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg-namewhy li {
  margin: 0 0 8px;
  padding-left: 0.85rem;
  position: relative;
  line-height: 1.5;
}

.cg-namewhy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--honey, #E6A340);
}

.cg-namewhy li:last-child {
  margin-bottom: 0;
}

.cg-namewhy strong {
  color: var(--navy, #0E2A47);
  font-weight: 700;
}

.cg-namewhy span {
  color: var(--ink-soft, #3D3A36);
}

.cg-plain {
  margin: 0;
  padding-left: 1.15rem;
}

.cg-plain li {
  margin: 0 0 8px;
  line-height: 1.55;
}

.cg-do-split {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

@media (min-width: 700px) {
  .cg-do-split {
    grid-template-columns: 1fr 1fr;
  }
}

.cg-note {
  margin: 10px 0 0;
  color: var(--ink-soft, #3D3A36);
  line-height: 1.55;
}

.cg-skip {
  padding-top: 2.25rem;
}

.cg-skip-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg-skip-list li {
  margin: 0 0 10px;
  padding: 10px 12px 10px 14px;
  background: #fff;
  border-left: 3px solid #C4501A;
  border-radius: 0 10px 10px 0;
  line-height: 1.55;
}

.cg-skip-list li:last-child {
  margin-bottom: 0;
}

.cg-budget {
  background: #fff;
  border-left: 4px solid var(--honey, #E6A340);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
}

.cg-budget p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.cg-budget p:last-child {
  margin-bottom: 0;
}

/* Top money-saving tips — last, visually distinct */
.cg-tips {
  margin: 2.4rem 0 0.5rem;
  padding: 1.4rem 1.35rem 1.2rem;
  background: var(--navy, #0E2A47);
  color: var(--cream, #FBF7EF);
  border-radius: 16px;
  border: 3px solid var(--honey, #E6A340);
  box-shadow: 0 10px 30px rgba(8, 24, 42, 0.12);
}

.cg-tips-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey, #E6A340);
}

.cg-tips h2 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.6rem;
  color: var(--cream, #FBF7EF);
  margin: 0 0 12px;
}

.cg-tips ol {
  margin: 0;
  padding-left: 1.25rem;
}

.cg-tips li {
  margin: 0 0 11px;
  line-height: 1.55;
}

.cg-tips li:last-child {
  margin-bottom: 0;
}

.cg-tips a {
  color: var(--honey-soft, #F2C879);
  font-weight: 650;
}

.cg-cta {
  margin: 2rem 0 0;
  padding: 1.4rem 1.25rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--hairline, rgba(14, 42, 71, 0.12));
}

.cg-cta h2 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.35rem;
  color: var(--navy, #0E2A47);
  margin: 0 0 8px;
}

.cg-cta .capture input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 10px 12px;
  border: 1.5px solid var(--hairline, rgba(14, 42, 71, 0.12));
  border-radius: 10px;
  font: inherit;
}

.cg-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}

.cg-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}

.cg-btn-primary {
  background: var(--navy, #0E2A47);
  color: var(--cream, #FBF7EF);
}

.cg-btn-ghost {
  border: 1.5px solid var(--navy, #0E2A47);
  color: var(--navy, #0E2A47);
}

.cg-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.cg-related a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #f0f4f8;
  border-radius: 6px;
  text-decoration: none;
  color: #1e3a5f;
  font-size: 0.88rem;
}

.cg-more {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline, rgba(14, 42, 71, 0.12));
}

.cg-more h2 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.2rem;
  color: var(--navy, #0E2A47);
  margin: 0 0 10px;
}

.cg-more-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cg-more-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cg-more a {
  color: var(--navy, #0E2A47);
  font-weight: 600;
  text-decoration: none;
}

.cg-more a:hover {
  color: var(--honey, #E6A340);
}

.cg-fine {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted, #6B6660);
}

/* Index cards */
.cg-index-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cg-index-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cg-index-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline, rgba(14, 42, 71, 0.12));
  border-radius: 14px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.cg-index-card:hover {
  border-color: var(--honey, #E6A340);
}

.cg-index-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--honey, #E6A340);
  margin: 0 0 4px;
}

.cg-index-card h3 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.2rem;
  color: var(--navy, #0E2A47);
  margin: 0 0 6px;
}

.cg-index-card p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ink-soft, #3D3A36);
  flex: 1;
}

.cg-index-actions {
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.cg-index-actions span,
.cg-index-actions a {
  color: var(--navy, #0E2A47);
  text-decoration: none;
}

/* Print / Save as PDF — full brief, tips kept */
@media print {
  @page {
    margin: 0.55in;
  }

  html, body.cg-page {
    background: #fff !important;
    color: #1A1A1A !important;
  }

  .vm-nav,
  .vm-nav-toggle,
  nav.vm-nav,
  footer,
  .related-articles,
  .cg-print-bar,
  .cg-no-print,
  .cg-cta,
  .cg-cta form,
  .cg-more,
  .cg-budget .cg-btn {
    display: none !important;
  }

  .cg-wrap {
    max-width: none;
    padding: 0;
  }

  .cg-hero {
    padding-top: 0;
  }

  .cg-section,
  .cg-base,
  .cg-tips,
  .cg-day,
  .cg-band,
  .cg-skip-list li {
    break-inside: avoid;
  }

  .cg-orient {
    background: #fff;
    color: #0E2A47;
    border: 1pt solid #0E2A47;
  }

  .cg-tier,
  .cg-band,
  .cg-day,
  .cg-budget,
  .cg-base,
  .cg-cta {
    box-shadow: none;
    background: #fff !important;
  }

  .cg-tips {
    background: #fff !important;
    color: #0E2A47 !important;
    border: 2.5pt solid #E6A340;
    box-shadow: none;
    margin-top: 1.2rem;
  }

  .cg-tips-kicker {
    color: #C4501A !important;
  }

  .cg-tips h2 {
    color: #0E2A47 !important;
  }

  .cg-tips a {
    color: #0E2A47 !important;
    text-decoration: underline;
  }

  a {
    color: inherit;
  }

  .cg-cta a.cg-btn-primary::after {
    content: "  (vacationmath.co" attr(href) ")";
    font-weight: 500;
    font-size: 0.85em;
  }
}
