/* Leamington Tamil Sangam website.
   Colours come from the Sangam's logo: its red and gold, with banana-leaf green as a second
   accent. Baloo Thambi 2 sets the headings and Catamaran the text; both cover Tamil and
   English. */

:root {
  --red: #9e1b22;
  --red-dark: #761319;
  --gold: #d99a26;
  --gold-soft: #fbedcf;
  --green: #1f6b45;
  --ink: #2b1d17;
  --muted: #6c5a50;
  --bg: #fffaf2;
  --surface: #ffffff;
  --line: #ecdcc4;
  --shadow: 0 8px 24px rgb(80 40 10 / 0.1);
  --radius: 16px;
  --display: 'Baloo Thambi 2', 'Noto Sans Tamil', system-ui, sans-serif;
  --body: 'Catamaran', 'Noto Sans Tamil', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --width: 1120px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

* {
  box-sizing: border-box;
}

/* An element marked hidden stays hidden even when its own rule sets a display, such as the
   scrolling line and the sponsors column. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--red);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.section {
  padding-block: 64px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  max-width: 62ch;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

/* A gold "zari" edge, as on a silk border: a bright line with a darker line under it. */
.zari {
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 0 var(--red-dark);
}

/* Header */
.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgb(80 40 10 / 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.2);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name strong {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--red);
}

.brand-name span {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.nav a:hover {
  background: var(--gold-soft);
}

.nav a[aria-current='page'] {
  background: var(--red);
  color: #fff;
}

.nav-toggle {
  display: none;
  white-space: nowrap;
  flex-shrink: 0;
  font: inherit;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #f5c460, var(--gold));
  color: var(--ink);
  box-shadow: 0 4px 14px rgb(217 154 38 / 0.35);
}

.btn-outline {
  border-color: currentColor;
  color: inherit;
}

.btn-red {
  background: linear-gradient(180deg, #b8262e, var(--red-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgb(118 19 25 / 0.3);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Home hero: the photos take turns, fading into each other with a slow zoom. */
.hero {
  position: relative;
  color: #fff;
  background: var(--red-dark);
  overflow: hidden;
  min-height: clamp(460px, 72vh, 680px);
  display: flex;
  align-items: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
}

.hero-slide.is-active img {
  animation: hero-zoom 7s ease-out forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-slide figcaption {
  position: absolute;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: 22px;
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffe2a3;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.6);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(60 6 10 / 0.92) 0%, rgb(60 6 10 / 0.7) 42%, rgb(60 6 10 / 0.12) 100%),
    linear-gradient(0deg, rgb(40 4 8 / 0.55), transparent 35%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* With sponsors, they take a column on the left and the welcome text moves right. */
.hero .wrap.has-sponsors {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-sponsors {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-sponsors > p {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd98a;
  text-align: center;
}

.hero-sponsors ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-sponsors a,
.hero-sponsors li > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px 10px;
  background: rgb(255 255 255 / 0.94);
  border: 2px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.3);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  transition: transform 0.25s ease;
}

.hero-sponsors img {
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.hero-sponsors a:hover {
  transform: translateY(-3px);
}

.hero h1 {
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.35);
}

/* The Tamil name leads, with the English name under it. */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-title span[lang='ta'] {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.25;
}

.hero-title-en {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: #ffd98a;
  letter-spacing: 0.02em;
}

.hero-title-en::after {
  content: '';
  display: block;
  width: 90px;
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero p.lead {
  color: #fbe9d6;
  max-width: 46ch;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #ffd98a;
  background: transparent;
  cursor: pointer;
}

.hero-dots button[aria-pressed='true'] {
  background: #ffd98a;
  width: 28px;
  border-radius: 999px;
}

/* Page hero for inner pages: a photo under a maroon wash with a faint pattern of gold dots. */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--red-dark);
  border-bottom: 3px solid var(--gold);
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgb(255 217 138 / 0.14) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(60 6 10 / 0.95) 0%, rgb(60 6 10 / 0.78) 50%, rgb(60 6 10 / 0.45) 100%);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: 72px 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-hero h1 {
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.35);
}

.page-hero h1::after {
  content: '◆';
  display: block;
  width: 120px;
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  line-height: 14px;
  color: var(--gold);
  text-shadow: none;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, transparent 43% 57%, var(--gold) 70%, transparent)
    center / 100% 2px no-repeat;
}

.page-hero .eyebrow {
  color: #ffd98a;
}

.page-hero p {
  color: #fbe9d6;
  max-width: 60ch;
}

/* Two columns of text and picture */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split > * {
  min-width: 0;
}

.split .text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

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

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body p {
  color: var(--muted);
}

.card-body .more {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
}

.tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--red-dark);
}

.tag.green {
  background: #dcefe3;
  color: var(--green);
}

/* Upcoming event band */
.band {
  background: var(--gold-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-feature {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.event-feature .poster {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Long Tamil words in a heading break rather than push the page wider on small phones. */
h1,
h2 {
  overflow-wrap: break-word;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.fact {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
}

.fact b {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-details h3 {
  margin-top: 8px;
}

.timeline {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.timeline th,
.timeline td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.timeline tr:last-child th,
.timeline tr:last-child td {
  border-bottom: 0;
}

.timeline th {
  width: 40%;
  white-space: nowrap;
  color: var(--red-dark);
  font-variant-numeric: tabular-nums;
}

.details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0;
}

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

.details dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.competitions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.competitions ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.gallery figure {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.gallery figure.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery figure.across {
  grid-column: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.65));
}

/* Values and links */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.value {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.value:nth-child(2n) {
  border-top-color: var(--green);
}

.value p {
  color: var(--muted);
}

/* Placeholder text the Sangam still has to supply. */
.todo {
  background: #fff3c4;
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 0 6px;
  font-style: italic;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card .icon {
  font-size: 1.8rem;
}

/* Footer */
.site-footer {
  background: #2b1d17;
  color: #e9dccb;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-block: 44px 28px;
}

.site-footer h3 {
  color: #ffd98a;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer a {
  color: #e9dccb;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.site-footer .wrap.copyright {
  display: block;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  padding-block: 14px;
  font-size: 0.85rem;
  color: #b9a896;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .split,
  .event-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-feature .poster {
    max-width: min(360px, 100%);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }

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

  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .footer-about {
    grid-column: 1 / -1;
  }
}

/* Phones: the menu folds behind a button. */
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    box-shadow: 0 8px 16px rgb(80 40 10 / 0.12);
    display: none;
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 8px 16px 16px;
  }

  .nav a {
    border-radius: 10px;
    padding: 12px 14px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-name strong {
    font-size: 1.1rem;
  }

  .hero .wrap {
    padding-block: 64px 56px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgb(70 10 14 / 0.6), rgb(70 10 14 / 0.88));
  }

  .section {
    padding-block: 44px;
  }

  .gallery figure.wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
  }

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

}

/* Deepavali ticker under the menu: one line of event details scrolling right to left, with a
   fixed Register button at its end. */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
}

/* Until content.js has the Studio's settings, the line keeps its place but shows nothing, so
   a line the Studio has turned off never appears. */
.ticker.is-pending {
  visibility: hidden;
}

.ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-move {
  display: flex;
  width: max-content;
  animation: ticker 45s linear infinite;
}

.ticker:hover .ticker-move,
.ticker:focus-within .ticker-move {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  white-space: nowrap;
}

.ticker-item {
  padding: 9px 0;
}

.ticker-item strong {
  color: var(--red-dark);
}

/* A gold diamond between the items. */
.ticker-item::after {
  content: '◆';
  margin: 0 18px;
  font-size: 0.6rem;
  vertical-align: 2px;
  color: var(--red-dark);
}

.ticker-count:empty {
  display: none;
}

.ticker-count {
  color: var(--red-dark);
  font-weight: 700;
}

/* The scrolling text fades out before it reaches the button. */
.ticker-track {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

/* A rounded red button with a thin gold edge, and a light that crosses it every few seconds. */
.ticker-btn {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin: 5px 10px 5px 4px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d0353d, var(--red) 55%, var(--red-dark));
  box-shadow: inset 0 0 0 1px rgb(255 217 138 / 0.6), 0 2px 8px rgb(118 19 25 / 0.35);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ticker-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: ticker-shine 4s ease-in-out infinite;
}

.ticker-btn:hover,
.ticker-btn:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgb(255 217 138 / 0.8), 0 4px 12px rgb(118 19 25 / 0.45);
}

@keyframes ticker-shine {
  0%,
  60% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Without motion, the line stays still, showing its start, and the rest is on the Events page. */
@media (prefers-reduced-motion: reduce) {
  .ticker-move,
  .ticker-btn::before {
    animation: none;
  }
}

@media (max-width: 720px) {
  .ticker {
    font-size: 0.92rem;
  }

  .ticker-btn {
    margin: 4px 6px 4px 2px;
    padding: 0 14px;
  }
}

/* Section titles carry a small gold ornament: a diamond between two fading lines. */
.section-head h2::after,
.split .text h2::after {
  content: '◆';
  display: block;
  width: 120px;
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  line-height: 14px;
  color: var(--gold);
  background: linear-gradient(90deg, transparent, var(--gold) 30%, transparent 43% 57%, var(--gold) 70%, transparent)
    center / 100% 2px no-repeat;
}

/* Photo cards lift and their picture zooms a little under the pointer. */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 3px solid transparent;
}

.card img {
  transition: transform 0.6s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgb(80 40 10 / 0.16);
  border-bottom-color: var(--gold);
}

.card:hover img {
  transform: scale(1.05);
}

/* The Home page's upcoming event sits on deep maroon, with a faint pattern of gold dots. */
.band-rich {
  background:
    radial-gradient(circle at 1px 1px, rgb(255 217 138 / 0.12) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(135deg, #5a0d13, var(--red-dark) 50%, #4a0a10);
  color: #fbe9d6;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.band-rich h2,
.band-rich .eyebrow {
  color: #ffd98a;
}

.band-rich .lead,
.band-rich a:not(.btn) {
  color: #fbe9d6;
}

.band-rich .fact {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 217 138 / 0.35);
  color: #fff;
}

.band-rich .fact b {
  color: #ffd98a;
}

.band-rich .btn-outline {
  color: #ffd98a;
}

.band-rich .poster {
  border: 3px solid var(--gold);
}

.site-footer {
  border-top: 3px solid var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-slide.is-active img {
    animation: none;
  }

  .card,
  .card img {
    transition: none;
  }
}

@media (max-width: 900px) {
  /* On narrower screens the sponsors sit in a row under the welcome text. */
  .hero .wrap.has-sponsors {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-sponsors {
    order: 2;
  }

  .hero-sponsors > p {
    text-align: left;
  }

  .hero-sponsors ul {
    flex-direction: row;
  }

  .hero-sponsors li {
    flex: 1 1 0;
    max-width: 140px;
    min-width: 0;
  }

  .hero-sponsors li > * {
    height: 100%;
  }

  .hero-sponsors img {
    height: 44px;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 520px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgb(60 6 10 / 0.55), rgb(60 6 10 / 0.9));
  }

  .hero-slide figcaption {
    top: 14px;
    bottom: auto;
  }
}

/* White cards keep dark text when they sit on the deep maroon band. */
.band-rich .value,
.band-rich .card {
  color: var(--ink);
}

.band-rich ul a,
.band-rich p a {
  color: #ffd98a;
}

/* Activity and contact cards lift under the pointer, as the photo cards do. */
.value,
.contact-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgb(80 40 10 / 0.16);
}

.contact-card {
  border-top: 4px solid var(--gold);
}

.contact-card:nth-child(2n) {
  border-top-color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  .value,
  .contact-card {
    transition: none;
  }
}

/* Gallery: categories as cards, then each category's photos and videos as a grid of tiles. */
.album {
  text-decoration: none;
  color: inherit;
}

.album-empty {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: var(--gold-soft);
}

.album-tamil {
  font-family: var(--display);
  color: var(--red) !important;
}

.back {
  margin-bottom: 18px;
  font-weight: 700;
}

.back a {
  text-decoration: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gold-soft);
  cursor: zoom-in;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tile:hover img {
  transform: scale(1.06);
}

.tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  color: #fff;
  font: 600 0.88rem / 1.3 var(--body);
  text-align: left;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.7));
}

.tile.video {
  cursor: pointer;
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  background: rgb(158 27 34 / 0.92);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.35);
}

/* The full-screen viewer */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(20 10 8 / 0.94);
  color: #fff;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.6);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox-stage {
  width: min(92vw, 1400px);
  height: 80vh;
  display: grid;
  place-items: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-stage iframe {
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}

.lightbox-caption {
  min-height: 1.5em;
  padding: 0 16px;
  text-align: center;
  color: #ffe2a3;
}

.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.3);
  background: rgb(0 0 0 / 0.4);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover {
  background: var(--red);
}

.lb-close {
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
}

.lb-prev {
  left: max(12px, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: max(12px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 720px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile img {
    transition: none;
  }
}

/* Sponsors: logos on white tiles of one size, with the name under each. */
.sponsors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.sponsor {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sponsor img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}

a.sponsor:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgb(80 40 10 / 0.16);
}

@media (max-width: 720px) {
  .sponsors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor,
  .hero-sponsors a {
    transition: none;
  }
}

/* Thirukkural band under the Home page photos: the couplet large, its meaning under it. */
.kural {
  background:
    radial-gradient(circle at 1px 1px, rgb(158 27 34 / 0.08) 1px, transparent 1.5px) 0 0 / 20px 20px,
    var(--gold-soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.kural .wrap {
  padding-block: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.kural-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.kural blockquote {
  margin: 0;
  position: relative;
  padding: 0 44px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--red-dark);
}

.kural blockquote::before,
.kural blockquote::after {
  position: absolute;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
}

.kural blockquote::before {
  content: '“';
  left: 0;
  top: -6px;
}

.kural blockquote::after {
  content: '”';
  right: 0;
  bottom: -26px;
}

.kural-meaning {
  max-width: 54ch;
  color: var(--muted);
  font-style: italic;
}

.kural-source {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}

/* Tamil Word Game: its rounds as a short list, and a phone showing the game. */
.game-rounds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-rounds li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.game-rounds b {
  flex-shrink: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
}

/* Play now, and beside it a QR code to open the game on a phone. */
.game-get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 10px;
}

.qr-card img {
  width: 84px;
  height: 84px;
  image-rendering: pixelated;
}

.qr-card p {
  max-width: 11ch;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--red-dark);
}

.game-install {
  font-size: 0.92rem;
  color: var(--muted);
}

/* On a phone the code cannot be scanned from its own screen, so only the Add to Home Screen tip
   is shown. */
@media (max-width: 720px) {
  .qr-card {
    display: none;
  }
}

.phone {
  margin: 0 auto;
  width: min(280px, 80%);
  padding: 10px;
  border-radius: 34px;
  background: #241a16;
  box-shadow: 0 18px 40px rgb(60 20 10 / 0.3);
  transform: rotate(3deg);
}

.phone img {
  border-radius: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .phone {
    transform: none;
  }
}

@media (max-width: 720px) {
  .kural blockquote {
    padding: 0 22px;
    font-size: clamp(1rem, 4.4vw, 1.12rem);
  }

  .kural blockquote::before,
  .kural blockquote::after {
    font-size: 2.2rem;
  }

  .kural blockquote::after {
    bottom: -16px;
  }
}

/* Phones: the Home page is shortened. The highlights become rows with a small photo, and the
   event poster and the game's phone picture are left out. */
@media (max-width: 720px) {
  .home-highlights .cards {
    gap: 12px;
  }

  .home-highlights .card {
    flex-direction: row;
  }

  .home-highlights .card img {
    width: 104px;
    flex: none;
    aspect-ratio: auto;
    align-self: stretch;
  }

  .home-highlights .card-body {
    padding: 12px 14px;
    gap: 4px;
  }

  .home-highlights .card-body p {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  #home-event .poster,
  .game .phone {
    display: none;
  }

  .home-gallery .gallery {
    grid-auto-rows: 130px;
  }

  .home-gallery .gallery figure.across {
    display: none;
  }

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

/* An event's programme, tickets, payment and queries fold away on a phone under their headings.
   site.js opens them on wider screens, where the headings are not buttons and show no arrow. */
details.fold > summary {
  list-style: none;
  cursor: pointer;
}

details.fold > summary::-webkit-details-marker {
  display: none;
}

details.fold > summary h3 {
  display: inline;
}

@media (min-width: 721px) {
  details.fold > summary {
    pointer-events: none;
    margin-top: 8px;
  }
}

@media (max-width: 720px) {
  details.fold {
    border-top: 1px solid var(--line);
    padding-block: 12px;
  }

  details.fold > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  details.fold > summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--red);
  }

  details.fold[open] > summary::after {
    content: '−';
  }

  details.fold[open] > summary {
    margin-bottom: 10px;
  }

  details.fold > summary h3 {
    margin: 0;
  }

  #upcoming-events .poster,
  .game .text > p:not(.eyebrow):not(.game-install),
  .game-rounds {
    display: none;
  }

  #past-events {
    gap: 12px;
  }

  #past-events .card {
    flex-direction: row;
  }

  #past-events .card img {
    width: 104px;
    flex: none;
    aspect-ratio: auto;
    align-self: stretch;
  }

  #past-events .card-body {
    padding: 12px 14px;
    gap: 4px;
  }
}

/* Phones: the About page leaves out its two photos, since the top of the page already shows the
   families, and its activities sit closer together. */
@media (max-width: 720px) {
  .about-page .split .photo {
    display: none;
  }

  .about-page .values {
    gap: 10px;
  }

  .about-page .value {
    padding: 14px 16px;
    gap: 2px;
  }
}

/* Phones: the gallery list shows each album as a row with a small cover, and the Contact page's
   cards and Deepavali questions sit closer together, without the photo. */
@media (max-width: 720px) {
  .album-cards {
    gap: 12px;
  }

  .album-cards .card {
    flex-direction: row;
  }

  .album-cards .card img,
  .album-cards .card video,
  .album-cards .album-empty {
    width: 104px;
    flex: none;
    aspect-ratio: auto;
    align-self: stretch;
  }

  .album-cards .card-body {
    padding: 12px 14px;
    gap: 4px;
  }

  .contact-grid {
    gap: 10px;
  }

  .contact-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    padding: 14px 16px;
  }

  .contact-card .icon {
    grid-row: span 2;
    font-size: 1.5rem;
  }

  #contact-event .photo {
    display: none;
  }
}

/* About page: the English and Tamil switch above the vision. */
.lang-switch {
  display: inline-flex;
  align-self: flex-start;
  border: 2px solid var(--gold);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font: 700 0.9rem var(--body);
  padding: 6px 16px;
  cursor: pointer;
}

.lang-switch button[aria-pressed='true'] {
  background: var(--gold);
  color: var(--ink);
}

.lang-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lang-block h2::after {
  content: '◆';
  display: block;
  width: 120px;
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  line-height: 14px;
  color: var(--gold);
  background: linear-gradient(90deg, transparent, var(--gold) 30%, transparent 43% 57%, var(--gold) 70%, transparent)
    center / 100% 2px no-repeat;
}

/* A sentence set apart from the paragraphs around it. */
.pull {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--red-dark);
  border-left: 4px solid var(--gold);
  padding-left: 16px;
}

/* About page: the Sangam's story as a row of dated steps, a column on phones. */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.journey li {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 4px solid var(--red);
}

.journey li p {
  color: var(--muted);
}

.journey-year {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green);
}

/* About page: the key activities as two columns of gold-marked lines. */
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 280px;
  column-gap: 40px;
}

.activity-list li {
  break-inside: avoid;
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 1.08rem;
  border-bottom: 1px solid rgb(255 217 138 / 0.25);
}

.activity-list li::before {
  content: '◆';
  position: absolute;
  left: 4px;
  color: #ffd98a;
  font-size: 0.8rem;
  top: 14px;
}

/* About page: the Sangam's motto in Tamil and English. */
.motto {
  background: var(--gold-soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding-block: 40px;
}

.motto p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: var(--red-dark);
}

.motto p + p {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green);
  margin-top: 6px;
}

/* About page: the committee and member lists. With site.js, one group shows at a time, chosen
   with the buttons above. */
.people {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.people.is-tabbed {
  gap: 20px;
}

.people:not(.is-tabbed) .people-tabs,
.people.is-tabbed .people-group h3 {
  display: none;
}

.people-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.people-tabs button {
  border: 2px solid var(--gold);
  background: var(--surface);
  color: var(--red-dark);
  font: 700 0.95rem var(--body);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.people-tabs button[aria-pressed='true'] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.people-tabs .count {
  font-size: 0.78rem;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--red-dark);
}

.people-group h3 {
  margin-bottom: 14px;
}

.people-group h3 span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.names li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 6px 14px;
  font-weight: 600;
}

.people-group[data-group='committee'] .names li {
  border-left-color: var(--red);
}

@media (max-width: 720px) {
  .people-tabs button {
    font-size: 0.88rem;
    padding: 6px 12px;
  }
}

/* Events page: a past event with its photos beside the text, alternating sides. */
.highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.highlight:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.highlight:nth-of-type(2n) .highlight-photos {
  order: 2;
}

.highlight-photos {
  display: grid;
  gap: 12px;
}

.highlight-photos img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 380px;
}

.highlight-photos.two img {
  aspect-ratio: 16 / 7;
}

.highlight-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-text h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}

.highlight-text h3 span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

.highlight-text p {
  color: var(--muted);
}

.more-activities {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .highlight:nth-of-type(2n) .highlight-photos {
    order: 0;
  }
}

@media (max-width: 720px) {
  .journey {
    grid-template-columns: minmax(0, 1fr);
  }

  .highlight-photos.two img {
    aspect-ratio: 16 / 9;
  }
}

/* Gallery page: the timeline of event photos, a gold line down the left with a mark for each
   year. */
.timeline-years {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-year {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.timeline-year::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--gold-soft);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--red-dark);
}

.timeline-event {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-event h3 span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 720px) {
  .timeline-years {
    padding-left: 20px;
  }

  .timeline-year::before {
    left: -30px;
  }
}

/* Gallery timeline: a Studio album sits in its year as one card, no wider than a photo pair. */
.timeline-albums {
  grid-template-columns: repeat(auto-fill, minmax(240px, 340px));
}

/* Home page: the gallery keeps its place but shows nothing until content.js has picked its
   photos, so the page's own photos do not show first and then change. */
.home-gallery .gallery.is-pending {
  visibility: hidden;
}

/* An event's video poster sits where its picture would, at the column's width. */
video.poster,
video.photo {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

/* An event card's still frame from its poster video fills the picture's place. */
.card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
}

/* Home page: the Sangam's motto under the welcome text, in Tamil and English, with a gold edge. */
.hero-motto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: #ffd98a;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}

.hero-motto span + span {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fbe9d6;
}

/* Home page: each highlight card lists its activities, worded as on the About page. */
.activity-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}

.activity-points li {
  position: relative;
  padding-left: 16px;
  line-height: 1.4;
}

.activity-points li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.65rem;
  color: var(--gold);
}

.highlights-more {
  margin-top: 22px;
  font-weight: 700;
}

.highlights-more a {
  text-decoration: none;
}

@media (max-width: 720px) {
  .activity-points {
    font-size: 0.92rem;
  }
}

/* About page: the key activities in the same four groups as the Home page's cards. */
.activity-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.activity-group {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 217 138 / 0.35);
  border-top: 4px solid #ffd98a;
  border-radius: var(--radius);
  padding: 18px 18px 8px;
}

.activity-group h3 {
  color: #ffd98a;
  margin-bottom: 6px;
}

.activity-groups .activity-list {
  columns: auto;
}

.activity-groups .activity-list li {
  font-size: 1rem;
}

.activity-groups .activity-list li:last-child {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .activity-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .activity-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
