/*
Theme Name: WPGen Norge
Description: Et serverrendret og responsivt WordPress-tema for norske guider.
Version: 2.0.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: wpgen
*/

:root {
  --wpgen-ink: #162033;
  --wpgen-muted: #5f6b7c;
  --wpgen-line: #dce3e8;
  --wpgen-paper: #ffffff;
  --wpgen-page: #f4f7f8;
  --wpgen-deep: #10263a;
  --wpgen-deep-soft: #173c53;
  --wpgen-accent: #e56b3f;
  --wpgen-accent-strong: #bd4e29;
  --wpgen-link: #0d6177;
  --wpgen-positive: #14734c;
  --wpgen-positive-bg: #edf8f2;
  --wpgen-caution: #9a5521;
  --wpgen-caution-bg: #fff5e9;
  --wpgen-radius: 16px;
  --wpgen-shadow: 0 14px 38px rgba(20, 38, 52, 0.09);
  --wpgen-wrap: 1180px;
  --wpgen-reading: 780px;
  --wpgen-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wpgen-page);
  color: var(--wpgen-ink);
  font: 400 17px/1.68 var(--wpgen-font);
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

a {
  color: var(--wpgen-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #ffbb72;
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 40px, var(--wpgen-wrap));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  z-index: 100000;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--wpgen-paper);
  color: var(--wpgen-ink);
  border-radius: 8px;
  box-shadow: var(--wpgen-shadow);
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  color: #fff;
  background: var(--wpgen-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-bar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.site-brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff996d, var(--wpgen-accent));
  color: #24170f;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.site-brand__mark img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.site-brand__text {
  display: grid;
  line-height: 1.13;
}

.site-brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-brand__tagline {
  color: #bfcbd4;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.main-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.main-nav--mobile {
  display: none;
}

.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.primary-menu > li {
  position: relative;
}

.primary-menu a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 14px;
  color: #e7eef2;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  border-radius: 8px;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.primary-menu .sub-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% - 4px);
  left: 0;
  width: max-content;
  min-width: 230px;
  max-width: 320px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  background: var(--wpgen-deep-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(4, 19, 30, 0.32);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  min-height: 40px;
  padding: 8px 11px;
  font-weight: 580;
}

/* Breadcrumbs and hero */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(51, 155, 164, 0.34), transparent 30%),
    linear-gradient(145deg, var(--wpgen-deep-soft), var(--wpgen-deep));
  padding: 38px 0 58px;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -7vw;
  bottom: -74px;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 38% 62% 55% 45%;
  transform: rotate(19deg);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.page-hero__copy {
  min-width: 0;
}

.page-hero__motif {
  justify-self: end;
  width: min(100%, 210px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36% 64% 52% 48%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 50px rgba(3, 23, 34, 0.3);
  transform: rotate(2deg);
}

.page-hero__motif img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.breadcrumbs {
  margin-bottom: 18px;
  font-size: 13px;
  color: #bdcbd4;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: #758b99;
}

.breadcrumbs a {
  color: #e5edf1;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-hero__kicker {
  margin: 0 0 10px;
  color: #ffb18e;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
}

.page-hero__lead {
  max-width: 68ch;
  margin: 18px 0 0;
  color: #dce7ec;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.62;
}

.page-hero__lead > :last-child {
  margin-bottom: 0;
}

.page-hero__actions {
  margin: 22px 0 0;
}

.page-hero__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  color: #1c251d;
  background: #ffb184;
  border: 2px solid #ffb184;
  border-radius: 10px;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
}

.page-hero__cta:hover {
  color: #172018;
  background: #ffc4a1;
  border-color: #ffc4a1;
}

.entry-byline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  color: #d4e0e6;
  font-size: 13px;
  line-height: 1.45;
}

.entry-byline img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.entry-byline a {
  color: #fff;
  font-weight: 760;
}

.entry-byline__label,
.entry-byline__role,
.entry-byline__date {
  display: inline-block;
}

.entry-byline__role::before,
.entry-byline__date::before {
  content: "·";
  margin-inline: 7px;
  color: #88a4b2;
}

/* Content */
.content-area {
  padding: 42px 0 12px;
}

.content-shell {
  background: var(--wpgen-paper);
  border-radius: var(--wpgen-radius);
  box-shadow: var(--wpgen-shadow);
  padding: clamp(24px, 5vw, 52px);
}

.entry-content {
  max-width: var(--wpgen-reading);
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #14293a;
  line-height: 1.2;
  text-wrap: balance;
}

.entry-content h2 {
  margin: 2.2em 0 0.55em;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
}

.entry-content h3 {
  margin: 1.8em 0 0.5em;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure,
.entry-content table {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.entry-content li + li {
  margin-top: 0.38em;
}

.entry-content blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  color: #263d4b;
  background: #f1f7f8;
  border: 1px solid #c9dde0;
  border-radius: 12px;
}

.entry-content .wp-block-table,
.entry-content .table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

/* Server-rendered Affiliate Offers Bridge presentation. */
.test2-offers {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  background: #fff;
  border: 1px solid var(--wpgen-line);
  border-radius: 14px;
  scrollbar-color: #91a8b3 #edf2f4;
}

.test2-offers:focus-visible {
  outline: 3px solid #f29c62;
  outline-offset: 3px;
}

.entry-content .test2-offers__table,
.test2-offers__table {
  width: 100%;
  min-width: 790px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.entry-content .test2-offers__table th,
.entry-content .test2-offers__table td,
.test2-offers__table th,
.test2-offers__table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid var(--wpgen-line);
}

.entry-content .test2-offers__table th,
.test2-offers__table th {
  color: #294251;
  background: #edf3f5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.test2-offers__row {
  --test2-offer-row: #fff;
}

.test2-offers__row:nth-child(even) {
  --test2-offer-row: #f9fbfb;
}

.entry-content .test2-offers__row td,
.test2-offers__row td {
  background: var(--test2-offer-row);
}

.test2-offers__row:last-child td {
  border-bottom: 0;
}

.test2-offers__table th:first-child,
.test2-offers__row td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.test2-offers__table th:first-child {
  z-index: 2;
}

.test2-offers__brand {
  min-width: 180px;
}

.test2-offers__brand-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test2-offers__logo {
  width: 88px;
  height: 42px;
  flex: 0 0 88px;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dce4e8;
  border-radius: 8px;
}

.test2-offers__brand-name {
  color: #183244;
  font-weight: 800;
  line-height: 1.3;
}

.test2-offers__rating {
  white-space: nowrap;
  color: #71410f;
  font-weight: 760;
}

.test2-offers__bonus,
.test2-offers__payout {
  color: #314957;
  line-height: 1.42;
}

.test2-offers__action {
  text-align: right !important;
}

.test2-offers__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: #fff;
  background: var(--wpgen-link);
  border: 2px solid var(--wpgen-link);
  border-radius: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.test2-offers__cta:hover {
  color: #fff;
  background: #084c5d;
  border-color: #084c5d;
}

.test2-offers__cta:focus-visible {
  outline-color: #f29c62;
}

.test2-offers__unavailable {
  color: var(--wpgen-muted);
  font-size: 13px;
}

.entry-content table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--wpgen-line);
}

.entry-content th {
  background: #eef3f5;
  color: #243847;
  font-weight: 760;
}

.entry-content tr:nth-child(even) td {
  background: #fafcfc;
}

.entry-content figcaption {
  margin-top: 8px;
  color: var(--wpgen-muted);
  font-size: 13px;
}

.entry-content .alignwide {
  width: min(100%, 980px);
  max-width: none;
}

.entry-content .alignfull {
  width: 100%;
  max-width: none;
}

.wpgen-callout {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--wpgen-caution-bg);
  border: 1px solid #f0d3b5;
  border-radius: 12px;
}

.wpgen-callout--note {
  background: #eef7f8;
  border-color: #bddbe0;
  border-left-color: #267580;
}

.wpgen-callout--positive {
  background: var(--wpgen-positive-bg);
  border-color: #badfcf;
  border-left-color: var(--wpgen-positive);
}

.wpgen-callout h3,
.wpgen-pros-cons h3 {
  margin: 0 0 9px;
  font-size: 1.1rem;
}

.wpgen-callout > :first-child,
.wpgen-pros-cons > section > :first-child {
  margin-top: 0;
}

.wpgen-callout > :last-child,
.wpgen-pros-cons > section > :last-child {
  margin-bottom: 0;
}

.wpgen-pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.wpgen-pros-cons > section {
  padding: 20px;
  border: 1px solid var(--wpgen-line);
  border-radius: 12px;
}

.wpgen-pros-cons > section:first-child {
  background: var(--wpgen-positive-bg);
  border-color: #badfcf;
}

.wpgen-pros-cons > section:last-child {
  background: #fff1ee;
  border-color: #efc8bf;
}

.wpgen-pros-cons > section:first-child h2,
.wpgen-pros-cons > section:first-child h3 {
  color: var(--wpgen-positive);
}

.wpgen-pros-cons > section:last-child h2,
.wpgen-pros-cons > section:last-child h3 {
  color: #9d412d;
}

.wpgen-numbered-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: decimal-leading-zero inside;
  margin: 28px 0;
  padding: 0;
}

.wpgen-numbered-cards > li {
  position: relative;
  margin: 0;
  padding: 18px 20px 20px;
  background: #f7fafb;
  border: 1px solid var(--wpgen-line);
  border-radius: 12px;
}

.wpgen-numbered-cards > li::marker {
  color: var(--wpgen-accent-strong);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.wpgen-numbered-cards > li h3 {
  display: inline;
  margin: 0;
  font-size: 1.08rem;
}

.wpgen-numbered-cards > li > div {
  margin-top: 10px;
}

.wpgen-faq {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.wpgen-faq > h2 {
  margin: 0 0 7px;
}

.wpgen-faq details {
  overflow: clip;
  background: #fff;
  border: 1px solid var(--wpgen-line);
  border-radius: 12px;
}

.wpgen-faq details[open] {
  border-color: #a8cbd0;
  box-shadow: 0 7px 20px rgba(16, 52, 66, 0.07);
}

.wpgen-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 54px 14px 18px;
  color: #173144;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.wpgen-faq summary::-webkit-details-marker {
  display: none;
}

.wpgen-faq summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--wpgen-deep-soft);
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
}

.wpgen-faq details[open] summary::after {
  content: "−";
}

.wpgen-faq__answer {
  padding: 0 18px 17px;
  color: #334b58;
}

.wpgen-faq__answer > :last-child {
  margin-bottom: 0;
}

.wpgen-media {
  margin: 28px 0;
}

.wpgen-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--wpgen-line);
  border-radius: 14px;
}

.wpgen-device {
  width: min(100%, 920px);
  margin: 30px auto;
  padding: clamp(8px, 1.5vw, 14px);
  background: #142d3e;
  border: 1px solid #284657;
  border-radius: 22px;
  box-shadow: 0 22px 45px rgba(17, 42, 57, 0.19);
}

.wpgen-device::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: -1px auto 9px;
  background: #718794;
  border-radius: 999px;
}

.wpgen-device img {
  width: 100%;
  height: auto;
  border-radius: 11px;
}

.wpgen-device--mobile {
  width: min(100%, 340px);
  padding: 10px;
  border-radius: 28px;
}

.author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 22px;
  background: #eef5f6;
  border: 1px solid #cedde1;
  border-radius: 14px;
}

.author-card__image {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  object-fit: cover;
  border-radius: 50%;
}

.author-card__body {
  min-width: 0;
}

.author-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.author-card p {
  margin: 0 0 8px;
}

.author-card__name {
  font-weight: 760;
}

.author-card__role {
  color: var(--wpgen-muted);
  font-size: 14px;
}

.author-card__link {
  font-weight: 720;
}

.author-card--surface {
  margin: 0 0 32px;
  padding: clamp(22px, 4vw, 34px);
}

.child-index {
  max-width: var(--wpgen-reading);
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--wpgen-line);
}

.child-index h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
}

.child-index ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.child-index a {
  display: block;
  min-height: 100%;
  padding: 14px 16px;
  background: #f6f9fa;
  border: 1px solid var(--wpgen-line);
  border-radius: 10px;
  font-weight: 720;
  text-decoration: none;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-card {
  padding: 22px;
  background: #f8fafb;
  border: 1px solid var(--wpgen-line);
  border-radius: 12px;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.post-card p:last-child {
  margin-bottom: 0;
}

.pagination {
  margin-top: 28px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 7px 11px;
  background: #f5f8f9;
  border: 1px solid var(--wpgen-line);
  border-radius: 8px;
  text-decoration: none;
}

.page-numbers.current {
  color: #fff;
  background: var(--wpgen-deep-soft);
  border-color: var(--wpgen-deep-soft);
}

.search-form {
  display: flex;
  gap: 9px;
  max-width: 620px;
}

.search-form label {
  flex: 1 1 auto;
  min-width: 0;
}

.search-field {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  color: var(--wpgen-ink);
  background: #fff;
  border: 1px solid #b9c6cc;
  border-radius: 9px;
}

.search-submit {
  padding: 11px 17px;
  color: #fff;
  background: var(--wpgen-link);
  border: 0;
  border-radius: 9px;
  font-weight: 720;
  cursor: pointer;
}

/* Footer */
.site-footer {
  margin-top: 54px;
  padding: 42px 0 26px;
  color: #c3cfd6;
  background: var(--wpgen-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 42px;
}

.footer-grid--single {
  grid-template-columns: minmax(0, var(--wpgen-reading));
}

.site-footer h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.15rem;
}

.site-footer p {
  margin: 0 0 10px;
}

.footer-nav ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #e3ebef;
}

.footer-disclosure {
  color: #9eb0bb;
  font-size: 13px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  color: #91a3ae;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 900px) {
  .main-nav--desktop {
    display: none;
  }

  .main-nav--mobile {
    display: block;
  }

  .main-nav--mobile .wrap {
    width: 100%;
  }

  .main-nav__details > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 760;
    cursor: pointer;
    list-style: none;
  }

  .main-nav__details > summary::-webkit-details-marker {
    display: none;
  }

  .main-nav__details > summary::after {
    content: "+";
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
  }

  .main-nav__details[open] > summary::after {
    content: "−";
  }

  .main-nav__details > summary:focus-visible {
    outline: 3px solid var(--wpgen-focus);
    outline-offset: -4px;
  }

  .primary-menu--mobile {
    display: block;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 7px 14px 12px;
  }

  .primary-menu--mobile > li {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .primary-menu--mobile > li:last-child {
    border-bottom: 0;
  }

  .mobile-nav-group > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    color: #fff;
    font-weight: 760;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav-group > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-group > summary::after {
    content: "+";
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
  }

  .mobile-nav-group[open] > summary::after {
    content: "−";
  }

  .mobile-nav-group > summary:focus-visible {
    outline: 3px solid var(--wpgen-focus);
    outline-offset: -3px;
  }

  .mobile-nav-group__hub {
    margin: 2px 10px 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
    font-weight: 720;
  }

  .primary-menu a {
    min-height: 42px;
    padding: 8px 10px;
  }

  .primary-menu .sub-menu {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 0 4px 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .primary-menu .sub-menu a {
    color: #c8d5dc;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, var(--wpgen-wrap));
  }

  .header-bar {
    min-height: 72px;
  }

  .site-brand__tagline {
    display: none;
  }

  .page-hero {
    padding: 28px 0 42px;
  }

  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 18px;
    align-items: end;
  }

  .page-hero__motif {
    width: 92px;
    padding: 5px;
  }

  .content-area {
    padding-top: 24px;
  }

  .content-shell {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .wpgen-pros-cons,
  .wpgen-numbered-cards,
  .child-index ul,
  .post-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .author-card {
    display: grid;
  }

  .author-card__image {
    width: 86px;
    height: 86px;
    flex-basis: 86px;
  }

  .search-form {
    display: grid;
  }

  .test2-offers {
    margin-inline: -4px;
    width: calc(100% + 8px);
    border-radius: 11px;
  }

  .entry-content .test2-offers__table,
  .test2-offers__table {
    min-width: 720px;
    font-size: 13px;
  }

  .entry-content .test2-offers__table th,
  .entry-content .test2-offers__table td,
  .test2-offers__table th,
  .test2-offers__table td {
    padding: 11px 12px;
  }

  .test2-offers__brand {
    min-width: 160px;
  }

  .test2-offers__logo {
    width: 72px;
    height: 38px;
    flex-basis: 72px;
  }
}

@media (max-width: 440px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__motif {
    display: none;
  }

  .entry-byline__role,
  .entry-byline__date {
    display: block;
  }

  .entry-byline__role::before,
  .entry-byline__date::before {
    content: "";
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .search-form {
    display: none !important;
  }

  body,
  .content-shell {
    color: #000;
    background: #fff;
    box-shadow: none;
  }
}
