/*
Theme Name: Nieuwsredactie
Theme URI: https://example.com/nieuwsredactie
Author: Studio
Author URI: https://example.com
Description: Een strak, redactioneel WordPress nieuwsthema met een hiërarchische homepage, nieuwsblokken, mobiele zoekoverlay en placeholder-content.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: nieuwsredactie
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: news, magazine, one-column, two-columns, custom-logo, custom-menu, featured-images, editor-style, block-styles, wide-blocks, rtl-language-support
*/

:root {
  --nre-accent: #5b56f1;
  --nre-accent-dark: #3d36c8;
  --nre-ink: #111111;
  --nre-ink-soft: #2e2254;
  --nre-muted: #575757;
  --nre-line: #e8e5ee;
  --nre-line-strong: #d9d4e4;
  --nre-bg: #f7f6f8;
  --nre-card: #ffffff;
  --nre-card-soft: #f3f1f4;
  --nre-dark: #1b1830;
  --nre-shell: 1460px;
  --nre-content: 1180px;
  --nre-shadow: 0 18px 50px rgba(23, 17, 43, 0.08);
  --nre-radius: 24px;
  --nre-radius-small: 18px;
  --nre-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nre-bg);
  color: var(--nre-ink);
  font-family: var(--nre-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nre-overlay-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}
p { margin: 0 0 1.2em; }

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

.nre-shell,
.nre-container {
  width: min(100% - 56px, var(--nre-shell));
  margin-inline: auto;
}

.nre-site-header {
  background: #fff;
  border-bottom: 1px solid var(--nre-line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nre-desktop-header__inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 150px minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}

.nre-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #170c4b;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.nre-brand .custom-logo {
  max-height: 42px;
  width: auto;
}
.nre-brand__mark {
  font-size: 32px;
  line-height: 1;
  text-transform: lowercase;
}
.nre-brand__word {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--nre-accent);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  text-transform: lowercase;
}
.nre-brand--footer .nre-brand__mark { font-size: 26px; }
.nre-brand--footer .nre-brand__word { min-height: 32px; font-size: 22px; }

.nre-top-search {
  height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid #ece9f4;
  border-radius: 999px;
  background: #f7f4fb;
  color: #31245c;
  text-align: left;
}
.nre-top-search__icon,
.nre-top-search__icon svg { width: 21px; height: 21px; }
.nre-top-pills,
.nre-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nre-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #efebdb;
  background: #fff7e7;
  color: #1b1830;
  font-weight: 600;
}
.nre-pill svg { width: 20px; height: 20px; }
.nre-pill--traffic {
  background: #f0fbf0;
  border-color: #dcefdc;
}
.nre-pill--traffic svg { color: #2d963b; }

.nre-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 10px;
  border: 2px solid #241546;
  background: #fff;
  color: #241546;
  font-weight: 700;
}
.nre-button svg { width: 22px; height: 22px; }
.nre-button--primary {
  border-color: var(--nre-accent);
  background: var(--nre-accent);
  color: #fff;
}
.nre-button--large {
  min-height: 88px;
  width: 100%;
  font-size: 18px;
  border-radius: 8px;
}

.nre-mobile-header { display: none; }

.nre-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 13, 29, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.nre-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nre-search-overlay__header {
  background: linear-gradient(180deg, #4f4df0 0%, #3530b7 100%);
  color: #fff;
  padding: 28px 28px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nre-search-overlay__back {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
}
.nre-search-overlay__back svg {
  width: 28px;
  height: 28px;
}
.nre-search-overlay__content {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 32px 28px 56px;
}
.nre-search-form {
  min-height: 88px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 999px;
  background: transparent;
}
.nre-search-form__icon,
.nre-search-form__icon svg { width: 30px; height: 30px; color: #fff; }
.nre-search-form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  outline: none;
}
.nre-search-form input::placeholder { color: rgba(255,255,255,.95); }

.nre-search-card,
.nre-profile-card,
.nre-weather-block__card {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--nre-shadow);
}
.nre-search-card {
  padding: 30px 32px;
  margin-bottom: 24px;
}
.nre-search-card--small { padding-block: 10px; }
.nre-search-card__title {
  color: var(--nre-accent);
  font-size: 26px;
  margin-bottom: 28px;
}
.nre-search-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nre-search-card .nre-search-list:first-of-type {
  border-top: 1px solid var(--nre-line);
  padding-top: 12px;
}
.nre-search-list li + li { border-top: 1px solid rgba(235, 232, 241, 0.7); }
.nre-search-list a {
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  font-size: 22px;
  font-weight: 700;
  color: #25164c;
}
.nre-search-list a svg { width: 24px; height: 24px; }
.nre-search-list a > svg:last-child { justify-self: end; }

.nre-search-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 34px 0;
}

.nre-profile-card {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  gap: 18px;
  align-items: center;
  padding: 28px 32px;
  margin-bottom: 36px;
}
.nre-profile-card__icon,
.nre-profile-card__icon svg,
.nre-profile-card__external,
.nre-profile-card__external svg {
  width: 32px;
  height: 32px;
  color: var(--nre-accent);
}
.nre-profile-card__body h3 {
  font-size: 28px;
  margin-bottom: 4px;
}
.nre-profile-card__body p {
  font-size: 18px;
  color: var(--nre-muted);
  margin: 0;
}

.nre-weather-block h2 {
  font-size: 28px;
  color: rgba(37, 22, 76, 0.75);
  margin-bottom: 18px;
}
.nre-weather-block__card {
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  border: 2px solid #f2e7c9;
  background: #fffef7;
}
.nre-weather-block__sun {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe88f, #f1c749 70%);
  box-shadow: 0 0 0 12px rgba(255, 238, 180, 0.45);
}
.nre-weather-block__card strong {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
}
.nre-weather-block__card p { margin: 0; color: var(--nre-muted); }

.nre-page-shell {
  width: min(100% - 56px, var(--nre-shell));
  margin: 24px auto 54px;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.nre-side-rail__sticky {
  position: sticky;
  top: 118px;
  min-height: calc(100vh - 152px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nre-side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nre-side-nav__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  color: #241546;
  font-size: 17px;
  font-weight: 700;
}
.nre-side-nav__item svg { width: 24px; height: 24px; }
.nre-side-nav__item.is-active {
  background: #fff;
  box-shadow: 0 10px 20px rgba(26, 19, 54, 0.08);
  color: var(--nre-accent);
}
.nre-side-rail__bottom {
  padding-top: 24px;
}
.nre-language-switcher__label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--nre-muted);
}
.nre-language-switcher__button {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--nre-line);
  border-radius: 10px;
  background: #fff;
  color: #241546;
}
.nre-language-switcher__button svg { width: 20px; height: 20px; }
.nre-language-switcher__caret { margin-left: auto; display: inline-flex; }

.nre-network-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  max-width: 130px;
}
.nre-network-logos__badge {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}
.nre-network-logos__badge--1 { background: #3b2ee3; }
.nre-network-logos__badge--2 { background: #15c37a; }
.nre-network-logos__badge--3 { background: #2b1c6b; }
.nre-network-logos__badge--4 { background: #ff5033; }

.nre-home-content { min-width: 0; }
.nre-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 26px;
}
.nre-top-grid__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nre-story__link,
.nre-story__side-link,
.nre-story__wide-link,
.nre-topic-item__link {
  display: block;
}
.nre-story__media,
.nre-story__thumb,
.nre-story__wide-thumb,
.nre-topic-panel__image,
.nre-topic-item__thumb {
  overflow: hidden;
  border-radius: var(--nre-radius-small);
}
.nre-story__media img,
.nre-story__thumb img,
.nre-story__wide-thumb img,
.nre-topic-panel__image img,
.nre-topic-item__thumb img,
.nre-card__image img,
.nre-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nre-story--hero .nre-story__media {
  aspect-ratio: 1.62 / 1;
  border-radius: 24px;
}
.nre-story__content {
  padding-top: 12px;
}
.nre-story__kicker {
  margin-bottom: 8px;
  color: #191919;
  font-size: 15px;
  line-height: 1.3;
}
.nre-story__title {
  max-width: 880px;
  font-size: clamp(30px, 2.55vw, 53px);
  line-height: 1.12;
}
.nre-story__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #252525;
  font-size: 15px;
}
.nre-story__meta svg { width: 18px; height: 18px; }
.nre-story__meta--light { color: rgba(255,255,255,.92); }

.nre-story--side {
  display: block;
}
.nre-story__side-link {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.nre-story__thumb {
  aspect-ratio: 1.5 / 1;
}
.nre-story__side-title {
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1.22;
}

.nre-story--wide {
  position: relative;
  min-height: 170px;
  margin-top: 10px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 80% 50%, rgba(0, 177, 136, .45), transparent 35%), linear-gradient(135deg, rgba(20, 31, 46, .92), rgba(46, 23, 41, .95));
}
.nre-story__wide-link {
  min-height: 170px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  position: relative;
}
.nre-story__wide-thumb {
  aspect-ratio: 1.52 / 1;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}
.nre-story__wide-content {
  position: relative;
  z-index: 1;
}
.nre-story--wide .nre-story__kicker { color: rgba(255,255,255,.86); }
.nre-story__wide-title {
  font-size: clamp(22px, 1.55vw, 30px);
  line-height: 1.25;
}
.nre-story__wide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 16, .22), rgba(28, 17, 34, 0));
}

.nre-topic-panel {
  margin-top: 28px;
  padding: 44px 34px;
  border-radius: 26px;
  background: #f2eef0;
}
.nre-topic-panel__heading {
  margin-bottom: 30px;
  color: #241457;
  font-size: clamp(26px, 2.2vw, 50px);
  font-weight: 800;
  text-align: center;
}
.nre-topic-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: 22px;
  align-items: start;
}
.nre-topic-panel__image {
  aspect-ratio: 1.53 / 1;
  border-radius: 22px;
}
.nre-topic-panel__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nre-topic-item__link {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.nre-topic-item__thumb {
  aspect-ratio: 1.3 / 1;
}
.nre-topic-item__title {
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1.28;
}

.nre-footer {
  margin-top: 60px;
  border-top: 1px solid var(--nre-line);
  background: #fff;
}
.nre-footer__inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}
.nre-footer__left p {
  max-width: 480px;
  margin: 10px 0 0;
  color: var(--nre-muted);
}
.nre-footer__right {
  text-align: right;
  color: var(--nre-muted);
}
.nre-footer__links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Generic content templates */
#main-content:not(.nre-home-main) {
  width: min(100% - 56px, 1120px);
  margin: 38px auto 60px;
}
.nre-page-header {
  margin-bottom: 24px;
}
.nre-page-header__kicker,
.nre-article-kicker {
  margin-bottom: 12px;
  color: var(--nre-accent);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}
.nre-page-title,
.nre-article-title {
  font-size: clamp(34px, 4.2vw, 66px);
  line-height: 1.05;
}
.nre-page-description,
.nre-article-subtitle {
  max-width: 840px;
  margin-top: 16px;
  color: var(--nre-muted);
  font-size: 22px;
  line-height: 1.45;
}
.nre-archive-grid,
.nre-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.nre-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.nre-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(26, 19, 54, 0.06);
}
.nre-card + .nre-card { margin-top: 18px; }
.nre-card--horizontal {
  grid-template-columns: 240px minmax(0, 1fr);
}
.nre-card__image {
  position: relative;
  display: block;
  min-height: 100%;
}
.nre-card__image img {
  height: 100%;
  min-height: 185px;
}
.nre-card__body {
  padding: 20px 22px;
}
.nre-card__kicker {
  margin-bottom: 8px;
  font-size: 14px;
}
.nre-card__title {
  font-size: 28px;
  line-height: 1.18;
}
.nre-card__title a:hover,
.nre-story__title:hover,
.nre-story__side-title:hover,
.nre-story__wide-title:hover,
.nre-topic-item__title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nre-card__excerpt {
  margin-top: 10px;
  color: var(--nre-muted);
  font-size: 16px;
  line-height: 1.55;
}
.nre-card__meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  color: var(--nre-muted);
  font-size: 14px;
}
.nre-card__label,
.nre-card__duration {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17,17,17,.82);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.nre-card__duration {
  left: auto;
  right: 14px;
}

.nre-sidebar,
.nre-share,
.nre-author-box,
.nre-widget,
.comments-area,
.nre-entry-content,
.nre-empty {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(26, 19, 54, 0.06);
}
.nre-sidebar,
.nre-entry-content,
.nre-empty,
.comments-area {
  padding: 28px;
}
.nre-widget + .nre-widget { margin-top: 18px; }
.nre-widget { padding: 22px; }
.nre-widget__title { font-size: 20px; margin-bottom: 14px; }
.nre-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nre-widget li + li { margin-top: 10px; }
.nre-widget a { color: var(--nre-ink-soft); }

.nre-article-header__inner { margin-bottom: 24px; }
.nre-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  color: var(--nre-muted);
}
.nre-article-hero {
  width: min(100% - 56px, 1120px);
  margin: 0 auto 24px;
  border-radius: 26px;
  overflow: hidden;
}
.nre-article-hero img { width: 100%; }
.nre-share {
  padding: 20px 18px;
  position: sticky;
  top: 120px;
}
.nre-share__label {
  font-size: 14px;
  color: var(--nre-muted);
  margin-bottom: 12px;
}
.nre-share__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nre-share__links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nre-card-soft);
}
.nre-share__links svg { width: 20px; height: 20px; }

.nre-entry-content {
  line-height: 1.75;
  font-size: 18px;
}
.nre-entry-content h2,
.nre-entry-content h3,
.nre-entry-content h4 {
  margin: 1.2em 0 .5em;
  line-height: 1.15;
}
.nre-entry-content blockquote {
  margin: 1.5em 0;
  padding-left: 18px;
  border-left: 4px solid var(--nre-accent);
  color: var(--nre-ink-soft);
  font-size: 22px;
}
.nre-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nre-tags a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--nre-card-soft);
}
.nre-author-box__name {
  font-size: 24px;
  margin-bottom: 10px;
}
.nre-author-box__bio { margin: 0; color: var(--nre-muted); }

.nre-pagination {
  margin-top: 24px;
}
.nre-pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nre-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(26, 19, 54, 0.06);
}
.nre-pagination .current {
  background: var(--nre-accent);
  color: #fff;
}

.comments-title { font-size: 26px; margin-bottom: 18px; }
.comment-list { padding-left: 18px; }
.comment-list li + li { margin-top: 18px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--nre-line-strong);
  border-radius: 14px;
  background: #fff;
}
.comment-form textarea { min-height: 170px; }
.comment-form .submit {
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--nre-accent);
  color: #fff;
  font-weight: 700;
}

.nre-empty {
  text-align: center;
  padding: 54px 28px;
}
.nre-empty__code {
  color: var(--nre-accent);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}
.nre-empty__title {
  margin: 8px 0 10px;
  font-size: 34px;
}
.nre-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--nre-accent);
  color: #fff;
  font-weight: 700;
}

.wp-block-image,
.wp-block-gallery,
.wp-block-quote,
.wp-block-columns { margin-bottom: 1.5em; }
.alignwide,
.alignfull { width: 100%; }

@media (max-width: 1220px) {
  .nre-top-actions span { display: none; }
  .nre-button { width: 54px; padding: 0; }
  .nre-desktop-header__inner {
    grid-template-columns: 150px minmax(220px, 1fr) auto auto;
  }
  .nre-story__side-link { grid-template-columns: 145px minmax(0, 1fr); }
  .nre-card--horizontal { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  .nre-desktop-header { display: none; }
  .nre-mobile-header {
    display: block;
    background: var(--nre-bg);
    border-bottom: 1px solid var(--nre-line);
    padding: 18px 24px 0;
  }
  .nre-mobile-header__top {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
  }
  .nre-mobile-header .nre-brand {
    justify-self: center;
  }
  .nre-mobile-header .nre-brand__mark { font-size: 36px; }
  .nre-mobile-header .nre-brand__word { font-size: 30px; min-height: 42px; }
  .nre-mobile-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }
  .nre-mobile-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #241546;
  }
  .nre-mobile-icon svg { width: 31px; height: 31px; }
  .nre-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 24px 0 0;
    overflow-x: auto;
  }
  .nre-mobile-tabs a {
    position: relative;
    padding: 0 0 16px;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
  }
  .nre-mobile-tabs a.is-active { color: var(--nre-accent); }
  .nre-mobile-tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 4px;
    border-radius: 999px;
    background: var(--nre-accent);
  }

  .nre-page-shell {
    width: min(100% - 48px, 1000px);
    grid-template-columns: 1fr;
    margin-top: 26px;
  }
  .nre-side-rail { display: none; }
  .nre-top-grid,
  .nre-topic-panel__grid,
  .nre-archive-grid,
  .nre-article-layout {
    grid-template-columns: 1fr;
  }
  .nre-story__title { font-size: clamp(28px, 4vw, 46px); }
  .nre-topic-panel {
    padding-inline: 24px;
  }
  .nre-share {
    position: static;
    order: 3;
  }
  .nre-sidebar { order: 2; }
  .nre-entry-content { order: 1; }
}

@media (max-width: 767px) {
  .nre-shell,
  .nre-container,
  #main-content:not(.nre-home-main) {
    width: min(100% - 64px, 100%);
  }
  .nre-mobile-header { padding-inline: 32px; }
  .nre-page-shell {
    width: min(100% - 64px, 100%);
    gap: 24px;
    margin-top: 24px;
  }
  .nre-story--hero .nre-story__media {
    aspect-ratio: 1.06 / 1;
    border-radius: 20px;
  }
  .nre-story__title {
    font-size: 28px;
    line-height: 1.18;
  }
  .nre-story__kicker { font-size: 18px; }
  .nre-story__meta { font-size: 16px; }
  .nre-top-grid__side { gap: 20px; }
  .nre-story__side-link,
  .nre-topic-item__link {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
  }
  .nre-story__thumb,
  .nre-topic-item__thumb {
    border-radius: 18px;
  }
  .nre-story__side-title,
  .nre-topic-item__title {
    font-size: 25px;
    line-height: 1.22;
  }
  .nre-story__wide-link {
    grid-template-columns: 110px 1fr;
    min-height: 140px;
    padding: 14px 16px;
  }
  .nre-story__wide-thumb { aspect-ratio: 1 / 1; }
  .nre-story__wide-title { font-size: 22px; }
  .nre-topic-panel {
    margin-top: 18px;
    padding: 24px 18px;
    border-radius: 20px;
  }
  .nre-topic-panel__heading {
    margin-bottom: 18px;
    text-align: left;
    font-size: 24px;
  }
  .nre-topic-panel__image { aspect-ratio: 1.12 / 1; }
  .nre-search-overlay {
    background: var(--nre-bg);
  }
  .nre-search-overlay__header {
    padding: 22px 18px 24px;
  }
  .nre-search-overlay__content {
    padding: 30px 28px 54px;
  }
  .nre-search-form {
    min-height: 74px;
    padding: 0 18px;
  }
  .nre-search-form__icon,
  .nre-search-form__icon svg { width: 24px; height: 24px; }
  .nre-search-form input {
    font-size: 18px;
  }
  .nre-search-card,
  .nre-profile-card,
  .nre-weather-block__card {
    border-radius: 24px;
  }
  .nre-search-card {
    padding: 24px 18px;
  }
  .nre-search-card__title,
  .nre-weather-block h2 {
    font-size: 22px;
  }
  .nre-search-list a {
    min-height: 92px;
    font-size: 24px;
  }
  .nre-search-actions {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
  }
  .nre-button--large {
    min-height: 66px;
    padding-inline: 10px;
    font-size: 16px;
  }
  .nre-profile-card {
    grid-template-columns: 40px 1fr 24px;
    gap: 14px;
    padding: 24px 18px;
  }
  .nre-profile-card__body h3 { font-size: 28px; }
  .nre-profile-card__body p { font-size: 18px; }
  .nre-weather-block__card { padding: 22px 18px; }
  .nre-footer__inner,
  .nre-footer__links {
    flex-direction: column;
    align-items: flex-start;
  }
  .nre-footer__right {
    text-align: left;
  }
  .nre-card-grid { grid-template-columns: 1fr; }
  .nre-card,
  .nre-card--horizontal { grid-template-columns: 1fr; }
  .nre-card__title { font-size: 24px; }
  .nre-page-title,
  .nre-article-title { font-size: 34px; }
  .nre-page-description,
  .nre-article-subtitle { font-size: 18px; }
  .nre-entry-content,
  .nre-sidebar,
  .nre-empty,
  .comments-area { padding: 20px; }
}
