:root {
  --tbb-primary: #061b35;
  --tbb-gold: #c99a25;
  --tbb-accent: #e76f51;
  --tbb-cream: #fffaf0;
  --tbb-paper: #ffffff;
  --tbb-muted: #5d6676;
  --tbb-border: rgba(6, 27, 53, .12);
  --tbb-shadow: 0 18px 50px rgba(6, 27, 53, .12);
}

.tbb-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px;
  color: var(--tbb-primary);
  font-family: inherit;
}

.tbb-wrap *, .tbb-settings-wrap * {
  box-sizing: border-box;
}

.tbb-section-heading {
  text-align: center;
  margin: 0 0 28px;
}

.tbb-section-heading p,
.tbb-kicker,
.tbb-card-meta {
  color: var(--tbb-gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
}

.tbb-section-heading h2,
.tbb-hero-copy h1 {
  color: var(--tbb-primary);
  margin: 0;
  line-height: 1.05;
}

.tbb-section-heading h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.tbb-hero-copy h1 {
  font-size: clamp(34px, 5vw, 68px);
}

.tbb-tagline {
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tbb-muted);
  margin: 10px 0 20px;
}

.tbb-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 400px) 1fr;
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 15%, rgba(201, 154, 37, .18), transparent 30%),
    linear-gradient(135deg, #fffdf7 0%, #fff 55%, #f6efe0 100%);
  border: 1px solid var(--tbb-border);
  border-radius: 30px;
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--tbb-shadow);
}

.tbb-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 12px;
  background: linear-gradient(180deg, var(--tbb-primary), var(--tbb-gold));
}

.tbb-cover-frame {
  border-radius: 22px;
  overflow: hidden;
  background: var(--tbb-paper);
  box-shadow: 0 16px 34px rgba(6, 27, 53, .18);
  border: 1px solid rgba(201, 154, 37, .28);
}

.tbb-cover-frame img,
.tbb-card-image img,
.tbb-story-image img,
.tbb-sponsor-logo {
  display: block;
  width: 100%;
  height: auto;
}

.tbb-meta-row,
.tbb-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tbb-meta-row {
  margin: 0 0 20px;
}

.tbb-meta-row span {
  background: rgba(6, 27, 53, .06);
  border: 1px solid var(--tbb-border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.tbb-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--tbb-gold);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  border: 1px solid var(--tbb-gold);
  cursor: pointer;
  line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tbb-btn:hover,
.tbb-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(6, 27, 53, .18);
}

.tbb-btn-primary {
  background: var(--tbb-primary);
  border-color: var(--tbb-primary);
}

.tbb-btn-outline {
  background: transparent;
  color: var(--tbb-primary) !important;
  border-color: var(--tbb-primary);
}

.tbb-editorial-note {
  background: var(--tbb-primary);
  color: #fff;
  border-radius: 24px;
  margin: 30px 0;
  padding: clamp(22px, 4vw, 42px);
  border-bottom: 5px solid var(--tbb-gold);
}

.tbb-editorial-note h1,
.tbb-editorial-note h2,
.tbb-editorial-note h3,
.tbb-editorial-note a {
  color: #fff;
}

.tbb-issue-grid,
.tbb-story-grid,
.tbb-sponsor-grid {
  display: grid;
  gap: 22px;
}

.tbb-issue-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tbb-story-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tbb-sponsor-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tbb-issue-card,
.tbb-story-card,
.tbb-sponsor-card,
.tbb-empty,
.tbb-form {
  background: #fff;
  border: 1px solid var(--tbb-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(6, 27, 53, .08);
}

.tbb-card-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.tbb-card-body,
.tbb-story-body,
.tbb-sponsor-card {
  padding: 20px;
}

.tbb-issue-card h3,
.tbb-story-card h4,
.tbb-sponsor-card h4,
.tbb-empty h3,
.tbb-content-section h3 {
  margin: 0 0 10px;
  color: var(--tbb-primary);
}

.tbb-issue-card a,
.tbb-story-card a {
  color: var(--tbb-primary);
  text-decoration: none;
}

.tbb-issue-card p,
.tbb-story-card p,
.tbb-empty p,
.tbb-form label,
.tbb-price-callout {
  color: var(--tbb-muted);
}

.tbb-text-link {
  display: inline-flex;
  color: var(--tbb-gold) !important;
  font-weight: 800;
  margin-top: 8px;
}

.tbb-content-section {
  margin: 34px 0;
}

.tbb-content-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
}

.tbb-content-section h3::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--tbb-gold);
}

.tbb-story-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tbb-sponsors {
  margin-top: 36px;
}

.tbb-sponsor-card {
  text-align: center;
}

.tbb-sponsor-logo {
  max-height: 90px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.tbb-sponsor-placeholder {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--tbb-primary);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  border: 3px solid var(--tbb-gold);
}

.tbb-form {
  padding: clamp(20px, 4vw, 36px);
}

.tbb-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tbb-form label {
  display: block;
  font-weight: 700;
  margin: 0 0 16px;
}

.tbb-form input,
.tbb-form select,
.tbb-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--tbb-border);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  color: var(--tbb-primary);
  background: #fff;
}

.tbb-form textarea {
  resize: vertical;
}

.tbb-price-callout {
  text-align: center;
  background: rgba(201, 154, 37, .12);
  border: 1px solid rgba(201, 154, 37, .3);
  border-radius: 18px;
  padding: 14px 18px;
}

.tbb-success,
.tbb-error,
.tbb-notice {
  max-width: 860px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
}

.tbb-success {
  background: #edf8ef;
  color: #17632b;
}

.tbb-error {
  background: #fff0ee;
  color: #9b2b1c;
}

.tbb-notice,
.tbb-empty {
  background: #fff8e8;
  color: var(--tbb-primary);
}

.tbb-empty {
  padding: 28px;
  text-align: center;
  border-style: dashed;
}

.tbb-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: 20px;
}

.tbb-settings-main,
.tbb-settings-side .postbox {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 18px;
}

.tbb-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 18px;
}

@media (max-width: 820px) {
  .tbb-hero-card,
  .tbb-settings-layout {
    grid-template-columns: 1fr;
  }

  .tbb-hero-card {
    padding: 22px;
  }

  .tbb-tagline {
    font-size: 14px;
  }
}

/* Version 2 pro enhancements */
.tbb-pro-card,
.tbb-media-kit,
.tbb-calendar-wrap,
.tbb-distribution-wrap,
.tbb-reader-tools,
.tbb-qr-card {
    position: relative;
}

.tbb-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.tbb-stat-card {
    background: #fff;
    border: 1px solid rgba(6, 27, 53, .12);
    border-left: 5px solid var(--tbb-gold);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(6, 27, 53, .08);
}

.tbb-stat-card strong {
    display: block;
    color: var(--tbb-primary);
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
}

.tbb-stat-card span {
    color: var(--tbb-primary);
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: 12px;
}

.tbb-checklist {
    margin-left: 20px;
    line-height: 1.7;
}

.tbb-reader-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.tbb-action-card,
.tbb-package-card,
.tbb-event-card,
.tbb-location-card {
    background: #fff;
    border: 1px solid rgba(6, 27, 53, .1);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(6, 27, 53, .08);
}

.tbb-action-card h3,
.tbb-package-card h3,
.tbb-event-card h3,
.tbb-location-card h3 {
    margin-top: 0;
    color: var(--tbb-primary);
}

.tbb-media-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, rgba(6,27,53,.96), rgba(6,27,53,.84));
    color: #fff;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 24px;
    overflow: hidden;
}

.tbb-media-hero h3 {
    color: #fff;
    font-size: clamp(26px, 4vw, 44px);
    margin: 0 0 12px;
    line-height: 1.05;
}

.tbb-media-hero p {
    color: rgba(255,255,255,.88);
}

.tbb-media-facts {
    display: grid;
    gap: 10px;
}

.tbb-media-facts span {
    display: block;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.tbb-package-grid,
.tbb-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.tbb-package-price {
    color: var(--tbb-gold);
    font-weight: 900;
    font-size: 30px;
    line-height: 1;
    margin: 8px 0 12px;
}

.tbb-event-list {
    display: grid;
    gap: 16px;
}

.tbb-event-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.tbb-event-date {
    background: var(--tbb-primary);
    color: #fff;
    border-radius: 18px;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 2px var(--tbb-gold);
}

.tbb-event-date strong {
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tbb-event-date span {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.tbb-checkbox {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0 20px;
}

.tbb-checkbox input {
    width: auto !important;
    margin-top: 4px;
}

.tbb-qr-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: center;
    background: #fff;
    border: 2px solid var(--tbb-gold);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(6, 27, 53, .1);
}

.tbb-qr-card img {
    width: 260px;
    height: 260px;
    border-radius: 16px;
}

.tbb-kicker {
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--tbb-gold);
}

@media (max-width: 760px) {
    .tbb-media-hero,
    .tbb-event-card,
    .tbb-qr-card {
        grid-template-columns: 1fr;
    }

    .tbb-event-date {
        width: 82px;
    }

    .tbb-qr-card img {
        width: 100%;
        max-width: 260px;
        height: auto;
    }
}
