:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --primary: #c60c30;
  --accent: #e06d41;
  --text: #c60c30;
  --muted: #8b1e2d;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant Garamond', serif;
}

.home-page {
  background-image: url('/background.webp');
  background-size: 100% auto;
  background-position: center 45%;
  background-repeat: no-repeat;
  color: white;
  position: relative;
}

.home-page .site-header {
  background: rgba(255, 255, 255, 0.94);
}

.home-page .brand,
.home-page .dropbtn {
  color: #c60c30;
}

.home-page .dropbtn {
  background: white;
}

.home-page .hero {
  background: transparent;
  padding: 3.5rem 2rem 30rem;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 132vh;
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-page .hero h1 {
  color: var(--primary);
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.home-page .hero h1 sup {
  font-size: 0.28em;
  vertical-align: top;
  position: relative;
  top: 0.55em;
  margin-left: 0.18em;
  letter-spacing: 0.08em;
}

.home-page .page-content {
  background: white;
  border-radius: 0;
  padding: 2rem 0;
  margin: 0;
  max-width: 100%;
  box-shadow: none;
}

.home-page .card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(198, 12, 48, 0.35);
  box-shadow: 0 18px 40px rgba(198, 12, 48, 0.06);
}

.home-page .card h2 {
  border-bottom-color: rgba(198, 12, 48, 0.8);
}

.home-page .card-image-placeholder {
  background: rgba(254, 240, 243, 0.65);
  border-color: rgba(198, 12, 48, 0.35);
}

.home-page .card-link:hover .card-image-placeholder {
  border-color: #a50020;
}

.home-page .events-list {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(var(--events-columns, 2), minmax(0, 1fr));
  gap: 2rem;
}

.home-page .event-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(198, 12, 48, 0.35);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(198, 12, 48, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px;
}

.home-page .event-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(198, 12, 48, 0.18);
}

.home-page .event-item a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 2rem;
  height: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home-page .event-item h2 {
  color: var(--primary);
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.3;
}

.club-title-main,
.club-title-sub {
  display: block;
}

.home-page .event-item .club-title-main {
  font-size: 1.75rem;
  line-height: 1.05;
}

.home-page .event-item .club-title-sub {
  margin-top: 0.35rem;
  font-size: 1.2rem;
  line-height: 1.15;
  opacity: 0.88;
}

@media (max-width: 900px) {
  .home-page .events-list {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  border-bottom: 1px solid #e2e2e2;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flag-icon {
  width: 32px;
  height: 19px;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary);
  text-decoration: none;
}

.brand sup {
  font-size: 0.45em;
  position: relative;
  top: -0.45em;
  margin-left: 0.08em;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown {
  position: relative;
}

.dropbtn {
  border: 1px solid #c5c5c5;
  background: white;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: #c60c30;
  font-size: 1rem;
}

.dropbtn,
.logout-link,
.button,
.link-button,
.slider-btn,
.slider-dot,
button[type="submit"] {
  font-family: 'Cormorant Garamond', serif;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  z-index: 5;
  margin-top: 0;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown-content:hover {
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block !important;
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.dropdown-content .club-title-main {
  font-size: 1.05rem;
  line-height: 1.1;
}

.dropdown-content .club-title-sub {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  line-height: 1.1;
  opacity: 0.85;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: #f7f7f7;
}

.logout-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  background: var(--primary);
}

.page-content {
  padding: 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.hero {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-family: 'Cormorant Garamond', serif;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card,
.detail-card,
.login-card {
  background: white;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.card h2,
.detail-card h1 {
  margin-top: 0;
}

.detail-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.page-title-stack {
  --page-title-gap: 0.18rem;
  display: flex;
  flex-direction: column;
  gap: var(--page-title-gap);
  margin-bottom: 0;
}

.page-title-name {
  margin: 0;
}

.page-title-date {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 1.6vw, 1.8rem);
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  white-space: normal;
}

.card h2 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--accent);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  font-family: 'Cormorant Garamond', serif;
}

.card h2 a {
  color: var(--text);
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--primary);
}

.card-image-placeholder {
  background: rgba(254, 240, 243, 0.75);
  border: 1px dashed #d8d8d8;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  min-height: 180px;
  width: 100%;
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
}

.card-image {
  display: block;
  width: 100%;
  min-height: 180px;
  margin: 1rem 0;
  border-radius: 18px;
  object-fit: cover;
}

.card-link {
  display: block;
  text-decoration: none;
}

.card-link:hover .card-image-placeholder {
  border-color: var(--primary);
}

.detail-hero {
  margin-top: -0.35rem;
}

.image-placeholder,
.invitation-box {
  background: #f8f8fa;
  border: 1px dashed #d8d8d8;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  min-height: 240px;
  text-align: center;
  padding: 1rem;
}

.image-placeholder {
  min-height: 320px;
  font-size: 1.05rem;
  font-weight: 600;
}

.section-block {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

.section-block h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.detail-hero {
  margin-top: 1.5rem;
}

.hero-image,
.hero-media,
.invitation-image,
.invitation-media,
.highlight-box img,
.highlight-box video,
.score-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.detail-hero video.hero-media {
  background: #000;
}

.video-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.highlights-character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.highlights-character-grid.many-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.highlights-character-header {
  margin-bottom: 1.5rem;
}

.highlights-container {
  display: flex;
  flex-direction: column;
}

.character-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  grid-auto-rows: 1fr;
}

.highlights-character-grid.many-highlights .highlights-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlights-character-grid.highlights-three-by-two .highlights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.highlights-character-grid.highlights-three-by-two {
  grid-template-columns: minmax(0, 2.35fr) minmax(260px, 1fr);
  align-items: start;
}

.highlights-character-grid.highlights-three-by-two .character-container {
  padding-left: 1rem;
}

.highlight-box {
  background: transparent;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-box img,
.highlight-box video {
  display: block;
}

.highlight-box video {
  display: block;
  background: #000;
}

.highlight-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-play-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  border: 2px solid rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.video-play-triangle {
  width: 0;
  height: 0;
  border-top: 0.6rem solid transparent;
  border-bottom: 0.6rem solid transparent;
  border-left: 1rem solid #fff;
  margin-left: 0.18rem;
}

.video-frame.is-playing .video-play-indicator {
  opacity: 0;
}

.video-fullscreen-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.video-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-video-wrap .video-fullscreen-btn,
.invitation-video-wrap .video-fullscreen-btn {
  top: 0.65rem;
  right: 0.65rem;
}

.zoomable-image {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.image-lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(92vw, 1700px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.invitation-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.invitation-theme-grid.no-tema-expand {
  grid-template-columns: 1fr;
}

.invitation-item,
.tema-item {
  display: flex;
  flex-direction: column;
}

.invitation-item h2,
.tema-item h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.tema-box {
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  min-height: 240px;
  text-align: center;
  padding: 1rem;
  line-height: 1.6;
}

.tema-images-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tema-images-grid.single-tema-image {
  grid-template-columns: 1fr;
}

.tema-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #cfb28f;
  box-shadow: 0 8px 18px rgba(30, 18, 8, 0.18);
}

.invitation-theme-grid.maximize-visual-media .contain-media {
  object-fit: contain;
  object-position: top center;
  background: transparent;
}

.invitation-theme-grid.maximize-visual-media .invitation-media,
.invitation-theme-grid.maximize-visual-media .tema-image {
  height: auto;
  max-height: clamp(240px, 34vw, 420px);
  border: none;
  box-shadow: none;
}

.invitation-theme-grid.maximize-visual-media .tema-image {
  aspect-ratio: auto;
}

.invitation-theme-grid.maximize-visual-media .tema-box {
  min-height: 0;
  padding: 0;
  align-items: flex-start;
  justify-content: flex-start;
}

.invitation-image,
.invitation-box {
  width: 100%;
  height: 100%;
}

.invitation-media {
  display: block;
}

.invitation-item video {
  background: #000;
}

.invitation-pdf-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.1rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.invitation-pdf-link:hover {
  background: var(--muted);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.menu-item {
  padding: 1.5rem;
  background: rgba(198, 12, 48, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(198, 12, 48, 0.08);
}

.menu-item h3 {
  margin: 0 0 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.detail-card.page-louie-12-april-2025 .menu-grid.menu-grid-louie-special {
  grid-template-areas:
    'snack starter'
    'main dessert'
    'main2 dessert';
}

.detail-card.page-louie-12-april-2025 .menu-grid.menu-grid-louie-special .menu-item-snack {
  grid-area: snack;
}

.detail-card.page-louie-12-april-2025 .menu-grid.menu-grid-louie-special .menu-item-starter {
  grid-area: starter;
}

.detail-card.page-louie-12-april-2025 .menu-grid.menu-grid-louie-special .menu-item-main {
  grid-area: main;
}

.detail-card.page-louie-12-april-2025 .menu-grid.menu-grid-louie-special .menu-item-main2 {
  grid-area: main2;
}

.detail-card.page-louie-12-april-2025 .menu-grid.menu-grid-louie-special .menu-item-dessert {
  grid-area: dessert;
}

.menu-box {
  min-height: auto;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}

.menu-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.menu-col h4 {
  margin: 0 0 0.6rem;
  color: var(--primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.menu-col + .menu-col {
  border-left: 1px solid rgba(198, 12, 48, 0.25);
  padding-left: 1rem;
}

.menu-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.menu-box li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: var(--text);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  padding-left: 0;
}

.menu-text {
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.main-split-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.main-split-col {
  padding-right: 0.5rem;
}

.main-split-col + .main-split-col {
  border-left: 1px solid rgba(198, 12, 48, 0.25);
  padding-left: 1rem;
  padding-right: 0;
}

.main-split-col h4 {
  margin: 0 0 0.6rem;
  color: var(--primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.invitation-box {
  min-height: 260px;
}

.highlight-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #cfb28f;
  box-shadow: 0 8px 18px rgba(30, 18, 8, 0.22);
}

.highlight-box video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #cfb28f;
  box-shadow: 0 8px 18px rgba(30, 18, 8, 0.22);
  background: #000;
}

.highlights-character-grid.highlights-three-by-two .highlight-box img,
.highlights-character-grid.highlights-three-by-two .highlight-box video {
  height: 270px;
}

/* Show a bit more of photos on Jakob 21/6 by reducing crop in highlight images. */
.detail-card.page-jakob-21-juni-2025 .highlights-grid .highlight-box img {
  object-fit: contain;
  background: #f6f6f6;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.score-horizontal {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.score-number {
  font-size: clamp(4.6rem, 10vw, 8.2rem);
  font-weight: 800;
  color: #c60c30;
  line-height: 1;
}

.score-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #c60c30;
  text-transform: lowercase;
}

.score-percent {
  font-size: 2.9rem;
  font-weight: 800;
  color: #c60c30;
  line-height: 1;
  white-space: nowrap;
}

.score-image-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.score-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
}

@media (max-width: 900px) {
  .highlights-character-grid {
    grid-template-columns: 1fr;
  }

  .highlights-character-grid.highlights-three-by-two .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-character-grid.highlights-three-by-two {
    grid-template-columns: 1fr;
  }

  .highlights-character-grid.highlights-three-by-two .character-container {
    padding-left: 0;
  }

  .highlights-character-grid.highlights-three-by-two .highlight-box img,
  .highlights-character-grid.highlights-three-by-two .highlight-box video {
    height: 230px;
  }

  .highlights-character-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .character-container {
    min-height: auto;
  }
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.score-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}


.card p,
.detail-card p {
  color: var(--text);
  line-height: 1.7;
}

.card .button {
  margin-top: 1rem;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(180deg, #ebf1ff 0%, #f8f7fb 100%);
}

.login-card {
  max-width: 420px;
}

.login-card h1 {
  margin-top: 0;
}

label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
}

input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #d6d6d6;
  font-size: 1rem;
}

textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #d6d6d6;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #d6d6d6;
  font-size: 1rem;
  background: white;
}

button[type="submit"] {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.95rem 1rem;
  background: var(--primary);
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  font-size: 1.55rem;
  cursor: pointer;
}

.error {
  color: #b10000;
  margin-top: 1rem;
}

.success {
  color: #0a6a2b;
  margin-top: 1rem;
}

.editor-tools {
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  border: 1px solid rgba(198, 12, 48, 0.18);
  border-radius: 16px;
  background: rgba(198, 12, 48, 0.03);
}

.editor-tools h2 {
  margin: 0 0 0.75rem;
}

.inline-tool-form {
  display: grid;
  gap: 0.5rem;
}

.inline-tool-form button[type="submit"] {
  width: auto;
  justify-self: start;
}

.helper-text {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.register-link {
  margin-top: 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.register-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.button-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid #c5c5c5;
}

.section-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-flex-1 {
  flex: 1;
  min-width: 280px;
}


.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inline-links a {
  color: var(--primary);
  text-decoration: none;
}

.about-members-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.member-card {
  border: 1px solid rgba(198, 12, 48, 0.2);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(198, 12, 48, 0.03);
}

.member-card-bottom {
  grid-column: 1 / -1;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.member-photo-frame {
  width: 100%;
  min-height: 240px;
  border: 2px dashed rgba(198, 12, 48, 0.35);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}

.member-photo {
  width: 100%;
  height: auto;
  max-height: clamp(260px, 36vw, 520px);
  object-fit: contain;
}

.member-photo-placeholder {
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
}

.member-card h2 {
  margin: 0.9rem 0 0.2rem;
  color: var(--primary);
}

.member-role {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .about-members-grid {
    grid-template-columns: 1fr;
  }

  .member-card-bottom {
    grid-column: auto;
    max-width: none;
  }

  .home-page {
    background-size: auto 95%;
    background-position: center 44%;
  }

  .home-page .hero {
    min-height: 92vh;
    padding-bottom: 11rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-course-grid {
    grid-template-columns: 1fr;
  }

  .menu-col + .menu-col {
    border-left: none;
    border-top: 1px solid rgba(198, 12, 48, 0.25);
    padding-left: 0;
    padding-top: 0.9rem;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .dropdown-content {
    min-width: 100%;
  }
}

/* 200% zoom on typical desktop often lands around this width. */
@media (max-width: 1280px) {
  .site-header {
    padding: 0.95rem 1.3rem;
  }

  nav {
    gap: 0.75rem;
  }

  .dropbtn,
  .logout-link,
  .button,
  .link-button {
    padding: 0.72rem 1.05rem;
    font-size: 0.98rem;
  }

  .home-page .hero {
    padding: 3rem 1.5rem 19rem;
    min-height: 112vh;
  }

  .home-page .hero h1 {
    font-size: clamp(2.9rem, 6.2vw, 5.3rem);
    letter-spacing: 0.03em;
  }

  .home-page .events-list {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .home-page .event-item h2 {
    font-size: clamp(1.32rem, 2vw, 1.52rem);
    line-height: 1.24;
  }

  .home-page .event-item .club-title-sub {
    margin-top: 0.3rem;
  }

  .page-title-date {
    font-size: clamp(1.1rem, 1.45vw, 1.6rem);
  }

  .section-block,
  .card,
  .detail-card,
  .login-card {
    padding: 1.5rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
  }

  .dropbtn,
  .logout-link,
  .button,
  .link-button {
    padding: 0.65rem 0.95rem;
    font-size: 0.96rem;
  }

  .dropdown-content {
    left: auto;
    right: 0;
  }

  .home-page .hero {
    min-height: 100vh;
    padding: 2.65rem 1.25rem 13rem;
  }

  .home-page .hero h1 {
    font-size: clamp(2.2rem, 7.5vw, 4.4rem);
  }

  .home-page .events-list {
    gap: 1rem;
  }

  .home-page .event-item h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.45rem);
    line-height: 1.22;
  }

  .invitation-theme-grid,
  .menu-grid,
  .menu-course-grid,
  .main-split-box {
    grid-template-columns: 1fr;
  }

  .menu-col + .menu-col {
    border-left: none;
    border-top: 1px solid rgba(198, 12, 48, 0.25);
    padding-left: 0;
    padding-top: 0.9rem;
  }

  .page-title-stack {
    --page-title-gap: 0.28rem;
  }

  .score-label {
    font-size: 0.98rem;
  }

  .page-content {
    padding: 1.25rem;
  }

  .section-block,
  .card,
  .detail-card,
  .login-card {
    padding: 1.25rem;
  }
}

@media (max-width: 760px) {
  nav {
    justify-content: stretch;
    gap: 0.5rem;
  }

  nav > * {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .dropdown {
    flex: 1 1 100%;
  }

  .dropbtn,
  .logout-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .dropdown-content {
    position: static;
    margin-top: 0.45rem;
    min-width: 100%;
  }

  .home-page .events-list {
    padding: 1rem;
  }

  .home-page .event-item a {
    padding: 1.2rem;
  }

  .home-page .event-item h2 {
    font-size: clamp(1.2rem, 6.2vw, 1.45rem);
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .invitation-theme-grid,
  .menu-grid,
  .menu-course-grid,
  .highlights-grid,
  .tema-images-grid,
  .main-split-box {
    grid-template-columns: 1fr;
  }

  .highlights-character-grid.highlights-three-by-two .highlights-grid {
    grid-template-columns: 1fr;
  }

  .highlights-character-grid.highlights-three-by-two .highlight-box img,
  .highlights-character-grid.highlights-three-by-two .highlight-box video,
  .highlight-box img,
  .highlight-box video {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .score-horizontal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem 0.55rem;
  }

  .score-number {
    font-size: clamp(3.3rem, 16vw, 5rem);
  }

  .score-percent {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .score-image {
    width: clamp(136px, 36vw, 190px);
    height: clamp(136px, 36vw, 190px);
  }
}

/* 50% zoom on typical desktop becomes very wide; scale containers up gracefully. */
@media (min-width: 2000px) and (max-width: 2599px) {
  .page-content {
    max-width: 1260px;
  }

  .site-header {
    padding-inline: clamp(2rem, 4vw, 3.5rem);
  }

  .home-page .events-list {
    max-width: 1320px;
    gap: 2.1rem;
  }

  .home-page .event-item h2 {
    font-size: clamp(1.6rem, 1.4vw, 2rem);
  }

  .home-page .hero {
    padding-bottom: 25rem;
    min-height: 124vh;
  }
}

@media (min-width: 2600px) {
  .page-content {
    max-width: 1500px;
  }

  .site-header {
    padding-inline: clamp(2.5rem, 4.8vw, 5rem);
  }

  .home-page .events-list {
    max-width: 1560px;
    gap: 2.4rem;
  }

  .home-page .event-item a {
    padding: 2.3rem;
  }

  .home-page .event-item h2 {
    font-size: clamp(1.75rem, 1.3vw, 2.2rem);
  }

  .home-page .hero {
    min-height: 122vh;
    padding-bottom: 25rem;
  }
}
