/* Veganuar page template – applies only when the "Veganuar" template is used */

/* Fonts: the font rules are added by PHP (a2n_veganuar_font_face_css() in functions.php)
   so the URLs are always the real theme URLs, whichever page or file loads this CSS.
   Font files: /wp-content/themes/a2n-base/fonts/*.woff2
   Editor rules use .editor-styles-wrapper.editor-styles-wrapper (the iframe editor cannot get an extra class). */

/* ======================================================================
   Everything below is scoped to .veganuar-page (wrapper in the template),
   so the site header and footer are NOT affected.
   Class names (.btn, .field, .quick, .wrap ...) are the same as in the
   v9 design file, so markup can be copied from the sketch.
   ====================================================================== */
.veganuar-page,
.editor-styles-wrapper.editor-styles-wrapper {
  --soft-black: #2C2F32;
  --white: #FFFFFF;
  --raspberry: #FF287D;
  --raspberry-dark: #E0186A;
  --grey: #E6EBF0;
  --grey-50: #F2F5F7;
  --circle: #FFE6F0;           /* round icon boxes (pink variant chosen in v9) */
  --muted: #5A6068;
  --line: #D3D9E0;
  --display: "Program OT", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1632px;
  --gut: max(16px, env(safe-area-inset-left, 0px));

  /* Fonts/colour are inherited by every block on the page. Font SIZE and line-height are
     deliberately NOT set here, so custom blocks keep their own sizing. */
  font-family: var(--body);
  font-weight: 300;
  color: var(--soft-black);
  -webkit-font-smoothing: antialiased;
}
/* border-box only for the design's own components (custom a2n-* blocks keep their own box model) */
.veganuar-page :is(.wrap, .quick, .join-b-top, .res4, .join-b-form, .form-card),
.veganuar-page :is(.quick, .res4, .form-card, .join-b-form, .join-b-top) * { box-sizing: border-box; }
.veganuar-page :focus-visible { outline: 3px solid var(--raspberry); outline-offset: 3px; }
.veganuar-page [hidden] { display: none !important; }

/* ---------- Typography ---------- */
.veganuar-page :where(h1, h2, h3, .wp-block-button__link, .vg-display),
.editor-styles-wrapper.editor-styles-wrapper :where(h1, h2, h3, .wp-block-button__link, .vg-display) {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .005em;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}
/* Heading / button FONT FAMILY must win over the theme's and the custom blocks' own font rules
   (the theme sets Poppins/Montserrat on headings). Only the font is forced; sizes, margins and
   colours of custom blocks stay theirs. The doubled class raises specificity without !important. */
.veganuar-page.veganuar-page :is(h1, h2, h3, .vg-display),
.veganuar-page.veganuar-page .wp-block-button__link { font-family: var(--display); }

/* Heading sizes apply only to headings added directly in the page content (see the content section below). */
.veganuar-page .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.35; }
.veganuar-page .prose p { font-size: 18px; line-height: 1.35; }
.veganuar-page .eyebrow { font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--raspberry); }
.veganuar-page .tlink { font-weight: 500; color: inherit; text-decoration: underline; text-decoration-color: var(--raspberry); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.veganuar-page .tlink:hover { color: var(--raspberry); }

/* ---------- Layout helpers (use as "Additional CSS class" on Group blocks) ---------- */
.veganuar-page .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.veganuar-page .stack { display: flex; flex-direction: column; gap: 20px; }
.veganuar-page .narrow { max-width: 760px; }
.veganuar-page .prose { display: flex; flex-direction: column; gap: 20px; }
.veganuar-page .center { text-align: center; align-items: center; }
.veganuar-page .center p { margin-inline: auto; }
.veganuar-page .section { padding-block: clamp(56px, 8vw, 104px); }
.veganuar-page .section.tight { padding-block: clamp(40px, 5vw, 64px); }
.veganuar-page .bg-grey { background: var(--grey-50); }
.veganuar-page .bg-pink { background: var(--raspberry); color: var(--white); }

/* ---------- Buttons: core Button block AND the sketch's .btn (custom HTML) ---------- */
.veganuar-page .btn,
.veganuar-page :where(.wp-block-button__link) {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 19px; letter-spacing: .03em; line-height: 1;
  padding: 17px 28px 15px;
  border-radius: 999px; border: 2px solid var(--raspberry);
  background: var(--raspberry); color: var(--white);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.veganuar-page .btn { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.veganuar-page .btn:hover,
.veganuar-page :where(.wp-block-button__link):hover { background: var(--raspberry-dark); border-color: var(--raspberry-dark); color: var(--white); }
.veganuar-page .btn:active { transform: translateY(1px); }
/* ghost = core Button block "Outline" style */
.veganuar-page .btn.ghost,
.veganuar-page .is-style-outline .wp-block-button__link { background: transparent; color: var(--raspberry); }
.veganuar-page .btn.ghost:hover,
.veganuar-page .is-style-outline .wp-block-button__link:hover { background: var(--raspberry); color: var(--white); }
.veganuar-page .btn.inv { background: var(--white); border-color: var(--white); color: var(--raspberry); }
.veganuar-page .btn.inv:hover { background: var(--soft-black); border-color: var(--soft-black); color: var(--white); }

/* ---------- Round icon boxes + "Bli med" top section ---------- */
.veganuar-page .circ { flex: none; width: var(--cs, 150px); height: var(--cs, 150px); border-radius: 50%; background: var(--circle); display: grid; place-items: center; }
.veganuar-page .circ svg { width: 56%; height: 56%; }
.veganuar-page .circ img { width: 52%; height: 52%; object-fit: contain; }
.veganuar-page .join-b-top { padding-block: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.veganuar-page .join-b-top .logo { width: 230px; margin-bottom: 13px; }
.veganuar-page .res4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.veganuar-page .res4 .it { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; font-weight: 600; font-size: 16px; line-height: 1.35; }
.veganuar-page .res4 .circ { --cs: 120px; }
.veganuar-page .res4 small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 760px) { .veganuar-page .res4 { grid-template-columns: 1fr 1fr; } .veganuar-page .res4 .circ { --cs: 100px; } }

/* ---------- Hero e-mail box ("Bli med") ---------- */
.veganuar-page .quick { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; max-width: 600px; margin: 22px auto 0; }
.veganuar-page .quick input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 17px; padding: 15px 18px; border: 1.5px solid #C4CBD3; border-radius: 999px; background: var(--white); color: var(--soft-black); }
.veganuar-page .quick input:focus { outline: none; border-color: var(--soft-black); box-shadow: 0 0 0 3px rgba(255,40,125,.25); }
.veganuar-page .quick .btn { flex: none; }
.veganuar-page .quick .errmsg { display: none; flex-basis: 100%; color: #C4002F; font-size: 14px; text-align: center; }
.veganuar-page .quick.err .errmsg { display: block; }
.veganuar-page .quick.err input { border-color: #C4002F; }
.veganuar-page .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes qflash { 0%,100% { box-shadow: 0 0 0 0 rgba(255,40,125,0); } 30% { box-shadow: 0 0 0 6px rgba(255,40,125,.35); } }
.veganuar-page .qflash { animation: qflash 1.4s ease 2; }
@media (prefers-reduced-motion: reduce) { .veganuar-page .qflash { animation: none; } }

/* ---------- Sign-up form ---------- */
.veganuar-page .join-b-form { background: var(--grey-50); padding-block: clamp(40px, 6vw, 80px); scroll-margin-top: 20px; }
.veganuar-page .form-card { background: var(--white); border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(44,47,50,.08); padding: clamp(24px, 3.4vw, 40px); min-width: 0; }
.veganuar-page .join-b-form .form-card { max-width: 720px; margin-inline: auto; box-shadow: none; }
.veganuar-page .form-card h2 { font-size: clamp(28px, 3vw, 36px); }
.veganuar-page .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.veganuar-page .fgrid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .veganuar-page .fgrid { grid-template-columns: 1fr; } }
.veganuar-page .field { display: block; flex-direction: column; gap: 6px; min-width: 0;font-size: 14px;font-weight: 600; }
.veganuar-page .field label, .veganuar-page .legend { font-size: 14px; font-weight: 600; }
.veganuar-page .req { color: var(--raspberry); }
.veganuar-page .field input[type=text],
.veganuar-page .field input[type=email],
.veganuar-page .field input[type=date] { font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px; border: 1.5px solid #C4CBD3; border-radius: 4px; background: var(--white); color: var(--soft-black); width: 100%; }
.veganuar-page .field input:focus { outline: none; border-color: var(--soft-black); box-shadow: 0 0 0 3px rgba(255,40,125,.25); }
.veganuar-page .field.err input { border-color: #C8102E; }
.veganuar-page .errmsg { font-size: 13px; font-weight: 500; color: #B00E28; display: none; }
.veganuar-page .field.err .errmsg, .veganuar-page .consent.err .errmsg { display: block; }
.veganuar-page fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.veganuar-page .starts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
@media (max-width: 620px) { .veganuar-page .starts { grid-template-columns: 1fr 1fr; } }
.veganuar-page .starts input { position: absolute; opacity: 0; pointer-events: none; }
.veganuar-page .starts label { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 12px; border: 1.5px solid #C4CBD3; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 15px; line-height: 1.2; transition: border-color .15s, background .15s; }
.veganuar-page .starts label small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.veganuar-page .starts label:hover { border-color: var(--soft-black); }
.veganuar-page .starts input:checked + label { border-color: var(--raspberry); background: #FFF1F7; box-shadow: inset 0 0 0 1px var(--raspberry); }
.veganuar-page .starts input:focus-visible + label { outline: 3px solid var(--raspberry); outline-offset: 2px; }
.veganuar-page .plan { margin-top: 12px; font-size: 14px; background: var(--grey-50); border-radius: 4px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.veganuar-page .plan svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--raspberry); }
.veganuar-page .consent { margin-top: 22px; display: flex; gap: 10px; flex-direction: row; margin-bottom: 10px;font-size: 15px;font-weight: 600;}
.veganuar-page .check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 600; font-size: 15px; line-height: 1.45; cursor: pointer; }
.veganuar-page .check input { width: 22px; height: 22px; margin: 0; accent-color: var(--raspberry); }
.veganuar-page .terms { font-size: 13px; line-height: 1.55; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .25s; }
.veganuar-page .terms.open { max-height: 400px; }
.veganuar-page .terms-toggle { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--soft-black); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; margin-left: 34px; }
.veganuar-page .submit-row { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.veganuar-page .submit-row .small { font-size: 13px; color: var(--muted); }
.veganuar-page .success { display: flex; flex-direction: column; gap: 18px; }
#formCard h2 {
    font-size: clamp(28px, 3vw, 36px) !important;
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.02;
    letter-spacing: .005em;
    text-wrap: balance;
    margin: 0;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
/* ---------- Note above the footer (rendered by the template) ---------- */
.veganuar-page .partner-line {
  font-size: 14px; line-height: 1.65; font-weight: 300; color: var(--muted); text-align: center;
  max-width: calc(62ch + 32px); margin-inline: auto; padding: 28px var(--gut);
}

/* Keep the form clear of a sticky theme header when scrolling to it (set to your header height) */
.veganuar-page .veganuar-signup-form,
.veganuar-page .join-b-form { scroll-margin-top: 110px; }

/* ======================================================================
   Page content: plain Gutenberg blocks (Paragraph, Heading, List, Quote) get the
   "Body text and quote" design automatically.

   ONLY blocks that sit directly in the page content are styled (child selector >).
   Custom blocks (wp-block-a2n-*: hero, intro, feature grid, stats, cards, CTA ...) keep
   their own CSS: their inner headings/paragraphs are not touched by these rules.
   Only pages using the Veganuar template have .veganuar-page, so nothing else on the
   site is affected. Add the class  vg-raw  to a plain block to opt it out.
   ====================================================================== */

/* 1. Narrow centred column (760px incl. gutters, same as .wrap.narrow in the design) */
.veganuar-page > :is(p, h1, h2, h3, h4, h5, h6, ul, ol):not(.partner-line):not(.vg-raw) {
  max-width: 760px;
  margin-inline: auto;
  margin-block: 0 20px;
  padding-inline: var(--gut);
}

/* 2. Headings, body text, lists */
.veganuar-page > h1:not(.vg-raw) { font-size: clamp(34px, 6vw, 80px); }
.veganuar-page > h2:not(.vg-raw) { font-size: clamp(30px, 3.6vw, 48px); }
.veganuar-page > h3:not(.vg-raw) { font-size: 24px; }
.veganuar-page > :is(h1, h2, h3, h4, h5, h6):not(.vg-raw) { margin-bottom: 22px; }
.veganuar-page > :is(p, ul, ol):not(.partner-line):not(.vg-raw) { font-size: 18px; line-height: 1.35; }
.veganuar-page > :is(ul, ol):not(.partner-line):not(.vg-raw) { padding-left: calc(var(--gut) + 1.25em); }
.veganuar-page > :is(ul, ol) li { margin-bottom: 8px; }
.veganuar-page > :is(ul, ol) li::marker { color: var(--raspberry); }
.veganuar-page > :is(p, ul, ol, blockquote, .wp-block-pullquote) :is(strong, b) { font-weight: 600; }  /* only weights 300-600 are loaded */

/* 3. Links in text */
.veganuar-page > :is(p, ul, ol):not(.partner-line) a:not(.wp-block-button__link) {
  font-weight: 500; color: inherit;
  text-decoration: underline; text-decoration-color: var(--raspberry);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.veganuar-page > :is(p, ul, ol):not(.partner-line) a:not(.wp-block-button__link):hover { color: var(--raspberry); }

/* 4. Quote / Pullquote block = the pull quote in the design */
.veganuar-page > :is(blockquote, .wp-block-pullquote):not(.vg-raw) {
  display: block;
  max-width: 22em;
  margin-block: 8px 28px;
  margin-inline: max(var(--gut), calc((100% - 760px) / 2 + var(--gut))) auto;  /* left edge lines up with the text column */
  padding: 0 0 0 22px;
  border: 0; border-left: 4px solid var(--raspberry);
  background: none; box-shadow: none; text-align: left;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: .005em;
}
.veganuar-page > :is(blockquote, .wp-block-pullquote):not(.vg-raw) :is(blockquote, p) {
  margin: 0; padding: 0; border: 0; max-width: none;
  font: inherit; text-transform: inherit; letter-spacing: inherit; line-height: inherit; color: inherit;
}
.veganuar-page > :is(blockquote, .wp-block-pullquote):not(.vg-raw) :is(blockquote, p)::before,
.veganuar-page > :is(blockquote, .wp-block-pullquote):not(.vg-raw) :is(blockquote, p)::after { content: none; }
.veganuar-page > :is(blockquote, .wp-block-pullquote):not(.vg-raw) :is(cite, .wp-block-quote__citation, figcaption) {
  display: block; margin-top: 12px;
  font-family: var(--body); font-style: normal; font-weight: 500; text-transform: none;
  font-size: 15px; line-height: 1.4; letter-spacing: 0; color: var(--muted);
}

/* 5. Breathing room: when plain text follows a custom block (e.g. under the page header)
      or a custom block follows plain text, add section-like spacing. */
.veganuar-page > :not(:is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-pullquote, .vg-raw)) + :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-pullquote):not(.partner-line):not(.vg-raw) { margin-top: clamp(56px, 8vw, 104px); }
.veganuar-page > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-pullquote):not(.partner-line):not(.vg-raw) + :not(:is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-pullquote, .vg-raw)):not(.partner-line) { margin-top: clamp(56px, 8vw, 104px); }
/* .veganuar-page .partner-line { margin-top: clamp(40px, 6vw, 72px); } */
.veganuar-page .partner-line { margin-top: 0; }

/* 6. Same look inside the block editor (best effort) */
.editor-styles-wrapper.editor-styles-wrapper .is-root-container > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, .wp-block-list) {
  max-width: 760px; margin-inline: auto;
}
.editor-styles-wrapper.editor-styles-wrapper .is-root-container > :is(p, ul, ol, .wp-block-list) { font-size: 18px; line-height: 1.35; }
.editor-styles-wrapper.editor-styles-wrapper .is-root-container > .wp-block-quote {
  max-width: 22em; margin-inline: auto auto; padding: 0 0 0 22px;
  border: 0; border-left: 4px solid var(--raspberry);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.08;
}
.editor-styles-wrapper.editor-styles-wrapper .wp-block-quote p { font: inherit; margin: 0; }

/* ======================================================================
   Custom blocks (a2n/*) matched to the v9 design.
   Applies ONLY on pages that use the Veganuar template (and in the editor for them);
   the block files themselves are not changed, so the blocks look as before elsewhere.
   Each rule has a higher priority than the block's own CSS.
   Block settings stay in control of: colours chosen in the editor, hero min-height,
   logo/heart widths, circle colour, card background (these are inline values).
   ====================================================================== */
/* --default body style -----  */
body {
    background: var(--white);
    color: var(--soft-black);
    font-family: var(--body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
/* -- fonts / text colour: every block uses the template fonts -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) :is(.a2n-hero, .a2n-ph, .a2n-stats, .a2n-cards, .a2n-vcta, .a2n-intro) { font-family: var(--body); }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) :is(.a2n-ph, .a2n-stats, .a2n-cards, .a2n-vcta) { color: var(--soft-black); }

/* -- headings inside blocks: design h2 / h3 look -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-ph h1, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-ph .wp-block-heading,
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero h1, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero .wp-block-heading,
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stats .a2n-stats__heading,
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-cards .a2n-cards__heading, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta h2, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta .wp-block-heading {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  line-height: 1.02; letter-spacing: .005em; text-wrap: balance;
  hyphens: auto; overflow-wrap: break-word;
  color: var(--soft-black);
}
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stats .a2n-stats__heading,
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-cards .a2n-cards__heading, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta h2, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta .wp-block-heading { font-size: clamp(30px, 3.6vw, 48px); }

/* -- buttons: the design's .btn (hero, CTA, cards) -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero .wp-block-button__link, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta .wp-block-button__link, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-card__btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 19px; letter-spacing: .03em; line-height: 1; padding: 17px 28px 15px;
  border: 2px solid var(--raspberry); border-radius: 999px;
  background: var(--raspberry); color: var(--white); text-decoration: none;
  transition: background .15s, border-color .15s;
}
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero .wp-block-button__link:hover, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero .wp-block-button__link:focus,
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta .wp-block-button__link:hover, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta .wp-block-button__link:focus,
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) a.a2n-card__btn:hover, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) a.a2n-card__btn:focus {
  background: var(--raspberry-dark); border-color: var(--raspberry-dark); color: var(--white);
}
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-card__btn { font-size: 16px; padding: 14px 22px 12px; }

/* -- Hero (design: "hero C") -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero { grid-template-columns: 2.2fr 1fr; min-height: max(var(--a2n-hero-h, 430px), clamp(440px, 36vw, 640px)); }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero--img-right { grid-template-columns: 1fr 2.2fr; }
@media (max-width: 781px) { :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero--img-right { grid-template-columns: 1fr; min-height: 0; } }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero__panel { padding: clamp(32px, 3.4vw, 56px); }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero__logo { margin: 0 0 14px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero h1, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero .wp-block-heading { font-size: clamp(36px, 3.4vw, 56px); margin: 0 0 22px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero p { font-size: 18px; line-height: 1.35; font-weight: 300; margin: 0 0 22px;color: var(--soft-black); }

/* -- Page header (design: light grey band, title + intro + logo) -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-ph { padding-block: clamp(40px, 6vw, 72px); background: var(--grey-50); }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-ph__inner { gap: 28px 48px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-ph h1, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-ph .wp-block-heading { font-size: clamp(30px, 6.4vw, 68px); margin: 0; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-ph p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.35; font-weight: 300; margin: 18px 0 0; max-width: 65ch; }

/* -- Stats ("Veganuar i tall") -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stats { padding-block: clamp(56px, 8vw, 104px); background: var(--grey-50); }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stats .a2n-stats__heading { margin: 0 0 48px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stats__items { gap: 32px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stat__icon { min-height: 76px; margin: 0 0 16px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stat__icon img { height: 76px; min-width: 76px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stats .a2n-stat__number { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; margin: 0 0 10px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stats .a2n-stat__label { font-size: 15px; font-weight: 500; line-height: 1.65; max-width: 22ch; margin: 0; }

/* -- Cards ("Slik kan dere bidra") -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-cards { padding-block: 0 clamp(56px, 8vw, 104px); }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-cards .a2n-cards__heading { margin: 0 0 28px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-cards__items { gap: 20px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-card { gap: 14px; padding: 32px 28px; border-radius: 6px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-card__icon { min-height: 0; margin: 0; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-card__icon img { height: 56px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-card .a2n-card__title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1.02; letter-spacing: .005em; margin: 0; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-card .a2n-card__text { font-size: 16px; line-height: 1.65; font-weight: 300; max-width: none; margin: 0; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-card__actions { margin-top: auto; }

/* -- CTA ("Klar for å prøve?") -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--grey); }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta__inner { gap: 20px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta__heart, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta__heart-empty { margin: 0 auto; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta h2, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta .wp-block-heading { margin: 0 0 20px; }
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.35; font-weight: 300; margin: 0 auto 20px; max-width: 65ch; }

/* -- spacing: cards have no top padding (as in the design) unless they follow a block with its own
      background (hero, page header, stats band). The feature grid handles this in its own CSS. -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) :is(.a2n-hero, .a2n-ph, .a2n-stats) + .a2n-cards { padding-top: clamp(56px, 8vw, 104px); }
/* ---- Theme "back to top" button: pink instead of purple, Veganuar template pages only.
        (It lives outside .veganuar-page, so it is scoped with the template's <body> class.) ---- */
body.page-template-veganuar #back-to-top svg rect { fill: #FF287D; transition: fill .15s; }
body.page-template-veganuar #back-to-top:hover svg rect,
body.page-template-veganuar #back-to-top:focus-visible svg rect { fill: #E0186A; }
/* custom css minor fixes  */
 .a2n-cards .a2n-cards__heading{max-width: 1600px;margin-left: auto !important;margin-right: auto !important;}
 .a2n-tk__inner .a2n-tk__card{padding: 40px !important;column-gap: clamp(20px,3vw,28px) !important;}
 .a2n-tk__btn-text{margin-top: 2px;}
 .a2n-tk__icon {
    height: clamp(120px, 11vw, 150px) !important;
    width: clamp(120px, 11vw, 150px) !important;
    justify-content: center;
}
.a2n-tk .a2n-tk__btn {
    font-size: 19px !important;
    padding: 17px 28px 15px !important;
}
.wp-block-a2n-feature-grid:not(.has-background.wp-block-a2n-feature-grid){margin-top: 0px !important;}
.wp-block-a2n-veganuar-cta + p, .veganuar-page p + .a2n-amb{margin-top: 0px !important;}
/* .wp-block-a2n-stats-grid.a2n-stats:not(.wp-block-a2n-stats-grid.a2n-stats) + .wp-block-a2n-ambassadors.a2n-amb{padding-top: 0px !important;} */
.section + .section{padding-top: 0px;}
.wp-block-a2n-veganuar-hero{
  --a2n-hero-h: 430px;
    --a2n-hero-bg: #F2F5F7;
    --a2n-hero-text: #191D24;
    --a2n-hero-logo-w: 150px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}
/* hero  */
.a2n-hero__panel-inner{
      display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 22px;
}
/* focus visible  */
.veganuar-page :focus-visible, .veganuar-class>a:focus-visible,
.a2n-vcta .wp-block-button__link:focus-visible {
    outline: 3px solid var(--raspberry) !important;
    outline-offset: 3px !important;
}

/* new css -temporary*/
.a2n-hero, .a2n-imghdr{
  	max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
}
.a2n-hero__panel-inner, .a2n-imghdr__panel-inner{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 22px;
}
 .a2n-imghdr__panel-inner{
    gap: 16px;
}
 .a2n-imghdr__panel-inner img.a2n-imghdr__logo{margin: 0 !important;}
.a2n-imghdr .a2n-imghdr__heading{margin-bottom: 18px;line-height: 1.02;font-size: clamp(30px,6.4vw,68px) !important;letter-spacing: 0.005em; font-weight:700; color:#2C2F32 !important;  text-wrap: balance;}
.a2n-imghdr__panel{
  padding: clamp(20px,5vw,56px) clamp(18px,5vw,56px) !important;
}
.a2n-imghdr__panel-inner,.a2n-imghdr .a2n-imghdr__desc {
    max-width: 640px;
}
.a2n-hero .a2n-hero__btn {
    background-color: #FF287D;
    font-size: 19px;
    line-height: 1;
    padding: 17px 28px 15px;
}
.a2n-hero__input {
    flex: 1 1 200px;
    font: inherit;
    font-size: 16px;
    line-height: 26px;
    padding: 14px 18px;
    border: 1.5px solid #C4CBD3;
}
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero p:last-child{margin-bottom: 0px;}
.a2n-imghdr .a2n-imghdr__desc{
  font-size: 18px;
  line-height: 1.35;
}
/* new color changes - dev  */
.a2n-hero__media{background:#8A7A6C !important;}
.a2n-hero__panel, .a2n-imghdr, .a2n-imghdr__panel, .a2n-amb-item,.a2n-card, .a2n-amb-item,.info#info,.a2n-tk__card{
  background-color: #F2F5F7 !important;
}
.opt input:checked + span{ background: #FFF1F7 !important;}
/* end  */
  
@media screen and (max-width:767.5px){
  :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero .wp-block-button__link{
    font-size: 16px;
    padding: 16px 23px 14px;
  }
  :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero h1, :is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero .wp-block-heading {
    margin: 0 0 15px;
}
.a2n-fgrid .a2n-fgrid__heading,.a2n-amb .a2n-amb__heading{margin: 0 0 30px;}
.a2n-amb-item{gap: 20px;}
/* hero  */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-hero__panel {
    padding-inline: clamp(18px, 3.4vw, 20px);
    padding-block: clamp(20px, 3.4vw, 30px);
}
.veganuar-page > :not(:is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-pullquote, .vg-raw)) + :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-pullquote):not(.partner-line):not(.vg-raw),
.veganuar-page > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-pullquote):not(.partner-line):not(.vg-raw) + :not(:is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-pullquote, .vg-raw)):not(.partner-line) {
    margin-top: clamp(40px, 8vw, 56px);
}
/* -- Page header (design: light grey band, title + intro + logo) -- */
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-vcta,.a2n-amb,
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stats,
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-stats,
:is(.veganuar-page, .editor-styles-wrapper.editor-styles-wrapper) .a2n-cards,.a2n-fgrid{padding-block: 40px !important;}
  /* hero  new css*/
.a2n-hero__panel-inner, .a2n-imghdr__panel-inner {
    gap: 15px;
}
.a2n-imghdr__panel {
    padding: clamp(18px,5vw,72px) clamp(18px,5vw,80px) !important;
}
.a2n-imghdr .a2n-imghdr__heading{margin-bottom: 0px;}
.a2n-tk .a2n-tk__btn {
    font-size: 16px !important;
    padding: 17px 20px 15px !important;
}
}
@media screen and (min-width:768px){
.wp-block-a2n-veganuar-hero{width: calc(100% - 36px);}

}


