/* Self-contained publication component: no theme-global selectors or resets. */
.aeon-paywall-teaser {
  position: relative;
  margin-bottom: 0;
}

.aeon-paywall-teaser::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(3.5rem, 9vw, 6rem);
  background: linear-gradient(180deg, transparent, #fff 88%);
  content: "";
  pointer-events: none;
}

.aeon-paywall {
  --aeon-ink: #23151a;
  --aeon-muted: #695d61;
  --aeon-surface: #fffaf7;
  --aeon-border: #e5d6d9;
  --aeon-action: var(--secondary-color, #59023b);
  --aeon-action-hover: var(--primary-color, #69043b);
  --aeon-accent: var(--quaternary-color, #f21667);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  max-width: 45rem;
  margin: -.15rem auto clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--aeon-border);
  border-radius: .45rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,249,246,.98)),
    var(--aeon-surface);
  box-shadow: 0 .9rem 2.6rem rgba(71, 20, 37, .09);
  color: var(--aeon-ink);
  text-align: left;
}

.aeon-paywall--nyd {
  border-top: .32rem solid var(--aeon-action);
}

.aeon-paywall--nordic-times {
  --aeon-ink: #10283d;
  --aeon-muted: #516271;
  --aeon-surface: #f7fafc;
  --aeon-border: #cbd9e3;
  --aeon-action: #123f63;
  --aeon-action-hover: #0b2d49;
  --aeon-accent: #b32335;
  border-radius: .25rem;
  border-top: .32rem solid var(--aeon-accent);
  background:
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(239,245,249,.97)),
    var(--aeon-surface);
  box-shadow: 0 1.4rem 3.5rem rgba(16, 40, 61, .11);
}

.aeon-paywall__glow {
  position: absolute;
  z-index: -1;
  top: -8rem;
  right: -6rem;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--aeon-accent) 18%, transparent), transparent 68%);
  pointer-events: none;
}

.aeon-paywall__inner {
  box-sizing: border-box;
  max-width: 39rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.65rem);
}

.aeon-paywall__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .7rem;
  margin-bottom: 1.05rem;
}

.aeon-paywall__mark {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .2rem;
  background: var(--aeon-action);
  box-shadow: none;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.aeon-paywall--nordic-times .aeon-paywall__mark {
  border-radius: .15rem;
  background: var(--aeon-accent);
}

.aeon-paywall__eyebrow {
  margin: 0;
  color: var(--aeon-action);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: none;
}

.aeon-paywall__title {
  max-width: 25ch;
  margin: 0 0 .75rem;
  color: inherit;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.8vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.aeon-paywall__description {
  max-width: 48ch;
  margin: 0 0 1.25rem;
  color: var(--aeon-muted);
  font-family: "Libre Franklin", Arial, Helvetica, sans-serif;
  font-size: clamp(.98rem, 2vw, 1.08rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.aeon-paywall__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem 1rem;
  max-width: 39rem;
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
}

.aeon-paywall__benefits li {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  padding: .35rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--aeon-muted);
  font-family: "Libre Franklin", Arial, Helvetica, sans-serif;
  font-size: .78rem;
  line-height: 1.35;
  text-align: left;
}

.aeon-paywall__benefits li span {
  flex: 0 0 auto;
  color: var(--aeon-action);
  font-weight: 900;
}

.aeon-paywall__price {
  margin: 0 0 .7rem;
  color: var(--aeon-muted);
  font-family: "Libre Franklin", Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 700;
}

.aeon-paywall__login,
.aeon-bookmark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  border: 1px solid var(--aeon-action);
  border-radius: .45rem;
  background: var(--aeon-action);
  box-shadow: 0 .5rem 1.3rem color-mix(in srgb, var(--aeon-action) 20%, transparent);
  color: #fff !important;
  font-family: "Libre Franklin", Arial, Helvetica, sans-serif;
  font-size: .9rem;
  font-weight: 800;
  gap: .65rem;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}

.aeon-paywall__login:hover {
  transform: translateY(-1px);
  background: var(--aeon-action-hover);
  border-color: var(--aeon-action-hover);
}

.aeon-paywall__signin {
  display: block;
  width: max-content;
  margin: .9rem 0 0;
  color: var(--aeon-action) !important;
  font-family: "Libre Franklin", Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.aeon-bookmark-button {
  background: transparent;
  box-shadow: none;
  color: var(--aeon-action) !important;
}

.aeon-bookmark-button[aria-pressed="true"] {
  background: var(--aeon-action);
  color: #fff !important;
}

.aeon-paywall__login:focus-visible,
.aeon-paywall__signin:focus-visible,
.aeon-bookmark-button:focus-visible {
  outline: 3px solid var(--aeon-accent);
  outline-offset: 3px;
}

.aeon-article-tools {
  --aeon-action: var(--secondary-color, #59023b);
  --aeon-action-hover: var(--primary-color, #69043b);
  --aeon-accent: var(--quaternary-color, #f21667);
  margin: 1.25rem 0;
}

.aeon-paywall .aeon-article-tools {
  --aeon-action: inherit;
  --aeon-action-hover: inherit;
  --aeon-accent: inherit;
  margin: 1.25rem 0 0;
}

.aeon-access-badge {
  display: inline-flex;
  align-items: center;
  margin-inline-start: .28em;
  padding: .22em .46em .19em;
  border: 0;
  border-radius: .12rem;
  background: var(--quaternary-color, #f21667);
  box-shadow: none;
  color: #fff;
  font-family: "Libre Franklin", Arial, Helvetica, sans-serif;
  font-size: .52rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: .18em;
  white-space: nowrap;
}

.aeon-account-link {
  --aeon-account-accent: var(--secondary-color, #59023b);
  --aeon-account-highlight: var(--quaternary-color, #f21667);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 1.8rem;
  padding: .28rem .18rem .24rem !important;
  border: 0;
  border-bottom: 2px solid rgba(255,255,255,.55);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff !important;
  font-family: "Libre Franklin", Arial, Helvetica, sans-serif;
  font-size: .74rem;
  font-weight: 700 !important;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
}

.aeon-account-link::before {
  content: "N+";
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--aeon-account-highlight);
  color: #fff;
  font-family: "PT Serif", Georgia, serif;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.aeon-account-link:hover {
  border-bottom-color: var(--aeon-account-highlight);
  background: rgba(255,255,255,.08);
  color: #fff !important;
}

.aeon-account-link:focus-visible {
  outline: 3px solid var(--quaternary-color, #f21667);
  outline-offset: 3px;
}

.off-canvas-nav .aeon-account-link {
  width: 100%;
  justify-content: flex-start;
  margin-top: .25rem;
  padding: .65rem .8rem !important;
  border-bottom-color: rgba(255,255,255,.35);
}

@media (max-width: 680px) {
  .aeon-paywall {
    width: 100%;
    margin-inline: 0;
    border-radius: .65rem;
  }
  .aeon-paywall--nordic-times { border-radius: 0; }
  .aeon-paywall__inner { padding: 1.65rem 1.1rem 1.8rem; }
  .aeon-paywall__benefits { grid-template-columns: 1fr; gap: .42rem; }
  .aeon-paywall__benefits li { padding: .3rem 0; }
  .aeon-paywall__login,
  .aeon-bookmark-button { width: 100%; }
  .aeon-article-tools[data-aeon-subscription-tools-context="toolbar"] .aeon-bookmark-button { width: auto; }
}

@media (min-width: 681px) and (max-width: 1024px) {
  .aeon-paywall { max-width: 42rem; }
}

@media (prefers-reduced-motion: reduce) {
  .aeon-paywall__login { transition: none; }
}

/* Dark-mode adjustments follow the publication's explicit manual state only. */
html.aeon-dark-mode-active .aeon-paywall-teaser::after,
body.dark-mode .aeon-paywall-teaser::after { background: linear-gradient(180deg, transparent, #111 88%); }
html.aeon-dark-mode-active .aeon-paywall,
body.dark-mode .aeon-paywall {
  --aeon-ink: #f8edef;
  --aeon-muted: #d3c2c7;
  --aeon-surface: #241a1d;
  --aeon-border: #553f45;
  --aeon-action: #e06b91;
  --aeon-action-hover: #f18dab;
  --aeon-accent: #e8c46a;
  background: linear-gradient(145deg, rgba(53,38,43,.98), rgba(31,22,26,.98)), var(--aeon-surface);
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,.35);
}
html.aeon-dark-mode-active .aeon-paywall--nordic-times,
body.dark-mode .aeon-paywall--nordic-times {
  --aeon-ink: #eef5f9;
  --aeon-muted: #bfd0dc;
  --aeon-surface: #142431;
  --aeon-border: #395367;
  --aeon-action: #6bb8e8;
  --aeon-action-hover: #9bd2f1;
  --aeon-accent: #e86c7b;
  background: linear-gradient(135deg, rgba(25,45,60,.98), rgba(16,31,43,.98)), var(--aeon-surface);
}
html.aeon-dark-mode-active .aeon-paywall__benefits li,
body.dark-mode .aeon-paywall__benefits li { background: transparent; }
html.aeon-dark-mode-active .aeon-article-tools,
body.dark-mode .aeon-article-tools {
  --aeon-action: #e06b91;
  --aeon-action-hover: #f18dab;
  --aeon-accent: #e8c46a;
}
html.aeon-dark-mode-active .aeon-paywall .aeon-article-tools,
body.dark-mode .aeon-paywall .aeon-article-tools {
  --aeon-action: inherit;
  --aeon-action-hover: inherit;
  --aeon-accent: inherit;
}

html.aeon-dark-mode-active .aeon-access-badge,
body.dark-mode .aeon-access-badge {
  background: #e8c46a;
  color: #2b1020;
}

.aeon-article-tools[data-aeon-subscription-tools-context="toolbar"] {
  display: inline-flex;
  margin: 0;
}
