:root {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --ink: #172026;
  --muted: #55636f;
  --line: #d7e0d4;
  --accent: #1b7f5c;
  --accent-2: #0f5f45;
  --hero-a: #e9f7ef;
  --hero-b: #dff0ff;
  --ring: #99ccb8;
  --shadow: 0 18px 38px rgba(17, 42, 30, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", "Arial", sans-serif;
  background: radial-gradient(circle at 10% 5%, #f7fffb 0%, var(--bg) 42%),
    radial-gradient(circle at 90% 95%, #edf7ff 0%, var(--bg) 40%);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  width: min(1280px, 96vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 247, 242, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--accent-2);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #bcd6c8;
  border-radius: 10px;
  background: #fff;
  color: var(--accent-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--ring);
  background: #eef8f2;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.topbar[data-mobile-nav-open="true"] .menu-toggle span {
  transform: rotate(45deg);
}

.topbar[data-mobile-nav-open="true"] .menu-toggle span::before {
  transform: rotate(-90deg);
  top: 0;
}

.topbar[data-mobile-nav-open="true"] .menu-toggle span::after {
  opacity: 0;
}

.site-search-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-search-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #bcd6c8;
  background: #fff;
  color: var(--accent-2);
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-search-toggle:hover {
  background: #eef8f2;
  border-color: var(--ring);
}

.site-search-toggle.is-open::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: #c03636;
  transform: rotate(-36deg);
  border-radius: 3px;
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search-form[hidden] {
  display: none;
}

.site-search-input {
  width: clamp(180px, 24vw, 290px);
  border: 1px solid #b9d3c6;
  border-radius: 999px;
  background: #fff;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}

.site-search-input:focus {
  outline: 2px solid transparent;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(153, 204, 184, 0.35);
}

.site-search-button {
  border: 1px solid #bcd6c8;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.site-search-button:hover {
  background: #eef8f2;
  border-color: var(--ring);
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  transition: 0.2s ease;
}

.menu a:hover,
.menu a.active {
  border-color: var(--ring);
  background: #eef8f2;
  color: var(--accent-2);
}

section {
  padding: 72px 0;
}

.hero {
  padding-top: 90px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(26px, 4vw, 52px);
  background: linear-gradient(130deg, var(--hero-a), var(--hero-b));
  border: 1px solid #d0e4d8;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero-card::before {
  width: 260px;
  height: 260px;
  right: -70px;
  top: -70px;
  background: rgba(27, 127, 92, 0.15);
}

.hero-card::after {
  width: 200px;
  height: 200px;
  left: -60px;
  bottom: -70px;
  background: rgba(15, 95, 69, 0.12);
}

.kicker {
  margin: 0 0 8px 0;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1, h2, h3 {
  margin: 0 0 12px 0;
  line-height: 1.2;
}

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

h2 {
  font-size: clamp(1.5rem, 3.8vw, 2.3rem);
}

.lead {
  color: #1d2a33;
  margin-bottom: 26px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.section-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
  margin-bottom: 18px;
}

.section-intro .lead {
  margin-bottom: 0;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.06);
  padding: 18px;
}

.content-card h3 {
  margin-bottom: 8px;
}

.content-card p {
  margin: 0 0 10px;
}

.content-card > :last-child {
  margin-bottom: 0;
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}

.content-panel--padded {
  padding: clamp(18px, 3vw, 30px);
}

.accent-panel {
  background: linear-gradient(130deg, var(--hero-a), var(--hero-b));
  border: 1px solid #c7ddd1;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}

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

.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.65);
  border-color: #bcd6c8;
}

.btn-ghost:hover {
  background: #fff;
  transform: translateY(-1px);
}

.cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

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

.card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-profile {
  padding-top: 0;
}

.home-profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
}

.home-profile-card .lead {
  margin-bottom: 0;
}

.home-profile-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.home-now {
  padding-top: 0;
}

.home-now-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-now-card {
  background: linear-gradient(130deg, var(--hero-a), var(--hero-b));
  border: 1px solid #c7ddd1;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
}

.home-now-card h3 {
  margin-bottom: 10px;
}

.home-list {
  margin: 0;
  padding-left: 18px;
  color: #223039;
}

.home-list li {
  margin-bottom: 8px;
}

.home-list li:last-child {
  margin-bottom: 0;
}

.about-wrap {
  display: grid;
  gap: 24px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 24px;
  align-items: center;
}

.about-copy .lead {
  margin-bottom: 0;
}

.about-portrait {
  margin: 0;
  width: 100%;
}

.about-portrait picture {
  display: block;
}

.about-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(23, 32, 38, 0.12);
}

.jlw-banner {
  background: linear-gradient(130deg, var(--hero-a), var(--hero-b));
  border: 1px solid #d0e4d8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 22px;
  text-align: center;
}

.jlw-banner-home {
  padding: clamp(14px, 2.2vw, 20px);
  margin-bottom: 16px;
}

.jlw-banner-home .jlw-meaning {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}

.jlw-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.jlw-title {
  margin: 0;
  color: var(--accent-2);
}

.jlw-meaning {
  margin: 0;
  min-height: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: #1d2a33;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

#jlw-meaning-text {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#jlw-meaning-text.is-changing {
  opacity: 0;
  transform: translateY(-8px);
}

.timeline {
  position: relative;
  margin-top: 10px;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #9ec8b6 0%, #c5d7cf 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 22px;
  padding: 16px 16px 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.05);
  opacity: 0;
  transform: translateY(16px);
  animation: appear 0.5s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.14s; }
.timeline-item:nth-child(3) { animation-delay: 0.23s; }
.timeline-item:nth-child(4) { animation-delay: 0.32s; }
.timeline-item:nth-child(5) { animation-delay: 0.41s; }
.timeline-item:nth-child(6) { animation-delay: 0.50s; }
.timeline-item:nth-child(7) { animation-delay: 0.59s; }
.timeline-item:nth-child(8) { animation-delay: 0.68s; }
.timeline-item:nth-child(9) { animation-delay: 0.77s; }
.timeline-item:nth-child(10) { animation-delay: 0.86s; }
.timeline-item:nth-child(11) { animation-delay: 0.95s; }

.timeline-item::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  left: -21px;
  top: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px #d7efe3;
}

.timeline-year {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.timeline-role {
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quiz-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pill {
  background: #edf7f1;
  color: var(--accent-2);
  border: 1px solid #c4dfd0;
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 5px 12px;
  font-weight: 700;
}

.question {
  border: 1px dashed #b9ccc1;
  border-radius: 14px;
  padding: 16px;
  background: #f8fcf9;
  margin-bottom: 16px;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #cbdbd3;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.18s ease;
}

.option:hover {
  border-color: #9dc4b2;
  background: #f4fbf7;
}

.option.correct {
  border-color: #1b7f5c;
  background: #eaf8f1;
}

.option.wrong {
  border-color: #c64b4b;
  background: #fff0f0;
}

.option:disabled {
  cursor: default;
  opacity: 0.95;
}

.quiz-note {
  margin: 0 0 14px;
  color: var(--muted);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.quiz-feedback {
  min-height: 24px;
  margin: 4px 0 14px;
  font-weight: 700;
}

.quiz-feedback.ok {
  color: #1b7f5c;
}

.quiz-feedback.no {
  color: #b23a3a;
}

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

.shortcut-shell {
  margin-top: 24px;
  background: linear-gradient(180deg, #f7fbf8 0%, #eef6f1 100%);
  border: 1px solid #cfe1d8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.shortcut-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 16px;
}

.shortcut-kicker {
  margin-bottom: 8px;
}

.shortcut-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  width: min(100%, 380px);
}

.shortcut-level {
  border: 1px solid #c7d8cf;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.shortcut-level:hover {
  border-color: #9dc4b2;
  background: #f4fbf7;
}

.shortcut-level:focus-visible {
  outline: 3px solid rgba(27, 127, 92, 0.18);
  outline-offset: 2px;
}

.shortcut-level.is-active {
  border-color: #1b7f5c;
  background: #eaf8f1;
  box-shadow: inset 0 0 0 1px rgba(27, 127, 92, 0.16);
}

.shortcut-level-name {
  display: block;
  font-weight: 700;
}

.shortcut-level-time {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

.shortcut-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.shortcut-card {
  border: 1px dashed #b9ccc1;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.shortcut-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#shortcut-prompt-title {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.08rem, 2.5vw, 1.42rem);
}

#shortcut-prompt-text {
  margin: 0;
  color: var(--muted);
}

.shortcut-pressed {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.shortcut-pressed-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.shortcut-pressed-value {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #c4dfd0;
  background: #edf7f1;
  color: var(--accent-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.shortcut-pressed-value.is-hit {
  border-color: #1b7f5c;
  background: #eaf8f1;
  color: #1b7f5c;
}

.shortcut-pressed-value.is-miss {
  border-color: #c64b4b;
  background: #fff0f0;
  color: #b23a3a;
}

.shortcut-timer-track {
  width: 100%;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: #d7e6dd;
  overflow: hidden;
}

.shortcut-timer-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8ec5aa);
  transition: width 0.12s linear;
}

.shortcut-feedback {
  margin-top: 14px;
}

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

@media (max-width: 640px) {
  .shortcut-levels {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .shortcut-meta {
    flex-direction: column;
    gap: 4px;
  }

  .shortcut-pressed {
    align-items: flex-start;
  }

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

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

  .events-filter-select-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-note {
  margin: 0 0 14px;
  color: var(--muted);
}

.social-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font-weight: 700;
  white-space: normal;
  width: 100%;
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.social-link span:last-child {
  overflow-wrap: anywhere;
}

.social-link:hover {
  filter: brightness(1.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.social-link.linkedin { background: #0a66c2; }
.social-link.github { background: #24292f; }
.social-link.instagram {
  background-color: #d62976;
  background-image: linear-gradient(120deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%);
}
.social-link.youtube { background: #ff0000; }
.social-link.esports { background: #0f5f45; }
.social-link.excelsnips {
  background-color: #1a8754;
  background-image: linear-gradient(120deg, #1a8754 0%, #4ea84a 55%, #f39200 100%);
}

.contact-form-card {
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c9d8d1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.contact-form select {
  cursor: pointer;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #8ec1ab;
  box-shadow: 0 0 0 3px rgba(142, 193, 171, 0.22);
}

.optional-label {
  color: var(--muted);
  font-weight: 600;
}

.contact-service-fields {
  display: grid;
  gap: 10px;
  margin: 4px 0 2px;
  padding: 14px;
  background: linear-gradient(130deg, rgba(232, 244, 238, 0.8), rgba(246, 241, 224, 0.78));
  border: 1px solid #d6e5dc;
  border-radius: 14px;
}

.contact-service-fields[hidden] {
  display: none;
}

.contact-form-section-title {
  margin: 0;
  color: var(--accent-2);
  font-weight: 800;
}

.contact-status {
  min-height: 1.2em;
  margin: 2px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-status.success {
  color: var(--accent-2);
}

.contact-status.error {
  color: #b23a3a;
}

.blog-filter {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.blog-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: #5f6f79;
  border-radius: 50%;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.blog-filter-toggle:hover,
.blog-filter[open] .blog-filter-toggle {
  background: #eef3f0;
  border-color: #d9e2dc;
  color: #2e3b42;
}

.blog-filter > summary {
  list-style: none;
}

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

.blog-filter:not([open]) .blog-filter-controls,
.blog-filter:not([open]) .blog-filter-status {
  display: none;
}

.blog-filter-icon {
  font-size: 0.95rem;
}

.blog-filter-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  width: min(620px, 100%);
}

.blog-filter-controls input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c9d8d1;
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  background: #fff;
}

.blog-filter-controls input:focus {
  outline: none;
  border-color: #8ec1ab;
  box-shadow: 0 0 0 3px rgba(142, 193, 171, 0.22);
}

.blog-filter-status {
  margin: 7px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
  width: min(620px, 100%);
  text-align: right;
}

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

.blog-card-link {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-height: 180px;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card-meta,
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.blog-card-meta {
  margin: 0 0 12px;
}

.blog-card-date,
.post-date {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.blog-card-tags,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-card-tags li,
.post-tags li {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c4dfd0;
  background: #edf7f1;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.blog-card-link h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.25;
}

.blog-card-link p {
  margin: 0;
  color: var(--muted);
  font-size: 1.01rem;
  line-height: 1.55;
}

.blog-card-link:hover,
.blog-card-link:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 12px 24px rgba(23, 32, 38, 0.11);
  transform: translateY(-2px);
}

.blog-card-link:focus-visible {
  outline: 3px solid rgba(153, 204, 184, 0.45);
  outline-offset: 2px;
}

.post-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 34px);
}

.post-shell h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 12px;
}

.post-meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 600;
}

.post-meta-row {
  margin: 0 0 12px;
}

.post-shell h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  margin-top: 22px;
}

.post-shell p {
  margin: 0 0 12px;
  color: #24313a;
}

.post-shell ul,
.post-shell ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #24313a;
}

.post-shell li {
  margin: 0 0 6px;
}

.post-shell pre {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d6e3da;
  border-radius: 12px;
  background: #f6fbf8;
  color: #112a1e;
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-x: auto;
}

.post-shell pre code {
  font-family: Consolas, "Courier New", monospace;
}

.post-shell :not(pre) > code {
  font-family: Consolas, "Courier New", monospace;
  background: #edf6f1;
  border: 1px solid #d6e3da;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.post-shell table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 16px;
  font-size: 0.95rem;
}

.post-shell th,
.post-shell td {
  border: 1px solid #d6e3da;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.post-shell th {
  background: #eef8f2;
  color: #173326;
  font-weight: 700;
}

.post-shell tr:nth-child(even) td {
  background: #fbfdfb;
}

.media-shell--excel iframe {
  aspect-ratio: 16 / 10;
}

.post-back {
  margin-top: 16px;
}

.media-shell {
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-shell picture {
  display: block;
}

.media-shell img,
.media-shell video,
.media-shell iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
}

.media-shell .media-image-full {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.media-note {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #f8fcf9;
}

.events-marquee {
  margin-bottom: 18px;
  border: 1px solid #c8dfd2;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--hero-a), var(--hero-b));
  overflow: hidden;
  white-space: nowrap;
}

.events-marquee-track {
  display: inline-flex;
  width: fit-content;
  padding: 11px 0;
  animation: marqueeLoop 24s linear infinite;
  will-change: transform;
}

.events-marquee-group {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.events-marquee-track span {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.events-gallery {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 22px;
  overflow: hidden;
}

.events-slides {
  display: flex;
  transition: transform 0.45s ease;
}

.event-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 12px;
  align-items: stretch;
}

.event-media {
  position: relative;
  border-radius: 14px;
  min-height: 0;
  border: 1px solid #c7dacf;
  overflow: hidden;
  background: #eaf1ec;
  align-self: stretch;
}

.event-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(9, 17, 24, 0.08) 100%);
  pointer-events: none;
}

.event-media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-media-a {
  object-position: center 28%;
}

.event-media-b {
  object-position: center 62%;
}

.event-media-c {
  object-position: center 24%;
}

.event-content {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  align-self: start;
}

.event-content h3 {
  margin-bottom: 8px;
}

.event-content p {
  margin: 0 0 10px;
  color: #24313a;
}

.event-status {
  display: inline-flex;
  margin: 0 0 8px;
  border-radius: 999px;
  border: 1px solid #a9d2bf;
  background: #edf9f3;
  color: var(--accent-2);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.event-meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #b8d5c7;
  background: #ffffffde;
  color: var(--accent-2);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #c3d5cc;
}

.gallery-dot.active {
  background: var(--accent);
}

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

.events-archive {
  margin-bottom: 18px;
}

.events-archive-intro {
  margin-bottom: 12px;
}

.events-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.events-filter-btn {
  border: 1px solid #b9d6c9;
  border-radius: 999px;
  background: #f4fbf7;
  color: var(--accent-2);
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.events-filter-btn:hover,
.events-filter-btn.active {
  background: linear-gradient(130deg, var(--hero-a), var(--hero-b));
  box-shadow: 0 10px 24px rgba(32, 67, 48, 0.12);
  transform: translateY(-1px);
}

.events-filter-status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.events-filter-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.events-filter-select-label {
  color: var(--accent-2);
  font-weight: 700;
}

.events-filter-select {
  min-width: 160px;
  border: 1px solid #b9d6c9;
  border-radius: 12px;
  background: #ffffff;
  color: #223039;
  padding: 10px 12px;
  font: inherit;
}

.event-card {
  display: flex;
  flex-direction: column;
}

.event-card[hidden] {
  display: none;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.event-type-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c7dacf;
  background: #f7fbf8;
  color: var(--accent-2);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

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

.services-hero-actions {
  margin-top: 18px;
}

.services-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.services-trust-card {
  background: #f7fbf8;
  border: 1px solid #cfe1d7;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.04);
}

.services-trust-card strong {
  display: block;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.services-trust-card span {
  display: block;
  color: #33434c;
  font-size: 0.92rem;
}

.services-situation-grid,
.services-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.services-situation-grid > div,
.services-faq-grid > div {
  background: rgba(247, 251, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.services-situation-grid p,
.services-faq-grid p {
  margin: 0 0 8px;
}

.services-situation-grid p:last-child,
.services-faq-grid p:last-child {
  margin-bottom: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.service-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #24313a;
}

.service-list li {
  margin-bottom: 4px;
}

.service-fit {
  margin: 0 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #223039;
}

.service-fit strong {
  color: var(--accent-2);
}

.service-price {
  color: var(--accent-2);
  font-weight: 800;
}

.services-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  margin-bottom: 18px;
}

.services-support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 26px);
}

.services-support-card h3 {
  margin-bottom: 12px;
}

.service-audience-list,
.process-list {
  margin: 0;
  padding-left: 20px;
  color: #24313a;
}

.service-audience-list li,
.process-list li {
  margin-bottom: 10px;
}

.process-list {
  padding-left: 22px;
}

.booking-box {
  background: linear-gradient(130deg, var(--hero-a), var(--hero-b));
  border: 1px solid #c7ddd1;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
}

.booking-box p {
  margin: 0 0 14px;
  color: #223039;
}

.services-faq {
  margin-bottom: 18px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resource-list {
  margin: 0;
  padding-left: 18px;
}

.resource-list li {
  margin-bottom: 8px;
}

.resource-list a {
  color: var(--accent-2);
  font-weight: 700;
}

.resource-list a:hover {
  text-decoration: none;
}

.resource-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-page-form {
  margin: 18px 0 8px;
}

.search-page-form .site-search-input {
  width: min(520px, 100%);
}

.search-page-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.search-result-item {
  margin: 0;
}

.search-result-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.05);
}

.search-result-link:hover {
  border-color: #b5d8c7;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.09);
}

.search-result-type {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  font-weight: 800;
}

.search-result-title {
  margin: 0 0 6px;
  color: #111c23;
  font-size: 1.1rem;
}

.search-result-snippet {
  margin: 0;
  color: var(--muted);
}

.search-result-empty {
  background: var(--surface);
  border: 1px dashed #bcd3c7;
  border-radius: 12px;
  padding: 16px;
  color: var(--muted);
}

.appearances-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.appearances-links .btn {
  width: 100%;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.error-hero {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}

.error-card {
  max-width: 920px;
  margin: 0 auto;
}

.error-code {
  margin: 0 0 10px;
  font-size: clamp(4.2rem, 12vw, 7rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-2);
}

.error-links {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.error-link-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.06);
  padding: 18px;
  transition: 0.2s ease;
}

.error-link-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-2);
  font-size: 1rem;
}

.error-link-card span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.error-link-card:hover {
  background: #fff;
  border-color: var(--ring);
  transform: translateY(-2px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
}

@keyframes appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marqueeLoop {
  from {
    transform: translateX(calc(115% + 40px));
  }
  to {
    transform: translateX(calc(-100% - 24px));
  }
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .menu {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .menu a {
    width: 100%;
    border-radius: 12px;
  }

  .topbar[data-mobile-nav-ready="true"][data-mobile-nav-open="false"] .menu,
  .topbar[data-mobile-nav-ready="true"][data-mobile-nav-open="false"] .site-search-shell {
    display: none;
  }

  .topbar[data-mobile-nav-open="true"] .site-search-shell {
    margin-top: 4px;
  }

  .site-search-form {
    flex: 1;
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .site-search-shell {
    width: 100%;
    margin-left: 0;
  }

  .site-search-input {
    flex: 1 1 220px;
    min-width: 0;
    width: 100%;
  }

  .site-search-button {
    width: 100%;
  }

  section {
    padding: 54px 0;
  }

  .error-hero {
    min-height: auto;
  }

  .blog-filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-portrait {
    max-width: min(300px, 78vw);
    justify-self: center;
  }

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

  .event-slide {
    grid-template-columns: 1fr;
  }

  .event-media {
    min-height: 190px;
  }

  .events-marquee {
    white-space: normal;
    border-radius: 16px;
  }

  .events-marquee-track {
    width: 100%;
    animation: none;
    transform: none;
    padding: 12px 14px;
  }

  .events-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  .events-marquee-group span:not(:first-child) {
    display: none;
  }

  .events-marquee-group + .events-marquee-group {
    display: none;
  }

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

  .home-profile-grid {
    grid-template-columns: 1fr;
  }

  .home-now-grid {
    grid-template-columns: 1fr;
  }

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

  .services-trust-grid,
  .services-situation-grid,
  .services-faq-grid {
    grid-template-columns: 1fr;
  }

  .services-support-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-nav {
    width: 34px;
    height: 34px;
  }

  .gallery-nav.prev {
    left: 10px;
  }

  .gallery-nav.next {
    right: 10px;
  }

  .timeline {
    padding-left: 16px;
  }

  .timeline-item::before {
    left: -17px;
  }

  .jlw-line { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #jlw-meaning-text {
    transition: none;
  }

  .events-marquee-track {
    animation: none;
  }

  .events-slides {
    transition: none;
  }
}
