:root {
  --text: #241f1c;
  --muted: #665d53;
  --paper: #f7f3eb;
  --surface: #ffffff;
  --line: #dfd4c3;
  --red: #8d1b2d;
  --red-dark: #5d1320;
  --gold: #c1933f;
  --gold-soft: #ead9b3;
  --green: #2d6659;
  --ink: #181514;
  --shadow: 0 24px 70px rgba(39, 30, 22, 0.12);
  --font-sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-logo: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif;
  --logo-blue: #214fbd;
  --logo-cyan: #20bed6;
  --logo-lime: #d8f21c;
  --logo-red: #e31b23;
  --logo-magenta: #c73394;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(112deg, rgba(33, 79, 189, 0.18) 0 7vw, rgba(32, 190, 214, 0.11) 7vw 14vw, transparent 14vw 100%),
    linear-gradient(248deg, rgba(199, 51, 148, 0.16) 0 8vw, rgba(227, 27, 35, 0.08) 8vw 15vw, transparent 15vw 100%),
    linear-gradient(138deg, transparent 0 56%, rgba(199, 51, 148, 0.1) 56% 64%, transparent 64% 100%),
    linear-gradient(24deg, transparent 0 68%, rgba(32, 190, 214, 0.13) 68% 77%, transparent 77% 100%),
    linear-gradient(172deg, transparent 0 80%, rgba(227, 27, 35, 0.075) 80% 88%, transparent 88% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.58) 22%, rgba(255, 255, 255, 0.58) 78%, rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 420px),
    var(--paper);
  background-attachment: fixed;
  font-family: var(--font-sans);
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px max(26px, calc((100vw - 1360px) / 2 + 26px));
  background: rgba(247, 243, 235, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 86px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--red);
  border-color: var(--gold);
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.nav-socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-socials a:hover {
  color: var(--red);
  border-color: var(--gold);
}

.nav-socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--red);
  font-size: 24px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(34px, 5vw, 88px);
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 26px 18px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--logo-blue), var(--logo-cyan), var(--logo-lime), var(--logo-red), var(--logo-magenta));
  opacity: 0.28;
}

.hero-media {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(141, 27, 45, 0.18);
}

.hero-media img {
  width: min(320px, 78%);
  filter: drop-shadow(0 24px 34px rgba(55, 39, 25, 0.15));
}

.hero-media::before {
  content: none;
}

.hero-media::after {
  content: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-family: var(--font-logo);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
  margin: 14px 0 10px;
}

.color-rhythm {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.35fr 0.75fr 1fr;
  gap: 10px;
  max-width: 1360px;
  margin: 34px auto 0;
  padding: 0 26px;
  outline: 0;
}

.color-rhythm::after {
  content: "ΠΟΛΙΤΙΣΜΟΣ ΣΤΗΝ ΚΑΡΔΙΑ ΤΗΣ ΠΟΛΗΣ";
  position: absolute;
  inset: 0 26px;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(24, 21, 20, 0.72);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.color-rhythm:hover::after,
.color-rhythm:focus::after,
.color-rhythm:focus-visible::after,
.color-rhythm.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.color-rhythm span {
  display: block;
  height: 28px;
  transform: skewX(-15deg);
  box-shadow: 0 10px 24px rgba(39, 30, 22, 0.08);
}

.color-rhythm span:nth-child(1) {
  background: linear-gradient(90deg, var(--logo-blue), #6989dd);
}

.color-rhythm span:nth-child(2) {
  background: linear-gradient(90deg, var(--logo-lime), #7bd9b7);
}

.color-rhythm span:nth-child(3) {
  background: linear-gradient(90deg, var(--logo-red), #ffc14d);
}

.color-rhythm span:nth-child(4) {
  background: linear-gradient(90deg, #f07ab8, var(--logo-magenta));
}

.color-rhythm span:nth-child(5) {
  background: linear-gradient(90deg, var(--logo-cyan), #8debc7);
}

.section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px 26px 72px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.12;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.spotlight-article {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  margin-bottom: 24px;
  background:
    linear-gradient(135deg, rgba(32, 190, 214, 0.08), rgba(199, 51, 148, 0.07)),
    rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid rgba(223, 212, 195, 0.9);
  box-shadow: 0 18px 48px rgba(30, 24, 18, 0.09);
}

.spotlight-image {
  display: block;
  min-height: 330px;
  overflow: hidden;
  background: #241f1c;
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.spotlight-article:hover .spotlight-image img {
  transform: scale(1.025);
}

.spotlight-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.spotlight-content h2 {
  margin: 10px 0 16px;
  font-family: var(--font-serif);
  font-size: 29px;
  line-height: 1.18;
}

.spotlight-content h2 a {
  color: var(--text);
  text-decoration: none;
}

.spotlight-content p {
  display: -webkit-box;
  max-width: 680px;
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spotlight-content .button {
  align-self: flex-start;
  margin-top: 10px;
  background: var(--red);
  color: #fff;
}

.article-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(30, 24, 18, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.article-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee8dc;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.03);
}

.article-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 17px;
}

.article-meta {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.article-card h2 {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.28;
}

.article-card h2 a {
  text-decoration: none;
}

.article-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card .button {
  margin-top: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: var(--red-dark);
}

.button.secondary {
  background: var(--green);
}

.page-title {
  max-width: 1360px;
  margin: 0 auto;
  padding: 58px 26px 22px;
}

.content-page,
.article-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 26px 82px;
}

.content-box {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 42px;
  box-shadow: 0 18px 48px rgba(30, 24, 18, 0.07);
}

.content-box h2,
.content-box h3,
.article-page h2,
.article-page h3 {
  color: var(--red);
}

.content-box > h2:first-child {
  margin-top: 0;
}

.content-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.content-box li {
  padding: 20px;
  background: #faf7f0;
  border: 1px solid var(--line);
}

.content-box li h3 {
  margin: 0 0 8px;
}

.content-box li div {
  color: var(--muted);
}

.about-page,
.board-page {
  max-width: 1360px;
  padding-top: 38px;
}

.about-page .content-box,
.board-page .content-box {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 0;
  box-shadow: none;
}

.about-page .content-box > h2:first-child,
.board-page .content-box > h2:first-child {
  width: min(640px, 100%);
  margin: 0 auto 36px;
  padding-bottom: 16px;
  position: relative;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}

.about-page .content-box > h2:first-child::after,
.board-page .content-box > h2:first-child::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--logo-blue), var(--logo-cyan), var(--logo-lime), var(--logo-red), var(--logo-magenta));
}

.about-page .content-box ul,
.board-page .content-box ul {
  gap: 46px 64px;
  margin: 0 0 42px;
}

.about-page .content-box li,
.board-page .content-box li {
  position: relative;
  padding: 0 0 0 28px;
  background: transparent;
  border: 0;
}

.about-page .content-box li::before,
.board-page .content-box li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 7px;
  height: 25px;
  background: var(--logo-red);
}

.about-page .content-box li:nth-child(2)::before {
  background: var(--logo-cyan);
}

.about-page .content-box li:nth-child(3)::before {
  background: var(--logo-magenta);
}

.about-page .content-box li:nth-child(4)::before {
  background: var(--logo-blue);
}

.board-page .content-box li:nth-child(2n)::before {
  background: var(--logo-cyan);
}

.board-page .content-box li:nth-child(3n)::before {
  background: var(--logo-magenta);
}

.board-page .content-box li:nth-child(4n)::before {
  background: var(--logo-blue);
}

.board-page .content-box li:nth-child(5n)::before {
  background: var(--logo-lime);
}

.about-page .content-box li h3,
.board-page .content-box li h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 700;
}

.board-page .content-box li {
  color: #6c7074;
  font-size: 16px;
  line-height: 1.62;
}

.about-page .content-box li div,
.board-page .content-box li div {
  color: #6c7074;
  font-size: 16px;
  line-height: 1.62;
}

.about-page .content-box li div {
  text-align: justify;
}

.about-page .content-box > h2:not(:first-child) {
  margin: 10px -42px -42px;
  min-height: 190px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(33, 79, 189, 0.86);
  font-family: var(--font-sans);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.about-page .content-box > h2:not(:first-child) br {
  display: none;
}

.about-page .content-box > p:last-child {
  display: none;
}

.contact-page {
  max-width: 900px;
  padding-top: 54px;
  padding-bottom: 82px;
}

.contact-panel {
  padding: 40px 30px 34px;
  background: rgba(255, 255, 255, 0.88);
}

.contact-panel h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 0 42px;
  color: #2e3339;
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.7vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}

.contact-panel h1 span {
  flex: 0 0 auto;
  width: 10px;
  height: 32px;
  background: #f0444f;
}

.contact-lines {
  display: grid;
  gap: 18px;
  width: min(510px, 100%);
  margin: 0 auto 42px;
}

.contact-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  color: #ff3f48;
  font-size: clamp(18px, 1.75vw, 24px);
  line-height: 1.25;
  text-decoration: none;
}

.contact-line svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.contact-socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #f0444f;
}

.contact-socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.article-hero-image {
  margin: 18px 0 28px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee8dc;
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: 17px;
  max-width: 940px;
}

.article-page h1 {
  max-width: 980px;
  font-size: 32px;
  line-height: 1.22;
  font-weight: 700;
}

.article-body iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.article-videos {
  display: grid;
  gap: 20px;
  max-width: 940px;
  margin: 34px 0;
}

.article-videos iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: #181514;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 940px;
  margin: 34px 0 0;
}

.article-gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee8dc;
}

.article-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.article-gallery a:hover img {
  transform: scale(1.03);
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 940px;
  margin: 42px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-nav-link {
  display: grid;
  gap: 8px;
  min-height: 106px;
  padding: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-nav-link:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.article-nav-link span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.article-nav-link strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-nav-link.next {
  text-align: right;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
}

.pagination .current {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 1.35fr);
  gap: 30px;
  padding: 50px max(26px, calc((100vw - 1360px) / 2 + 26px));
  background: #e9e1d3;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  width: 170px;
  margin: 0 auto 14px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(36, 31, 28, 0.12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 0 26px 24px;
  background: #e9e1d3;
}

.legal-strip a,
.legal-strip button {
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 13px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.legal-strip a:hover,
.legal-strip button:hover {
  color: var(--red);
}

.to-top {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.to-top:hover {
  color: #fff;
  background: var(--red);
}

.to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(24, 21, 20, 0.18);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
}

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

.cookie-banner a {
  display: inline-block;
  margin-top: 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.cookie-actions button,
.cookie-modal-actions button,
.youtube-consent button {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--red);
  background: #fff;
  border: 1px solid var(--red);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-actions button:last-child,
.cookie-modal-actions button:last-child,
.youtube-consent button {
  color: #fff;
  background: var(--red);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(24, 21, 20, 0.42);
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(24, 21, 20, 0.24);
}

.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal h2 {
  margin: 0 42px 8px 0;
  font-family: var(--font-sans);
  font-size: 28px;
}

.cookie-modal p,
.cookie-option small,
.cookie-modal-note {
  color: var(--muted);
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #faf7f1;
  border: 1px solid var(--line);
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option strong {
  margin-bottom: 3px;
  color: var(--text);
}

.cookie-option input {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}

.cookie-option.is-required {
  background: #f2eadb;
}

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

.cookie-modal-note {
  margin: 16px 0 0;
  font-size: 14px;
}

.youtube-consent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 220px;
  margin: 24px 0;
  padding: 24px;
  background:
    linear-gradient(130deg, rgba(33, 79, 189, 0.16), rgba(32, 190, 214, 0.1) 42%, rgba(199, 51, 148, 0.12)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.youtube-consent p {
  margin: 6px 0 0;
}

.youtube-consent.is-loaded {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.youtube-consent iframe,
.article-videos iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.legal-page .content-box {
  background: rgba(255, 255, 255, 0.86);
}

.legal-page h1 {
  margin: 0 0 28px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 34px;
}

.legal-page h2 {
  margin: 26px 0 8px;
  color: var(--red);
  font-family: var(--font-sans);
  font-size: 22px;
}

.legal-page p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.legal-page a {
  color: var(--red);
  font-weight: 700;
}

.legal-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-table {
  width: 100%;
  margin: 18px 0 24px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.74);
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--text);
  background: #f2eadb;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 360px;
    padding-top: 46px;
  }

  h1 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .hero,
  .spotlight-article,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
  }

  .hero-media {
    min-height: 300px;
    border-left: 0;
  }

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

  .spotlight-image {
    min-height: 300px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .content-box ul {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 30px;
  }

  .section-head h2,
  .page-title h1,
  .article-page h1 {
    font-size: 30px;
  }

  .about-page .content-box > h2:not(:first-child) {
    font-size: 42px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .nav-socials {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    padding-top: 32px;
  }

  .color-rhythm {
    grid-template-columns: 1fr 0.8fr 1.1fr;
    gap: 8px;
    margin-top: 26px;
  }

  .color-rhythm span {
    height: 20px;
  }

  .color-rhythm span:nth-child(n + 4) {
    display: none;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

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

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

  .article-nav-link.next {
    text-align: left;
  }

  h1 {
    font-size: 28px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .spotlight-content {
    padding: 24px;
  }

  .spotlight-content h2 {
    font-size: 27px;
  }

  .content-box {
    padding: 26px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 18px;
  }

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

  .cookie-actions button {
    flex: 1 1 150px;
  }

  .cookie-modal {
    padding: 14px;
  }

  .cookie-modal-panel {
    padding: 22px 18px;
  }

  .cookie-modal-actions button {
    flex: 1 1 170px;
  }

  .cookie-option,
  .youtube-consent {
    grid-template-columns: 1fr;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }

  .contact-page {
    padding-top: 32px;
    padding-bottom: 70px;
  }

  .contact-panel {
    padding: 34px 20px;
  }

  .contact-panel h1 {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  .contact-panel h1 span {
    height: 32px;
  }

  .contact-line {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 22px;
  }

  .about-page,
  .board-page {
    padding-top: 24px;
  }

  .about-page .content-box > h2:first-child,
  .board-page .content-box > h2:first-child {
    margin-bottom: 28px;
    font-size: 26px;
  }

  .about-page .content-box ul,
  .board-page .content-box ul {
    gap: 30px;
    margin-bottom: 34px;
  }

  .about-page .content-box > h2:not(:first-child) {
    margin: 8px -26px -26px;
    min-height: 150px;
    font-size: 34px;
    white-space: normal;
  }
}
