/* ============================================================
   Premium Packages section — additive CSS, rev. 2.

   Rewritten against your real styles.css tokens (--ink, --ledger,
   --ledger-line, --brass, --brass-dark, --paper, --muted, --steel) —
   the first pass guessed several of these and got them wrong
   (frame background is --paper, a warm off-white, not #fff; there's
   no generic .btn-outline, just scoped .tpl-hero .btn / .tpl-cta-band
   .btn patterns — followed that convention here instead of inventing
   a new one). Everything below is new classes only; nothing here
   touches your existing .tpl-*, .frame*, .btn, .badge, etc.
   ============================================================ */

.premium-teaser {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--muted);
}
.premium-teaser a {
  color: var(--brass-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* Mega-menu trigger inside .tpl-menu — existing spans are plain labels;
   this variant gets a caret to signal it opens a panel */
.tpl-menu-trigger { display: inline-flex; align-items: center; gap: 4px; }
.tpl-menu-trigger svg { flex-shrink: 0; }

/* Sub-nav mega-panel, shown open (static — this is a preview, not the
   live interactive component, so no JS toggle needed here) */
.tpl-subnav-panel {
  background: var(--paper);
  border-top: 1px solid var(--ledger-line);
  padding: 20px 24px;
}
.tpl-subnav-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.tpl-subnav-head h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brass-dark);
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.tpl-subnav-hatch {
  flex: 1 1 auto;
  height: 10px;
  opacity: .45;
  background-image: repeating-linear-gradient(45deg, var(--brass) 0, var(--brass) 2px, transparent 2px, transparent 8px);
}
.tpl-subnav-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
.tpl-subnav-links a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--ledger-line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
}
.tpl-subnav-links a:hover { color: var(--brass-dark); }

/* Promo tiles — icon + bold title + one-line caption, no card chrome.
   Matches .tpl-card h5's Fraunces/600 heading treatment. */
.tpl-promo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 32px 24px; }
.tpl-promo-tile { text-align: center; }
.tpl-promo-tile .icon { font-size: 1.3rem; margin-bottom: 8px; }
.tpl-promo-tile h5 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.92rem; margin: 0 0 4px; }
.tpl-promo-tile p { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 700px) { .tpl-promo-tiles { grid-template-columns: 1fr; } }

/* Feature section w/ background variant — dark ink panel + media panel,
   same dark-panel-with-opacity-text pattern as .tpl-hero and .tpl-footer */
.tpl-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 220px; }
@media (max-width: 900px) { .tpl-feature { grid-template-columns: 1fr; } }
.tpl-feature-body { background: var(--ink); color: var(--paper); padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.tpl-feature-body .tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 10px;
}
.tpl-feature-body h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.3rem; margin: 0 0 10px; }
.tpl-feature-body p { font-size: 0.88rem; opacity: .85; margin: 0 0 18px; }
.tpl-feature-body .btn {
  display: inline-block;
  width: fit-content;
  background: var(--brass);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 11px 22px;
  border-radius: 2px;
  text-decoration: none;
}
.tpl-feature-media { background: linear-gradient(135deg, var(--brass-dark), var(--ink)); }

/* Compliance bar (Premium Package 2) — second dark bar directly below
   .tpl-footer, same var(--ink) background and #B8B0A0 body-text color
   .tpl-footer already uses (that value is used literally there too,
   not stored as a token), var(--paper) reserved for headings/links
   same as .tpl-footer-cols h6 */
.tpl-compliance-bar { background: var(--ink); color: #B8B0A0; padding: 20px 32px 16px; font-size: 0.8rem; }
.tpl-compliance-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; }
.tpl-compliance-id { display: flex; align-items: center; gap: 12px; }
.tpl-compliance-mark {
  width: 34px; height: 34px; border: 2px solid var(--brass); color: var(--brass);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; flex-shrink: 0;
}
.tpl-compliance-id p { margin: 0 0 2px; }
.tpl-compliance-id a { color: var(--brass); }
.tpl-compliance-system { text-align: right; }
.tpl-compliance-system span {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.06em; text-transform: uppercase; opacity: .7;
}
.tpl-compliance-links {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.75rem; font-weight: 600;
}
.tpl-compliance-links a { color: #B8B0A0; text-decoration: none; }
.tpl-compliance-links a:hover { color: var(--paper); text-decoration: underline; }

/* "Concept, not started" badge — same shape as the real .badge but a
   solid (not dashed) border, to read as more settled/certain than the
   "actively in progress" dashed style used for Interior/Marketing/
   Program Page/Leadership-Bio. Same tokens, no new colors invented. */
.badge-concept {
  background: var(--ledger);
  border: 1px solid var(--muted);
  color: var(--muted);
}

/* Premium badge — signals "this is the paid tier," distinct from
   the free Bundle 2 previews above it on the same page */
.premium-badge {
  display: inline-block;
  background: var(--brass);
  color: #1a1a1a;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Mega-menu annotation — explains what the sub-nav actually replaces,
   since the mechanic itself (a dropdown) doesn't self-explain why it's
   a premium feature */
.tpl-annotation {
  margin: 0;
  padding: 12px 24px;
  background: var(--forecast-bg);
  color: var(--forecast);
  font-size: 0.8rem;
  line-height: 1.5;
  border-top: 1px solid var(--ledger-line);
}

/* Feature-media placeholder — an icon + label reading as "your photo
   goes here," instead of a flat gradient that read as unfinished */
.tpl-media-placeholder {
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
}
.tpl-media-placeholder span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
