/*
 * GSRV Blog: the writer blocks, styled to the approved "Blog Article" template.
 *
 * Loaded on the site and inside the block editor. Every value below was read from the
 * template's Elementor data on 21 Sep 2026 (fonts, colours, spacing), so a block in the
 * editor matches the block on the page. Colours read Elementor's Global Colors through
 * their CSS variables, with the same hex as fallback for the editor, where the kit
 * stylesheet is not loaded.
 *
 * Brand font. The kit declares these for the site; the editor needs its own copy.
 */
@font-face { font-family: "Girl Scout"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../../../uploads/2025/12/GirlScout-TextBook.woff2") format("woff2"); }
@font-face { font-family: "Girl Scout"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../../../uploads/2025/12/GirlScout-TextMediumV.woff2") format("woff2"); }
@font-face { font-family: "Girl Scout"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../../../uploads/2025/12/GirlScout-TextBold.woff2") format("woff2"); }

:root {
  --gsrv-serif: "Girl Scout", Georgia, serif;
  --gsrv-sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --gsrv-black: var(--e-global-color-7df4313, #000000);
  --gsrv-white: var(--e-global-color-668a820, #ffffff);
  --gsrv-green: var(--e-global-color-e5547ed, #00b451);
  --gsrv-forest: var(--e-global-color-7e20bbd, #005640);
  --gsrv-flame: var(--e-global-color-012037b, #ff830c);
  --gsrv-gray: var(--e-global-color-4b0c8b3, #f8f8f8);
  --gsrv-fade1: var(--e-global-color-f0accd2, #fff6e8);
  --gsrv-fade2: var(--e-global-color-c163fb8, #e7f3e2);
  --gsrv-sky: var(--e-global-color-1f8ac28, #a0def1);
  --gsrv-bubblegum: var(--e-global-color-fb2fb54, #f7abd6);
  --gsrv-star: var(--e-global-color-018824c, #d5f267);
  --gsrv-meta: #7c8a82;
  --gsrv-radius: 15px;
}

/* ---------------------------------------------------------------- shared */
/* This theme has no theme.json, so WordPress wraps every Group block's children in
   .wp-block-group__inner-container and adds its own margins between them. The rules below
   reach through that wrapper where a block needs a row, and let the block's own spacing win. */
.gsrv-blk { margin: 40px 0; font-family: var(--gsrv-sans); color: var(--gsrv-black); clear: both; }
.gsrv-blk .is-layout-flow > * { margin-block-start: 0; margin-block-end: 0; }
.gsrv-blk p { font-family: var(--gsrv-sans); font-size: 14px; line-height: 24px; letter-spacing: -0.2px; color: var(--gsrv-black); margin: 0 0 12px; }
.gsrv-blk p:last-child { margin-bottom: 0; }
.gsrv-blk .gsrv-h { font-family: var(--gsrv-serif); font-size: 33px; font-weight: 500; line-height: 40px; letter-spacing: -0.5px; color: var(--gsrv-black); margin: 0 0 20px; text-transform: none; }
.gsrv-blk .gsrv-h3 { font-family: var(--gsrv-serif); font-size: 22px; font-weight: 500; line-height: 28px; letter-spacing: -0.5px; color: var(--gsrv-black); margin: 0 0 8px; }
.gsrv-blk .gsrv-eyebrow { font-family: var(--gsrv-sans); font-size: 12px; font-weight: 600; line-height: 14px; letter-spacing: -0.1px; text-transform: uppercase; color: var(--gsrv-green); margin: 0 0 8px; }
.gsrv-blk .gsrv-sub { font-family: var(--gsrv-sans); font-size: 16px; font-weight: 500; line-height: 26px; letter-spacing: -0.2px; }
.gsrv-blk .gsrv-meta { font-size: 12.5px; line-height: 1.6em; letter-spacing: -0.2px; color: var(--gsrv-meta); }

/* Bands: the block's own background, the full 900px column of the article (the running text stays at 70% of it,
   a Site Settings rule), text flush with the article. */
.gsrv-band { padding: 30px 0; }
/* Grey bands run edge to edge, as in the template. */
.gsrv-bleed, .gsrv-expert { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
html { overflow-x: clip; }

/* Columns: the template's 32px gutter, stacking on phones is core behaviour. */
.gsrv-blk .gsrv-cols { gap: 32px; margin: 0; }
.gsrv-blk .wp-block-column { min-width: 0; }

/* Photos: rounded, cropped to the template's heights. */
.gsrv-blk .wp-block-image { margin: 0; }
.gsrv-blk .wp-block-image img { width: 100%; object-fit: cover; border-radius: var(--gsrv-radius); display: block; }
.gsrv-blk .gsrv-shot-300 img { height: 300px; }
.gsrv-blk .gsrv-shot-250 img { height: 250px; }

/* The site button: green, uppercase serif, arrow slides in on hover. */
.gsrv-blk .gsrv-btns { margin: 0; }
.gsrv-blk .gsrv-btn .wp-block-button__link { font-family: var(--gsrv-serif); font-size: 18px; font-weight: 500; line-height: 22px; text-transform: uppercase; color: var(--gsrv-white); background: var(--gsrv-green); border-radius: 10px; padding: 12px 25px; text-decoration: none; display: inline-flex; align-items: center; transition: background .25s ease; }
.gsrv-blk .gsrv-btn .wp-block-button__link:hover, .gsrv-blk .gsrv-btn .wp-block-button__link:focus-visible { background: var(--gsrv-forest); color: var(--gsrv-white); }
.gsrv-blk .gsrv-btn .wp-block-button__link::after { content: ""; width: 0; height: 12px; margin-left: 0; opacity: 0; overflow: hidden; background: url("../../../uploads/2025/12/Button-Arrows-White.svg") no-repeat center / contain; transition: width .35s ease, margin-left .35s ease, opacity .35s ease; }
.gsrv-blk .gsrv-btn .wp-block-button__link:hover::after, .gsrv-blk .gsrv-btn .wp-block-button__link:focus-visible::after { width: 1.6em; margin-left: 10px; opacity: 1; }

/* ---------------------------------------------------------------- Ask a Girl */
.gsrv-ask { background: var(--gsrv-gray); padding-top: 60px; padding-bottom: 60px; }
.gsrv-ask .gsrv-h { margin-bottom: 20px; }

/* ---------------------------------------------------------------- Try this */
/* A 70/30 row, centred: the text column takes what is left, the box is the template's 259px. */
.gsrv-tryrow .gsrv-cols { gap: 11px; align-items: center; }
.gsrv-tryrow .wp-block-column:first-child { flex: 1 1 0; }
.gsrv-tryrow .wp-block-column:last-child { flex: 0 0 259px; }
.gsrv-try { background: var(--gsrv-fade2); border-radius: var(--gsrv-radius); padding: 30px 20px; text-align: center; margin: 0; }
.gsrv-try .gsrv-try-h { font-family: var(--gsrv-serif); font-size: 28px; font-weight: 500; line-height: 34px; letter-spacing: -0.5px; color: var(--gsrv-black); margin: 0 0 10px; }
.gsrv-try p { margin-bottom: 10px; }
.gsrv-try .gsrv-btns { justify-content: center; margin-top: 16px; }
@media (max-width: 781px) { .gsrv-tryrow .wp-block-column:last-child { flex-basis: auto; } }

/* ---------------------------------------------------------------- Parent Takeaway */
.gsrv-takeaway .gsrv-box { background: var(--gsrv-gray); border-radius: var(--gsrv-radius); padding: 20px 40px; margin: 0 0 20px; }
.gsrv-takeaway .gsrv-box:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- What Girls Told Us */
.gsrv-told { background: none; }
.gsrv-told .gsrv-h { margin-bottom: 6px; }
.gsrv-told .gsrv-sub { margin-bottom: 30px; }
.gsrv-told .gsrv-quote { border-radius: var(--gsrv-radius); padding: 10px 30px; height: 100%; box-sizing: border-box; }
.gsrv-told .gsrv-quote p { font-family: var(--gsrv-serif); font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: -0.2px; margin: 10px 0; }
.gsrv-c-sky { background: var(--gsrv-sky); }
.gsrv-c-bubblegum { background: var(--gsrv-bubblegum); }
.gsrv-c-star { background: var(--gsrv-star); }

/* ---------------------------------------------------------------- Expert Voice */
.gsrv-expert { background: var(--gsrv-gray); padding-top: 60px; padding-bottom: 60px; }
.gsrv-expert .gsrv-ecard { background: none; padding: 0; }
.gsrv-expert .gsrv-equote { font-family: var(--gsrv-serif); font-size: 18px; font-weight: 400; line-height: 28px; letter-spacing: -0.2px; margin: 0 0 20px; }
.gsrv-expert .gsrv-who, .gsrv-expert .gsrv-who > .wp-block-group__inner-container { display: flex; align-items: center; gap: 15px; }
.gsrv-expert .gsrv-initials { font-family: var(--gsrv-sans); font-size: 14px; font-weight: 600; line-height: 22px; letter-spacing: -0.2px; color: var(--gsrv-white); background: var(--gsrv-green); border-radius: 100px; padding: 9px 11px; margin: 0; flex: none; min-width: 40px; text-align: center; }
.gsrv-expert .gsrv-who-text .gsrv-eyebrow { margin: 0; line-height: 16px; }

/* ---------------------------------------------------------------- By the Numbers */
.gsrv-numbers { background: none; padding: 40px 0; }
.gsrv-numbers .gsrv-h { margin-bottom: 6px; }
/* The intro line sits 30px above the figures, as in the other sections (the group's inner wrapper is in the way of a plain child selector). */
.gsrv-numbers > p, .gsrv-numbers > .wp-block-group__inner-container > p { margin-bottom: 30px; }
.gsrv-numbers .gsrv-cols-photo { align-items: center; }
/* The figures column is a two-column grid: the first column is exactly as wide as the widest number, the text starts
   20px after it, every row aligned. The stat rows dissolve into the grid (display: contents). */
.gsrv-numbers .gsrv-cols-photo .wp-block-column:last-child { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 20px; row-gap: 30px; align-items: center; }
.gsrv-numbers .gsrv-stat, .gsrv-numbers .gsrv-stat > .wp-block-group__inner-container { display: contents; }
/* Same size in both By the Numbers layouts, smaller than the template's 50/40 (Julia, 22 Sep 2026). */
.gsrv-numbers .gsrv-num { font-family: var(--gsrv-serif); font-size: 32px; font-weight: 500; line-height: 36px; letter-spacing: -0.5px; margin: 0; white-space: nowrap; }
.gsrv-numbers .gsrv-stat .gsrv-sub { margin: 0; }
.gsrv-numbers .gsrv-cols-stats { gap: 60px; }
.gsrv-numbers .gsrv-statcol { border-top: 3px solid var(--gsrv-green); padding-top: 10px; }
.gsrv-numbers .gsrv-cols-stats { margin-top: 10px; }
.gsrv-numbers .gsrv-num40 { font-family: var(--gsrv-serif); font-size: 32px; font-weight: 500; line-height: 36px; letter-spacing: -0.5px; margin: 0 0 10px; }

/* ---------------------------------------------------------------- Girl Scouts Connection */
.gsrv-cta { background: var(--gsrv-gray); padding-top: 80px; padding-bottom: 80px; }
.gsrv-cta .gsrv-h { margin-bottom: 10px; }
.gsrv-cta .gsrv-sub { margin-bottom: 20px; }

/* ---------------------------------------------------------------- FAQ */
.gsrv-faq { background: var(--gsrv-gray); padding-top: 60px; padding-bottom: 60px; }
.gsrv-faq .gsrv-faqbox { background: none; padding: 0; }
.gsrv-faq .gsrv-h { margin-bottom: 20px; }
.gsrv-faq .gsrv-faq-item { margin: 0 0 10px; }
.gsrv-faq .gsrv-faq-item summary { font-family: var(--gsrv-serif); font-size: 16px; font-weight: 400; line-height: 22px; letter-spacing: -0.2px; color: var(--gsrv-black); list-style: none; cursor: pointer; padding: 10px 16px; border-radius: 70px; display: flex; align-items: center; gap: 12px; transition: background .2s ease, color .2s ease; }
.gsrv-faq .gsrv-faq-item summary::-webkit-details-marker { display: none; }
.gsrv-faq .gsrv-faq-item summary::before { content: "+"; font-family: var(--gsrv-sans); font-weight: 600; font-size: 18px; line-height: 1; color: var(--gsrv-flame); flex: none; width: 14px; text-align: center; }
.gsrv-faq .gsrv-faq-item summary:hover, .gsrv-faq .gsrv-faq-item[open] summary { background: var(--gsrv-flame); color: var(--gsrv-white); }
.gsrv-faq .gsrv-faq-item summary:hover::before, .gsrv-faq .gsrv-faq-item[open] summary::before { color: var(--gsrv-white); }
.gsrv-faq .gsrv-faq-item[open] summary::before { content: "−"; }
.gsrv-faq .gsrv-faq-item > :not(summary) { padding: 20px 35px; margin: 0; }

/* ---------------------------------------------------------------- article images */
/* Pictures a writer adds to the body match the lead photo (Julia, 22 Sep 2026): the same 1280px width
   centred on the page, the same 1280x800 crop (8:5), the same corners. The figure steps out of the
   900px text column by the difference; on narrow screens it keeps 20px from the window edge. Only
   direct children of the post body, so the photos inside writer blocks keep their own sizes. */
.elementor-widget-theme-post-content > .wp-block-image { width: min(1280px, calc(100vw - 40px)); max-width: none; margin: 40px 0 40px calc(50% - min(640px, 50vw - 20px)); }
.elementor-widget-theme-post-content > .wp-block-image img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--gsrv-radius); display: block; }
.editor-styles-wrapper .wp-block-image img { border-radius: var(--gsrv-radius); }
.editor-styles-wrapper > .wp-block-image img, .editor-styles-wrapper .is-root-container > .wp-block-image img { aspect-ratio: 8 / 5; object-fit: cover; }
/* Captions do not show on the page (Julia, 22 Sep 2026). The editor still shows them so a writer knows one is there. */
.elementor-widget-theme-post-content .wp-block-image figcaption { display: none; }
.editor-styles-wrapper .wp-block-image figcaption { font-family: var(--gsrv-sans); font-size: 12.5px; line-height: 1.6em; color: var(--gsrv-meta); text-align: left; margin: 8px 0 0; }

/* ---------------------------------------------------------------- editor only */
/* The editor canvas has no article column, so the bands keep to the canvas width. */
.editor-styles-wrapper .gsrv-bleed, .editor-styles-wrapper .gsrv-expert { margin-left: 0; margin-right: 0; padding-left: 20px; padding-right: 20px; }

/* Sources: [gsrv_sources] at the end of the article. Quiet on purpose: a reference list,
   not a feature. Heading uses the h3 scale, list the meta size. */
.gsrv-sources { margin: 40px 0; font-family: var(--gsrv-sans); color: var(--gsrv-black); }
.gsrv-sources .gsrv-sources-h { font-family: var(--gsrv-serif); font-size: 22px; font-weight: 500; line-height: 28px; letter-spacing: -0.5px; text-transform: none; color: var(--gsrv-black); margin: 0 0 12px; }
.gsrv-sources ol { margin: 0; padding-left: 20px; }
.gsrv-sources li { font-size: 14px; line-height: 22px; letter-spacing: -0.2px; margin: 0 0 6px; overflow-wrap: anywhere; }
.gsrv-sources a { color: var(--gsrv-forest); text-decoration: underline; text-underline-offset: 3px; }
