/* News: index, article, archive, account notices and the newsletter card (light, dark, mobile). */
:root { --nw-accent: #7a5627; --nw-soft: color-mix(in srgb, var(--brand-2) 9%, var(--card)); }
html[data-theme="dark"] { --nw-accent: #e2b15a; }
.nw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 28px; flex-wrap: wrap; margin: 10px 0 26px; }
.nw-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; margin: 0 0 10px; }
.nw-lead { color: var(--muted); font-size: 1.06rem; margin: 0; max-width: 60ch; }
.nw-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nw-head-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; color: var(--muted); font-size: .86rem; }
.nw-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #f7f3ea; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html[data-theme="dark"] .nw-badge { color: #141a16; }
.nw-flag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: #fbe9d0; color: #74420b; }
html[data-theme="dark"] .nw-flag { background: #3a2c16; color: #f3c977; }
.nw-muted { color: var(--muted); }

/* Hero */
.nw-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.nw-hero:hover { transform: translateY(-2px); }
.nw-hero-media { position: relative; min-height: 300px; background: var(--bg-2); }
.nw-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.is-art, .nw-card-media.is-art, .nw-hero-media.is-art, .nw-feed-thumb.is-art { display: grid; place-items: center; background: radial-gradient(circle at 25% 20%, rgba(226, 177, 90, .38), transparent 55%), linear-gradient(135deg, #12352c, #0e6b52); color: rgba(247, 243, 234, .88); }
.nw-art { font-size: 4.2rem; }
.nw-hero-body { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: clamp(22px, 4vw, 44px); }
.nw-hero-title { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; margin: 0; }
.nw-hero-title a, .nw-card-title a { color: var(--ink); text-decoration: none; }
.nw-hero-title a::after, .nw-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.nw-hero:has(a:focus-visible), .nw-card:has(a:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.nw-hero-text { margin: 0; color: var(--ink); opacity: .86; font-size: 1.05rem; line-height: 1.6; }
.nw-hero-cta { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; pointer-events: none; }

/* Grid + cards */
.nw-section { margin: 40px 0 0; }
.nw-section-h { font-size: 1.5rem; margin: 0 0 16px; }
.nw-section-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.nw-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .nw-grid.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nw-grid.is-three { grid-template-columns: 1fr; } }
.nw-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.nw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line)); }
.nw-card-media { aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.nw-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.nw-card:hover .nw-card-media img { transform: scale(1.03); }
.nw-card-media.is-art i { font-size: 2.2rem; }
.nw-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.nw-card-title { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: -.02em; font-size: 1.22rem; line-height: 1.2; margin: 2px 0 0; }
.nw-card-text { margin: 0; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .9rem; color: var(--brand-2); display: inline-flex; gap: 6px; align-items: center; }
html[data-theme="dark"] .nw-more { color: #8fd7ae; }
.nw-card.is-compact .nw-card-media { aspect-ratio: 21 / 9; }
.nw-card.is-compact .nw-card-title { font-size: 1.06rem; }
.nw-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.nw-strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.nw-strip-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* Pager */
.nw-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 28px 0 0; }
.nw-pg { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
a.nw-pg:hover { border-color: var(--brand-2); color: var(--ink); }
.nw-pg.is-on { background: var(--brand); color: #f7f3ea; border-color: transparent; }
html[data-theme="dark"] .nw-pg.is-on { color: #141a16; }
.nw-pg.is-gap { border: 0; background: none; min-width: 20px; }

/* Panels under the grid */
.nw-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 44px 0 0; }
.nw-panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.nw-panel h2 { font-size: 1.3rem; margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.nw-panel h2 i { color: var(--nw-accent); font-size: 1rem; }
.nw-years { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.nw-years a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; }
.nw-years a:hover { background: var(--bg-2); color: var(--ink); }
.nw-years em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .88rem; }
.nw-panel-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* Empty state */
.nw-empty { text-align: center; padding: 48px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: 24px; }
.nw-empty h2, .nw-empty h3 { margin: 12px 0 6px; }
.nw-empty p { margin: 0; color: var(--muted); }
.nw-empty-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--nw-soft, var(--bg-2)); color: var(--brand-2); font-size: 1.5rem; }
html[data-theme="dark"] .nw-empty-ico { color: #8fd7ae; }
.nw-empty.is-small { padding: 32px 18px; }

/* Article */
.nw-article { max-width: 980px; margin: 0 auto; }
.nw-article-head { max-width: 760px; margin: 6px auto 24px; text-align: center; }
.nw-article-head .nw-meta { justify-content: center; }
.nw-article-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.05; margin: 14px 0 12px; overflow-wrap: anywhere; }
.nw-article-lead { font-size: 1.18rem; color: var(--muted); margin: 0; line-height: 1.55; }
.nw-article-hero { margin: 0 0 30px; border-radius: 26px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.nw-article-hero img { display: block; width: 100%; height: auto; max-height: 540px; object-fit: cover; }
.nw-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 36px; max-width: 980px; margin: 0 auto; align-items: start; }
.nw-prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink); max-width: 720px; overflow-wrap: anywhere; }
.nw-prose > :first-child { margin-top: 0; }
.nw-prose h2, .nw-prose h3, .nw-prose h4 { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: -.02em; line-height: 1.2; margin: 1.6em 0 .5em; }
.nw-prose h2 { font-size: 1.6rem; } .nw-prose h3 { font-size: 1.3rem; }
.nw-prose p, .nw-prose ul, .nw-prose ol { margin: 0 0 1.1em; }
.nw-prose a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .nw-prose a { color: #8fd7ae; }
.nw-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.nw-prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 14px 14px 0; font-style: italic; }
.nw-share { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.nw-share-h { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--nw-accent); }
.nw-share-btn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .92rem; text-decoration: none; cursor: pointer; text-align: left; }
.nw-share-btn:hover { background: var(--bg); color: var(--ink); }
.nw-share-btn[hidden] { display: none; }
.nw-share-btn i { width: 18px; text-align: center; color: var(--brand-2); }
html[data-theme="dark"] .nw-share-btn i { color: #8fd7ae; }
.nw-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 980px; margin: 40px auto 0; }
.nw-pn { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.nw-pn:hover { border-color: var(--brand-2); color: var(--ink); }
.nw-pn.is-next { text-align: right; grid-column: 2; }
.nw-pn-k { font-size: .8rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.nw-pn.is-next .nw-pn-k { justify-content: flex-end; }
.nw-pn strong { font-family: Fraunces, Georgia, serif; font-weight: 560; font-size: 1.1rem; line-height: 1.25; }
.nw-comments { max-width: 980px; margin: 40px auto 0; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.nw-comments h2 { margin: 0 0 16px; font-size: 1.4rem; }
.nw-comments h2 em { font-style: normal; font-family: Outfit, sans-serif; font-size: .9rem; color: var(--muted); }
.nw-comment { padding: 12px 0; border-top: 1px solid var(--line); }
.nw-comment-meta { margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.nw-comment-meta strong { color: var(--ink); }
.nw-comment-form { display: grid; gap: 8px; margin-top: 16px; }
.nw-comment-form button { justify-self: start; }
.nw-comment-form label { font-weight: 600; }

/* Archive */
.nw-filter { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); margin: 0 0 26px; }
.nw-field { display: grid; gap: 6px; min-width: 150px; }
.nw-field.is-grow { flex: 1 1 260px; }
.nw-field label { font-size: .86rem; font-weight: 600; }
.nw-field input, .nw-field select { min-height: 44px; }
.nw-field.is-actions { display: flex; gap: 8px; }
.nw-field.is-actions .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.nw-archive { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.nw-tree { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.nw-tree-h { font-size: 1.1rem; margin: 2px 4px 10px; }
.nw-tree ul { list-style: none; margin: 0; padding: 0; }
.nw-tree summary { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 12px; cursor: pointer; font-weight: 650; list-style: none; }
.nw-tree summary::-webkit-details-marker { display: none; }
.nw-tree summary::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; margin-right: 8px; transition: transform .15s ease; color: var(--muted); }
.nw-tree details[open] > summary::before { transform: rotate(90deg); }
.nw-tree summary span { flex: 1; }
.nw-tree summary:hover { background: var(--bg); }
.nw-tree em { font-style: normal; font-size: .8rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.nw-tree details ul { padding: 2px 0 8px 18px; }
.nw-tree details a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .94rem; }
.nw-tree details a:hover { background: var(--bg); color: var(--ink); }
.nw-tree details a.is-on { background: var(--brand); color: #f7f3ea; }
html[data-theme="dark"] .nw-tree details a.is-on { color: #141a16; }
.nw-tree details a.is-on em { background: rgba(255, 255, 255, .18); color: inherit; }
.nw-res-h { font-family: Outfit, sans-serif; font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 4px 0 14px; }
.nw-month { font-size: 1.3rem; margin: 22px 0 10px; }
.nw-month:first-of-type { margin-top: 0; }
.nw-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nw-row { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s ease, transform .15s ease; }
.nw-row:hover { border-color: color-mix(in srgb, var(--brand-2) 40%, var(--line)); transform: translateX(2px); }
.nw-row-date { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--bg); line-height: 1; }
.nw-row-date strong { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; font-weight: 560; }
.nw-row-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nw-row-title { font-weight: 650; color: var(--ink); text-decoration: none; font-size: 1.04rem; }
.nw-row-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.nw-row:has(a:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.nw-row-main p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.nw-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); font-size: .84rem; white-space: nowrap; }

/* Account: important notice cards + news feed */
.nw-notices { display: grid; gap: 12px; margin: 0 0 22px; }
.nw-notice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 20px; background: linear-gradient(135deg, #fff6e6, #fffcf7 60%); border: 1px solid #ecd3a7; box-shadow: 0 12px 30px rgba(122, 86, 39, .08); }
html[data-theme="dark"] .nw-notice { background: linear-gradient(135deg, #2f2615, #1b211d 70%); border-color: #5b4520; }
.nw-notice-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #f4d9a6; color: #74420b; font-size: 1.1rem; }
html[data-theme="dark"] .nw-notice-ico { background: #4a3818; color: #f3c977; }
.nw-notice-k { margin: 0 0 2px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: #74420b; }
html[data-theme="dark"] .nw-notice-k { color: #f3c977; }
.nw-notice h2, .nw-notice h3 { font-size: 1.12rem; margin: 0 0 4px; font-family: Fraunces, Georgia, serif; font-weight: 560; }
.nw-notice p { margin: 0; color: var(--ink); opacity: .85; font-size: .94rem; line-height: 1.5; }
.nw-notice-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.nw-notice-x { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; }
.nw-notice-x:hover { background: rgba(0, 0, 0, .06); }
html[data-theme="dark"] .nw-notice-x:hover { background: rgba(255, 255, 255, .08); }
.nw-feed { display: grid; gap: 10px; }
.nw-feed-item { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--a-line, var(--line)); background: var(--a-card, var(--card)); }
.nw-feed-item.is-unread { border-color: color-mix(in srgb, var(--brand-2) 45%, var(--line)); box-shadow: inset 4px 0 0 var(--brand-2); }
.nw-feed-thumb { width: 74px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.nw-feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-feed-thumb.is-art i { font-size: 1.2rem; }
.nw-feed-title { font-weight: 650; color: var(--ink); text-decoration: none; }
.nw-feed-title:hover { text-decoration: underline; color: var(--ink); }
.nw-feed-main p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.nw-feed-main .nw-meta { font-size: .8rem; margin-bottom: 2px; }
.nw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
html[data-theme="dark"] .nw-dot { background: #8fd7ae; }
.nw-feed-actions { display: flex; gap: 6px; }

.nw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nw-feed-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.nw-feed-filter .chip { text-decoration: none; padding: 6px 14px; }

/* Responsive */
@media (max-width: 900px) {
  .nw-hero { grid-template-columns: 1fr; }
  .nw-hero-media { min-height: 0; aspect-ratio: 16 / 9; }
  .nw-article-grid { grid-template-columns: 1fr; gap: 24px; }
  .nw-share { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nw-share-h { width: 100%; }
  .nw-archive { grid-template-columns: 1fr; }
  .nw-tree { position: static; }
}
@media (max-width: 560px) {
  .nw-head { margin-bottom: 18px; }
  .nw-prevnext { grid-template-columns: 1fr; }
  .nw-pn.is-next { grid-column: auto; }
  .nw-row { grid-template-columns: 48px minmax(0, 1fr); padding: 12px; gap: 12px; }
  .nw-row-date { width: 48px; height: 48px; }
  .nw-row-meta { grid-column: 2; flex-direction: row; align-items: center; }
  .nw-feed-item { grid-template-columns: 56px minmax(0, 1fr); }
  .nw-feed-thumb { width: 56px; height: 48px; }
  .nw-feed-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .nw-notice { grid-template-columns: auto minmax(0, 1fr); }
  .nw-notice form.nw-notice-dismiss { grid-column: 2; justify-self: end; grid-row: 1; }
  .nw-field, .nw-field.is-actions { flex: 1 1 100%; }
  .nw-comments { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-hero, .nw-card, .nw-card-media img, .nw-row { transition: none; }
  .nw-hero:hover, .nw-card:hover, .nw-row:hover { transform: none; }
}

/* Admin preview banner on the public article view */
.nw-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--nw-accent) 60%, transparent); background: color-mix(in srgb, var(--nw-accent) 10%, var(--card)); color: var(--ink); }
.nw-preview > span { flex: 1 1 220px; }
.nw-preview i { color: var(--nw-accent); }
.nw-muted a, .nw-prose a, .nw-comments p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }
.nw-hero-title a:focus-visible, .nw-card-title a:focus-visible, .nw-row-title:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

/* Newsletter: form, switch, footer card, page, result pages */
.nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-form { display: grid; gap: 12px; }
.nl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-input { flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.nl-input:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.nl-input[aria-invalid="true"] { border-color: #b3261e; }
.nl-submit { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; }
.nl-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.nl-consent a { text-decoration: underline; }
.nl-switch { appearance: none; -webkit-appearance: none; flex: 0 0 auto; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: color-mix(in srgb, var(--muted) 45%, transparent); border: 1px solid color-mix(in srgb, var(--muted) 70%, transparent); cursor: pointer; transition: background .18s ease; }
.nl-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s ease; }
.nl-switch:checked { background: var(--brand); border-color: var(--brand); }
.nl-switch:checked::after { transform: translateX(18px); }
.nl-switch:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.nl-switch[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 2px rgba(179, 38, 30, .25); }
.nl-error { margin: 0; color: #a3211a; font-weight: 600; font-size: .88rem; }
html[data-theme="dark"] .nl-error { color: #ffb4a9; }
.nl-note { margin: 0; font-size: .8rem; color: var(--muted); }
.nl-done { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.nl-done i { color: var(--brand); }
html[data-theme="dark"] .nl-done i { color: #8fd7ae; }
.nl-done a { text-decoration: underline; }

/* Footer card (footer is always dark) */
.nl-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px 36px; align-items: center; margin-bottom: 34px; padding: 26px 28px; border-radius: 24px; background: radial-gradient(circle at 0% 0%, rgba(226, 177, 90, .16), transparent 55%), #16302a; border: 1px solid rgba(226, 177, 90, .25); color: #e8e1d4; }
.nl-footer-copy { display: flex; gap: 16px; align-items: flex-start; }
.nl-footer-icon { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(226, 177, 90, .16); color: #e2b15a; font-size: 1.25rem; }
.nl-footer h2 { margin: 0 0 4px; color: #f7f3ea; font-family: Fraunces, Georgia, serif; font-size: 1.4rem; }
.nl-footer p { margin: 0; color: #d9d0c2; }
.nl-footer .nl-input { background: #0f241f; border-color: rgba(247, 243, 234, .28); color: #f7f3ea; }
.nl-footer .nl-input::placeholder { color: #b7ad9c; }
.nl-footer .nl-consent, .nl-footer .nl-note { color: #d9d0c2; }
.nl-footer .nl-consent a, .nl-footer .nl-done a { color: #f3c977; }
.nl-footer .nl-switch { background: rgba(247, 243, 234, .18); border-color: rgba(247, 243, 234, .45); }
.nl-footer .nl-switch:checked { background: #e2b15a; border-color: #e2b15a; }
.nl-footer .nl-submit { background: #e2b15a; color: #141a16; border-color: #e2b15a; }
.nl-footer .nl-submit:hover { background: #f0c574; color: #141a16; }
.nl-footer .nl-error { color: #ffb4a9; }
.nl-footer .nl-done i { color: #8fd7ae; }
@media (max-width: 820px) { .nl-footer { grid-template-columns: 1fr; padding: 22px 18px; } }
@media (max-width: 460px) { .nl-row .nl-submit { flex: 1 1 100%; } }

/* Newsletter page */
.nl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 12px 0 28px; }
.nl-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; margin: 0 0 12px; }
.nl-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.nl-points i { color: var(--nw-accent); margin-right: 6px; }
.nl-hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.nl-card-h { margin: 0 0 14px; font-size: 1.35rem; }
.nl-more { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) { .nl-hero { grid-template-columns: 1fr; } }
.nl-panel .nw-muted { margin: -6px 0 14px; }

/* Result pages */
.nl-result { max-width: 640px; margin: 30px auto 10px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 5vw, 46px); box-shadow: var(--shadow); }
.nl-result h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 10px 0 12px; line-height: 1.1; }
.nl-result p { margin: 0 0 14px; }
.nl-result-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--nw-soft); color: var(--nw-accent); font-size: 1.6rem; }
.nl-result.is-invalid .nl-result-icon { color: #a3211a; }
html[data-theme="dark"] .nl-result.is-invalid .nl-result-icon { color: #ffb4a9; }
.nl-result form { margin: 18px 0; }
.nl-result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px !important; }
.nl-result-actions .btn, .nl-result form .btn, .nl-more .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }

/* Account newsletter card */
.nl-acct { display: grid; gap: 14px; }
.nl-acct-state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .86rem; background: var(--nw-soft); }
.nl-acct-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
