/* Heart Sverige: styling for the existing Heart WordPress theme. */
.heart-sverige-presentation {
  --he-ink: #201f1d;
  --he-muted: #5b5954;
  --he-paper: #f5f2ec;
  --he-accent: #e55c2b;
  --he-link: #953613;
  --he-line: #d8d4cc;
  --he-heading: var(--wp--preset--font-family--brandon-grotesque, system-ui, sans-serif);
}
.heart-sverige-presentation :where(a[href], button, input, textarea, select, summary, [tabindex="0"]):focus-visible {
  outline: 3px solid #166eb0;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
.heart-sverige-presentation :where(section[id], h1[id], h2[id], h3[id], main[id]) {
  scroll-margin-top: calc(var(--navigation-height, 88px) + 1rem);
}
.heart-sverige-presentation .he-skip {
  position: fixed;
  inset: 8px auto auto 12px;
  z-index: 100001;
  padding: 10px 16px;
  background: #fff;
  color: var(--he-ink);
  transform: translateY(calc(-100% - 16px));
}
.heart-sverige-presentation .he-skip:focus { transform: none; }

/* Keep the original full menu; the three paths in the desktop rail are
   copied from that menu, so their labels and destinations stay in sync. */
.heart-sverige-presentation .site-header {
  border-bottom: 1px solid #dedbd4;
  box-sizing: border-box;
  left: 0;
  width: 100%;
  background: #fff;
}
.heart-sverige-presentation .site-header .site-header__wrapper,
.heart-sverige-presentation .site-header.scroll-down .site-header__wrapper {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  min-height: var(--navigation-height, 88px);
  padding-block: 0;
  gap: 1rem;
}
.heart-sverige-presentation .site-header .site-header__wrapper > .nav-col { flex: 0 1 auto !important; }
.heart-sverige-presentation .site-header .site-header__wrapper > nav.nav-col { flex: 1 1 auto !important; }
.heart-sverige-presentation .site-header .site-logo img { max-width: 134px; }
.heart-sverige-presentation .site-header .site-name,
.heart-sverige-presentation #colophon .site-name,
.heart-sverige-presentation .site-logo a.brand:empty { display: none; }
.heart-sverige-presentation .he-quicknav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.9vw, 44px);
  margin-inline: auto clamp(22px, 3vw, 48px);
  white-space: nowrap;
}
.heart-sverige-presentation .he-quicknav a {
  padding-block: 12px;
  color: var(--he-ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
}
.heart-sverige-presentation .he-quicknav a:hover,
.heart-sverige-presentation .he-quicknav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--he-accent);
}
.heart-sverige-presentation .site-header .donate-btn { display: block !important; }
.heart-sverige-presentation .site-header .donate-btn a.wp-block-button__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1.05rem;
  margin: 0 .8rem 0 0;
  border: 0;
  border-radius: 3px;
  background: var(--he-ink);
  color: #fff !important;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25 !important;
  letter-spacing: .015em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}
.heart-sverige-presentation .site-header .donate-btn a.wp-block-button__link:hover {
  background: var(--he-link);
}
.heart-sverige-presentation .nav__toggle {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--he-line);
  border-radius: 50%;
  background: white;
}
.heart-sverige-presentation .nav__toggle span { width: 19px; right: 12px; background: var(--he-ink); }
.heart-sverige-presentation .nav__toggle span.first { top: 15px; }
.heart-sverige-presentation .nav__toggle span.second { top: 21px; }
.heart-sverige-presentation .nav__toggle span.last { top: 27px; }
.heart-sverige-presentation .nav__toggle.show span { top: 21px; }
.heart-sverige-presentation .site-header .nav__wrapper {
  box-sizing: border-box;
  top: calc(50% + var(--navigation-height, 88px) / 2);
  width: min(430px, 100vw);
  height: calc(100vh - var(--navigation-height, 88px));
  height: calc(100dvh - var(--navigation-height, 88px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-block: 0;
  padding: 12px clamp(22px, 4vw, 50px) 42px;
  background: #fff;
  z-index: 20;
  text-align: left;
}
.heart-sverige-presentation .site-header .nav__wrapper:not(.active) { visibility: hidden; pointer-events: none; }
.heart-sverige-presentation .site-header .nav__wrapper > ul { padding: 0; margin: 0; }
.heart-sverige-presentation .site-header .nav__wrapper .menu-item {
  text-align: start;
  margin: 0;
  padding: .22rem 0;
}
.heart-sverige-presentation .site-header .nav__wrapper > ul > .menu-item { border-bottom: 1px solid var(--he-line); }
.heart-sverige-presentation .site-header .nav__wrapper .menu-item a {
  display: inline-block;
  min-height: 44px;
  box-sizing: border-box;
  padding-block: .7rem;
  line-height: 1.4;
  color: var(--he-ink);
  text-transform: none;
}
.heart-sverige-presentation .site-header .nav__wrapper .menu-item a:hover { color: var(--he-link); }
.heart-sverige-presentation .site-header .nav__wrapper .sub-menu { padding: 0 0 .65rem 1rem; }
.heart-sverige-presentation .site-header .nav__wrapper .sub-menu .menu-item { padding: 0; }
.heart-sverige-presentation .nav-overlay { background: rgba(27,24,21,.43); }
.heart-sverige-presentation .nav-social { text-align: start; }
.heart-sverige-presentation .nav-social .social-icon {
  margin: 0 .25rem 0 0; display: inline-grid; place-items: center; width: 44px; height: 44px;
}

/* The legacy text/photo grid uses absolutely positioned square text panels.
   Let copy determine its own height. Images keep their intentional crop. */
.heart-sverige-presentation .media-grid .wp-block-columns:has(.cover-aspect-ratio-inner) {
  align-items: stretch !important;
  gap: 0;
}
.heart-sverige-presentation .media-grid .wp-block-column:has(.cover-aspect-ratio-inner) {
  min-width: 0;
  align-self: stretch;
}
.heart-sverige-presentation .media-grid .cover-aspect-ratio:not(:has(> .aspect-cover-image)) {
  box-sizing: border-box;
  height: 100%;
  padding-block: clamp(30px, 5vw, 76px) !important;
  background: var(--he-paper);
  color: var(--he-ink);
}
.heart-sverige-presentation .media-grid .cover-aspect-ratio:not(:has(> .aspect-cover-image)) > .cover-aspect-ratio-content {
  position: static;
  min-height: 100%;
  height: auto;
}
.heart-sverige-presentation .media-grid .cover-aspect-ratio:not(:has(> .aspect-cover-image)) .cover-aspect-ratio-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  padding-inline: clamp(22px, 4vw, 66px);
  line-height: 1.7;
}
.heart-sverige-presentation .media-grid .cover-aspect-ratio:has(> img.aspect-cover-image) {
  min-height: 100%;
  box-sizing: border-box;
}
.heart-sverige-presentation .media-grid .cover-aspect-ratio-inner > :is(h2,h3,h4) {
  font-family: var(--he-heading);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.018em;
  text-transform: none;
}
.heart-sverige-presentation .media-grid .cover-aspect-ratio-inner > :is(p,ul) { overflow-wrap: break-word; }
.heart-sverige-presentation .wp-block-media-text:not(.has-background) { background: var(--he-paper); }
.heart-sverige-presentation .wp-block-media-text__content { padding-block: clamp(24px, 4vw, 60px); }

/* Keep article reading measures, intrinsic media proportions and buttons. */
.heart-sverige-presentation article > p.default-width:not(.has-text-align-center):not(.has-background) {
  max-width: min(72ch, var(--wp--custom--widths--content, 72ch));
  line-height: 1.75;
  overflow-wrap: break-word;
}
.heart-sverige-presentation article > :is(h1,h2,h3).default-width:not(.has-background) {
  text-wrap: balance;
  overflow-wrap: break-word;
  letter-spacing: -.018em;
}
.heart-sverige-presentation article > figure img { max-width: 100%; }
.heart-sverige-presentation article > figure figcaption {
  font-size: .9rem;
  line-height: 1.5;
}
.heart-sverige-presentation .wp-block-media-text__content a:not(.wp-block-button__link),
.heart-sverige-presentation article > p a,
.heart-sverige-presentation .cover-aspect-ratio-inner p a {
  text-underline-offset: .22em;
}
.heart-sverige-presentation .wp-block-buttons .wp-block-button__link[href] {
  min-height: 44px;
  box-sizing: border-box;
  align-content: center;
  white-space: normal;
  overflow-wrap: break-word;
}
.heart-sverige-presentation .wp-block-buttons .wp-block-button__link[href]:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.heart-sverige-presentation .wp-block-cover:has(> .wp-block-cover__video-background) { isolation: isolate; }
.heart-sverige-presentation .he-film-control {
  position: absolute;
  z-index: 3;
  inset: auto 16px 16px auto;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 3px;
  border: 1px solid rgb(255 255 255 / .65);
  background: rgb(18 18 18 / .86);
  color: #fff;
  font: 650 14px/1.3 system-ui,sans-serif;
  cursor: pointer;
}

/* Sponsorships have a dark editorial surround, while every original mark
   sits on a neutral white surface, including opaque JPG artwork. */
.heart-sverige-presentation .site-main article .heart-sponsors {
  box-sizing: border-box;
  max-width: none !important;
  margin-top: clamp(30px, 6vw, 80px) !important;
  padding: clamp(32px, 5vw, 76px) clamp(18px, 4vw, 60px) !important;
  background: var(--he-ink);
  color: #fff;
  border-top: 4px solid var(--he-accent);
}
.heart-sverige-presentation .heart-sponsors > h2 { color: #fff; text-align: start; }
.heart-sverige-presentation .site-main article .heart-sponsors > :is(h2,.heart-sponsor-grid) {
  max-width: 1180px;
  margin-inline: auto !important;
}
.heart-sverige-presentation .site-main article .heart-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(177px, 100%), 1fr));
  gap: clamp(8px, 1vw, 16px);
}
.heart-sverige-presentation .heart-sponsor-grid > :is(figure,.heart-sponsor-name) {
  box-sizing: border-box;
  background: white;
  color: var(--he-ink);
  border: 0;
  border-radius: 3px;
  min-width: 0;
  min-height: clamp(92px, 9vw, 125px);
  padding: clamp(10px, 2vw, 20px);
}
.heart-sverige-presentation .heart-sponsor-grid img { object-fit: contain; }

/* These two supplied marks were checked on light and dark surfaces.
   Elteknik has white lettering; SmartHook uses a yellow outline on black. */
.heart-sverige-presentation .heart-sponsor-grid > figure:has(img[alt="Elteknik" i]),
.heart-sverige-presentation .heart-sponsor-grid > figure:has(img[alt="SmartHook" i]) {
  background: #17181b;
  border: 1px solid #55514c;
}

/* Hand off the actual validation/submission to the existing Gravity Form. */
.heart-sverige-presentation .site-main .gform_wrapper {
  box-sizing: border-box;
  width: 100%;
  max-width: 56rem;
  margin: clamp(24px, 4vw, 52px) auto;
  padding: clamp(20px, 4.5vw, 58px);
  border: 1px solid var(--he-line);
  border-top: 4px solid var(--he-accent);
  border-radius: 4px;
  background: #fff;
  color: var(--he-ink);
}
.heart-sverige-presentation .gform_wrapper :is(.gfield,.gfield_label) { min-width: 0; }
.heart-sverige-presentation .gform_wrapper :is(fieldset.gfield,div.gfield).default-width {
  width: 100%;
  box-sizing: border-box;
}
.heart-sverige-presentation .gform_wrapper :is(input[type="text"],input[type="email"],input[type="tel"],input[type="number"],select,textarea) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: .65rem .8rem;
  border: 1px solid #87837b;
  border-radius: 3px;
  font: inherit;
}
.heart-sverige-presentation .gform_wrapper :is(.gfield_error input,.gfield_error textarea) { border-color: #a62925; }
.heart-sverige-presentation .gform_wrapper .gform_button[type="submit"] {
  min-height: 44px;
  padding: .7rem 1.55rem;
  background: var(--he-ink);
  color: white;
  border: 1px solid var(--he-ink);
  border-radius: 3px;
  font-weight: 700;
  cursor: pointer;
}
.heart-sverige-presentation .wp-block-faq-block-for-gutenberg-faq {
  padding: 0;
  border-top: 1px solid var(--he-line);
  margin-bottom: 0;
  background: white;
  color: var(--he-ink);
  font-family: inherit;
}
.heart-sverige-presentation .wp-block-faq-block-for-gutenberg-faq .question {
  cursor: pointer;
  padding: 1.15rem .65rem;
}
.heart-sverige-presentation .wp-block-faq-block-for-gutenberg-faq .question::before { color: var(--he-link); }
.heart-sverige-presentation .wp-block-faq-block-for-gutenberg-faq .question h4 {
  font-size: clamp(17px,1.8vw,22px);
  font-weight: 650;
  line-height: 1.4;
}
.heart-sverige-presentation .wp-block-faq-block-for-gutenberg-faq .answer {
  padding: .3rem .65rem 1.6rem;
  line-height: 1.75;
}
.heart-sverige-presentation .wp-block-faq-block-for-gutenberg-faq .answer a { text-underline-offset: .2em; }
.heart-sverige-presentation #colophon {
  margin-top: clamp(36px, 6vw, 88px);
  padding-block: clamp(40px, 6vw, 82px);
  background: var(--he-ink);
  color: #edeae4;
  border-top: 4px solid var(--he-accent);
}
.heart-sverige-presentation #colophon .container {
  display: grid;
  grid-template-columns: 1fr 1.18fr .9fr .9fr;
  gap: clamp(22px, 4vw, 64px);
}
.heart-sverige-presentation #colophon .container > div {
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}
.heart-sverige-presentation #colophon .container p {
  max-width: none;
  line-height: 1.75;
}
.heart-sverige-presentation #colophon .footer-title {
  color: white;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: .04em;
}
.heart-sverige-presentation #colophon a { color: inherit; }
.heart-sverige-presentation #colophon a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-color: #ffad83;
}
.heart-sverige-presentation #colophon .custom-logo-link {
  display: inline-flex;
  padding: .65rem .9rem;
  align-items: center;
  background: white;
  border-radius: 3px;
}
.heart-sverige-presentation #colophon .footer-social .social-icon,
.heart-sverige-presentation .nav-social .social-icon {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
}
.heart-sverige-presentation #colophon .footer-social .social-icon {
  color: white;
  border: 1px solid #5a5753;
  border-radius: 50%;
}
.heart-sverige-presentation #colophon .social-icon svg path { fill: currentColor; }
.heart-sverige-presentation .subfooter {
  padding-block: 22px;
  background: #151412;
  color: #efede9;
}
.heart-sverige-presentation .subfooter .copy { text-align: center; }
@media (max-width: 1060px) { .heart-sverige-presentation .he-quicknav { display: none; } }
@media (max-width: 880px) {
  .heart-sverige-presentation #colophon .container { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 781px) {
  .heart-sverige-presentation .media-grid .cover-aspect-ratio:has(> img.aspect-cover-image) {
    min-height: 0;
    padding-bottom: 68% !important;
  }
}
@media (max-width: 600px) {
  .heart-sverige-presentation { --navigation-height: 72px; }
  .heart-sverige-presentation .site-header .site-logo img { height: auto; width: 92px; }
  .heart-sverige-presentation .site-header .donate-btn a.wp-block-button__link {
    margin-inline-end: 7px;
    font-size: .8rem;
    padding-inline: .8rem;
  }
  .heart-sverige-presentation .site-main article .heart-sponsor-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .heart-sverige-presentation .wp-block-media-text.is-stacked-on-mobile { grid-template-columns: 100%; }
  .heart-sverige-presentation .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    padding-inline: clamp(19px, 6vw, 32px);
  }
  .heart-sverige-presentation #colophon .container { grid-template-columns: 1fr; gap: 28px; }
  .heart-sverige-presentation #colophon .container .footer-title { margin: 0 0 .45rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .heart-sverige-presentation .site-header :is(a,button), .heart-sverige-presentation #colophon a {
    transition: background-color .17s ease, color .17s ease, border-color .17s ease;
  }
  .heart-sverige-presentation .he-film-control { transition: background-color .2s ease; }
  .heart-sverige-presentation .he-film-control:hover { background: #151412; }
  .heart-sverige-presentation .he-enter { animation: he-appear .48s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes he-appear {
    from { opacity: .72; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .heart-sverige-presentation .site-header *, .heart-sverige-presentation .nav-overlay,
  .heart-sverige-presentation .he-enter { transition: none !important; animation: none !important; }
  .heart-sverige-presentation .wp-block-cover.has-parallax { background-attachment: scroll !important; }
}
