/* FxBigDog "The Morning Desk". Mobile-first. Palette and type per Iris; dark header (approved). */
:root {
  --ink: #14161A; --charcoal: #23262D; --paper: #FFFFFF; --mist: #F6F4F0; --line: #E4E0D8;
  --slate: #5B616B; --slate-on-dark: #9AA0A8; --orange: #FF9603; --orange-deep: #FD7409;
  --orange-text: #A84B00; --orange-text-hover: #8A3E00; --gold: #E9D585; --focus: #1D5FD1;
  --error: #B42318; --success: #1F7A4D;
  --font-heading: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 8px; --band-pad: 56px; --max: 1200px; --text: 720px;
}
@media (min-width: 1024px) { :root { --band-pad: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
@media (min-width: 768px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; }
a { color: var(--orange-text); text-underline-offset: 3px; }
a:hover { color: var(--orange-text-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 16px; }
h1 { font-weight: 800; font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.5px; max-width: 720px; }
h2 { font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.25px; }
h3 { font-weight: 700; font-size: clamp(20px, 2.4vw, 24px); }
p { margin: 0 0 16px; max-width: 680px; }
.screen-reader-text, .fxbd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fxbd-skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 100; }
.fxbd-skip:focus { left: 8px; }

/* Header (dark) */
.fxbd-header { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 #000; }
.fxbd-header__inner { max-width: var(--max); margin: 0 auto; padding: 8px 20px; min-height: 60px; display: flex; align-items: center; gap: 16px; }
@media (min-width: 1024px) { .fxbd-header__inner { min-height: 72px; } }
.fxbd-brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; margin-right: auto; }
.fxbd-brand img { height: 40px; width: auto; }
.fxbd-brand__name { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: var(--paper); line-height: 1.1; }
.fxbd-brand__tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.fxbd-nav { display: none; }
.fxbd-nav ul, .fxbd-menu ul { list-style: none; margin: 0; padding: 0; }
.fxbd-nav ul { display: flex; gap: 28px; }
.fxbd-nav a, .fxbd-menu a { color: var(--paper); text-decoration: none; font-weight: 500; font-size: 16px; }
.fxbd-nav a:hover { color: var(--orange); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.fxbd-header__cta { display: none; }
.fxbd-menu { position: relative; }
.fxbd-menu summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--slate-on-dark); border-radius: var(--radius); padding: 0 12px; font-weight: 600; font-size: 15px; color: var(--paper); }
.fxbd-menu summary::-webkit-details-marker { display: none; }
.fxbd-menu__panel { position: absolute; right: 0; top: 52px; width: min(88vw, 320px); background: var(--charcoal); border-radius: 12px; padding: 12px 20px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.fxbd-menu__panel li a { display: block; padding: 14px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid #3a3e47; }
.fxbd-menu__panel .fxbd-btn { margin-top: 16px; width: 100%; }
@media (min-width: 1024px) {
  .fxbd-nav { display: block; }
  .fxbd-header__cta { display: inline-flex; }
  .fxbd-menu { display: none; }
}

/* Buttons */
.fxbd-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius); font: 600 16px/24px var(--font-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.fxbd-btn--primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--orange); color: var(--ink); }
.fxbd-btn--primary:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--orange-deep); color: var(--ink); }
.fxbd-btn--ghost, .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.fxbd-dark .wp-block-button.is-style-outline .wp-block-button__link, .fxbd-end .fxbd-btn--ghost { color: var(--paper); border-color: var(--paper); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }

/* Bands */
.fxbd-band { padding: var(--band-pad) 20px; }
.fxbd-band > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.fxbd-band > p, .fxbd-band > h1, .fxbd-band > h2, .fxbd-band > h3, .fxbd-band > ul, .fxbd-band > ol { max-width: var(--max); }
.fxbd-mist { background: var(--mist); }
.fxbd-dark { background: var(--ink); color: var(--paper); }
.fxbd-dark a { color: var(--gold); }
.fxbd-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 8px; }
.fxbd-dark .fxbd-eyebrow { color: var(--gold); }
.fxbd-risk { font-size: 12px; line-height: 18px; color: var(--slate); margin: 8px 0 16px; }
.fxbd-dark .fxbd-risk { color: var(--slate-on-dark); }
.fxbd-meta { font-size: 14px; font-weight: 500; color: var(--slate); }
.fxbd-lead { font-size: 1.1em; }
.fxbd-legal h2 { font-size: 24px; margin-top: 32px; }
.fxbd-legal li { margin-bottom: 8px; max-width: 680px; }

/* Hero */
.fxbd-hero__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .fxbd-hero__grid { grid-template-columns: 7fr 5fr; align-items: center; } }

/* Placeholders: always visible so they are never mistaken for final copy */
.fxbd-ph { display: inline-block; background: #FFF1DC; color: #6B3A00; border: 1px dashed #A84B00; border-radius: 6px; padding: 2px 8px; font-size: 15px; font-weight: 600; }
.fxbd-ph-block { display: block; background: #FFF1DC; color: #6B3A00; border: 2px dashed #A84B00; border-radius: 12px; padding: 20px; font-weight: 600; max-width: 680px; }
.fxbd-photo-slot { aspect-ratio: 4 / 5; max-height: 420px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--charcoal); color: var(--gold); border: 2px dashed var(--gold); border-radius: 12px; padding: 24px; font-weight: 600; }

/* Form slots */
.fxbd-form-slot { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; max-width: 560px; margin: 16px 0; color: var(--ink); }
.fxbd-mist .fxbd-form-slot { background: var(--paper); }
.fxbd-form-slot p { font-size: 15px; margin-bottom: 10px; }
.fxbd-form-slot .fxbd-ph-block { font-size: 15px; padding: 14px; }
.fxbd-form-spec { color: var(--slate); }
.fxbd-dark .fxbd-form-slot .fxbd-form-spec { color: var(--slate); }
.fxbd-dark .fxbd-form-slot a { color: var(--orange-text); }

/* Cards and chips */
.fxbd-cards, .wp-block-post-template.fxbd-cards { display: grid; gap: 20px; grid-template-columns: 1fr; list-style: none; padding: 0; }
@media (min-width: 768px) { .fxbd-cards, .wp-block-post-template.fxbd-cards { grid-template-columns: repeat(3, 1fr); } }
.fxbd-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.fxbd-card h3 { font-size: 20px; }
.fxbd-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.fxbd-chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; background: var(--paper); }
.fxbd-tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; margin-right: 6px; border: 1px solid var(--line); }
.fxbd-tag--beginner { color: #1F5E43; background: #E7F2EC; border-color: #E7F2EC; }
.fxbd-example { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }

/* Video facade */
.fxbd-yt { position: relative; aspect-ratio: 16 / 9; background: var(--charcoal); border-radius: 12px; overflow: hidden; max-width: 880px; }
.fxbd-yt__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background: radial-gradient(circle at 70% 30%, #2d313a 0, var(--ink) 70%); color: var(--paper); text-align: left; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--font-body); }
.fxbd-yt__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.fxbd-yt__title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(18px, 3vw, 30px); line-height: 1.2; max-width: 600px; margin-top: 6px; }
.fxbd-yt__icon { position: absolute; left: 50%; top: 42%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--orange); }
.fxbd-yt__icon::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); }
.fxbd-yt__play:hover .fxbd-yt__icon { background: var(--orange-deep); }
.fxbd-yt__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fxbd-yt-note { font-size: 13px; color: var(--slate); }
.fxbd-end { position: absolute; inset: 0; background: rgba(20, 22, 26, .94); color: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 24px; z-index: 2; }
.fxbd-end__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.fxbd-end__title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(18px, 3vw, 28px); margin: 0 0 16px; }
.fxbd-end__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fxbd-end__sub { margin: 12px 0 0; font-size: 14px; }
.fxbd-end__sub a { color: var(--gold); }

/* Footer */
.fxbd-footer { background: var(--charcoal); color: var(--paper); padding: 56px 20px 32px; }
.fxbd-footer__inner { max-width: var(--max); margin: 0 auto; }
.fxbd-footer a { color: var(--paper); }
.fxbd-footer__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .fxbd-footer__grid { grid-template-columns: 5fr 7fr; } }
.fxbd-footer ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fxbd-footer__fine { font-size: 12px; line-height: 18px; color: var(--slate-on-dark); max-width: 900px; }
.fxbd-footer__fine a { color: var(--slate-on-dark); }
.fxbd-linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* Consent banner */
.fxbd-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; background: var(--ink); color: var(--paper); border: 1px solid #3a3e47; border-radius: 12px; padding: 16px 20px; max-width: 760px; margin: 0 auto; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.fxbd-consent[hidden] { display: none; }
.fxbd-consent p { font-size: 15px; margin: 0 0 12px; max-width: none; }
.fxbd-consent a { color: var(--gold); }
.fxbd-consent__actions { display: flex; gap: 12px; }
.fxbd-consent__actions .fxbd-btn { flex: 1 1 0; min-width: 0; }
.fxbd-consent .fxbd-btn--choice { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.fxbd-consent .fxbd-btn--choice:hover { background: var(--mist); }

/* Block editor alignment helpers */
.fxbd-content > .wp-block-group.fxbd-band { margin-top: 0; margin-bottom: 0; }
.fxbd-main { display: block; }
.fxbd-video-post__head { padding-bottom: 16px; }
.fxbd-video-post .fxbd-content > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Specificity fixes: primary buttons always Ink on Orange; narrow blocks align with the band's text column */
a.fxbd-btn--primary, a.fxbd-btn--primary:hover, .fxbd-dark a.fxbd-btn--primary, .fxbd-menu a.fxbd-btn--primary { color: var(--ink) !important; }
.fxbd-band > .fxbd-yt, .fxbd-band > .fxbd-form-slot, .fxbd-band > .fxbd-ph-block { margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.fxbd-header .fxbd-header__cta { display: none; }
@media (min-width: 1024px) { .fxbd-header .fxbd-header__cta { display: inline-flex; } }
.fxbd-band h2 { margin-top: 24px; }
.fxbd-band > h2:first-child, .fxbd-band > .wp-block-heading:first-child { margin-top: 0; }
@media (max-width: 599px) {
  .fxbd-yt__play { padding: 14px; }
  .fxbd-yt__icon { width: 52px; height: 52px; margin: -26px 0 0 -26px; top: 34%; }
  .fxbd-yt__icon::after { left: 21px; top: 16px; border-width: 10px 0 10px 16px; }
  .fxbd-yt__title { font-size: 15px; }
}
