/* CyberLotse – hell, klar, ruhig */
:root {
  --navy: #002046;
  --navy-soft: #0a3358;
  --teal: #1BC6CE;
  --teal-dark: #17A8AF;
  --teal-soft: #e4f9fa;
  --teal-line: #a8e8eb;
  --teal-mid: #5dd4da;
  --sand: #f4f8fb;
  --line: #d7e3ee;
  --text: #002046;
  --muted: #4a6278;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(0, 32, 70, 0.08);
  --radius: 18px;
  --page-width: 970px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d5f6f7 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e8f1fa 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--sand) 100%);
  min-height: 100vh;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

.wrap {
  width: min(var(--page-width), calc(100% - 2rem));
  margin-inline: auto;
}

.page-frame {
  width: min(var(--page-width), calc(100% - 1.25rem));
  margin: 1.25rem auto 2rem;
  background: var(--white);
  border: 2px solid #9eb6c9;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(0, 32, 70, 0.04),
    0 18px 50px rgba(0, 32, 70, 0.12);
  overflow: hidden;
}

.page-frame .wrap {
  width: 100%;
  padding-inline: clamp(1.15rem, 3.2vw, 2rem);
}

body.is-public {
  background:
    radial-gradient(1200px 600px at 10% -10%, #d5f6f7 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e8f1fa 0%, transparent 50%),
    linear-gradient(180deg, #e7eef4 0%, #dfe8f0 100%);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  body.is-public {
    min-height: 100dvh;
    overscroll-behavior-y: contain;
  }
}

.pwa-refresh-row {
  display: none;
  margin: 0.85rem 0 0;
}
.pwa-refresh-btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--teal);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  min-height: 44px;
  cursor: pointer;
}
.pwa-refresh-btn:hover,
.pwa-refresh-btn:focus-visible {
  background: var(--teal-soft);
}
@media (max-width: 720px), (display-mode: standalone), (display-mode: fullscreen) {
  .pwa-refresh-row {
    display: block;
  }
}

.ptr-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 1rem 0.7rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 32, 70, 0.08);
  transform: translateY(-110%);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.ptr-bar.is-visible {
  transform: translateY(0);
}
.ptr-bar.is-ready {
  color: var(--teal-dark);
}

/* Hero – eine klare Komposition */
.hero {
  padding: 2.5rem 0 1.5rem;
  animation: rise 0.7s ease both;
}

.hero-inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.brand-logo {
  width: min(460px, 92vw);
  height: auto;
  object-fit: contain;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.hero h1 span { color: var(--teal); }

.hero-copy {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}

.hero p.lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-accent {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-mid));
  animation: grow 0.9s 0.2s ease both;
}

.home-block {
  padding-top: 1.65rem;
}
.home-block::before {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-mid));
  justify-self: center;
}

/* Articles gallery */
.section {
  padding: 1.5rem 0 2.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.section-head p a,
.band .intro a,
.hero p.lead a,
.feed-page-intro a {
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}
.section-head p a:hover,
.band .intro a:hover,
.hero p.lead a:hover,
.feed-page-intro a:hover {
  color: var(--teal);
  text-decoration: none;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.article-tile,
.article-tile {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  height: 100%;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.6s ease both;
}

.article-tile:hover,
.article-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 32, 70, 0.12);
  color: inherit;
}

.article-tile:nth-child(2),
.article-tile:nth-child(2) { animation-delay: 0.08s; }
.article-tile:nth-child(3),
.article-tile:nth-child(3) { animation-delay: 0.16s; }
.article-tile:nth-child(4),
.article-tile:nth-child(4) { animation-delay: 0.24s; }
.article-tile:nth-child(5),
.article-tile:nth-child(5) { animation-delay: 0.32s; }
.article-tile:nth-child(6),
.article-tile:nth-child(6) { animation-delay: 0.4s; }

.gallery[data-article-more] .article-tile:nth-child(n+5) {
  display: none;
}
.gallery[data-article-more].is-ready .article-tile {
  display: none;
}
.gallery[data-article-more].is-ready .article-tile.is-visible {
  display: grid;
  grid-template-rows: auto 1fr;
}

.article-more-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}
.article-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}
.article-more-btn:hover {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--navy);
}
.article-more-wrap[hidden] {
  display: none;
}

.article-tile .thumb,
.article-tile .thumb {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
  align-self: start;
  min-width: 0;
  background: var(--teal-soft);
  overflow: hidden;
}

.article-tile .thumb img,
.article-tile .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-tile:hover .thumb img,
.article-tile:hover .thumb img { transform: scale(1.04); }

.article-tile .meta,
.article-tile .meta {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
}

.article-tile h3,
.article-tile h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin: 0;
  color: var(--navy);
}

.article-tile .excerpt,
.article-tile .excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-tile .more,
.article-tile .more {
  margin-top: auto;
  padding-top: 0.35rem;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.92rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--teal-line);
}
.pager-btn:hover { background: #c8f3f5; color: var(--navy); }
.pager-status {
  font-weight: 700;
  color: var(--muted);
}

.empty-state {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}
.empty-state[hidden] {
  display: none !important;
}

/* Article detail */
.article-top {
  padding: 1.35rem 0 0.25rem;
  text-align: center;
}
.article-brand {
  display: inline-block;
  text-decoration: none;
}
.article-brand img {
  width: min(280px, 72vw);
  height: auto;
  object-fit: contain;
}
.article-top .hero-accent {
  margin: 0.7rem auto 0;
}

.article-page {
  padding: 0.5rem 0 3rem;
  animation: rise 0.55s ease both;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.back-link:hover { color: var(--teal); }

.article-stage {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

.article-main {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  box-shadow: var(--shadow);
}

.article-hero-img {
  width: 100%;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.article-hero-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.article-media {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}
.article-stage.has-related .article-related {
  width: 100%;
}

.article-copy {
  min-width: 0;
}

.article-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.35rem;
}

.article-copy .date {
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
}

.article-copy .body {
  font-size: 1.08rem;
  color: var(--navy-soft);
}

.article-copy .body p { margin: 0 0 1rem; }
.article-copy .body ul,
.article-copy .body ol { padding-left: 1.2rem; }
.article-copy .body li { margin-bottom: 0.4rem; }
.article-copy .body strong { color: var(--navy); }
.article-copy .body h1,
.article-copy .body h2,
.article-copy .body h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
  margin: 1.35rem 0 0.55rem;
}
.article-copy .body h1 { font-size: 1.55rem; }
.article-copy .body h2 { font-size: 1.32rem; }
.article-copy .body h3 { font-size: 1.14rem; }
.article-copy .body h1:first-child,
.article-copy .body h2:first-child,
.article-copy .body h3:first-child { margin-top: 0; }

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

.article-videos {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.35rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--line);
}
.article-videos .article-video {
  margin-top: 0;
}
.article-video {
  margin-top: 0.25rem;
}
.article-related {
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f7fbfc);
  border: 1px solid var(--line);
  min-width: 0;
}
.article-copy .article-related {
  margin-top: 1.15rem;
}
.article-related-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.55rem;
  color: var(--navy);
}
.article-related-title.is-follow {
  margin-top: 0.95rem;
}
.article-related ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-related a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  border: 1px solid var(--teal-line);
  transition: background 0.2s ease, transform 0.2s ease;
}
.article-related a:hover {
  background: #c8f3f5;
  color: var(--navy);
  transform: translateY(-1px);
}
.article-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #000;
}

@media (min-width: 1025px) {
  :root {
    --page-width: 1000px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .gallery[data-article-more] .article-tile:nth-child(-n+6) {
    display: grid;
  }
  .gallery[data-article-more] .article-tile:nth-child(n+7) {
    display: none;
  }
  .article-tile h3,
  .article-tile h3 {
    font-size: 1.12rem;
  }
  .article-main {
    padding: 1.6rem 1.7rem 1.7rem;
  }
  .article-hero-img {
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .article-stage.has-related .article-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
  .article-stage.has-related .article-related {
    box-shadow: var(--shadow);
  }
}

/* Contact + Partners */
.bands {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.band {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}

.band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.band .intro {
  margin: 0 0 1rem;
  color: var(--muted);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--teal-line);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-list a:hover {
  background: #c8f3f5;
  transform: translateY(-1px);
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.topic-link {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  min-height: 96px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--teal-line);
  border-radius: 14px;
  background: var(--teal-soft);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.topic-link.has-icon {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
}
.topic-link-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--teal-line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.topic-link-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.3rem;
}
.topic-link-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.topic-link strong {
  font-family: var(--font-display);
  color: var(--navy);
}
.topic-link-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}
.topic-link:hover {
  background: #c8f3f5;
  color: inherit;
  transform: translateY(-1px);
}
.topic-link:hover strong { color: var(--navy); }
.topic-link.is-static {
  cursor: default;
}
.topic-link.is-static:hover {
  background: var(--teal-soft);
  transform: none;
}

.video-gallery-section {
  padding-top: 0.25rem;
}
.video-carousel {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) 2.1rem;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 0.65rem 1.15rem;
}
.video-carousel:has([data-carousel-prev][hidden]) {
  grid-template-columns: minmax(0, 1fr);
  padding-inline: 1rem;
}
.video-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.05rem 0.1rem 0.15rem;
}
.video-carousel-track::-webkit-scrollbar {
  display: none;
}
.video-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.video-slide-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #001427;
}
.video-slide-media img,
.video-slide-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.video-slide-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 32, 70, 0.28);
  cursor: pointer;
}
.video-slide-play span {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(0, 32, 70, 0.22);
  position: relative;
}
.video-slide-play span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}
.video-slide-play:hover span {
  background: var(--teal-dark);
}
.video-slide-title {
  margin: 0;
  padding: 0.65rem 0.8rem 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.3;
}
.video-carousel-btn {
  width: 2.05rem;
  height: 2.05rem;
  padding: 0;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.7;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.video-carousel-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}
.video-carousel-btn:hover {
  opacity: 1;
  background: var(--teal-soft);
  transform: scale(1.06);
}
.video-carousel-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  opacity: 1;
}
.video-carousel-btn:disabled {
  opacity: 0.22;
  cursor: default;
  transform: none;
  background: transparent;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer strong { color: var(--navy); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }

/* Legal pages */
.legal-page {
  padding: 0.5rem 0 2.5rem;
}
.legal-copy {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.85rem);
  box-shadow: var(--shadow);
}
.legal-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.85rem;
}
.legal-copy h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.4rem 0 0.4rem;
}
.legal-copy p {
  margin: 0 0 0.85rem;
  color: var(--navy-soft);
}

.feed-page {
  padding: 0.35rem 0 2.2rem;
}
.feed-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.2rem);
  margin: 0 0 0.55rem;
  line-height: 1.2;
}
.feed-page-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}
.feed-list-page .feed-card {
  padding: 1.1rem 1.15rem 1.15rem;
}
.feed-list-page .feed-card-title {
  font-size: 1.22rem;
}
.feed-list-page .feed-list-meta {
  font-size: 0.95rem;
}
.feed-list-page .feed-list-summary {
  font-size: 1.08rem;
  line-height: 1.5;
}
.feed-list-page .feed-dest {
  font-size: 1rem;
}

.video-stack {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.35rem;
}
.video-entry {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: var(--shadow);
}
.video-entry h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 700;
  margin: 0;
  color: var(--navy);
  line-height: 1.3;
}
.video-entry-player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #001427;
}
.video-entry-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-entry .feed-dest {
  font-size: 1rem;
}

/* Bottom notice */
.notice-banner {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: max(1rem, calc(0.5rem + env(safe-area-inset-bottom, 0px)));
  width: min(640px, calc(100% - 1.4rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 32, 70, 0.28);
  transform: translate(-50%, calc(100% + 1.5rem));
  transition: transform 0.32s ease;
}
.notice-banner.is-open {
  transform: translate(-50%, 0);
}
.notice-banner[hidden] {
  display: none !important;
}
.notice-banner p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}
.notice-banner a {
  color: #fff;
}
.notice-banner .btn {
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .notice-banner {
    flex-wrap: wrap;
    text-align: left;
  }
}

/* Admin */
.admin-body {
  background: linear-gradient(180deg, #f7fbfc, #eef5f9);
  min-height: 100vh;
}

.admin-body .wrap {
  width: min(1100px, calc(100% - 2rem));
}

.admin-bar {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 0;
}

.admin-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-bar a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  font-weight: 600;
}

.admin-bar a:hover { opacity: 1; color: var(--teal); }

.admin-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-main {
  padding: 1.75rem 0 3rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.panel h1, .panel h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.stat {
  background: var(--teal-soft);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--teal-line);
}

.stat .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.stat .lbl { color: var(--muted); font-size: 0.92rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: #eef3f7; color: var(--navy); }
.btn-danger { background: #fde8e8; color: #9b1c1c; }

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table th { color: var(--muted); font-weight: 700; font-size: 0.88rem; }

.sort-hint {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.sort-status { font-weight: 700; color: var(--teal); margin-left: 0.35rem; }
.sort-col { width: 2.6rem; cursor: grab; vertical-align: middle; }
.sort-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 8px;
  background: #eef3f7;
  color: var(--muted);
  font-size: 1.15rem;
  letter-spacing: -0.12em;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.sort-handle:active,
body.is-sorting .sort-handle { cursor: grabbing; }
body.is-sorting { cursor: grabbing; user-select: none; }
.table tr.is-dragging {
  opacity: 0.55;
  background: var(--teal-soft);
}
.table.js-sortable tbody tr[data-id]:hover { background: #f7fbfc; }

.home-section-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
.home-section-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.home-section-card.is-dragging {
  opacity: 0.55;
  background: var(--teal-soft);
}
.home-section-card .sort-handle {
  margin-top: 0.15rem;
}
.home-section-card-body {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}
.home-section-card-body label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--navy);
}
.home-section-card-body input[type="text"],
.home-section-card-body textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 400;
}
.home-section-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.home-section-card-head strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.home-section-card-head .check-row {
  font-weight: 700;
  color: var(--muted);
}
.home-section-manage {
  margin: 0;
}
.home-section-manage a {
  font-weight: 700;
  text-decoration: none;
}
.home-section-manage a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-published { background: var(--teal-soft); color: var(--teal); }
.badge-draft { background: #eef3f7; color: var(--muted); }

.form-grid { display: grid; gap: 1rem; }
.form-grid label { display: grid; gap: 0.35rem; font-weight: 700; color: var(--navy); }
.form-grid input[type="text"],
.form-grid input[type="password"],
.form-grid input[type="url"],
.form-grid input[type="number"],
.form-grid input[type="file"],
.form-grid select,
.form-grid textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.form-grid input[type="number"] {
  width: 100%;
  min-height: 2.85rem;
  box-sizing: border-box;
}

.form-grid textarea { min-height: 220px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }

.article-links-editor,
.article-videos-editor {
  display: grid;
  gap: 0.65rem;
}
.article-links-editor > p,
.article-videos-editor > p {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}
.article-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.35fr) auto;
  gap: 0.5rem;
  align-items: center;
}
.article-video-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}
.article-link-row input,
.article-link-row select,
.article-video-row input {
  width: 100%;
  min-width: 0;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.article-link-row .js-link-remove,
.article-video-row .js-video-remove {
  min-width: 2.4rem;
  padding: 0.55rem 0.7rem;
  font-size: 1.2rem;
  line-height: 1;
}
@media (max-width: 800px) {
  .article-link-row,
  .article-video-row {
    grid-template-columns: 1fr;
  }
}

.check-row {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--navy);
}
.check-row input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.6rem;
  box-shadow: var(--shadow);
  text-align: center;
  display: grid;
  justify-items: stretch;
}

.login-card img {
  width: min(240px, 80%);
  height: auto;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}
.login-card .hero-accent {
  margin: 0 auto 1rem;
}
.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
  text-align: center;
}
.login-card .flash {
  text-align: left;
}
.login-card form {
  width: 100%;
  text-align: left;
}
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
}
.login-card .btn {
  width: 100%;
}
.login-back {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.flash-ok { background: var(--teal-soft); color: var(--navy); }
.flash-err { background: #fde8e8; color: #9b1c1c; }

.preview-img,
.preview-img {
  width: 140px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.preview-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.3rem;
}
.table-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  vertical-align: middle;
  margin-right: 0.45rem;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}
.field-hint code {
  font-size: 0.86em;
  word-break: break-word;
}

.tox-tinymce { border-radius: 12px !important; border-color: var(--line) !important; }

.editor-box { position: relative; z-index: 1; }
.form-grid .after-editor { position: relative; z-index: 2; }
.editor-box .ql-toolbar.ql-snow {
  border-radius: 12px 12px 0 0;
  border-color: var(--line);
}
.editor-box .ql-container.ql-snow {
  height: auto !important;
  min-height: 280px;
  overflow: hidden;
  border-color: var(--line);
  border-radius: 0 0 12px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  background: #fff;
}
.editor-box .ql-editor { min-height: 260px; }
.editor-box .ql-editor h1,
.editor-box .ql-editor h2,
.editor-box .ql-editor h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
  margin: 0.9rem 0 0.45rem;
}
.editor-box .ql-editor h1 { font-size: 1.55rem; }
.editor-box .ql-editor h2 { font-size: 1.28rem; }
.editor-box .ql-editor h3 { font-size: 1.1rem; }
.editor-box .ql-snow.ql-toolbar button.ql-header,
.editor-box .ql-snow.ql-toolbar button.ql-html {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.editor-box .ql-snow.ql-toolbar button.ql-header {
  width: 2.15rem;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--navy);
}
.editor-box .ql-snow.ql-toolbar button.ql-header svg,
.editor-box .ql-snow.ql-toolbar button.ql-html svg {
  display: none;
}
.editor-box .ql-snow.ql-toolbar button.ql-header::before {
  content: "H" attr(value);
}
.editor-box .ql-snow.ql-toolbar button.ql-header.ql-active {
  color: var(--teal);
}
.editor-box .ql-snow.ql-toolbar button.ql-html {
  width: 2.35rem;
}
.editor-box .ql-snow.ql-toolbar button.ql-html::before {
  content: "</>";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy);
}
.editor-box.is-html-mode .ql-snow.ql-toolbar button.ql-html::before,
.editor-box .ql-snow.ql-toolbar button.ql-html.ql-active::before {
  color: var(--teal);
}
.editor-box .html-source {
  display: none;
  width: 100%;
  min-height: 280px;
  margin: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 0.9rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--navy);
  background: #f7fbfc;
  resize: vertical;
}
.editor-box.is-html-mode .ql-container { display: none; }
.editor-box.is-html-mode .html-source { display: block; }
.editor-box.is-html-mode .ql-toolbar .ql-formats:not(.ql-html-format) {
  opacity: 0.38;
  pointer-events: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes grow {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* Feed ticker */
.feed-ticker {
  background: linear-gradient(90deg, #00152e 0%, var(--navy) 42%, #06325a 100%);
  color: #fff;
  border-bottom: 3px solid var(--teal);
}
.feed-ticker-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  padding: 0.45rem 0.85rem;
}
.feed-ticker-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.feed-ticker-badge:hover { color: var(--navy); background: #7fe7ec; }
.feed-ticker-viewport {
  overflow: hidden;
  min-width: 0;
  height: 1.45rem;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.feed-ticker-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.8rem;
  width: max-content;
  height: 1.45rem;
}
.feed-ticker.is-animated .feed-ticker-track {
  animation: feed-ticker-scroll 42s linear infinite;
}
.feed-ticker:hover .feed-ticker-track {
  animation-play-state: paused;
}
.feed-ticker-item {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.feed-ticker-item:hover { color: var(--teal); }
.feed-ticker-date {
  color: var(--teal);
  font-weight: 800;
  margin-right: 0.45rem;
}
.feed-ticker-src {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.feed-ticker-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.feed-ticker-rss,
.feed-ticker-push {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.feed-ticker-rss:hover,
.feed-ticker-push:hover,
.feed-ticker-push.is-on {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}
.feed-ticker-push:disabled { opacity: 0.6; cursor: wait; }

@keyframes feed-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.feed-section { padding-top: 1.15rem; }
.feed-rss-link {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.feed-rss-link:hover { background: var(--teal-soft); color: var(--navy); }
.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
  align-items: stretch;
}
.feed-list-home {
  grid-template-columns: 1fr 1fr;
}
.feed-date-short {
  display: none;
}
@media (min-width: 1025px) {
  .feed-list-home {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.feed-list-page {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.feed-list li,
.feed-card {
  margin: 0;
  min-width: 0;
}
.feed-card[hidden] {
  display: none !important;
}
.feed-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.45rem;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feed-card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  color: transparent !important;
  background: transparent;
  text-decoration: none !important;
}
.feed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 32, 70, 0.12);
}
.feed-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 0.55rem;
}
.feed-card-title {
  flex: 1 1 10rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  text-decoration: none;
}
.feed-card-title:hover {
  color: var(--navy);
  text-decoration: none;
}
.feed-source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.2;
  word-break: break-word;
}
.feed-source-btn:hover {
  background: var(--teal-dark);
  color: #fff;
}
.feed-list-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.feed-list-summary {
  color: var(--muted);
  font-size: 0.95rem;
}
.feed-card.is-compact .feed-list-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-dest {
  display: inline-block;
  align-self: start;
  margin-top: auto;
  padding-top: 0.35rem;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.92rem;
  text-decoration: none;
  line-height: 1.3;
}
.feed-dest:hover {
  color: var(--teal);
  text-decoration: none;
}
.feed-more-row,
.feed-subscribe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.35rem 0 1.9rem;
}
.feed-page .feed-subscribe-row {
  margin-bottom: 1.1rem;
}
.feed-subscribe-row .btn {
  font-size: 1.12rem;
  padding: 0.78rem 1.3rem;
}
.feed-more-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}
.feed-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.feed-more-btn:hover {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--navy);
}
.feed-push-status {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.feed-push-status.is-error { color: #9b1c1c; }

.feed-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 1.1rem 0 0;
}
.feed-pager[hidden] {
  display: none !important;
}
.feed-pager a,
.feed-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  background: #fff;
}
.feed-pager a:hover {
  background: var(--teal-soft);
  color: var(--navy);
}
.feed-pager .is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.feed-pager .is-off {
  opacity: 0.4;
}

.feed-search-wrap {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
  max-width: 32rem;
  font-weight: 700;
  color: var(--navy);
}
.feed-page .feed-search-wrap {
  margin: 0 0 1.15rem;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.feed-search-wrap input[type="search"] {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.feed-page .feed-search-wrap input[type="search"] {
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.78rem 0.95rem;
  border-radius: 14px;
}
.feed-admin-excerpt {
  color: var(--muted);
  font-size: 0.92rem;
}

#feed-items {
  scroll-margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .feed-ticker.is-animated .feed-ticker-track { animation: none; }
}

@media (max-width: 720px) {
  .feed-ticker-inner {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.5rem 0.7rem 0.55rem;
  }
}

@media (max-width: 1024px) {
  .article-tile .thumb,
  .article-tile .thumb {
    width: 100%;
  }
  .article-tile .meta,
  .article-tile .meta {
    padding: 0.85rem 0.9rem 1rem;
  }
  .article-tile h3,
  .article-tile h3 {
    font-size: 1.12rem;
  }
}

@media (max-width: 720px) {
  .page-frame {
    width: calc(100% - 0.9rem);
    margin: 0.55rem auto 1.1rem;
    border-radius: 16px;
  }
  .gallery,
  .feed-list { grid-template-columns: 1fr; }
  .article-tile {
    padding: 2px;
  }
  .article-tile .thumb {
    border-radius: calc(var(--radius) - 2px);
  }
  .feed-page {
    padding: 0.15rem 0 1.6rem;
  }
  .feed-page .wrap {
    padding-inline: 0.85rem;
  }
  .feed-page .back-link {
    font-size: 1.05rem;
  }
  .feed-list-page {
    gap: 0.75rem;
  }
  .feed-section {
    padding-top: 0.65rem;
  }
  .feed-section .section-head p {
    display: none;
  }
  .feed-list-home {
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(180deg, #00152e 0%, var(--navy) 55%, #06325a 100%);
  }
  .feed-list-home .feed-card,
  .feed-list-home .feed-card.is-compact {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.65rem;
    height: auto;
    padding: 0.42rem 0.8rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    box-shadow: none;
    grid-template-rows: none;
  }
  .feed-list-home .feed-card:last-child {
    border-bottom: 0;
  }
  .feed-list-home .feed-card:hover {
    transform: none;
    box-shadow: none;
  }
  .feed-list-home .feed-list-meta {
    color: var(--teal);
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 800;
  }
  .feed-list-home .feed-date-full {
    display: none;
  }
  .feed-list-home .feed-date-short {
    display: inline;
  }
  .feed-list-home .feed-list-source,
  .feed-list-home .feed-list-summary,
  .feed-list-home .feed-card.is-compact .feed-list-summary,
  .feed-list-home .feed-dest {
    display: none;
  }
  .feed-list-home .feed-card-head {
    min-width: 0;
    flex: 1;
  }
  .feed-list-home .feed-card-title {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .feed-list-home .feed-card-title:hover {
    color: var(--teal);
    text-decoration: none;
  }
  .feed-more-wrap {
    margin-top: 0.75rem;
  }
}

@media (min-width: 721px) {
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }
  .video-slide {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .table { font-size: 0.92rem; }
}

.brand-preview-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.15rem;
}
.brand-preview-item {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  text-align: center;
}
.brand-preview-item img {
  max-height: 64px;
  width: auto;
  margin: 0 auto 0.55rem;
  object-fit: contain;
}
.brand-preview-item.is-square img {
  width: 72px;
  height: 72px;
  max-height: none;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.brand-preview-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
