/* Rugby TTL Ghost Theme — theme.css
   Blue:  #1a6bbf  |  Blue hover: #0f4a8a
   Green: #2ecc40  |  Green hover: #1fa832
   All buttons: white text always
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a6bbf;
  --blue-dark:  #0f4a8a;
  --green:      #2ecc40;
  --green-dark: #1fa832;
  --off-white:  #f3f6fa;
  --grey:       #9e9e9e;
  --text:       #111111;
  --border:     #e2e8f0;
}

html { font-size: 16px; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; background: var(--off-white); color: var(--text); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons — all white text */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  line-height: 1;
  transition: background .15s;
}
.btn:hover { text-decoration: none; color: #ffffff; }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); color: #ffffff; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); color: #ffffff; }
.btn-sm { padding: 9px 16px; font-size: 12px; }

/* Navigation */
.site-nav {
  background: #ffffff;
  display: flex;
  align-items: stretch;
  padding: 0 24px;
  border-bottom: 3px solid var(--green);
  border-top: 4px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding: 11px 0;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 52px; height: 52px; object-fit: contain; }
.nav-logo-badge {
  background: var(--green);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  padding: 5px 9px;
  border-radius: 3px;
  font-style: italic;
}
.nav-wordmark { line-height: 1.1; }
.nav-wordmark-main { font-size: 16px; font-weight: 900; color: var(--blue); letter-spacing: .02em; display: block; }
.nav-wordmark-main span { color: var(--green); }
.nav-wordmark-sub { font-size: 9px; color: var(--grey); letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 2px; }
.nav-links { display: flex; align-items: stretch; list-style: none; }
.nav-links a {
  font-size: 12px;
  font-weight: 700;
  color: #555555;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: -3px;
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-links a.nav-espanol { color: var(--green); font-weight: 800; }
.nav-subscribe {
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 20px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: none;
  margin-left: 12px;
  text-decoration: none;
  transition: background .15s;
}
.nav-subscribe:hover { background: var(--blue-dark); color: #ffffff; text-decoration: none; }

/* Ticker */
.ticker-outer {
  background: var(--blue);
  height: 34px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.ticker-label {
  background: var(--green);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 0 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.ticker-track-wrap { flex: 1; overflow: hidden; position: relative; }
.ticker-scroll {
  display: flex;
  align-items: center;
  height: 34px;
  animation: ticker-scroll 32s linear infinite;
  white-space: nowrap;
}
.ticker-scroll:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item { font-size: 12px; color: rgba(255,255,255,.85); white-space: nowrap; padding: 0 32px; display: inline-flex; align-items: center; gap: 8px; }
.ticker-item strong { color: #ffffff; font-weight: 800; }
.ticker-sep { color: var(--green); }

/* Hero */
.hero { display: grid; grid-template-columns: 55fr 45fr; }
.hero-left { background: #ffffff; padding: 48px 36px 44px; }
.hero-pill {
  display: inline-block;
  background: var(--green);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.hero-h1 { font-size: 38px; font-weight: 900; color: var(--blue); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 14px; max-width: 420px; }
.hero-h1 em { color: var(--green); font-style: normal; }
.hero-sub { font-size: 15px; color: #555555; line-height: 1.65; margin-bottom: 32px; max-width: 400px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-right { background: var(--blue); display: flex; flex-direction: column; gap: 1px; }
.hero-card { background: var(--blue); padding: 20px 24px; flex: 1; border-left: 4px solid transparent; transition: background .15s, border-color .15s; text-decoration: none; display: block; }
.hero-card:hover { background: #155fa5; border-left-color: var(--green); text-decoration: none; }
.hero-card.featured { flex: 2; border-left-color: var(--green); background: #1560aa; }
.hero-card-divider { height: 1px; background: rgba(255,255,255,.15); }
.hero-card-tag { font-size: 10px; font-weight: 800; color: rgba(255,255,255,.6); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px; }
.hero-card.featured .hero-card-tag { color: var(--green); }
.hero-card-title { font-size: 14px; font-weight: 700; color: #ffffff; line-height: 1.45; margin-bottom: 7px; }
.hero-card.featured .hero-card-title { font-size: 18px; }
.hero-card-meta { font-size: 11px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 6px; }
.hero-card-badge { display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.75); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: .04em; }

/* Stats strip */
.stats-strip { background: var(--green); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 18px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.3); }
.stat:last-child { border-right: none; }
.stat-number { font-size: 30px; font-weight: 900; color: #ffffff; letter-spacing: -.02em; display: block; }
.stat-label { font-size: 10px; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; font-weight: 700; display: block; }

/* Content area */
.site-content { padding: 28px; background: var(--off-white); }

/* Live banner */
.live-banner {
  background: #ffffff;
  border: 2px solid var(--green);
  border-left: 5px solid var(--green);
  border-radius: 4px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.live-dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.live-badge { font-size: 11px; font-weight: 900; color: var(--green); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.live-text { font-size: 13px; font-weight: 700; color: var(--blue); flex: 1; }
.live-text span { font-weight: 400; color: var(--grey); font-size: 12px; }

/* Section heading */
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-title { font-size: 12px; font-weight: 900; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.section-rule { flex: 1; height: 2px; background: var(--blue); }
.section-more { font-size: 12px; font-weight: 800; color: var(--blue); white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.section-more:hover { text-decoration: underline; }

/* Post grid */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.post-card { background: #ffffff; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); text-decoration: none; display: block; transition: transform .15s; }
.post-card:hover { transform: translateY(-2px); text-decoration: none; }
.post-card:hover .post-card-bar { background: var(--green); }
.post-card-image-link img { width: 100%; height: 180px; object-fit: cover; display: block; }
.post-card-bar { height: 4px; background: var(--blue); transition: background .15s; }
.post-card-body { padding: 16px; }
.post-card-tag { font-size: 10px; font-weight: 800; color: var(--blue); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.post-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 8px; }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt { font-size: 13px; color: #555555; line-height: 1.5; margin-bottom: 10px; }
.post-card-meta { font-size: 11px; color: var(--grey); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-card-badge { display: inline-block; background: var(--off-white); color: #555555; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: .04em; }

/* Podcast strip */
.podcast-strip { background: var(--blue); border-radius: 4px; padding: 20px 24px; display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.podcast-icon { width: 52px; height: 52px; background: rgba(255,255,255,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.podcast-icon svg { width: 26px; height: 26px; fill: #ffffff; }
.podcast-info { flex: 1; }
.podcast-name { font-size: 15px; font-weight: 900; color: #ffffff; margin-bottom: 3px; }
.podcast-desc { font-size: 12px; color: rgba(255,255,255,.7); }

/* Email section */
.email-section { background: var(--green); padding: 28px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.email-copy { flex: 1; min-width: 200px; }
.email-heading { font-size: 18px; font-weight: 900; color: #ffffff; margin-bottom: 4px; }
.email-sub { font-size: 13px; color: rgba(255,255,255,.8); }
.email-form { display: flex; gap: 10px; flex-wrap: wrap; }
.email-form input[type="email"] { padding: 12px 18px; border: none; border-radius: 4px; font-size: 13px; color: var(--text); width: 240px; outline: none; font-family: inherit; }

/* Single post */
.post-header { background: var(--blue); padding: 48px 28px 40px; color: #ffffff; }
.post-tag { display: inline-block; background: var(--green); color: #ffffff; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; margin-bottom: 16px; }
.post-header h1 { font-size: 36px; font-weight: 900; color: #ffffff; line-height: 1.1; letter-spacing: -.02em; max-width: 720px; margin-bottom: 14px; }
.post-meta { font-size: 13px; color: rgba(255,255,255,.65); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-featured-image img { width: 100%; max-height: 480px; object-fit: cover; }
.post-content { max-width: 760px; margin: 0 auto; padding: 40px 28px 60px; background: #ffffff; }
.post-content h2 { font-size: 24px; font-weight: 800; color: var(--blue); margin: 32px 0 12px; }
.post-content h3 { font-size: 20px; font-weight: 700; color: var(--blue); margin: 24px 0 10px; }
.post-content p { font-size: 16px; line-height: 1.75; color: #333333; margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content li { font-size: 16px; line-height: 1.7; color: #333333; margin-bottom: 6px; }
.post-content blockquote { border-left: 4px solid var(--green); padding: 12px 20px; margin: 24px 0; background: var(--off-white); font-style: italic; color: #444444; }
.post-content a { color: var(--blue); }
.post-content a:hover { color: var(--blue-dark); }
.post-content figure { margin: 24px 0; }
.post-content figure img { border-radius: 4px; }
.post-content figcaption { font-size: 12px; color: var(--grey); text-align: center; margin-top: 8px; }

/* Video embed */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 4px; margin-bottom: 28px; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 24px 0; }
.pagination a { padding: 10px 20px; background: var(--blue); color: #ffffff; border-radius: 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.pagination a:hover { background: var(--blue-dark); }
.pagination .page-number { font-size: 13px; color: var(--grey); }

/* Footer */
.site-footer { background: var(--blue); padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 3px solid var(--green); }
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.footer-brand-name { font-size: 14px; font-weight: 900; color: #ffffff; }
.footer-brand-name span { color: var(--green); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; }
.footer-nav a { font-size: 12px; color: rgba(255,255,255,.65); text-decoration: none; }
.footer-nav a:hover { color: #ffffff; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.45); }

/* Mobile menu toggle button */
.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--green);
  padding: 8px 0;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555555;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.nav-mobile a:hover { color: var(--blue); border-left-color: var(--blue); }
.nav-mobile a.active { color: var(--blue); border-left-color: var(--blue); }
.nav-mobile a.nav-espanol { color: var(--green); font-weight: 800; }
.nav-mobile .nav-mobile-sub {
  display: block;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  margin: 8px 16px;
  border-radius: 4px;
  text-align: center;
}
.nav-mobile .nav-mobile-sub:hover { background: var(--blue-dark); color: #ffffff; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-subscribe { display: none; }
  .nav-menu-toggle { display: flex; }
  .hero-h1 { font-size: 28px; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .email-section { flex-direction: column; align-items: flex-start; }
  .email-form input[type="email"] { width: 100%; }
  .site-footer { flex-direction: column; text-align: center; }
  .hero-left { padding: 32px 20px; }
  .site-content { padding: 20px; }
  .podcast-strip { flex-wrap: wrap; }
}

/* ── Ghost card classes (required by Ghost theme validator) ── */

/* Koenig editor width classes */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw) * 0.15;
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Koenig image card */
.kg-image-card { margin: 0 0 2em; }
.kg-image-card img { margin: auto; }
.kg-image-card figcaption { font-size: 13px; color: var(--grey); text-align: center; margin-top: 8px; }

/* Koenig gallery card */
.kg-gallery-card { margin: 0 0 2em; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 4px; margin-bottom: 4px; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }

/* Koenig embed / bookmark card */
.kg-embed-card { margin: 0 0 2em; }
.kg-embed-card > * { margin: auto; }
.kg-bookmark-card { margin: 0 0 2em; }
.kg-bookmark-container {
  display: flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.kg-bookmark-container:hover { border-color: var(--blue); text-decoration: none; }
.kg-bookmark-content { flex: 1; padding: 16px; }
.kg-bookmark-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.kg-bookmark-description { font-size: 12px; color: #666; line-height: 1.5; margin-bottom: 8px; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--grey); }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail { flex-shrink: 0; width: 160px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Koenig video card */
.kg-video-card { margin: 0 0 2em; }
.kg-video-card video { width: 100%; display: block; }

/* Koenig audio card */
.kg-audio-card { margin: 0 0 2em; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px; }

/* Koenig callout card */
.kg-callout-card {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 4px;
  background: var(--off-white);
  border-left: 4px solid var(--green);
  margin: 0 0 2em;
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text { font-size: 15px; line-height: 1.6; }

/* Koenig toggle card */
.kg-toggle-card { border: 1px solid var(--border); border-radius: 4px; margin: 0 0 2em; }
.kg-toggle-heading { display: flex; justify-content: space-between; padding: 16px; cursor: pointer; font-weight: 700; }
.kg-toggle-content { padding: 0 16px 16px; }

/* Koenig button card */
.kg-button-card { display: flex; margin: 0 0 2em; }
.kg-button-card a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}
.kg-button-card a:hover { background: var(--blue-dark); color: #ffffff; text-decoration: none; }

/* Koenig divider */
.kg-divider { margin: 2em 0; border: none; border-top: 2px solid var(--border); }

/* Koenig code card */
.kg-code-card { margin: 0 0 2em; }
.kg-code-card pre {
  background: #1e2433;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

/* Koenig product card */
.kg-product-card { display: flex; gap: 20px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 4px; margin: 0 0 2em; }
.kg-product-card-image img { width: 100px; height: 100px; object-fit: cover; border-radius: 4px; }
.kg-product-card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.kg-product-card-description { font-size: 14px; color: #555; line-height: 1.5; }

/* Koenig NFT / other cards — safe defaults */
.kg-nft-card { margin: 0 0 2em; }
.kg-file-card { margin: 0 0 2em; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px; }

/* ── Watch page ──────────────────────────────────────────── */

.watch-header {
  background: var(--blue);
  padding: 36px 28px 32px;
}
.watch-header-pill {
  display: inline-block;
  background: var(--green);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.watch-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.watch-header p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  line-height: 1.6;
}

/* Tabs */
.watch-tabs {
  background: #ffffff;
  border-bottom: 2px solid var(--border);
  display: flex;
  padding: 0 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.watch-tabs::-webkit-scrollbar { display: none; }
.watch-tab {
  font-size: 13px;
  font-weight: 700;
  color: #777777;
  padding: 14px 18px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: -2px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.watch-tab:hover { color: var(--blue); text-decoration: none; }
.watch-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Two-column layout */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
}

.watch-main {
  padding: 24px 24px 40px;
  background: var(--off-white);
  min-width: 0;
}

/* Featured video label */
.featured-video-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-pip {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Video embed container */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--blue);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Auto-pull featured: meta row */
.watch-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.watch-featured-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.watch-featured-sub {
  font-size: 12px;
  color: var(--grey);
}

/* Extracted video content (from Ghost post body) */
.video-post-content { margin-bottom: 20px; }
.video-post-content > *:not(.video-embed):not(figure):not(.kg-embed-card) { display: none; }
.video-post-content .kg-embed-card,
.video-post-content figure,
.video-post-content iframe { margin-bottom: 0; }
.video-post-content .kg-embed-card iframe,
.video-post-content figure iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 4px;
}

/* No video placeholder */
.watch-no-video {
  background: var(--blue);
  border-radius: 4px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.watch-no-video-icon svg { width: 48px; height: 48px; fill: rgba(255,255,255,.3); }
.watch-no-video p { font-size: 14px; color: rgba(255,255,255,.7); }
.watch-no-video a { color: var(--green); }

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.vid-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.vid-card-link { display: block; text-decoration: none; color: inherit; }
.vid-card-link:hover { text-decoration: none; }
.vid-card:hover .vid-thumb { filter: brightness(.85); }

.vid-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--blue);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: filter .15s;
}
.vid-thumb-fallback { background: var(--blue-dark); }

.vid-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
}
.vid-thumb-play svg { width: 32px; height: 32px; fill: rgba(255,255,255,.9); }

.vid-thumb-dur {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,.75);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}
.vid-thumb-src {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--green);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.vid-body { padding: 10px 12px; }
.vid-tag { font-size: 10px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.vid-title { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 5px; }
.vid-meta { font-size: 11px; color: var(--grey); }

/* Article list */
.art-list { display: flex; flex-direction: column; gap: 10px; }
.art-row { background: #ffffff; border-radius: 4px; border: 1px solid var(--border); overflow: hidden; }
.art-row-link { display: grid; grid-template-columns: 90px 1fr; text-decoration: none; color: inherit; }
.art-row-link:hover .art-row-title { color: var(--blue); }
.art-row-link:hover { text-decoration: none; }

.art-row-img {
  background: var(--blue);
  min-height: 80px;
  position: relative;
  border-right: 3px solid var(--blue);
}
.art-row-img-fallback { background: var(--blue-dark); }

.art-row-body { padding: 12px 14px; }
.art-row-tag { font-size: 10px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }
.art-row-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 5px; transition: color .15s; }
.art-row-meta { font-size: 11px; color: var(--grey); }

/* JS filter — hidden state */
.art-row[hidden],
.vid-card[hidden] { display: none; }

/* Sidebar */
.watch-sidebar {
  background: #ffffff;
  border-left: 1px solid var(--border);
  padding: 20px;
  min-width: 0;
}

.sidebar-section { margin-bottom: 24px; }

.sidebar-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}

/* Channel cards */
.channel-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 10px;
}
.channel-yt { border-left: 4px solid #ff0000; }
.channel-tw { border-left: 4px solid #9146ff; }

.ch-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ch-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ch-icon svg { width: 18px; height: 18px; fill: #ffffff; }
.ch-icon-yt { background: #ff0000; }
.ch-icon-tw { background: #9146ff; }

.ch-name { font-size: 13px; font-weight: 800; color: var(--text); }
.ch-handle { font-size: 11px; color: var(--grey); }

.ch-btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  transition: opacity .15s;
}
.ch-btn:hover { opacity: .85; color: #ffffff; text-decoration: none; }
.ch-btn-yt { background: #ff0000; }
.ch-btn-tw { background: #9146ff; }

/* Next live card */
.next-live-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.next-live-label {
  font-size: 10px;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.next-live-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.next-live-when { font-size: 11px; color: var(--grey); }

/* Sidebar article list */
.sidebar-art {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.sidebar-art:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-art:hover .sidebar-art-title { color: var(--blue); }
.sidebar-art:hover { text-decoration: none; }

.sidebar-art-thumb {
  width: 54px;
  height: 40px;
  border-radius: 3px;
  background: var(--blue);
  flex-shrink: 0;
}
.sidebar-art-thumb-fallback { background: var(--blue-dark); }
.sidebar-art-title { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 3px; transition: color .15s; }
.sidebar-art-meta { font-size: 11px; color: var(--grey); }

/* Watch page responsive */
@media (max-width: 900px) {
  .watch-layout { grid-template-columns: 1fr; }
  .watch-sidebar { border-left: none; border-top: 1px solid var(--border); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .watch-tabs { padding: 0 16px; }
  .watch-main { padding: 16px; }
}

/* ── Podcast page ────────────────────────────────────────── */

.pod-header-inner {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: center;
}

.pod-platform-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.pod-btn-yt, .pod-btn-sp, .pod-btn-ap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
}
.pod-btn-yt { background: #ff0000; }
.pod-btn-yt:hover { background: #cc0000; color: #ffffff; text-decoration: none; }
.pod-btn-sp { background: #1db954; }
.pod-btn-sp:hover { background: #17a349; color: #ffffff; text-decoration: none; }
.pod-btn-ap { background: #9933cc; }
.pod-btn-ap:hover { background: #7a29a3; color: #ffffff; text-decoration: none; }

.pod-artwork {
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,.2);
  padding: 20px;
}
.pod-artwork-title { font-size: 13px; font-weight: 800; color: #ffffff; text-align: center; }
.pod-artwork-sub { font-size: 11px; color: rgba(255,255,255,.6); text-align: center; }

/* Episode count pill on tabs */
.pod-ep-count {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 5px;
}
.watch-tab.active .pod-ep-count {
  background: rgba(255,255,255,.25);
  color: #ffffff;
}
.watch-tabs .pod-ep-count {
  background: #e2e8f0;
  color: #777;
}
.watch-tabs .watch-tab.active .pod-ep-count {
  background: var(--blue);
  color: #ffffff;
}

/* Featured episode */
.pod-featured {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}
.pod-featured-bar { height: 4px; background: var(--green); }
.pod-featured-body {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
  padding: 18px 20px;
  align-items: start;
}
.pod-featured-tag {
  font-size: 10px;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.pod-featured-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}
.pod-featured-desc {
  font-size: 13px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 10px;
}
.pod-featured-meta { font-size: 11px; color: var(--grey); display: flex; gap: 8px; }

/* Featured thumbnail — lazy */
.pod-featured-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--blue);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.pod-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s;
}
.pod-featured-thumb:hover .pod-thumb-overlay { background: rgba(0,0,0,.5); }
.pod-play-circle {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pod-yt-badge {
  background: #ff0000;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  position: absolute;
  top: 6px;
  left: 6px;
}

/* Lazy load note */
.pod-lazy-note {
  background: rgba(26,107,191,.06);
  border: 1px solid rgba(26,107,191,.15);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* Episode list */
.ep-list { display: flex; flex-direction: column; gap: 8px; }

.ep-card {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr 44px;
  overflow: hidden;
  transition: border-color .15s;
}
.ep-card:hover { border-color: var(--blue); }
.ep-card[hidden] { display: none; }

/* Lazy thumbnail */
.ep-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--blue);
  cursor: pointer;
  overflow: hidden;
  min-height: 68px;
}
.ep-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ep-thumb-fallback { width: 100%; height: 100%; background: var(--blue-dark); }
.ep-thumb-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.ep-thumb-wrap:hover .ep-thumb-overlay-dark { background: rgba(0,0,0,.5); }
.ep-play-sm {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.4);
}
.ep-num-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0,0,0,.65);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 2px;
}

/* Iframe mount — shown when play clicked */
.ep-iframe-mount { position: absolute; inset: 0; }
.ep-iframe-mount iframe { width: 100%; height: 100%; border: none; }

.ep-body { padding: 10px 14px; min-width: 0; }
.ep-season-badge {
  font-size: 9px;
  font-weight: 900;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.ep-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 4px; }
.ep-title a { color: var(--text); text-decoration: none; }
.ep-title a:hover { color: var(--blue); }
.ep-meta { font-size: 11px; color: var(--grey); }

.ep-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-left: 1px solid var(--border);
}
.ep-play-btn {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.ep-play-btn:hover { background: var(--blue-dark); }

/* Podcast sidebar listen links */
.pod-listen-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}
.pod-listen-link:hover { border-color: var(--blue); text-decoration: none; }
.pod-listen-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pod-listen-name { font-size: 13px; font-weight: 700; color: var(--text); }
.pod-listen-cta { font-size: 11px; color: var(--grey); }

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-box { background: var(--off-white); border-radius: 4px; padding: 12px; text-align: center; }
.stat-number { font-size: 22px; font-weight: 900; color: var(--blue); display: block; }
.stat-label { font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; display: block; margin-top: 2px; }

/* Podcast responsive */
@media (max-width: 900px) {
  .pod-header-inner { grid-template-columns: 1fr; }
  .pod-artwork { display: none; }
  .pod-featured-body { grid-template-columns: 1fr; }
  .pod-featured-thumb { width: 100%; }
}
@media (max-width: 600px) {
  .ep-card { grid-template-columns: 90px 1fr 36px; }
  .pod-platform-btns { gap: 6px; }
}

/* ── International nav links ─────────────────────────────── */
.nav-links a.nav-intl {
  color: var(--green);
  font-weight: 800;
}
.nav-links a.nav-intl:hover {
  color: var(--green-dark);
}

/* Tighter nav link padding for wider nav */
.nav-links a {
  padding: 0 9px;
  font-size: 11px;
}

/* Mobile nav international links */
.nav-mobile a.nav-intl {
  color: var(--green);
  font-weight: 800;
}

/* ── Tag page headers ─────────────────────────────────────── */
/*
  Each international tag page gets a distinct header colour
  so they feel like proper destinations, not just filtered lists.
*/
.tag-rugby-europe .post-header { background: #0a3060; }
.tag-sud-america  .post-header { background: #1a5c2e; }
.tag-espana       .post-header { background: #aa151b; }
.tag-grassroots   .post-header { background: var(--blue); }

/* ── MEMBERS & SHOP NAV ITEMS ── */
.nav-links .nav-members {
  color: #f5a623 !important;
  font-weight: 800 !important;
  border-bottom: 2px solid transparent;
}
.nav-links .nav-members:hover,
.nav-links .nav-members.active {
  border-bottom-color: #f5a623;
}
.nav-links .nav-shop {
  color: #2ecc40 !important;
  font-weight: 800 !important;
  border-bottom: 2px solid transparent;
}
.nav-links .nav-shop:hover,
.nav-links .nav-shop.active {
  border-bottom-color: #2ecc40;
}
.nav-mobile .nav-members {
  color: #f5a623 !important;
  font-weight: 800 !important;
}
.nav-mobile .nav-shop {
  color: #2ecc40 !important;
  font-weight: 800 !important;
}
.nav-links .nav-creators { color: var(--blue); font-weight: 800; }
.nav-mobile .nav-creators { color: var(--blue) !important; font-weight: 800 !important; }

/* ══════════════════════════════════════════════════════════
   CREATOR PORTAL
   ══════════════════════════════════════════════════════════ */

/* Page wrapper — removes Ghost default content max-width */
.cp-page { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.cp-page .kg-card { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* ── Cards ─────────────────────────────────────────────── */
.cp-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.cp-card-green { border-top: 3px solid var(--green); }
.cp-card-blue  { border-top: 3px solid var(--blue); }

.cp-card-heading {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 8px;
}
.cp-card-body-text {
  font-size: 13px;
  color: #555555;
  line-height: 1.65;
  margin: 0 0 18px;
}
.cp-hint {
  font-size: 11px;
  color: var(--grey);
  margin: 12px 0 0;
}

/* ── How it works ──────────────────────────────────────── */
.cp-steps-card { padding: 20px 24px 16px; }
.cp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cp-step-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 4px;
  line-height: 1;
}
.cp-step-title {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
  color: var(--text);
}
.cp-step-desc {
  font-size: 12px;
  color: #666666;
  line-height: 1.55;
}

/* ── Dashboard header ──────────────────────────────────── */
.cp-dash-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cp-section-head-inline {
  flex: 1;
  margin-bottom: 0 !important;
  min-width: 160px;
}
.cp-dash-welcome {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.cp-creator-name-text { color: var(--blue); }

/* ── Post list ─────────────────────────────────────────── */
.cp-posts-list {
  padding: 0;
  overflow: hidden;
}
.cp-empty-state {
  padding: 28px 24px;
  text-align: center;
  color: var(--grey);
  font-size: 13px;
}
.cp-loading-state {
  padding: 20px 24px;
  text-align: center;
  color: var(--grey);
  font-size: 13px;
  font-style: italic;
}
.cp-post-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.cp-post-row:last-child { border-bottom: none; }
.cp-post-info { min-width: 0; }
.cp-post-title { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-post-title-link { color: var(--blue); text-decoration: none; }
.cp-post-title-link:hover { text-decoration: underline; }
.cp-post-meta  { font-size: 12px; color: var(--grey); margin-top: 2px; }
.cp-status-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}
.cp-badge-live   { background: #e6f9ea; color: #1a8a30; }
.cp-badge-review { background: #fef3cd; color: #856404; }

/* ── Back button ───────────────────────────────────────── */
.cp-back-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cp-back-btn:hover { text-decoration: underline; }

/* ── Form fields ───────────────────────────────────────── */
.cp-form-field { margin-bottom: 18px; }
.cp-form-field:last-of-type { margin-bottom: 0; }
.cp-form-label {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #555555;
  margin-bottom: 6px;
}
.cp-form-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--off-white);
  outline: none;
  color: var(--text);
  transition: border-color .15s;
}
.cp-form-input:focus { border-color: var(--blue); background: #ffffff; }

/* ── Tag selector ──────────────────────────────────────── */
.cp-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cp-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .12s, border-color .12s, color .12s;
}
.cp-tag:hover { border-color: var(--blue); color: var(--blue); }
.cp-tag.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

/* ── Image upload ──────────────────────────────────────── */
.cp-image-upload {
  border: 2px dashed var(--border);
  border-radius: 6px;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  transition: border-color .15s, background .15s;
}
.cp-image-upload.dragover { border-color: var(--green); background: #f0fdf4; }
.cp-image-thumb {
  max-height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.cp-image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #ffffff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cp-image-remove:hover { background: rgba(0,0,0,.8); }
.cp-image-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  color: var(--grey);
  font-size: 12px;
  gap: 6px;
}
.cp-image-browse-label {
  color: var(--blue);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
}

/* ── Quill overrides ───────────────────────────────────── */
#cp-quill-editor { min-height: 280px; }
#cp-quill-editor .ql-editor {
  min-height: 260px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
.ql-toolbar.ql-snow {
  border-color: var(--border);
  border-radius: 4px 4px 0 0;
  background: #f8fafc;
}
.ql-container.ql-snow {
  border-color: var(--border);
  border-radius: 0 0 4px 4px;
  background: var(--off-white);
}

/* ── Submit row ────────────────────────────────────────── */
.cp-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cp-submit-status {
  font-size: 12px;
  font-weight: 700;
}
.cp-status-error   { color: #d32f2f; }
.cp-status-success { color: var(--green); }
.cp-status-info    { color: var(--blue); }

/* ── Sidebar cards ─────────────────────────────────────── */
.cp-sidebar-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  padding: 14px 16px;
}
.cp-sidebar-text {
  font-size: 12px;
  color: #555555;
  line-height: 1.65;
  margin: 0 0 8px;
}
.cp-sidebar-text:last-child { margin-bottom: 0; }

/* ── Region links (sidebar) ────────────────────────────── */
.cp-region-list { display: flex; flex-direction: column; gap: 6px; }
.cp-region-link {
  display: block;
  border-radius: 4px;
  padding: 11px 14px;
  text-decoration: none;
  transition: opacity .15s;
}
.cp-region-link:hover { opacity: .88; text-decoration: none; }
.cp-region-blue       { background: var(--blue); }
.cp-region-green-dark { background: #1a5c2e; }
.cp-region-red        { background: #aa151b; }
.cp-region-dark       { background: #333333; }
.cp-region-name {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cp-region-sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* ── What you can submit (sidebar) ────────────────────── */
.cp-submit-types {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.cp-submit-type {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cp-submit-type-last { border-bottom: none; }
.cp-submit-popular {
  font-size: 10px;
  font-weight: 800;
  background: #e6f9ea;
  color: #1a8a30;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .cp-steps { grid-template-columns: 1fr; gap: 14px; }
  .cp-dash-header { flex-direction: column; align-items: flex-start; }
  .cp-section-head-inline { min-width: auto; width: 100%; }
}
@media (max-width: 600px) {
  .cp-card { padding: 16px; }
  .cp-steps-card { padding: 16px; }
  .cp-post-row { padding: 12px 16px; }
}
