:root {
  --bg-deep: #064e3b;
  --bg-teal: #0f766e;
  --text-primary: #f8fafc;
  --text-muted: #d1fae5;
  --accent: #4ade80;
  --accent-strong: #10b981;
  --glass-bg: rgba(255, 255, 255, 0);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: 16px;
  --card-surface: linear-gradient(180deg, #c5df5a 0%, #a2ca0e 52%, #8cad0b 100%);
  --card-surface-soft: linear-gradient(180deg, #d5e878 0%, #b3d230 100%);
  --card-border: #00582d;
  --card-shadow: 0 18px 38px rgba(0, 31, 38, 0.24);
  --card-shadow-hover: 0 28px 52px rgba(0, 31, 38, 0.3);
  --card-accent-line: linear-gradient(90deg, #42570b 0%, #607d08 46%, #749706 100%);
  --card-chip-bg: rgba(247, 252, 230, 0.62);
  --card-chip-bg-strong: rgba(247, 252, 230, 0.82);
  --card-text: #223005;
  --card-text-muted: #4d5f18;
  --card-divider: rgba(0, 88, 45, 0.28);
  --card-pill-bg: linear-gradient(180deg, rgba(249, 253, 238, 0.96) 0%, rgba(233, 243, 194, 0.96) 100%);
  --card-pill-border: rgba(0, 88, 45, 0.18);
  --card-pill-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 14px rgba(34, 48, 5, 0.08);
  --shadow-base: 0 8px 32px 0 rgba(0, 31, 38, 0.1);
  --shadow-lift: 0 24px 42px rgba(0, 31, 38, 0.24);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-full: 999px;
  --motion-spring: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --side-padding: 14px;
  --content-width: 1140px;
  --header-width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: #ffffff;
  line-height: 1.6;
  padding-bottom: 32px;
}

body:not(.portal-homepage) {
  --content-width: 1240px;
}

body.news-archive-page,
body.community-archive-page,
body.event-archive-page {
  --content-width: 1100px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url('../images/root_kv_nologo.png') center center / cover no-repeat;
}

body::after {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a,
input,
select {
  min-height: 44px;
}

button,
a {
  min-width: 4px;
}

option {
  color: #0f172a;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--accent-strong);
  color: #fff;
  z-index: 220;
  font-weight: 700;
}

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

[hidden] {
  display: none !important;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-base);
}

.stat-card,
.community-card,
.event-card,
.community-archive-card,
.event-archive-card,
.news-card,
.news-shell,
.calendar-shell,
.detail-panel,
.detail-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff !important;
  color: var(--card-text);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 2.5px solid var(--card-border) !important;
  box-shadow: var(--card-shadow) !important;
}

.calendar-shell {
  background: #ffffff !important;
  color: var(--card-text) !important;
}

.detail-panel {
  background: #ffffff !important;
  color: var(--card-text) !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 120;
  color: #111827;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

main,
footer {
  width: min(var(--content-width), calc(100% - (var(--side-padding) * 2)));
  margin: 0 auto;
}

.header-inner {
  width: min(var(--header-width), calc(100% - (var(--side-padding) * 2)));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  max-width: min(420px, 100%);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

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

.menu a {
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  color: #111827;
  transition: var(--motion-spring);
  font-size: 0.92rem;
}

.menu a:hover,
.menu a[aria-current="page"] {
  transform: translateY(-4px);
  border-color: rgba(15, 23, 42, 0.12);
  color: #111827;
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

main {
  position: relative;
  z-index: 1;
  margin: 102px auto 40px;
  display: grid;
  gap: 16px;
}

.island {
  border-radius: var(--radius-lg);
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
  animation-delay: var(--reveal-delay, 0.05s);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0);
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--motion-spring);
  text-align: center;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.btn.primary {
  border-color: transparent;
  color: #053323;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.card-actions .btn,
.event-card-body > .btn,
.card-body > .btn {
  border: 1px solid var(--card-pill-border);
  background: var(--card-pill-bg);
  box-shadow: var(--card-pill-shadow);
  color: var(--card-text);
}

.card-actions .btn:hover,
.event-card-body > .btn:hover,
.card-body > .btn:hover {
  box-shadow: 0 10px 20px rgba(34, 48, 5, 0.12);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.btn,
.pill,
.page-btn,
.text-reset,
.calendar-arrow-btn,
.calendar-today-btn {
  border: 2.5px solid var(--card-border) !important;
}

.text-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px !important;
  border-radius: var(--radius-full) !important;
  background: #ffffff !important;
  color: var(--card-text) !important;
  box-shadow: var(--card-pill-shadow);
}

.text-reset:hover {
  text-decoration: none;
}

.footer-island {
  border-radius: 20px;
  padding: 8px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  font-size: 0.88rem;
  background: #ffffff;
  border: 2.5px solid var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--card-text);
}

footer {
  position: relative;
  z-index: 2;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  color: var(--card-text);
  font-size: 0.82rem;
}

.footer-links a {
  min-height: auto;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 150;
}

.sheet-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.root-contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.58);
  z-index: 310;
}

.root-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 24px;
}

.root-contact-modal__dialog {
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #ffffff !important;
  color: var(--card-text) !important;
  border: 2.5px solid var(--card-border) !important;
  box-shadow: var(--card-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.root-contact-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.root-contact-modal__head-copy {
  display: grid;
  gap: 10px;
}

.root-contact-modal__head-copy h2,
.root-contact-modal__head-copy p {
  margin: 0;
}

.root-contact-modal__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2.5px solid var(--card-border);
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.root-contact-modal__target {
  display: inline-grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid rgba(0, 88, 45, 0.18);
  background: #f8fbef;
}

.root-contact-modal__target strong {
  font-size: 1rem;
}

.root-contact-modal__body {
  display: grid;
  gap: 14px;
}

.root-contact-modal__body .wpcf7 {
  width: 100%;
}

.root-contact-modal__body .wpcf7 form {
  display: grid;
  gap: 14px;
}

.root-contact-modal__body .wpcf7 p {
  margin: 0;
}

.root-contact-modal__body .wpcf7 label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.root-contact-modal__body .wpcf7 input[type="text"],
.root-contact-modal__body .wpcf7 input[type="email"],
.root-contact-modal__body .wpcf7 input[type="tel"],
.root-contact-modal__body .wpcf7 textarea,
.root-contact-modal__body .wpcf7 select {
  width: 100%;
  border: 2px solid var(--card-border);
  border-radius: 18px;
  padding: 12px 14px;
  background: #fff;
  color: #000;
  font: inherit;
}

.root-contact-modal__body .wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

.root-contact-modal__body .wpcf7 .is-context-locked {
  background: #f1f6d6;
  color: #2a3317;
  cursor: not-allowed;
}

.root-contact-modal__body .wpcf7 input[type="submit"] {
  border: 2.5px solid var(--card-border);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
}

.root-contact-modal__body .wpcf7-spinner {
  margin: 0 0 0 8px;
}

.root-contact-modal__body .wpcf7-response-output,
.root-contact-modal__body .wpcf7-not-valid-tip {
  margin: 0;
}

.root-contact-modal__empty {
  display: grid;
  gap: 14px;
}

.root-contact-modal__empty p {
  margin: 0;
}

.sheet-ready {
  opacity: 1;
  transform: none;
  animation: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

html.sheet-locked,
body.sheet-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

.bottom-tab {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 160;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
  justify-content: space-between;
}

.tab-item,
.tab-note {
  border-radius: 16px;
  padding: 10px 8px;
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--card-text);
  border: 2.5px solid var(--card-border);
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(0, 88, 45, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tab-item {
  flex: 1;
}

.tab-item svg,
.tab-note svg {
  width: 18px;
  height: 18px;
}

.tab-item.active,
.tab-note.active {
  color: #052e21;
  background: linear-gradient(135deg, #4ade80, #10b981);
  border-color: var(--card-border);
  font-weight: 700;
}

.tab-note {
  flex: 0 0 68px;
}

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

.page-title {
  margin: 0;
}

.lead {
  margin: 0;
  color: #dcfce8;
}

.breadcrumb {
  background: #ffffff !important;
  border: 2.5px solid var(--card-border) !important;
  box-shadow: var(--card-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--card-text) !important;
}

.hero {
  gap: 20px !important;
  padding: 48px !important;
  color: var(--card-text);
  background: #ffffff !important;
  border: 2.5px solid var(--card-border) !important;
  box-shadow: var(--card-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero .page-title,
.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  line-height: 1.35;
  color: var(--card-text) !important;
}

.hero .eyebrow,
.hero .lead,
.hero-summary,
.hero-message,
.hero-dates,
.hero-dates time {
  color: var(--card-text-muted) !important;
}

.hero p:not(.eyebrow):not(.hero-date),
.hero .lead,
.hero-summary,
.hero-message {
  font-size: 1rem;
  line-height: 1.75;
}

.hero-date {
  color: var(--card-border) !important;
}

body:not(.portal-homepage) .layout,
body:not(.portal-homepage) .content {
  gap: 20px !important;
}

body:not(.portal-homepage) .layout {
  grid-template-columns: minmax(0, 1.78fr) minmax(320px, 0.86fr) !important;
}

body:not(.portal-homepage) .content {
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, 0.88fr) !important;
}

main > .island.glass:not(.breadcrumb):not(.hero):not(.calendar-shell):not(.detail-panel):not(.month-head):not(.news-shell),
.page-stack > .island.glass,
.stack > .island.glass,
.sidebar > .island.glass,
.content > .island.glass,
.layout > .island.glass {
  background: #ffffff !important;
  color: var(--card-text);
  border: 2.5px solid var(--card-border) !important;
  box-shadow: var(--card-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.toolbar p,
.toolbar small,
.text-reset {
  color: var(--card-text) !important;
}

.toolbar .field,
.toolbar select,
.search-controls .field,
.search-controls select {
  border: 1px solid rgba(0, 88, 45, 0.22) !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--card-text) !important;
}

.toolbar .field::placeholder,
.search-controls .field::placeholder {
  color: var(--card-text-muted) !important;
}

.toolbar .pill,
.search-controls .pill,
.hero .tag,
.hero-metric {
  border: 1px solid var(--card-pill-border) !important;
  background: var(--card-pill-bg) !important;
  box-shadow: var(--card-pill-shadow) !important;
  color: var(--card-text) !important;
}

.toolbar .pill:hover,
.toolbar .pill[aria-pressed="true"],
.search-controls .pill:hover,
.search-controls .pill[aria-pressed="true"] {
  background: var(--card-surface-soft) !important;
}

.hero-metric strong {
  color: var(--card-border) !important;
}

.detail-card,
.detail-empty {
  border: 1px solid rgba(0, 88, 45, 0.22) !important;
  background: #ffffff !important;
  box-shadow: 0 6px 14px rgba(34, 48, 5, 0.08) !important;
}

.detail-time,
.detail-meta,
.detail-arrow,
.detail-empty {
  color: var(--card-text-muted) !important;
}

.detail-title {
  color: var(--card-text) !important;
}

.detail-date {
  color: var(--card-border) !important;
}

.mobile-sheet-head,
.mobile-sheet-actions {
  display: none;
}

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

.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  max-width: 100%;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid var(--card-pill-border);
  background: var(--card-pill-bg);
  box-shadow: var(--card-pill-shadow);
  color: var(--card-text);
  text-decoration: none;
  transition: var(--motion-spring);
}

.community-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(34, 48, 5, 0.12);
}

.community-badge__label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--card-text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.community-badge__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--card-text);
  white-space: nowrap;
}

.community-badge__value::after {
  content: "→";
  flex-shrink: 0;
  color: var(--card-text-muted);
}

.overflow-marquee {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.community-badge__value > .overflow-marquee,
.community-meta__value > .overflow-marquee,
.card-detail-pill__value > .overflow-marquee,
.host-name > .overflow-marquee,
.community-card h3 a > .overflow-marquee,
.event-mini-body h3 > .overflow-marquee,
.news-title > .overflow-marquee,
.home-mega-menu__label > .overflow-marquee {
  flex: 1 1 auto;
  min-width: 0;
}

.community-card h3 a,
.event-mini-body h3,
.news-title,
.home-mega-menu__label {
  display: block;
  min-width: 0;
}

.overflow-marquee.is-marquee-active .overflow-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  min-width: max-content;
  animation: root-overflow-marquee var(--marquee-duration, 12s) linear infinite;
  will-change: transform;
}

.overflow-marquee__copy {
  display: inline-block;
  white-space: nowrap;
}

@keyframes root-overflow-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--marquee-shift, 0px)));
  }
}

.community-card-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.community-card-head__content {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.community-category-chip {
  position: relative;
  width: 88px;
  min-height: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(31, 48, 3, 0.14);
  background: var(--card-chip-bg);
  box-shadow: var(--card-pill-shadow);
  display: block;
}

.community-category-chip__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-category-chip__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--card-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.community-category-chip__label {
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--card-text-muted);
  letter-spacing: 0.04em;
}

.community-category-chip__value {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--card-text);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.host-community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  transition: var(--motion-spring);
  max-width: 100%;
  min-width: 0;
  width: fit-content;
}

.host-community:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.host-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.host-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
}

.host-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.floating-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 28px));
  z-index: 155;
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 2.5px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.floating-bar .btn {
  flex: 1;
  border: 2.5px solid var(--card-border) !important;
  box-shadow: var(--card-pill-shadow);
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-header-actions {
  display: none;
}

.mobile-header-actions .btn {
  min-width: 0;
}

.event-card-list {
  display: grid;
  gap: 10px;
}

.event-mini-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: var(--motion-spring);
}

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

.event-mini-date {
  text-align: center;
}

.event-mini-date strong {
  display: block;
  font-size: 1.1rem;
  font-family: "Consolas", "Roboto Mono", monospace;
  color: var(--accent);
  line-height: 1.2;
}

.event-mini-date span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.event-mini-body {
  min-width: 0;
}

.event-mini-body h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.event-mini-body p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.event-mini-arrow {
  justify-self: end;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.empty-inline {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: #e9fff6;
}

.stance-meter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.stance-label-left,
.stance-label-right {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.stance-bar {
  flex: 1;
  position: relative;
  min-width: 180px;
  height: 40px;
}

.stance-axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 88, 45, 0.18);
  transform: translateY(-50%);
}

.stance-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a2ca0e;
  border: 2.5px solid var(--card-border);
  box-shadow: 0 4px 10px rgba(34, 48, 5, 0.18);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.stance-center-label {
  position: absolute;
  left: 50%;
  top: calc(50% + 18px);
  transform: translateX(-50%);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--card-text-muted);
  white-space: nowrap;
}

.stance-end-label {
  position: absolute;
  top: calc(50% + 18px);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--card-text-muted);
  white-space: nowrap;
}

.stance-end-label--left {
  left: calc(50% - var(--stance-length) - 18px);
  transform: translateX(-50%);
}

.stance-end-label--right {
  left: calc(50% + var(--stance-length) + 18px);
  transform: translateX(-50%);
}

.stance-arrow {
  position: absolute;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background: var(--card-border);
  transform: translateY(-50%);
  z-index: 1;
}

.stance-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--card-border);
  transform: translateY(-50%);
}

.stance-arrow--left {
  right: 50%;
  width: var(--stance-length);
}

.stance-arrow--left::after {
  left: -18px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.stance-arrow--right {
  left: 50%;
  width: var(--stance-length);
}

.stance-arrow--right::after {
  right: -18px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.stat-block {
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-num {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-desc {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.age-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 960px) {
  main {
    margin-top: 98px;
  }

  .hero {
    padding: 28px !important;
  }

  body:not(.portal-homepage) .layout,
  body:not(.portal-homepage) .content {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  body::before {
    background-image: url('../images/root_kv_nologo.png');
    background-position: center top;
  }

  .host-community {
    width: 100%;
    max-width: 100%;
  }

  body {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .menu {
    display: none;
  }

  .bottom-tab {
    display: flex;
  }

  .header-inner {
    min-height: 52px;
  }

  .logo {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .logo-img {
    height: 34px;
  }

  .mobile-header-actions {
    display: none;
  }

  .footer-island {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  main {
    margin-top: 60px;
  }

  .mobile-sheet-head,
  .mobile-sheet-actions {
    display: flex;
  }

  .event-mini-card {
    grid-template-columns: 56px minmax(0, 1fr) 24px;
    padding: 12px;
  }

  .floating-bar {
    bottom: 84px;
    width: min(680px, calc(100% - 20px));
    padding: 10px;
    gap: 8px;
  }

  .floating-bar .btn {
    min-width: 0;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.76rem;
    gap: 6px;
  }

  .floating-bar .favorite-btn svg {
    width: 16px;
    height: 16px;
  }

  .community-stats {
    grid-template-columns: 1fr;
  }

  .root-contact-modal {
    padding: 12px;
    align-items: end;
  }

  .root-contact-modal__dialog {
    width: 100%;
    max-height: min(86vh, 860px);
    padding: 18px;
    border-radius: 24px;
  }

  .root-contact-modal__head {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overflow-marquee.is-marquee-active .overflow-marquee__track {
    animation: none;
    transform: none;
  }
}

body,
body * {
  color: #000 !important;
}

body svg,
body svg *,
body [data-lucide] {
  stroke: #000 !important;
}

#wpadminbar,
#wpadminbar * {
  color: #f6f7f7 !important;
}

#wpadminbar svg,
#wpadminbar svg *,
#wpadminbar [data-lucide] {
  stroke: #f6f7f7 !important;
}

#wpadminbar .ab-icon::before,
#wpadminbar .ab-item::before,
#wpadminbar .ab-empty-item::before {
  color: #f6f7f7 !important;
}
