:root {
  --bg: #efefea;
  --surface: #ffffff;
  --ink: #171719;
  --muted: #63656c;
  --line: #deded8;
  --red: #d8172f;
  --teal: #17786f;
  --blue: #285f91;
  --shadow: 0 16px 40px rgba(18, 22, 25, .08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  min-width: 190px;
}

.brand img {
  height: 54px;
  object-fit: contain;
  width: min(286px, 48vw);
}

.header-meta {
  align-items: flex-end;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 4px;
  line-height: 1.35;
  text-align: right;
}

.header-meta a,
.site-footer a {
  color: var(--blue);
  font-weight: 700;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.header-search {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  height: 38px;
  padding: 0 11px;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: min(260px, 32vw);
}

.header-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 95, 145, .12);
}

.header-search svg {
  color: var(--muted);
  flex: 0 0 auto;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.header-search input {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: 600 14px/1 "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.header-search input::placeholder {
  color: #8a8c92;
}

.icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.icon-link {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: relative;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  width: 38px;
}

.icon-link svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.icon-link:hover,
.icon-link:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.icon-link::after {
  background: var(--ink);
  border-radius: 5px;
  bottom: calc(100% + 8px);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 700;
  left: 50%;
  opacity: 0;
  padding: 6px 8px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 4px);
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
  z-index: 30;
}

.icon-link:hover::after,
.icon-link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

main {
  margin: 0 auto;
  max-width: 1220px;
  padding: 26px clamp(16px, 4vw, 48px) 44px;
}

.toolbar {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto;
  margin: 8px 0 24px;
}

.compact-toolbar {
  display: flex;
  justify-content: flex-end;
}

.search-box {
  display: grid;
  gap: 7px;
}

.search-box span,
.counter {
  color: var(--muted);
  font-size: 13px;
}

.search-box input {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 95, 145, .14);
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  min-height: 40px;
  padding: 0 14px;
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.counter {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.counter strong {
  color: var(--red);
  font-size: 20px;
}

.lead-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.featured {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
}

.featured-media,
.card-media {
  background: #ecece8;
  display: block;
  overflow: hidden;
}

.featured-media {
  aspect-ratio: 16 / 10;
  min-height: 260px;
}

.featured-media img,
.card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
  width: 100%;
}

.featured:hover img,
.article-card:hover .card-media img {
  transform: scale(1.025);
}

.featured-content {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 30px);
}

.article-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12.5px;
  gap: 10px;
  margin-bottom: 12px;
}

.article-meta span {
  color: var(--teal);
  font-weight: 700;
}

.featured h1,
.card-body h2 {
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0;
}

.featured h1 {
  font-size: clamp(23px, 2.35vw, 31px);
  font-weight: 800;
}

.featured p {
  color: #3c3d42;
  font-size: 15.5px;
  line-height: 1.58;
  margin: 14px 0 20px;
}

.featured .read-more {
  margin-top: auto;
  width: 100%;
}

.read-more {
  align-items: center;
  background: var(--red);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 0 16px;
}

.news-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  min-width: 0;
  position: relative;
}

.card-hitbox {
  border-radius: inherit;
  inset: 0;
  position: absolute;
  z-index: 1;
}

.article-card a:not(.card-hitbox) {
  position: relative;
  z-index: 2;
}

.article-card:focus-within {
  box-shadow: 0 0 0 3px rgba(40, 95, 145, .18);
}

.news-grid .article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
}

.card-media {
  aspect-ratio: 16 / 9;
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.card-body h2 {
  font-size: 18px;
  font-weight: 800;
}

.card-body p {
  color: #4f5157;
  font-size: 14.5px;
  line-height: 1.52;
  margin: 0;
}

.image-fallback {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(216, 23, 47, .12), transparent 38%),
    linear-gradient(315deg, rgba(23, 120, 111, .18), transparent 42%),
    #eeeeea;
  color: #707276;
  display: flex;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  min-height: 170px;
  text-transform: uppercase;
  width: 100%;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
}

.empty-state h1 {
  margin: 0 0 10px;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
}

.search-summary {
  margin: 4px 0 18px;
}

.search-summary h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  margin: 0 0 6px;
}

.search-summary p {
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: 18px clamp(16px, 4vw, 48px) 28px;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links button,
.inline-cookie-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font: 700 13px/1.2 "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  padding: 0;
}

[hidden] {
  display: none !important;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 28px 0 6px;
}

.pagination a,
.pagination span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  padding: 0 12px;
}

.pagination span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.article-layout {
  max-width: 1020px;
}

.single-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 54px);
}

.single-article h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
  line-height: 1.18;
  margin: 0 0 26px;
}

.article-content {
  color: #2e3034;
  font-size: 18px;
  line-height: 1.74;
  max-width: 860px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-fallback {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content strong,
.article-content b {
  color: var(--ink);
  font-weight: 800;
}

.article-content img,
.single-cover {
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 8px 0 24px;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.article-content p:first-child img:first-child {
  float: none !important;
  margin: 0 0 24px !important;
  width: 100% !important;
}

.article-content iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 22px 0;
  max-width: 100%;
  width: min(720px, 100%);
}

.article-content .fb-post,
.article-content .fb-video {
  margin: 22px 0;
  max-width: 100%;
}

.article-content iframe[src*="facebook.com"] {
  aspect-ratio: auto;
  min-height: 360px;
}

.article-content iframe[data-cookie-src],
.article-content .fb-post[data-cookie-provider],
.article-content .fb-video[data-cookie-provider] {
  display: none;
}

.cookie-consent-accepted .article-content iframe[data-cookie-src],
.cookie-consent-accepted .article-content .fb-post[data-cookie-provider],
.cookie-consent-accepted .article-content .fb-video[data-cookie-provider] {
  display: block;
}

.article-content blockquote {
  border-left: 4px solid var(--red);
  color: #44464b;
  margin: 24px 0;
  padding: 2px 0 2px 18px;
}

.source-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
}

.secondary-link {
  color: var(--blue);
  font-weight: 700;
}

.article-nav {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  padding-top: 22px;
}

.article-nav-card {
  background: #f7f7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.article-nav-card span {
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 800;
}

.article-nav-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.32;
}

.article-nav-card:hover {
  border-color: var(--blue);
}

.ad-slot {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.ad-banner {
  background: #f7f7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.ad-banner img {
  display: block;
  height: auto;
  width: 100%;
}

.page-layout {
  max-width: 920px;
}

.info-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
}

.info-page h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  margin: 0 0 24px;
}

.info-page h2 {
  font-size: 22px;
  margin: 28px 0 10px;
}

.info-page p {
  color: #34363b;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.info-page a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-cookie-button {
  background: var(--red);
  border-radius: 6px;
  color: #fff;
  min-height: 42px;
  padding: 0 16px;
}

.embed-consent {
  background: #f7f7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 18px;
}

.embed-consent strong {
  color: var(--ink);
  font-size: 18px;
}

.embed-consent span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.embed-consent button,
.cookie-button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: 800 14px/1 "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  min-height: 40px;
  padding: 0 14px;
}

.embed-consent button {
  background: var(--ink);
  color: #fff;
  justify-self: start;
}

.cookie-banner {
  align-items: center;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 18px 50px rgba(17, 20, 24, .18);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto;
  left: 50%;
  max-width: min(920px, calc(100vw - 28px));
  padding: 18px;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 100;
}

.cookie-copy {
  display: grid;
  gap: 6px;
}

.cookie-copy strong {
  font-size: 18px;
}

.cookie-copy p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
  margin: 0;
}

.cookie-copy a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-button.primary {
  background: var(--red);
  color: #fff;
}

.cookie-button.secondary {
  background: #f4f4f1;
  border: 1px solid var(--line);
  color: var(--ink);
}

.update-page {
  align-items: center;
  display: grid;
  padding: 24px;
}

.update-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: auto;
  max-width: 560px;
  padding: 30px;
  width: 100%;
}

.update-panel img {
  height: 52px;
  margin-bottom: 22px;
  object-fit: contain;
  width: 260px;
}

.update-panel h1 {
  margin: 0 0 18px;
}

.update-panel dl {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.update-panel dl div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 170px 1fr;
  padding: 0 0 10px;
}

.update-panel dt {
  color: var(--muted);
}

.update-panel dd {
  margin: 0;
}

@media (max-width: 900px) {
  .toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .counter {
    text-align: left;
  }

  .featured-media {
    min-height: 260px;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px 12px;
    position: static;
  }

  .brand img {
    height: auto;
    width: min(306px, 82vw);
  }

  .header-meta {
    align-items: center;
    gap: 6px;
    text-align: center;
    width: 100%;
  }

  .header-actions {
    align-items: center;
    flex-direction: column;
    gap: 7px;
    width: 100%;
  }

  .header-search {
    height: 36px;
    width: min(100%, 300px);
  }

  .icon-links {
    justify-content: center;
  }

  .icon-link {
    height: 34px;
    width: 34px;
  }

  .icon-link svg {
    height: 18px;
    width: 18px;
  }

  main {
    padding: 14px 14px 34px;
  }

  .featured h1 {
    font-size: 22px;
  }

  .lead-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 0;
  }

  .icon-link::after {
    content: none;
    display: none;
  }

  .featured p {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .featured-content {
    padding: 18px;
  }

  .read-more {
    min-height: 40px;
    padding: 0 13px;
  }

  .single-article h1 {
    font-size: 27px;
  }

  .article-content {
    font-size: 17px;
    line-height: 1.68;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .news-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .toolbar {
    margin: 2px 0 16px;
  }

  .counter strong {
    font-size: 18px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    align-items: stretch;
    bottom: 10px;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-button {
    flex: 1 1 140px;
  }

  .update-panel dl div {
    grid-template-columns: 1fr;
  }
}
