.marketing-main {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.main.marketing-main {
  max-width: none;
}

.marketing-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.marketing-controls {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.flyer-preview-panel {
  position: sticky;
  top: 1rem;
  min-width: 0;
}

/* Marketing header */
.header-marketing {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.5rem 1.5rem;
  border-bottom: 3px solid var(--gold);
  background: linear-gradient(125deg, #5c0000 0%, var(--cardinal-dark) 25%, var(--cardinal) 55%, #a61a1a 100%);
}

.header-marketing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 100% -20%, rgba(255, 204, 0, 0.18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.header-marketing .header-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
}

.header-marketing .header-brand {
  align-items: center;
  gap: 1.25rem;
}

.brand-mark {
  flex-shrink: 0;
  line-height: 0;
}

.brand-mark-svg {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.header-titles { min-width: 0; }

.header-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.header-marketing h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.header-marketing .subtitle {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  opacity: 0.9;
  max-width: 28rem;
}

.header-marketing .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.header-marketing .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-marketing .btn-glow {
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.35);
}

.header-marketing .btn-glow:hover {
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.45);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.panel-intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.marketing-controls .form-row { margin-bottom: 0.85rem; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-block:hover { background: #ececee; }

.marketing-controls .btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Flyer preview — official ADRC REC Zoom seminar template (612×792 pt) */
.flyer-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
  background: #cfcfd1;
  border-radius: 8px;
  overflow: auto;
  max-height: calc(100vh - 10rem);
}

.flyer-seminar {
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.flyer-sheet {
  width: 612px;
  height: 792px;
  box-sizing: border-box;
  padding: 26px 36px 18px;
  display: flex;
  flex-direction: column;
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 16px;
  line-height: 1.35;
  color: #111;
  background: #fff;
  overflow: hidden;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

.flyer-seminar-header {
  text-align: center;
  flex-shrink: 0;
}

.flyer-adrc-logo {
  display: block;
  height: 38px;
  width: auto;
  margin: 0 auto 14px;
}

.flyer-org-title {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.flyer-rule-thick {
  height: 5px;
  background: #990000;
  border: none;
  margin: 0;
}

.flyer-event {
  text-align: center;
  margin: 22px 0 18px;
  flex-shrink: 0;
}

.flyer-event-line {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: #990000;
}

.flyer-seminar-title {
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.flyer-speaker-block {
  display: grid;
  grid-template-columns: 184px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.flyer-speaker-photo {
  width: 184px;
  height: 201px;
  background: #ece8e4;
  overflow: hidden;
}

.flyer-headshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.flyer-headshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6e2de;
  color: #8a827a;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flyer-speaker-info {
  text-align: center;
  padding-top: 2px;
}

.flyer-speaker-name {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.flyer-speaker-titles p {
  margin: 0 0 3px;
  font-size: 10.5px;
  line-height: 1.4;
}

.flyer-speaker-date {
  margin: 18px 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.flyer-speaker-time {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.3;
}

.flyer-zoom-link {
  margin: 0;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.flyer-bio {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 8px;
  overflow: hidden;
}

.flyer-bio p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

.flyer-seminar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 10px;
}

.flyer-footer-strip {
  display: block;
  width: 100%;
  height: auto;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82em;
}

.headshot-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.headshot-upload-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.headshot-file-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cardinal);
  white-space: nowrap;
}

.headshot-file-input {
  flex: 1;
  min-width: 140px;
  font-size: 0.82rem;
}

.btn-clear-headshot {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-clear-headshot:hover {
  background: #f4f4f5;
  color: var(--text);
}

/* LinkedIn workflow */
.linkedin-section { margin-bottom: 1.5rem; }

.linkedin-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.linkedin-date-chip {
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.linkedin-date-chip strong { color: var(--cardinal); }

.linkedin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.linkedin-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: #fafafa;
}

.linkedin-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--cardinal-dark);
}

.linkedin-card .post-when {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.linkedin-post-text {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  min-height: 140px;
  margin-bottom: 0.75rem;
}

.linkedin-card .btn-copy {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  color: var(--cardinal);
}

.linkedin-card .btn-copy:hover { background: #fef2f2; }

.header-actions a.btn { text-decoration: none; display: inline-flex; align-items: center; }

@media (max-width: 768px) {
  .marketing-layout { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .flyer-preview-panel { position: static; }
  .marketing-controls { max-height: none; }
}
