/* =========================================================================
   BoomWriter section (/boomwriter/...) and the simple website forms.
   Builds on content.css; BoomWriter's own orange is the accent here.
   ========================================================================= */

:root { --bw-orange: #e0620b; --bw-orange-dark: #b34d06; --bw-orange-soft: #fff1e6;
  /* behind white text: white on #e0620b is only 3.55:1, on #c25408 4.6:1 (WCAG 1.4.3) */
  --bw-orange-strong: #c25408; }

.c-hero .c-pill--bw { background: var(--bw-orange-strong); color: #fff; }
.c-hero .c-btn--light { border-color: #fff; background: #fff; color: var(--c-indigo); }
.c-hero .c-btn--ghost { border-color: rgba(255, 255, 255, 0.85); background: transparent; color: #fff; }
.c-hero .c-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* section menu */
.bw-nav { position: relative; z-index: 3; margin: -8px 0 0; padding: 0 24px; background: var(--c-ground); }
.bw-nav ul { display: flex; gap: 8px; max-width: 1120px; margin: 0 auto; padding: 18px 0 6px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.bw-nav a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--c-ink); font-weight: 700; white-space: nowrap; text-decoration: none; box-shadow: 0 4px 12px rgba(33, 39, 113, 0.08); }
.bw-nav a:hover { background: var(--bw-orange-soft); }
.bw-nav a[aria-current="page"] { background: var(--bw-orange-strong); color: #fff; }
.bw-nav a:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; }

/* text blocks */
.bw-lead { max-width: 760px; font-size: 1.14rem; line-height: 1.7; }
.bw-prose { max-width: 780px; line-height: 1.75; }
.bw-prose h3 { margin: 1.6em 0 0.4em; color: var(--c-ink); font-size: 1.25rem; font-weight: 800; }
.bw-prose ul { padding-left: 1.3em; }
.bw-prose li { margin: 0.35em 0; }
.c-sec a:not(.c-btn):not(.bw-card):not(.bw-starter__link) { color: var(--c-raspberry-dark); font-weight: 700; text-underline-offset: 3px; }

/* cards */
.bw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.bw-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-top: 5px solid var(--bw-orange); border-radius: 22px; background: #fff; color: var(--c-text); text-decoration: none; box-shadow: var(--c-shadow); transition: transform 150ms ease; }
a.bw-card:hover { transform: translateY(-3px); }
a.bw-card:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.bw-card h3 { margin: 0; color: var(--c-ink); font-size: 1.2rem; font-weight: 800; }
.bw-card p { margin: 0; line-height: 1.6; }
.bw-card .bw-more { margin-top: auto; padding-top: 6px; color: var(--bw-orange-dark); font-weight: 800; }

/* numbered steps (a real sequence) */
.bw-steps { counter-reset: step; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bw-steps li { counter-increment: step; position: relative; padding: 18px 22px 18px 76px; border-radius: 20px; background: #fff; line-height: 1.6; box-shadow: var(--c-shadow); }
.bw-steps li::before { content: counter(step); position: absolute; left: 20px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--bw-orange-soft); color: var(--bw-orange-dark); font-weight: 800; }
.bw-steps b { color: var(--c-ink); }

/* ticked lists */
.bw-ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.bw-ticks li { position: relative; padding-left: 32px; line-height: 1.6; }
.bw-ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bw-orange); color: #fff; font-size: 0.75rem; font-weight: 800; }

/* story starters */
.bw-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.bw-filter button { padding: 8px 16px; border: 0; border-radius: 999px; background: #fff; color: var(--c-ink); font: 700 0.95rem var(--c-font, "Red Hat Display", sans-serif); cursor: pointer; box-shadow: 0 4px 12px rgba(33, 39, 113, 0.08); }
.bw-filter button[aria-pressed="true"] { background: var(--c-indigo); color: #fff; }
.bw-filter button:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.bw-genre { margin: 34px 0 14px; color: var(--c-ink); font-size: 1.35rem; font-weight: 800; }
.bw-genre:first-of-type { margin-top: 0; }
.bw-genre small { margin-left: 8px; color: var(--c-muted); font-size: 0.9rem; font-weight: 700; }
.bw-starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.bw-starter { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--c-shadow); }
.bw-starter img { display: block; width: 100%; height: auto; aspect-ratio: 520 / 655; object-fit: cover; background: #e9e3da; }
.bw-starter__body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.bw-starter h4 { margin: 0; color: var(--c-ink); font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.bw-starter p { margin: 0; font-size: 0.95rem; line-height: 1.55; }
.bw-tag { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--bw-orange-soft); color: var(--bw-orange-dark); font-size: 0.78rem; font-weight: 800; }

/* levelled story (WriteFest) */
.bw-levels { display: grid; gap: 12px; }
.bw-levels details { border-radius: 20px; background: #fff; box-shadow: var(--c-shadow); }
.bw-levels summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 18px 22px; color: var(--c-ink); font-size: 1.12rem; font-weight: 800; cursor: pointer; }
.bw-levels summary small { color: var(--c-muted); font-size: 0.92rem; font-weight: 700; }
.bw-story { max-width: 70ch; padding: 0 22px 22px; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.75; }
.bw-story p { margin: 0 0 0.9em; }
.bw-story .bw-verse { margin-left: 1.4em; font-style: italic; }

/* prices, notes and callouts */
.bw-callout { padding: 22px 26px; border-left: 6px solid var(--bw-orange); border-radius: 18px; background: #fff; line-height: 1.65; box-shadow: var(--c-shadow); }
.bw-callout p { margin: 0 0 8px; }
.bw-callout p:last-child { margin-bottom: 0; }
.bw-price { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 0; }
.bw-price div { flex: 1 1 220px; padding: 22px; border-radius: 20px; background: #fff; text-align: center; box-shadow: var(--c-shadow); }
.bw-price b { display: block; color: var(--bw-orange-dark); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.bw-price span { display: block; margin-top: 6px; line-height: 1.45; }
.bw-quote { max-width: 760px; margin: 0 auto; padding: 26px 30px; border-radius: 22px; background: #fff; box-shadow: var(--c-shadow); }
.bw-quote p { margin: 0; color: var(--c-ink); font-size: 1.18rem; font-weight: 700; line-height: 1.55; }
.bw-quote footer { margin-top: 12px; color: var(--c-muted); font-weight: 700; }
.bw-logo { display: block; width: min(300px, 70%); height: auto; margin: 0 0 18px; }
.bw-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .bw-two { grid-template-columns: 1fr; } }

/* ---------------- simple forms ---------------- */
.f-card { max-width: 720px; padding: 30px 32px 32px; border-radius: 26px; background: #fff; box-shadow: var(--c-shadow); }
.f-card h2 { margin: 0 0 6px; color: var(--c-ink); font-size: 1.5rem; font-weight: 800; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 18px; }
.f-field { display: grid; gap: 6px; }
.f-field--wide { grid-column: 1 / -1; }
.f-field label, .f-legend { color: var(--c-ink); font-weight: 700; }
.f-field .f-opt { color: var(--c-muted); font-weight: 600; }
.f-field input, .f-field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #8a8f99; border-radius: 14px; background: #fff; color: var(--c-ink); font: 500 1rem "Red Hat Display", "Segoe UI", Arial, sans-serif; }
.f-field input:focus, .f-field select:focus { border-color: var(--c-raspberry-btn); outline: none; box-shadow: 0 0 0 4px rgba(185, 51, 95, 0.15); }
.f-check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.f-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-raspberry-btn); }
.f-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.f-error { min-height: 1.2em; margin: 14px 0 0; color: #b42318; font-weight: 700; }
.f-done { padding: 22px 24px; border-radius: 18px; background: #eef7e6; color: #2f5a14; font-weight: 700; line-height: 1.6; }
.f-note { margin: 12px 0 0; color: var(--c-muted); font-size: 0.92rem; line-height: 1.55; }
@media (max-width: 600px) { .f-grid { grid-template-columns: 1fr; } .f-card { padding: 24px 20px; } }
@media (prefers-reduced-motion: reduce) { .bw-card { transition: none; } a.bw-card:hover { transform: none; } }

/* closing banner */
.bw-cta { padding: 44px 36px; border-radius: 28px; background: linear-gradient(160deg, var(--c-indigo), #3a2a78 60%, var(--c-raspberry)); color: #fff; text-align: center; }
.bw-cta h2 { margin: 0; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.bw-cta p { max-width: 640px; margin: 14px auto 0; color: rgba(255, 255, 255, 0.92); line-height: 1.6; }
.bw-cta .c-btn--sun { border-color: #ffc93c; background: #ffc93c; color: var(--c-indigo); }
.bw-cta .c-btn--ghost { border-color: #fff; background: transparent; color: #fff; }
.bw-cta .c-btn:focus-visible { outline-color: #fff; }
@media (max-width: 520px) { .bw-cta { padding: 34px 20px; } }
.bw-nav--white { margin: 0; background: #fff; }
.bw-nav--white ul { padding-top: 6px; }
.bw-explore { padding: 72px 24px; }

/* ---------------- ISP International Storytelling Project ---------------- */
.isp-login { padding-top: 26px; padding-bottom: 26px; }
.isp-loginbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 22px; border-radius: 20px; background: #fff; box-shadow: var(--c-shadow); }
.isp-loginbar p { margin: 0; }
.isp-loginbar .c-actions { margin-top: 0; }
.isp-brand { display: flex; justify-content: center; margin-bottom: 18px; }
.isp-brand img { width: min(300px, 70%); height: auto; }
.isp-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.isp-tag--ind { background: #fff0dc; color: #9a4f00; }
.isp-tag--mex { background: #e4f4e8; color: #1f6b35; }
.isp-tag--eu { background: #e3ecfb; color: #1d4f9c; }
.isp-region { border-top-color: var(--c-line); }
.isp-region--ind { border-top-color: #f29a2e; }
.isp-region--mex { border-top-color: #2f9e56; }
.isp-region--eu { border-top-color: #3a72d0; }
.isp-region .isp-tag { justify-self: start; align-self: flex-start; }
.isp-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.isp-modules > li { padding: 24px; border-radius: 22px; background: #fff; box-shadow: var(--c-shadow); }
.isp-modules__n { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--bw-orange-strong); color: #fff; font-size: 0.82rem; font-weight: 800; }
.isp-modules h3 { margin: 12px 0 6px; color: var(--c-ink); font-size: 1.22rem; font-weight: 800; }
.isp-modules p { margin: 0 0 10px; line-height: 1.6; }
.isp-modules ul { margin: 0; padding-left: 1.2em; line-height: 1.55; }
.isp-modules ul li { margin: 4px 0; }
@media (max-width: 900px) { .isp-modules { grid-template-columns: 1fr; } }
.isp-tablewrap { overflow-x: auto; border-radius: 22px; box-shadow: var(--c-shadow); }
.isp-table { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; }
.isp-table th, .isp-table td { padding: 14px 18px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; line-height: 1.5; }
.isp-table thead th { background: var(--c-indigo); color: #fff; font-weight: 800; }
.isp-table thead small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.8); font-size: 0.82rem; font-weight: 600; }
.isp-table tbody th { white-space: nowrap; }
.isp-table tr:last-child th, .isp-table tr:last-child td { border-bottom: 0; }
.isp-table em { color: var(--c-muted); font-style: normal; font-size: 0.9rem; }
.isp-email { margin-top: 26px; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--c-shadow); }
.isp-email__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--c-line); }
.isp-email__head h3 { margin: 0; color: var(--c-ink); font-size: 1.1rem; font-weight: 800; }
.isp-email pre { margin: 0; padding: 18px 22px 22px; overflow-x: auto; color: var(--c-ink); font: 0.95rem/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre-wrap; }
.isp-lib { margin: 36px 0 6px; color: var(--c-indigo); font-size: 1.5rem; font-weight: 800; }
.isp-lib:first-of-type { margin-top: 10px; }
.isp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.isp-meta { color: var(--c-muted); font-size: 0.9rem !important; font-weight: 700; }
.isp-read { margin-top: 6px; }
.isp-read summary { color: var(--bw-orange-dark); font-weight: 800; cursor: pointer; }
.isp-read .bw-story { max-width: none; padding: 10px 0 0; font-size: 0.98rem; line-height: 1.65; }
.isp-read .bw-story p { margin: 0 0 0.75em; }
.isp-preview { margin: 4px 0 0 !important; padding: 8px 12px; border-radius: 10px; background: var(--bw-orange-soft); color: var(--bw-orange-dark); font-size: 0.86rem !important; font-weight: 700; }
.isp-sources { margin: 0; padding-left: 1.2em; font-family: "Red Hat Display", "Segoe UI", Arial, sans-serif; font-size: 0.9rem; line-height: 1.5; }
.isp-soon { padding: 18px 22px; border: 2px dashed var(--c-line); border-radius: 18px; color: var(--c-muted); font-weight: 700; }
.isp-answer { padding: 0 22px 20px; line-height: 1.65; }
.isp-answer p { margin: 0; }
.isp-eyebrow { margin: 0 0 12px; }
.bw-two .c-video { margin: 0; }
.c-sec [id] { scroll-margin-top: 96px; }

/* Heroes in the BoomWriter section use BoomWriter's orange, matching its header.
   Scoped to pages with the BoomWriter header (other pages also load this file for its forms). */
.site-header--bw ~ main .c-hero { background: radial-gradient(70% 55% at 50% 0%, rgba(255, 201, 60, 0.18), transparent 70%), linear-gradient(180deg, #d45a0a 0%, #b84a08 45%, #9a3d0b 100%); }
.site-header--bw ~ main .c-hero .c-pill--bw { background: #fff; color: #9a3d0b; }
.site-header--bw ~ main .c-hero .c-btn--light { color: #9a3d0b; }
.site-header--bw ~ main .c-crumbs a:hover { border-color: #fff; }

/* ---------------- WriteFest ---------------- */
.wf-chip { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; }
.wf-chip--live { background: #e3f5e6; color: #1f6b35; }
.wf-chip--upcoming { background: #e3ecfb; color: #1d4f9c; }
.wf-chip--ended { background: #eef0f4; color: #4a4f5c; }
.wf-hero-chip { margin-top: 20px; }
.wf-hero-chip .wf-chip { font-size: 0.95rem; padding: 6px 16px; }
.wf-card h3 { font-size: 1.3rem; }
.wf-card__title { color: var(--bw-orange-dark); font-weight: 800; }
.wf-card__img { display: block; width: calc(100% + 48px); max-width: none; margin: -24px -24px 8px; height: 180px; object-fit: cover; border-radius: 17px 17px 0 0; }
.wf-feature { max-width: 720px; }
.wf-feature .wf-card { padding: 30px; }
.wf-feature .wf-card h3 { font-size: 1.6rem; }
.wf-feature .wf-card__img { width: calc(100% + 60px); margin: -30px -30px 10px; height: 240px; }
.wf-intro { max-width: 760px; margin-bottom: 18px; }
.wf-results .c-h2 { margin-bottom: 10px; }
.bw-story blockquote { margin: 0 0 0.9em 1.4em; padding: 0; border: 0; background: none; font-style: italic; }
.bw-story blockquote p { margin: 0; }
