:root {
  --brand-red: #c8102e;
  --brand-blue: #1a237e;
  --brand-green: #2e7d32;
  --text-primary: #111111;
  --text-secondary: #555555;
  --bg-card: #fcf8f1;
  --bg-canvas: #f4ecdf;
  --divider-color: #e8e0d2;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius-card: 16px;
  --radius-widget: 12px;
  --radius-pill: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Two-column layout */
.page-layout {
  display: flex;
  gap: 0;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.main-column {
  width: 70%;
  background: var(--bg-card);
  border-radius: var(--radius-card) 0 var(--radius-card) var(--radius-card);
  box-shadow: var(--shadow-card);
}

.sidebar-column {
  width: 30%;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: flex-start;
  position: sticky;
  top: 24px;
}

/* ── Header ── */

.main-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--divider-color);
  background: var(--bg-card);
}

.header-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-right: auto; /* push nav + toggle to the right on desktop */
}

.logo-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.logo-title {
  height: 18px;
  width: auto;
  display: block;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}


.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Let the nav shrink below its content width so it (not the lang toggle)
     absorbs any overflow by wrapping. Guarantees the FR/JA toggle stays on
     screen no matter how many / how long the menu items are. */
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  /* Wrap onto a second row instead of overflowing the viewport. */
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

/* Nav items carrying a tiny secondary label (e.g. "Cours" + "examen") */
.nav-menu a.has-subtitle {
  line-height: 1.1;
}

.nav-menu a .nav-label {
  display: block;
}

.nav-menu a .nav-subtitle {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: inherit;
  margin-top: 1px;
}

.nav-menu a:hover {
  background: var(--divider-color);
}

.nav-menu a.active {
  color: var(--brand-red);
}

.nav-menu li.has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  vertical-align: middle;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 4px 0 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-card);
  border-radius: var(--radius-widget);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 20;
}

/* Invisible bridge over the 4px margin gap so the dropdown stays reachable
   when moving the mouse from the parent item down to the submenu. */
.nav-menu ul::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.nav-menu li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu ul a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
}

/* Cute sliding language toggle (FR / JA) */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* Never let the toggle be compressed or pushed out of the window. */
  flex-shrink: 0;
  padding: 3px;
  background: var(--divider-color);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  user-select: none;
}

.lang-option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.lang-option.active {
  color: #fff;
}

.lang-toggle a.lang-option:hover {
  color: var(--text-primary);
}

/* The sliding knob sits behind the active label */
.lang-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 36px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand-red);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* Second language active → slide the knob to the right slot */
.lang-toggle[data-active="ja"] .lang-toggle-knob {
  transform: translateX(36px);
}

/* ── Hero ── */

.hero-section {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--bg-card);
}

/* Photo sits on the right half and fades out toward the cream left side */
.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
          mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}

/* Text + button sit on the left and may extend freely over the faded image */
.hero-content {
  position: absolute;
  top: 50%;
  left: 7%;
  transform: translateY(-50%);
  max-width: 62%;
  z-index: 2;
}

.hero-japanese {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-french {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
  /* White halo so the title detaches cleanly from the photo it may overlap */
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(255, 255, 255, 0.9),
    0 0 32px rgba(255, 255, 255, 0.7);
}

.hero-cta {
  display: inline-block;
  padding: 9px 22px;
  background-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: opacity 0.15s;
  margin-right: 12px;
  margin-bottom: 12px;
}

.hero-cta:hover {
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  margin-left: 28px;
}

/* ── Content ── */

.content-section {
  padding: 32px;
  border-top: 1px solid var(--divider-color);
}

/* Section headings rendered directly in templates (e.g. "À venir", "Éditions passées") */
.content-section > h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 16px;
}

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

/* ── Rendered markdown (page body) ── */
.prose {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose p {
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.prose h2 { font-size: 20px; margin: 28px 0 14px; }
.prose h3 { font-size: 17px; margin: 24px 0 12px; }
.prose h4 { font-size: 15px; margin: 20px 0 10px; }

/* The content uses emojis as bullets, so drop the default disc markers and use a
   hanging indent so wrapped lines line up under the text instead of the emoji. */
.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}

.prose li {
  margin-bottom: 6px;
  padding-left: 1.6em;
  text-indent: -1.6em;
}

.prose ol { counter-reset: prose-ol; }

.prose ol > li {
  counter-increment: prose-ol;
}

.prose ol > li::before {
  content: counter(prose-ol) ". ";
  font-weight: 700;
  color: var(--brand-red);
}

.prose a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong { color: var(--text-primary); font-weight: 700; }

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.prose blockquote {
  margin: 0 0 14px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--divider-color);
  color: var(--text-secondary);
}

/* ── Tables (rendered markdown) — clean editorial "press" style ──
   Soft rounded frame, branded header band, subtle zebra rows. The wrapper
   keeps wide tables scrollable on narrow screens without breaking the layout. */
.prose table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--bg-card);
  border: 1px solid var(--divider-color);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.prose thead th {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--divider-color);
}

.prose th,
.prose td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--divider-color);
}

/* Zebra striping on body rows for readability. */
.prose tbody tr:nth-child(even) td {
  background: rgba(26, 35, 126, 0.035);
}

/* Drop the trailing border so it sits flush inside the rounded frame. */
.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose td { color: var(--text-secondary); }
.prose tbody th { color: var(--text-primary); font-weight: 600; }

.presentation-block {
  margin-bottom: 40px;
}

.presentation-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.presentation-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.instagram-block h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Heading + Reels/All toggle on one row. */
.instagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.instagram-header h2 {
  margin-bottom: 0;
}

/* Segmented toggle: Reels ⇄ Tous les posts. */
.instagram-toggle {
  display: inline-flex;
  background: var(--divider-color, #ececed);
  border-radius: 999px;
  padding: 3px;
}

.instagram-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary, #555);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  /* Trim the line box to cap height + baseline so the label is optically centred
     between the symmetric paddings — no per-font pixel nudging. */
  text-box: trim-both cap alphabetic;
}

.instagram-toggle-btn:hover {
  color: var(--text-primary, #1a1a1a);
}

.instagram-toggle-btn.is-active {
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.instagram-placeholder {
  height: 200px;
}

/* Instagram — square media grid (Wix "pro gallery" style). Photos + video
   posters hotlinked from the IG CDN via the scheduler cache; videos preview
   (muted loop) on hover / in view and carry a play-button overlay. */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Each grid cell is a fixed square (keeps the layout from shifting as media
   loads); the actual post is centered inside it. */
.instagram-item {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: transparent;
}

/* The toggle hides tiles via the [hidden] attribute; our display:grid above
   would otherwise override the UA rule, so re-assert it. */
.instagram-item[hidden] {
  display: none;
}

/* Reels mode: the cell takes the vertical reel format (9:16) so reels fill it
   instead of sitting letterboxed in a square. */
.instagram-grid.is-reels-mode .instagram-item {
  aspect-ratio: 9 / 16;
}

/* The media wrapper shrink-fits the real post rectangle inside the square
   (its aspect ratio is measured in JS and set as --ar). All the "post" chrome —
   rounded corners, shadow, darken + caption — lives here, so it hugs the post
   shape, not the square. */
.instagram-media {
  position: relative;
  aspect-ratio: var(--ar, 1);
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* The wrapper already matches the post's aspect ratio, so cover fills it with
   no cropping. */
.instagram-media img,
.instagram-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zoom grows the post past its square instead of being clipped, and lifts it. */
.instagram-item:hover,
.instagram-item:focus-visible {
  z-index: 2;
}

.instagram-item:hover .instagram-media,
.instagram-item:focus-visible .instagram-media {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

/* Circular play-button overlay on video tiles (fades out while playing). */
.instagram-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.instagram-play::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
}

.instagram-play svg {
  position: relative;
  transform: translateX(1px);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.instagram-item.is-playing .instagram-play {
  opacity: 0;
}

/* On hover: darken the post and fade the caption in over it, in white.
   Sits inside .instagram-media, so it covers exactly the post rectangle. */
.instagram-caption {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.instagram-caption > span {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-item:hover .instagram-caption,
.instagram-item:focus-visible .instagram-caption {
  opacity: 1;
}

/* On narrow screens, drop the grid from 3 columns to 2 so each post stays
   large enough to read. */
@media (max-width: 600px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .instagram-grid {
    gap: 6px;
  }
}

/* ── Sidebar Widgets ── */

.widget-card {
  background: var(--bg-card);
  border-radius: var(--radius-widget);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.widget-card .widget-inner {
  padding: 20px;
}

/* Calendar Widget */
.calendar-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider-color);
  margin-bottom: 16px;
}

.calendar-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.month-nav .chevron {
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.month-nav .chevron:hover {
  background: var(--divider-color);
  color: var(--text-primary);
}

.month-nav .month-center {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.month-nav .month-en {
  font-size: 14px;
  font-weight: 700;
}

.month-nav .month-jp {
  font-size: 12px;
  color: var(--text-secondary);
}

.month-center.lang-ja .month-en {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  order: 2;
}

.month-center.lang-ja .month-jp {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  order: 1;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 13px;
  line-height: 2.2;
}

.calendar-dates .date {
  color: var(--text-primary);
}

.calendar-dates .date-today {
  font-weight: 700;
  color: var(--brand-red);
}

.calendar-dates .date-has-event {
  position: relative;
  cursor: pointer;
}

.calendar-dates .event-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  display: flex;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.calendar-dates .event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-red);
}

/* ── Calendar event tooltip ── */
.cal-tooltip {
  position: fixed;
  z-index: 1000;
  width: max-content;
  max-width: 260px;
  padding: 12px 14px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.97);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.cal-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cal-tip-arrow {
  position: absolute;
  bottom: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--bg-card);
  transform: rotate(45deg);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.08);
}

.cal-tooltip.below .cal-tip-arrow {
  bottom: auto;
  top: -6px;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
}

.cal-tip-event {
  display: flex;
  gap: 8px;
}

.cal-tip-event + .cal-tip-event {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--divider-color);
}

.cal-tip-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
}

.cal-tip-title {
  font-weight: 700;
  color: var(--text-primary);
}

.cal-tip-loc {
  margin-top: 2px;
  color: var(--text-secondary);
}

.cal-tip-desc {
  margin-top: 4px;
  color: var(--text-secondary);
}

.calendar-upcoming {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.calendar-upcoming .upcoming-item a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--divider-color);
}

.calendar-upcoming .upcoming-item:last-child a {
  border-bottom: none;
}

.calendar-upcoming .upcoming-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-red);
  flex-shrink: 0;
  min-width: 32px;
}

.calendar-upcoming .upcoming-title {
  font-size: 12px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-upcoming .upcoming-empty {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.calendar-footer {
  border-top: 1px solid var(--divider-color);
  padding-top: 12px;
  margin-top: 12px;
}

.calendar-footer h4 {
  font-size: 13px;
  font-weight: 700;
}

/* Contact Widget */
.contact-card {
  display: flex;
}

/* Clickable contact card → links to the contact page */
.contact-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.contact-card-link:hover,
.contact-card-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover, 0 10px 24px rgba(0, 0, 0, 0.14));
  outline: none;
}

/* Title nudges right and reveals an arrow to signal the link */
.contact-card-link .contact-text h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}

.contact-card-link .contact-text h3::after {
  content: "→";
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.contact-card-link:hover .contact-text h3,
.contact-card-link:focus-visible .contact-text h3 {
  color: var(--brand-red);
}

.contact-card-link:hover .contact-text h3::after,
.contact-card-link:focus-visible .contact-text h3::after {
  opacity: 1;
  transform: translateX(0);
}

/* Subtle zoom on the image */
.contact-card-link .contact-image img {
  transition: transform 0.25s ease;
}

.contact-card-link:hover .contact-image img,
.contact-card-link:focus-visible .contact-image img {
  transform: scale(1.05);
}

.contact-text {
  flex: 3;
  padding: 24px 20px;
}

.contact-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-text p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.contact-image {
  flex: 2;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact Info */
.contact-info {
  padding: 0 4px;
}

.contact-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-icons a {
  color: var(--text-primary);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.15s;
}

.social-icons a:hover {
  color: var(--brand-red);
}

/* ── Mobile Responsive ── */

@media (max-width: 860px) {
  .page-layout {
    flex-direction: column;
    padding: 0;
    min-height: auto;
  }

  .main-column {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .sidebar-column {
    width: 100%;
    padding-left: 0;
    padding: 16px;
    position: static;
    align-self: auto;
  }

  .main-header {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 16px;
  }

  /* logo left, toggle right — let the logo keep its natural width */
  .header-left {
    margin-right: 0;
  }

  .nav-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
  }

  .nav-menu a {
    font-size: 12px;
    padding: 4px 8px;
  }

  .nav-menu ul {
    min-width: 160px;
  }

  .nav-menu ul a {
    font-size: 12px;
  }

  /* Mobile: show only the AF mark, drop the wordmark + SENDAI subtitle */
  .logo-text-group {
    display: none;
  }

  .logo-mark {
    height: 38px;
  }

  /* nav takes the middle column and centers itself; wraps in place on overflow */
  .header-nav {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  .hero-section {
    height: 200px;
  }

  .hero-image {
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 6%, #000 62%);
            mask-image: linear-gradient(to right, transparent 6%, #000 62%);
  }

  .hero-content {
    left: 24px;
    max-width: 64%;
  }

  .hero-japanese {
    font-size: 15px;
  }

  .hero-french {
    font-size: 20px;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 13px;
  }

  .content-section {
    padding: 20px;
  }

  .presentation-text h2 {
    font-size: 18px;
  }

  .presentation-text p {
    font-size: 13px;
  }

  .contact-card {
    flex-direction: column;
  }

  .contact-image {
    min-height: 160px;
  }

  .calendar-dates {
    font-size: 12px;
    line-height: 2.5;
  }

  .instagram-placeholder {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 180px;
  }

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

  .hero-japanese {
    font-size: 13px;
  }

  .hero-content {
    left: 16px;
    max-width: 80%;
  }

  .nav-menu a {
    font-size: 11px;
    padding: 3px 6px;
  }
}

/* ── Events ── */

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.event-card {
  padding: 16px;
  border: 1px solid var(--divider-color);
  border-radius: 8px;
  transition: box-shadow 0.15s;
}

.event-card:hover {
  box-shadow: var(--shadow-card);
}

a.event-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.archive-item {
  text-decoration: none;
  color: inherit;
}

.event-delimiter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
}

.event-delimiter::before,
.event-delimiter::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--brand-red);
}

.event-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.event-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.event-card h3 a:hover {
  color: var(--brand-blue);
}

.event-card time {
  font-size: 13px;
  color: var(--text-secondary);
}

.event-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.event-location {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.archive-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.archive-carousel::-webkit-scrollbar {
  height: 6px;
}

.archive-carousel::-webkit-scrollbar-thumb {
  background: var(--divider-color);
  border-radius: 3px;
}

.archive-item {
  flex: 0 0 200px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
}

.archive-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.archive-label {
  padding: 10px;
  background: var(--bg-card);
}

.archive-label span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.archive-label small {
  font-size: 11px;
  color: var(--text-secondary);
}

.event-detail .event-meta,
.content-section .event-meta {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.event-hero-meta {
  margin-bottom: 24px;
}

.event-date-large {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.event-date-sep {
  display: inline-block;
  margin: 0 8px;
  font-size: 24px;
  font-weight: 300;
  color: var(--text-secondary);
  vertical-align: baseline;
}

.event-location-bold {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.event-body {
  margin-top: 24px;
}

.event-type-reminder {
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 4px solid var(--brand-blue);
  background: var(--bg-canvas);
  border-radius: 0 var(--radius-widget) var(--radius-widget) 0;
}

.event-type-reminder-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.event-type-reminder-heading strong {
  color: var(--text-primary);
  font-weight: 700;
}

.event-type-reminder-body {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.event-type-reminder-body p:last-child {
  margin-bottom: 0;
}

.event-type-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}

.event-type-link:hover {
  opacity: 0.7;
}

.event-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-card);
  background: var(--brand-blue);
  border-radius: 999px;
}

.event-body {
  margin-top: 24px;
}

/* ── Event Types ── */

.event-types-intro {
  margin-bottom: 28px;
}

.event-types-intro p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.event-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.event-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--divider-color);
  border-radius: 12px;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}

.event-type-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.event-type-badge {
  display: block;
  width: 40px;
  height: 8px;
  border-radius: 4px;
}

.event-type-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.event-type-excerpt {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── Footer ── */

.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Gallery: hero artwork credit ── */

/* Discreet artwork title, bottom-right of the hero. Sits on a faint translucent
   dark chip so it stays legible over any artwork (light or dark) while remaining
   unobtrusive; sharpens on hover to invite the click. */
.hero-artwork-credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  max-width: 50%;
  padding: 3px 10px;
  font-size: 11px;
  font-style: italic;
  line-height: 1.3;
  text-align: right;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.34);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-artwork-credit:hover,
.hero-artwork-credit:focus {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  text-decoration: underline;
}

/* ── Gallery index grid ── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

/* Scoped under .gallery-grid so these win over the generic `.prose a` /
   `.prose img` rules (the grid lives inside a .prose wrapper). Without the extra
   class the cards would render as blue underlined links with ragged image
   heights (from `.prose img { height: auto }`). */
.gallery-grid .gallery-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-grid .gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.gallery-grid .gallery-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* Title inherits the card's dark colour (not the .prose-link blue); artist stays muted. */
.gallery-grid .gallery-card-title {
  color: var(--text-primary);
}

.gallery-card-title {
  padding: 10px 12px 0;
  font-weight: 700;
  font-size: 14px;
}

.gallery-card-artist {
  padding: 2px 12px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Single artwork page ── */

.artwork-detail {
  max-width: 760px;
  margin: 0 auto;
}

.artwork-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Scoped under .artwork-nav so the no-underline beats the `.prose a` rule. */
.artwork-nav .artwork-back,
.artwork-nav .artwork-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Primary action: the contextual return. Brand-blue ghost pill that fills on hover. */
.artwork-back {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.artwork-back:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

/* Secondary action: always-present link to the gallery, kept quieter. */
.artwork-gallery-link {
  margin-left: auto;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-color: var(--divider-color);
}

.artwork-gallery-link:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Arrows kept light and recessive so they read as a hint, not a second emphasis;
   they sharpen and nudge in their travel direction on hover. */
.artwork-arrow {
  display: inline-block;
  font-weight: 400;
  opacity: 0.45;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.artwork-back:hover .artwork-arrow,
.artwork-gallery-link:hover .artwork-arrow {
  opacity: 1;
}

.artwork-back:hover .artwork-arrow {
  transform: translateX(-3px);
}

.artwork-gallery-link:hover .artwork-arrow {
  transform: translateX(3px);
}

.artwork-figure {
  margin: 0 0 18px;
}

.artwork-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.artwork-title {
  margin-bottom: 4px;
}

.artwork-meta {
  margin-top: 0;
  color: var(--text-secondary);
  font-style: italic;
}

.artwork-source {
  margin-top: 24px;
  font-size: 13px;
}

/* ── Past events expand / collapse ── */
/* Only hide the extra cards while the list is collapsed. When expanded the
   cards fall back to their normal styling, so the layout stays identical. */
.events-list.past-collapsed .past-event-hidden {
  display: none;
}

.past-events-toggle {
  display: inline-block;
  margin: 16px 0 0;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  background: transparent;
  border: 2px solid var(--brand-blue);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.past-events-toggle:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* ── Cours & Examens: section bands + in-page tabs ── */

.class-section {
  border-top: 1px solid var(--divider-color);
}

/* The coloured "bandeau" sub-hero (red = cours, blue = examens) */
.class-band {
  color: #ffffff;
  padding: 32px;
}

.class-band-inner {
  max-width: 760px;
}

.class-band-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #ffffff;
}

.class-band-desc {
  font-size: 14px;
  line-height: 1.7;
}

.class-band-desc p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.95);
}

.class-band-desc ul {
  margin: 8px 0;
  padding-left: 18px;
}

.class-band-desc li {
  color: rgba(255, 255, 255, 0.95);
}

.class-band-desc a {
  color: #ffffff;
  text-decoration: underline;
}

.class-band-desc strong,
.class-band-desc b {
  color: #ffffff;
}

/* Local tab navigation */
.class-tabs-wrap {
  padding: 24px 32px 36px;
}

.class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--divider-color);
  padding-bottom: 12px;
}

.class-tab-btn {
  appearance: none;
  border: 1px solid var(--divider-color);
  background: var(--bg-card, #fff);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.class-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--tab-accent, var(--brand-red));
}

.class-tab-btn.active,
.class-tab-btn.active:hover {
  background: var(--tab-accent, var(--brand-red));
  border-color: var(--tab-accent, var(--brand-red));
  color: #ffffff;
}

.class-tab-panel[hidden] {
  display: none;
}

.class-panel-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .class-band,
  .class-tabs-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ── Cours & Examens: pricing cards ── */

.pricing-wrap {
  padding: 28px 32px 4px;
}

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

.pricing-card {
  background: var(--bg-card, #fff);
  border-radius: var(--radius-widget, 12px);
  box-shadow: var(--shadow-card, 0 2px 8px rgba(0, 0, 0, 0.08));
  border-top: 3px solid var(--tab-accent, var(--brand-red));
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
}

.pricing-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pricing-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.pricing-unit {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--tab-accent, var(--brand-red));
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-rates {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.pricing-rates li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider-color);
}

.pricing-rates li:last-child {
  border-bottom: none;
}

.rate-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.rate-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--tab-accent, var(--brand-red));
  white-space: nowrap;
}

.pricing-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: auto 0 0;
}

@media (max-width: 720px) {
  .pricing-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ── Cours & Examens: per-class schedule + price meta (inside tab panels) ── */

.class-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider-color);
}

.class-meta-schedule {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.class-meta-price {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--tab-accent, var(--brand-blue));
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ── Cours & Examens: bandeau call-to-action ── */

/* Reuses .hero-cta but flips to a white pill whose text takes the band colour,
   so it contrasts cleanly on top of the coloured bandeau. */
.class-band .band-cta {
  background-color: #ffffff;
  margin-top: 16px;
  margin-right: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.class-band .band-cta:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.88);
}

/* ── Contact form ──
   Styles the default Grav Form plugin markup (.form-field / .form-*-wrapper /
   .buttons) to match the rest of the site: soft rounded fields on the cream
   card, a brand-blue focus ring, and a pill submit button like .hero-cta. The
   honeypot ships hidden inline, so it needs nothing here. */

.form-field {
  margin-bottom: 20px;
}

.form-label label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.form-label .required {
  margin-left: 3px;
  color: var(--brand-red);
}

.form-input-wrapper input,
.form-textarea-wrapper textarea,
.form-select-wrapper select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--divider-color);
  border-radius: 10px;
  padding: 11px 14px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-input-wrapper input::placeholder,
.form-textarea-wrapper textarea::placeholder {
  color: #a8a091;
}

.form-textarea-wrapper textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Native select: hide the OS arrow and draw our own chevron so it matches the
   rest of the UI (same CSS-triangle idiom as the nav dropdown caret). */
.form-select-wrapper {
  position: relative;
}

.form-select-wrapper select {
  padding-right: 40px;
  cursor: pointer;
}

.form-select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Brand-blue focus ring for keyboard users. */
.form-input-wrapper input:focus,
.form-textarea-wrapper textarea:focus,
.form-select-wrapper select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.14);
}

/* Validation errors surfaced by the form plugin. */
.form-input-wrapper input.invalid,
.form-textarea-wrapper textarea.invalid,
.form-select-wrapper select.invalid {
  border-color: var(--brand-red);
}

.form-errors,
.form-messages {
  margin: 0 0 20px;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 10px;
}

/* Submit button — same pill language as .hero-cta. */
form .buttons {
  margin-top: 24px;
}

form .buttons button {
  display: inline-block;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--brand-blue);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

form .buttons button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

form .buttons button:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ── Contact form: full-screen confirmation modal ──
   Shown after a successful submit (see partials/form-messages.html.twig). Dims
   the whole screen and centers a card with a ✓, the confirmation text and a
   close (×). Backdrop click / Esc / the × all dismiss it. */

.form-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: form-modal-fade 0.2s ease both;
}

.form-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px 32px;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  animation: form-modal-pop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.form-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.form-modal-close:hover,
.form-modal-close:focus-visible {
  background: var(--divider-color);
  color: var(--text-primary);
  outline: none;
}

.form-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  color: #fff;
  background: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35);
}

.form-modal-message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
}

.form-modal-ok {
  display: inline-block;
  margin-top: 24px;
  padding: 11px 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-blue);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.form-modal-ok:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-modal-ok:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

@keyframes form-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes form-modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
