/* Menopause, Actually — theme styles (front end + block editor).
   Design tokens (colours, fonts, sizes, spacing) come from theme.json; this file only
   holds what theme.json cannot express: block style variations, custom block markup,
   inline formats and decorative backgrounds. */

:focus-visible { outline: 3px solid var(--wp--preset--color--lilac); outline-offset: 3px; }
.is-style-section-ink :focus-visible { outline-color: var(--wp--preset--color--peach); }

.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull,
.is-root-container > .alignfull { margin-block: 0; }

/* ---------- inline formats (RichText) ---------- */
.dot { color: var(--wp--preset--color--coral); }
.is-style-section-ink .dot { color: var(--wp--preset--color--coral-light); }
.strike { text-decoration: line-through; text-decoration-color: var(--wp--preset--color--coral); text-decoration-thickness: 2px; }

/* ---------- paragraph variations ---------- */
.is-style-eyebrow { font-size: var(--wp--preset--font-size--eyebrow); font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--wp--preset--color--lilac-deep); line-height: 1.5; }
.is-style-section-ink p.is-style-eyebrow { color: var(--wp--preset--color--lilac-soft); }
.is-style-pull { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-weight: 600; font-size: clamp(24px, 1.2vw + 16px, 30px); line-height: 1.3; color: var(--wp--preset--color--lilac); }
.is-style-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.6; color: var(--wp--preset--color--body); max-width: 34em; }
.is-style-fine-print { font-size: 14px; line-height: 1.7; color: var(--wp--custom--color--on-dark-muted); max-width: 62em; }
.is-style-copyright { font-size: 13px; color: var(--wp--custom--color--on-dark-faint); }

/* ---------- list variations ---------- */
ul.is-style-chips, ul.is-style-dotted-line, ul.is-style-statement, ol.is-style-numbered-rows { list-style: none; padding: 0; margin-inline: 0; }

ul.is-style-chips { display: flex; flex-wrap: wrap; gap: 10px; }
ul.is-style-chips li { padding: 10px 18px; border-radius: var(--wp--custom--radius--pill); font-size: var(--wp--preset--font-size--small); font-weight: 500; line-height: 1.4; color: var(--wp--preset--color--ink); background: var(--wp--preset--color--blush); }
ul.is-style-chips li:nth-child(3n+2) { background: var(--wp--preset--color--peach); }
ul.is-style-chips li:nth-child(3n) { background: var(--wp--preset--color--mist); }

ul.is-style-dotted-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--wp--preset--font-size--small); font-weight: 500; color: var(--wp--preset--color--body); }
ul.is-style-dotted-line li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--wp--preset--color--coral); margin-right: 12px; vertical-align: middle; }

ol.is-style-numbered-rows { counter-reset: n; border-bottom: 1px solid var(--wp--preset--color--line); }
ol.is-style-numbered-rows li { counter-increment: n; display: flex; gap: 20px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--wp--preset--color--line); font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: var(--wp--preset--font-size--h-3); line-height: 1.25; }
ol.is-style-numbered-rows li::before { content: counter(n, decimal-leading-zero); flex: 0 0 44px; font-family: var(--wp--preset--font-family--sans); font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--wp--preset--color--peach); }
.is-style-section-ink ol.is-style-numbered-rows { border-bottom-color: rgba(249, 241, 232, .18); }
.is-style-section-ink ol.is-style-numbered-rows li { border-top-color: rgba(249, 241, 232, .18); color: var(--wp--preset--color--cream); }

ul.is-style-statement { padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: clamp(28px, 2.8vw + 14px, 50px); line-height: 1.1; letter-spacing: -.02em; }
ul.is-style-statement li:nth-child(odd) { color: var(--wp--preset--color--ink); }
ul.is-style-statement li:nth-child(even) { color: var(--wp--preset--color--lilac); }
ul.is-style-statement li + li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--coral); margin-right: 24px; vertical-align: middle; }

/* ---------- buttons ---------- */
.wp-block-buttons { gap: 12px 20px; }
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 30px 0 24px; border-radius: var(--wp--custom--radius--pill); text-decoration: none; transition: background .15s, color .15s; }
.wp-block-button.is-style-play .wp-block-button__link::before,
.wp-block-button.is-style-pill-light .wp-block-button__link::after { content: ""; flex: none; background: currentColor; -webkit-mask: var(--ma-icon) center / contain no-repeat; mask: var(--ma-icon) center / contain no-repeat; }
.wp-block-button.is-style-play .wp-block-button__link::before { width: 20px; height: 20px; --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M10 8.5v7l5.5-3.5z' fill='black'/%3E%3C/svg%3E"); }
.wp-block-button.is-style-pill-light .wp-block-button__link { min-height: 52px; padding: 0 24px; font-size: 16px; background: #fff; color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-pill-light .wp-block-button__link::after { width: 16px; height: 16px; --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); }
.wp-block-button.is-style-pill-light .wp-block-button__link:hover,
.wp-block-button.is-style-pill-light .wp-block-button__link:focus-visible { background: var(--wp--preset--color--lilac); color: #fff; }

/* ---------- group variations ---------- */
.is-style-section-paper { border-top: 1px solid var(--wp--preset--color--line); }
.is-style-section-ink { background-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--cream); }
.is-style-section-ink :is(h1, h2, h3) { color: var(--wp--preset--color--cream); }
.is-style-section-ink p { color: var(--wp--preset--color--on-dark); }
.is-style-section-ink p.is-style-fine-print { color: var(--wp--custom--color--on-dark-muted); }
.is-style-section-ink p.is-style-copyright { color: var(--wp--custom--color--on-dark-faint); }
.is-style-section-ink .wp-block-separator { border: 0; height: 1px; max-width: none; width: 100%; background: rgba(249, 241, 232, .18); }

.is-style-shapes-hero, .is-style-shapes-cta { position: relative; overflow: hidden; isolation: isolate; }
.is-style-shapes-hero::before, .is-style-shapes-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-position: center; background-size: cover; background-repeat: no-repeat; }
.is-style-shapes-hero::before { background-image: url("../shapes/hero-shapes.svg"); }
.is-style-shapes-cta::before { background-image: url("../shapes/cta-shapes.svg"); }
.is-style-shapes-cta p { max-width: 36em; margin-inline: auto; }
.is-style-shapes-cta h2 { font-size: clamp(36px, 3.6vw + 20px, 64px); }

/* ---------- social links ---------- */
.wp-block-social-links.is-style-text-links, .wp-block-social-links.is-style-pills { gap: 2px; }
.wp-block-social-links.is-style-text-links .wp-social-link,
.wp-block-social-links.is-style-pills .wp-social-link { background: none !important; color: inherit !important; }
.wp-block-social-links.is-style-text-links .wp-social-link a,
.wp-block-social-links.is-style-pills .wp-social-link a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--wp--custom--radius--pill); font-size: var(--wp--preset--font-size--small); font-weight: 500; text-decoration: none; color: var(--wp--preset--color--ink); transition: background .15s; }
.wp-block-social-links.is-style-text-links .wp-social-link svg,
.wp-block-social-links.is-style-pills .wp-social-link svg { display: none; }
.wp-block-social-links.is-style-text-links .wp-social-link a:hover,
.wp-block-social-links.is-style-text-links .wp-social-link a:focus-visible { background: var(--wp--preset--color--blush); }
.wp-block-social-links.is-style-pills .wp-social-link a { background: #fff; }
.is-style-section-ink .wp-block-social-links .wp-social-link a { color: var(--wp--preset--color--on-dark); }
.is-style-section-ink .wp-block-social-links .wp-social-link a:hover { background: rgba(249, 241, 232, .12); color: #fff; }

/* ---------- logo block ---------- */
.ma-logo__link { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.ma-logo__mark { width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--lilac); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -.05em; flex-shrink: 0; }
.ma-logo__mark span { color: var(--wp--preset--color--coral-light); }
.ma-logo__word { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 22px; letter-spacing: -.015em; color: var(--wp--preset--color--ink); white-space: nowrap; }
.ma-logo__word .a { color: var(--wp--preset--color--lilac); }
.ma-logo.is-light .ma-logo__word { color: var(--wp--preset--color--cream); }
.ma-logo.is-light .ma-logo__word .a { color: var(--wp--preset--color--lilac-soft); }
.ma-logo.is-light .ma-logo__word .dot { color: var(--wp--preset--color--coral-light); }

/* ---------- video card block ---------- */
.ma-video-card { position: relative; max-width: 440px; margin-inline: auto; padding: 0 12px; }
.ma-video-card__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--wp--custom--radius--card); overflow: hidden; background: var(--wp--preset--color--blush); box-shadow: 0 30px 60px -30px rgba(59, 42, 61, .35); }
.ma-video-card__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-video-card__ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.ma-video-card__label { align-self: flex-start; padding: 8px 14px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--cream); color: var(--wp--preset--color--ink); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ma-video-card__play { align-self: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; color: var(--wp--preset--color--lilac); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -10px rgba(59, 42, 61, .45); transition: background .15s, color .15s; text-decoration: none; }
a.ma-video-card__play:hover, a.ma-video-card__play:focus-visible { background: var(--wp--preset--color--ink); color: #fff; }
.ma-video-card__caption { background: var(--wp--preset--color--cream); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ma-video-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--lilac-deep); line-height: 1.5; }
.ma-video-card__title { font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--wp--preset--color--ink); }
.ma-video-card__badge { position: absolute; top: -26px; right: -6px; width: 92px; height: 92px; border-radius: 50%; background: var(--wp--preset--color--lilac); border: 6px solid var(--wp--preset--color--cream); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 32px; letter-spacing: -.05em; }
.ma-video-card__badge span { color: var(--wp--preset--color--coral-light); }
@media (max-width: 781px) { .ma-video-card__badge { right: 4px; } }

dialog.ma-video-modal { width: min(960px, 92vw); padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #000; }
dialog.ma-video-modal::backdrop { background: rgba(59, 42, 61, .8); }
.ma-video-modal__frame { aspect-ratio: 16 / 9; }
.ma-video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ma-video-modal__close { position: absolute; top: 10px; right: 10px; z-index: 1; min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--wp--preset--color--ink); font-size: 24px; line-height: 1; cursor: pointer; }
