/* ==========================================================================
   PULS FØRDE — native layer (2026-11-16)
   Where Elementor's or JetEngine's markup differs from the hand-written markup
   the design system was drawn for, this file carries the design across.
   Loaded after components.css. See inc/native.php.
   ========================================================================== */

/* --- Rhythm ---------------------------------------------------------------
   Elementor zeroes the bottom margin of every widget in a container
   (.e-con .elementor-widget.elementor-widget). Inside a band the design
   system's own margins apply again.                                         */
.puls-band .elementor-widget.elementor-widget.puls-eyebrow { margin-block-end: 18px; }
.puls-band .elementor-widget.elementor-widget.puls-lede { margin-block-end: 1em; }
.puls-band .elementor-widget-text-editor:not(.puls-ntxt) p:last-child { margin-bottom: 0; }
.e-con.e-flex.puls-secthead, .e-con.e-flex.puls-hero__cta, .e-con.e-flex.puls-copy__cta, .e-con.e-flex.puls-provecta__b,
.e-con.e-flex.puls-kgrid__cta, .e-con.e-flex.puls-gcard__t { --flex-direction: row; --flex-wrap: wrap; }
.e-con.e-flex.puls-gcard__t { --flex-wrap: nowrap; }
.puls-secthead > .elementor-widget { width: auto; max-width: 100%; }
.e-con.puls-hero__cta > .elementor-widget, .e-con.puls-copy__cta > .elementor-widget, .e-con.puls-provecta__b > .elementor-widget, .e-con.puls-kgrid__cta > .elementor-widget { width: auto; }

/* --- Eyebrow --------------------------------------------------------------- */
.puls-eyebrow > .elementor-heading-title { display: flex; align-items: center; gap: 12px; margin: 0; }

/* --- Buttons ---------------------------------------------------------------
   An Elementor Button with the class puls-nbtn + puls-nbtn--primary/ghost.   */
.puls-nbtn .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--fb); font-size: 16.5px; font-weight: 600; line-height: 1.2;
  text-decoration: none; fill: currentColor; text-transform: none; letter-spacing: 0;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.puls-nbtn--sm .elementor-button { min-height: 42px; padding: 9px 20px; font-size: 15px; }
.puls-nbtn--primary .elementor-button { background: var(--gul); color: var(--ink-900); }
.puls-nbtn--primary .elementor-button:hover,
.puls-nbtn--primary .elementor-button:focus-visible { background: var(--oransje); color: var(--ink-900); transform: translateY(-1px); }
.puls-nbtn--ghost .elementor-button { background: transparent; color: currentColor; border-color: currentColor; }
.puls-band--ink .puls-nbtn--ghost .elementor-button,
.puls-hero .puls-nbtn--ghost .elementor-button { color: var(--paper); }
.puls-nbtn--ghost .elementor-button:hover,
.puls-nbtn--ghost .elementor-button:focus-visible { background: var(--paper); color: var(--ink-900); border-color: var(--paper); }
.puls-band--paper .puls-nbtn--ghost .elementor-button, .puls-band--alt .puls-nbtn--ghost .elementor-button { color: var(--ink-800); border-color: currentColor; }
.puls-band--gul .puls-nbtn--ghost .elementor-button { color: var(--ink-900); border-color: var(--ink-900); }
.puls-band--paper .puls-nbtn--ghost .elementor-button:hover, .puls-band--paper .puls-nbtn--ghost .elementor-button:focus-visible,
.puls-band--alt .puls-nbtn--ghost .elementor-button:hover, .puls-band--alt .puls-nbtn--ghost .elementor-button:focus-visible,
.puls-band--gul .puls-nbtn--ghost .elementor-button:hover, .puls-band--gul .puls-nbtn--ghost .elementor-button:focus-visible { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }

/* On the yellow band the primary button is ink (hyrox.css does the same for .puls-btn). */
.puls-band--gul .puls-nbtn--primary .elementor-button { background: var(--ink-900); color: var(--paper); }
.puls-band--gul .puls-nbtn--primary .elementor-button:hover, .puls-band--gul .puls-nbtn--primary .elementor-button:focus-visible { background: var(--ink-600); color: var(--paper); }

/* The text link in a section head. */
.puls-nlnk .elementor-button {
  background: none; color: inherit; padding: 0 0 2px; border-radius: 0; font: inherit; font-weight: 600;
  border-bottom: 2px solid var(--oransje); white-space: nowrap; fill: currentColor; text-transform: none; letter-spacing: 0; line-height: 1.65;
  transition: border-color .18s var(--ease);
}
.puls-band--ink .puls-nlnk .elementor-button { border-bottom-color: var(--gul); }
.puls-nlnk .elementor-button:hover, .puls-nlnk .elementor-button:focus-visible { border-bottom-color: currentColor; }

/* --- Lists ------------------------------------------------------------------ */
.puls-ncheck .elementor-icon-list-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.puls-ncheck .elementor-icon-list-item { position: relative; padding: 0 0 0 30px; font-size: 16px; line-height: 1.5; display: block; }
.puls-ncheck .elementor-icon-list-item::after { display: none; }
.puls-ncheck .elementor-icon-list-item::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3 3 7-7' fill='none' stroke='%230B0D0E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.puls-ncheck--rule .elementor-icon-list-item::before { background-color: var(--paper-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='3' fill='%230B0D0E'/%3E%3C/svg%3E"); }
.puls-ncheck--grid .elementor-icon-list-items { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; }
.puls-ncheck--grid .elementor-icon-list-item { font-size: 16.5px; }
.puls-ncheck .elementor-icon-list-text, .puls-nfeel .elementor-icon-list-text, .puls-nstrip .elementor-icon-list-text { padding: 0; color: inherit; }
.puls-ncheck .elementor-icon-list-text a { text-decoration: underline; }

.puls-nfeel .elementor-icon-list-items { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.puls-nfeel .elementor-icon-list-item { font-family: var(--fd); font-weight: 700; font-size: 14px; letter-spacing: .02em; padding: 8px 14px; border-radius: 999px; background: var(--ink-900); color: var(--paper); margin: 0; }
.puls-nfeel .elementor-icon-list-item:nth-child(2n) { background: var(--gul); color: var(--ink-900); }
.puls-nfeel .elementor-icon-list-item::after { display: none; }

/* --- Hero ------------------------------------------------------------------- */
.e-con.puls-nhero { position: relative; overflow: hidden; background-color: var(--ink-900); }
.puls-nhero > .elementor-background-video-container { z-index: 0; }
.puls-nhero::before { z-index: 1; }
.puls-nhero > .puls-container { position: relative; z-index: 2; }
.puls-nhero > .elementor-widget-puls-segl { position: static; }
.puls-hero__slagord-img img { display: block; width: clamp(280px, 64vw, 900px); max-width: 100%; height: auto; margin-left: -.4%; }
@media (max-width: 899px) { .puls-hero__slagord-img img { width: 100%; max-width: 560px; } }
.puls-hero__slagord-img { text-align: left; }
.puls-hero__logo.elementor-widget { display: none; }
@media (min-width: 900px) { .puls-hero__logo.elementor-widget { display: block; text-align: left; } .puls-hero__logo img { width: clamp(150px, 14vw, 190px); height: auto; } }
.puls-hero__sub strong { color: var(--gul); font-weight: 600; }
.puls-hero__sub p { max-width: 30ch; }
@media (min-width: 900px) {
  .puls-hero__hours .puls-hcard { max-width: none; margin-top: 6px; padding: 24px 28px 22px; }
  .puls-hero__hours .puls-hcard .puls-hcard__days li { grid-template-columns: 1fr auto auto; gap: 28px; padding: 7px 12px; font-size: 15px; }
  .puls-hero__hours .puls-hcard .puls-hcard__b, .puls-hero__hours .puls-hcard .puls-hcard__u { min-width: 64px; }
  .puls-hero__hours .puls-hcard .puls-hcard__h { font-size: 13px; }
  .puls-hero__hours .puls-hcard .puls-hcard__now { font-size: 14.5px; }
  .puls-hero__hours .puls-hcard .puls-hcard__f, .puls-hero__hours .puls-hcard .puls-hcard__more { font-size: 14px; }
}
/* The strip of quick links: an Icon List, inline. */
.puls-nstrip { padding-top: 22px; border-top: 1px solid var(--hair-d); }
.puls-nstrip .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.puls-nstrip.elementor-widget .elementor-icon-list-items.elementor-inline-items { margin: 0; }
.puls-nstrip.elementor-widget .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item { margin: 0; width: auto; flex: none; }
.puls-foot__legal.elementor-widget .elementor-icon-list-items.elementor-inline-items, .puls-foot__legal.elementor-widget .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item { margin: 0; }
.puls-nstrip .elementor-icon-list-item::after { display: none; }
.puls-nstrip .elementor-icon-list-item > a {
  display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--hair-d); color: var(--grey-lo);
  font-size: 14.5px; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.puls-nstrip .elementor-icon-list-item > a::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gul); flex: none; }
.puls-nstrip .elementor-icon-list-item > a:hover, .puls-nstrip .elementor-icon-list-item > a:focus-visible { color: var(--ink-900); background: var(--paper); border-color: var(--paper); }

/* --- Trust strip ------------------------------------------------------------ */
.puls-tstrip__b > .elementor-heading-title { display: block; }
.puls-tstrip__s.elementor-widget { margin-top: 8px; }

/* --- Kva er Puls ------------------------------------------------------------ */
/* The yellow tag under the pills: the box of the class sits on the widget wrapper. */
.puls-kvaer__sign.elementor-widget { width: auto; }
.puls-kvaer__img, .puls-kvaer__img img { width: 100%; height: 100%; }
.puls-kvaer__img img { object-fit: cover; border-radius: var(--blob); display: block; }
.puls-kvaer__photo > .elementor-widget-puls-segl { position: static; }
.puls-kvaer__who .elementor-heading-title { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400); font-weight: 700; margin: 0 0 12px; }
.e-con.puls-kvaer__val { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--hair-l); align-items: baseline; }
.puls-kvaer__dt { font-weight: 700; font-size: 15px; }
.puls-kvaer__dd { color: var(--ink-600); font-size: 14.5px; }

/* --- Fire ting -------------------------------------------------------------- */
.puls-promise .elementor-widget-heading h3 { font-size: 23px; margin: 6px 0 8px; font-weight: 700; }

/* --- JetEngine listings as the design system's grids ------------------------ */
.puls-nrail.elementor-widget { display: block; padding: 0; overflow: visible; cursor: auto; }
.puls-nrail .jet-listing-grid__items {
  display: flex; flex-wrap: nowrap; gap: 20px; overflow-x: auto;
  padding: 4px max(var(--pad), calc((100% - 1220px) / 2)) 20px;
  scroll-padding-inline-start: max(var(--pad), calc((100% - 1220px) / 2));
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab;
}
.puls-nrail .jet-listing-grid__items::-webkit-scrollbar { display: none; }
.puls-nrail .jet-listing-grid__items.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; scroll-behavior: auto; }
.puls-nrail .jet-listing-grid__item { flex: 0 0 clamp(240px, 30vw, 330px); max-width: none; width: auto; scroll-snap-align: start; }
.puls-nrail .puls-zcard { flex: none; }

.puls-ngrid-g .jet-listing-grid__items { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.puls-ngrid-p .jet-listing-grid__items { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); }
.puls-ngrid-t .jet-listing-grid__items { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(244px, 1fr)); }
.puls-ngrid-faq.elementor-widget { display: block; }
.puls-ngrid-faq .jet-listing-grid__items { display: grid; gap: 9px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .puls-ngrid-faq .jet-listing-grid__items { grid-template-columns: 1fr 1fr; } }
.puls-ngrid-g .jet-listing-grid__item, .puls-ngrid-p .jet-listing-grid__item, .puls-ngrid-t .jet-listing-grid__item, .puls-ngrid-faq .jet-listing-grid__item { max-width: none; width: auto; flex: none; }
.puls-ngrid-g .jet-listing-grid__item > .elementor, .puls-ngrid-t .jet-listing-grid__item > .elementor,
.puls-ngrid-g .jet-listing-grid__item > .jet-engine-listing-overlay-wrap, .puls-ngrid-t .jet-listing-grid__item > .jet-engine-listing-overlay-wrap { height: 100%; }
.puls-ngrid-g .jet-listing-grid__item .puls-gcard, .puls-ngrid-t .jet-listing-grid__item .puls-tcard { height: 100%; }

/* Cards built from JetEngine dynamic widgets. */
.e-con.puls-gcard { gap: 10px; padding: 20px; flex-direction: column; flex-wrap: nowrap; }
.e-con.puls-tcard { padding: 22px; }
.puls-gcard:has(.puls-chip--bla)  { border-left-color: var(--int-bla); }
.puls-gcard:has(.puls-chip--gron) { border-left-color: var(--int-gron); }
.puls-gcard:has(.puls-chip--gul)  { border-left-color: var(--int-gul); }
.puls-gcard:has(.puls-chip--raud) { border-left-color: var(--int-raud); }
.puls-gcard .elementor-widget-jet-listing-dynamic-field:not(.puls-gcard__m) { flex: 1; }
.puls-gcard .elementor-widget-puls-intensitet { align-self: flex-start; }
.jet-listing-dynamic-link { display: block; }
.jet-listing-dynamic-link h3 { margin: 0; }
.puls-zcard .jet-listing-dynamic-link h3 { font-size: 21px; margin: 16px 0 6px; font-weight: 700; }
.puls-pcard .jet-listing-dynamic-link h3 { font-size: 21px; margin: 9px 0 7px; font-weight: 700; }
.puls-gcard .jet-listing-dynamic-link h3 { font-size: 19px; font-weight: 700; }
.puls-tcard .jet-listing-dynamic-link h3 { font-size: 20px; font-weight: 700; }
.jet-listing-dynamic-link__link { text-decoration: none; display: inline; transition: color .18s var(--ease); }
.puls-gcard:hover .jet-listing-dynamic-link__link, .puls-band--ink .jet-listing-dynamic-link__link:hover { color: var(--gul); }
.puls-band--paper .jet-listing-dynamic-link__link:hover, .puls-band--alt .jet-listing-dynamic-link__link:hover { text-decoration: underline; text-decoration-color: var(--oransje); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.jet-listing-dynamic-field, .jet-listing-dynamic-field__inline-wrap { display: block; width: 100%; }
.jet-listing-dynamic-field p.jet-listing-dynamic-field__content { margin: 0; max-width: none; }
.puls-zcard p.jet-listing-dynamic-field__content { font-size: 15.5px; color: var(--ink-600); }
.puls-pcard p.jet-listing-dynamic-field__content { font-size: 15px; color: var(--ink-600); }
.puls-tcard p.jet-listing-dynamic-field__content { font-size: 15px; color: var(--ink-600); }
.puls-gcard p.jet-listing-dynamic-field__content { font-size: 14.8px; color: var(--grey-lo); }
.puls-gcard__m.elementor-widget { width: auto; flex: none; }
.puls-gcard__m .jet-listing-dynamic-field, .puls-lvl .jet-listing-dynamic-field { display: inline; width: auto; }
.puls-lvl.elementor-widget { width: auto; }
.puls-lvl .jet-listing-dynamic-field__content { font: inherit; letter-spacing: inherit; }
.puls-zcard__img .jet-listing-dynamic-image, .puls-pcard__img .jet-listing-dynamic-image,
.puls-zcard__img .jet-listing-dynamic-image__link, .puls-pcard__img .jet-listing-dynamic-image__link { display: block; width: 100%; height: 100%; }
.puls-zcard__img img.jet-listing-dynamic-image__img, .puls-pcard__img img.jet-listing-dynamic-image__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.puls-zcard__img.elementor-widget:empty, .puls-pcard__img.elementor-widget:empty { display: block; }

/* --- Prøveveke-band, historier, kontakt -------------------------------------- */
.puls-hist__ph.elementor-widget img { width: 100%; height: 100%; object-fit: cover; display: block; }
.puls-kphoto.elementor-widget img { width: 100%; height: 100%; object-fit: cover; display: block; }
.puls-kgrid .elementor-widget-heading h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.puls-kgrid__note.elementor-widget { margin-top: 26px; }
.puls-kgrid__l .elementor-widget.elementor-widget-text-editor { margin-block-end: 1em; }

/* --- HYROX-teaser + video ----------------------------------------------------- */
.puls-hybadge.elementor-widget { width: auto; }
.puls-hybadge.elementor-widget::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gul); flex: none; }
.puls-hyteaser__t .elementor-widget-heading h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; margin-bottom: 14px; }
/* (The video is the «Video (YouTube)» Puls widget: the design system's own .puls-yt card.) */

/* --- Section head: the heading widget inside a .puls-secthead container ------ */
.puls-secthead .elementor-widget-heading h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }

/* --- Editor: keep empty containers findable ---------------------------------- */
.elementor-editor-active .e-con[class*="puls-"]:empty { min-height: 40px; }

/* --- Block flow: what a widget wrapper needs once its container is a block ---- */
/* The hours table fills the row next to the address column (caption included). */
.puls-kgrid > .elementor-widget-puls-opningstider { display: flex; flex-direction: column; }
.puls-kgrid > .elementor-widget-puls-opningstider .puls-hours { flex: 1 1 auto; }
.puls-tstrip__s.elementor-widget { display: block; }
.puls-gcard__m.elementor-widget, .puls-gcard__t > .elementor-widget-jet-listing-dynamic-link { width: auto; }
.puls-gcard__m .jet-listing-dynamic-field__content { font: inherit; color: inherit; white-space: nowrap; }
.puls-gcard > .elementor-widget { width: 100%; }
.puls-gcard > .elementor-widget-puls-intensitet { width: auto; }

/* A paragraph from a JetEngine field keeps the 1em the design gives a <p> that
   is followed by something (excerpt before the certificate line, the chip …). */
.elementor-widget-jet-listing-dynamic-field:not(:last-child) p.jet-listing-dynamic-field__content { margin-bottom: 1em; }

/* --- Measured against pulsforde.no (2026-11-16, build/scripts/shots/parity2.mjs) --- */
/* The numeral in a promise card was an inline <span> on a 28 px line; as a widget it is 25 px. */
.puls-promise__n.elementor-widget { padding-top: 3px; }
/* «Kom som du er.» was a <p> with its 1em below; the status pill likewise, and the photo follows it directly. */
.elementor.elementor .puls-kvaer__sign.elementor-widget.elementor-widget { margin-block-end: 1em; }
.elementor.elementor .puls-kgrid__l .elementor-widget.elementor-widget-puls-opningstider { margin-block-end: 15px; }
.elementor.elementor .puls-kgrid__l .elementor-widget.puls-kphoto { margin-top: 0; }
.puls-kgrid__l .puls-status { margin-bottom: 0; }
/* A link inside a list item flows with the sentence (Elementor makes it a flex box). */
.puls-ncheck .elementor-icon-list-text a { display: inline; }
/* Certificate line and practitioner: the card's paragraph rule (15 px, ink-600) applies, as on production. */
.puls-pcard .puls-sert p.jet-listing-dynamic-field__content, .puls-tcard .puls-tcard__w p.jet-listing-dynamic-field__content { font-size: 15px; line-height: 1.65; color: var(--ink-600); }
/* The chip is inline-flex; in a block wrapper the line box added 1 px under it. */
.puls-gcard > .elementor-widget-puls-intensitet { display: flex; }
/* Short meta lines (practitioner, PT level) are not paragraphs with 1em below. */
.elementor-widget-jet-listing-dynamic-field.puls-tcard__w p.jet-listing-dynamic-field__content,
.elementor-widget-jet-listing-dynamic-field.puls-lvl p.jet-listing-dynamic-field__content { margin-bottom: 0; }
/* A <dd> on production wraps plainly; `pretty` broke a line that fits. */
.puls-kvaer__dd p { text-wrap: wrap; max-width: none; }

/* --- Converted sections (build/scripts/native-pages.php) ----------------------
   A Text Editor / HTML widget that holds a section's own markup is transparent
   to layout: its children sit in the parent's grid or flow exactly as the
   hand-written markup did. */
.puls-ntxt, .puls-ntxt > .elementor-widget-container, .puls-nhtml, .puls-nhtml > .elementor-widget-container { display: contents; }
/* (see main.css: the last-paragraph rule skips .puls-ntxt--more) */
/* The video card is transparent too, so `.parent > .puls-yt` rules still apply. */
.elementor-widget-puls-video, .elementor-widget-puls-video > .elementor-widget-container { display: contents; }
/* An image that was a positioned/cropped <img class="…"> : the class sits on the wrapper, the <img> fills it. */
.puls-nimg img { width: 100%; height: auto; aspect-ratio: inherit; object-fit: inherit; object-position: inherit; display: block; border-radius: inherit; }
.puls-nimg.puls-ihero__bg { object-fit: cover; object-position: 60% 45%; }
.puls-nimg.puls-ihero__bg img { height: 100%; }
/* Zones as a grid (Senteret, zone archive). */
.puls-nzgrid .jet-listing-grid__items { display: grid; gap: 22px 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.puls-nzgrid .jet-listing-grid__item { max-width: none; width: auto; flex: none; }
/* WordPress adds sizes="auto" to lazy images in widget content, and with it a 3000×1500 placeholder size; the cards size their own images. */
.puls-band img[sizes^="auto"], .puls-hero img[sizes^="auto"] { contain-intrinsic-size: none; }
/* Editor only: a seal is absolutely placed, so Elementor measures the widget as empty and puts a 42 px grey placeholder with an icon in the hero. The seal itself is there — drop the placeholder so the editor shows the page as visitors see it. */
.elementor-editor-active .elementor-widget-puls-segl.elementor-widget-empty { background: none; min-height: 0; }
.elementor-editor-active .elementor-widget-puls-segl > .elementor-widget-empty-icon { display: none; }
