/* m.turnieje — scoped styles (no global overrides) */
:root {
  color-scheme: light;
}

.m-turnieje {
  --accent: var(--module-accent, #176BFE);
  --text: #2C2F36;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFF;
  --radius: 14px;
  --shadow: 0 8px 24px rgb(0 0 0 / 6%);

  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 0 20px;
}

.m-turnieje a {
  color: var(--accent);
}

.m-turnieje .mtr-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  max-width: 1000px;
  margin: 0 auto;
}

.m-turnieje .mtr-head__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #F3F4F6;
  border: 1px solid var(--line);
  color: var(--accent);
  flex: 0 0 64px;
}

.m-turnieje .mtr-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
}

.m-turnieje .mtr-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.m-turnieje .mtr-head__actions {
  margin-left: auto;
}

/* Buttons */
.m-turnieje .mi-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.m-turnieje .mi-btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

/* Grid */
.m-turnieje .mtr-app {
  max-width: 1100px;
  margin: 16px auto;
}

/* Module-scoped grid for SSR list */
.m-turnieje #mtr-list,
.m-turnieje .mtr-grid {
  max-width: 1100px;
  margin: 16px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Fallback styling when .m-turnieje wrapper is not present (SSR list.php uses #mtr-list) */
#mtr-list {
  max-width: 1100px;
  margin: 16px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

#mtr-list .mtr-card {
  background: var(--bg, #FFF);
  border: 1px solid var(--line, #E5E7EB);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow, 0 8px 24px rgb(0 0 0 / 6%));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#mtr-list .mtr-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #F3F4F6;
  border: 1px solid var(--line, #E5E7EB);
}

#mtr-list .mtr-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#mtr-list .mtr-card__title {
  margin: 0;
  font-size: 18px;
}

#mtr-list .mtr-card__meta {
  font-size: 14px;
  color: var(--muted, #6B7280);
}

#mtr-list .mtr-card__actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* Buttons inside list fallback */
#mtr-list .mi-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--module-accent, #176BFE);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

#mtr-list .mi-btn--ghost {
  background: #fff;
  color: var(--text, #2C2F36);
  border-color: var(--line, #E5E7EB);
}

/* Card */
.m-turnieje .mtr-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

/* Cover area (keeps stable ratio and prevents layout shift) */
.m-turnieje .mtr-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #F3F4F6;
  border: 1px solid var(--line);
}

.m-turnieje .mtr-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.m-turnieje .mtr-card__cover--ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F3F4F6 0%, #EDF1F5 100%);
}

.m-turnieje .mtr-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.m-turnieje .mtr-card__meta {
  font-size: 14px;
  color: var(--muted);
}

.m-turnieje .mtr-card__actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* Przyciski factsheet */
.m-turnieje .mtr-detail .mtr-card__actions {
  padding-top: 6px;
}

/* Details modal (progressive enhancement area) */
.m-turnieje .mtr-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  background: #FCFCFD;
}

/* Form */
.m-turnieje .mtr-form {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.m-turnieje .mtr-form input,
.m-turnieje .mtr-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.m-turnieje .mtr-form .row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

/* Dwukolumnowy factsheet — responsywny, z unikaniem łamania bloków */
.m-turnieje .m-tour-factsheet {
  column-count: 1;
  column-gap: 24px;
}

@media (width >= 980px) {
  .m-turnieje .m-tour-factsheet {
    column-count: 2;
  }
}

.m-turnieje .m-tour-fs__block {
  break-inside: avoid;
  display: block;
}

@media (width >= 740px) {
  .m-turnieje .mtr-form .row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hero cover on single page — kompaktowy wariant */
.m-turnieje .m-tour-hero {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

@media (width >= 900px) {
  .m-turnieje .m-tour-hero {
    height: 180px;
  }
}

.m-turnieje .m-tour-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dla SVG pokazuj całe logo */
.m-turnieje .m-tour-hero img[src$=".svg" i] {
  object-fit: contain;
  background: transparent;
  padding: 8px;
}

/* Full registration form */
.m-turnieje .mtr-form--full {
  max-width: 960px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 32px;
  box-shadow: var(--shadow);
}

.m-turnieje .mtr-form--full .grid-2 {
  display: grid;
  gap: 24px 32px;
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}

.m-turnieje .mtr-form--full .field {
  margin-bottom: 4px;
}

/* Larger screens: allow three slim columns when needed via .grid-3 helper */
.m-turnieje .mtr-form--full .grid-3 {
  display: grid;
  gap: 18px 20px;
  grid-template-columns: 1fr;
}

@media (width >= 1024px) {
  .m-turnieje .mtr-form--full .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (width >= 760px) {
  .m-turnieje .mtr-form--full .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.m-turnieje .mtr-form--full .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.m-turnieje .mtr-form--full .field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
}

.m-turnieje .mtr-form--full .field label span {
  color: #E02424;
  font-weight: 700;
}

.m-turnieje .mtr-form--full input,
.m-turnieje .mtr-form--full select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.25;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FAFAFB;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
  outline: none;
  box-sizing: border-box;
  margin: 0;
}

.m-turnieje .mtr-form--full input:focus,
.m-turnieje .mtr-form--full select:focus {
  border-color: var(--accent);
  background: #FFF;
  box-shadow: 0 0 0 3px rgb(23 107 254 / 15%);
}

.m-turnieje .mtr-form--full input[readonly],
.m-turnieje .mtr-form--full select[readonly] {
  background: #F1F2F5;
  color: #555;
  cursor: not-allowed;
}

.m-turnieje .mtr-form--full input:disabled,
.m-turnieje .mtr-form--full select:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.m-turnieje .mtr-form--full .field small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.m-turnieje .mtr-form--full .field small a {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive, even layout (professional variant) */
.m-turnieje .mtr-form--full {
  max-width: 1000px;
}

/* Two equal columns on >=760px, single column on mobile (already defined) */
.m-turnieje .mtr-form--full .grid-2 {
  align-items: start;
}

.m-turnieje .mtr-form--full .grid-2 .field {
  align-items: stretch;
}

.m-turnieje .mtr-form--full .grid-2 .field label {
  text-align: left;
}

/* Inputs take full width of their grid cell */
.m-turnieje .mtr-form--full input,
.m-turnieje .mtr-form--full select {
  max-width: 100%;
  margin-inline: 0;
}

/* Make date inputs and selects visually consistent */
.m-turnieje .mtr-form--full input[type="date"] {
  padding-right: 36px;
}

/* Buttons: full-width on mobile, inline on desktop */
.m-turnieje .mtr-form--full .actions .mi-btn {
  width: 100%;
  justify-content: center;
}

@media (width >= 640px) {
  .m-turnieje .mtr-form--full .actions .mi-btn {
    width: auto;
  }
}

/* Compact helper for equal spacing between stacked grid rows */
.m-turnieje .mtr-form--full .grid-2 + .grid-2 {
  margin-top: 20px;
}

/* Error/help text spacing */
.m-turnieje .mtr-form--full .field small {
  margin-top: 2px;
}

/* Consents */
.m-turnieje .mtr-form--full fieldset.consents {
  margin: 6px 0 8px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FDFDFE;
}

.m-turnieje .mtr-form--full fieldset.consents label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.m-turnieje .mtr-form--full fieldset.consents {
  column-gap: 18px;
}

@media (width >= 760px) {
  .m-turnieje .mtr-form--full fieldset.consents {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.m-turnieje .mtr-form--full fieldset.consents input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
  accent-color: var(--accent);
}

/* Actions */
.m-turnieje .mtr-form--full .actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.m-turnieje .mtr-form--full .actions .mi-btn {
  font-size: 14px;
}

/* Validation helper hooks (optional JS) */
.m-turnieje .mtr-form--full .field.is-invalid input,
.m-turnieje .mtr-form--full .field.is-invalid select {
  border-color: #E02424;
  background: #FFF6F6;
}

.m-turnieje .mtr-form--full .field.is-invalid label {
  color: #B01212;
}

.m-turnieje .mtr-form--full .field.is-invalid small {
  color: #B01212;
}

/* Also apply to simple form variant */
.m-turnieje .mtr-form {
  justify-items: stretch;
}

.m-turnieje .mtr-form input,
.m-turnieje .mtr-form select {
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
}

/* --- Consents (advanced, styled like main registration) --- */
.m-turnieje .consents-box {
  margin: 10px 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FDFDFE;
}

.m-turnieje .consents-box__all {
  border: 2px dashed #E7EBF2;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.m-turnieje .consents-box__list {
  display: grid;
  gap: 10px;
}

.m-turnieje .consent-row {
  display: grid;
  grid-template-columns: 22px auto 1fr;
  align-items: start;
  gap: 6px 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFF;
  box-shadow: 0 2px 8px rgb(0 0 0 / 3%);
}

.m-turnieje .consent-row input[type="checkbox"] {
  grid-column: 1;
}

.m-turnieje .consent-row__badge {
  grid-column: 2;
  align-self: start;
}

.m-turnieje .consent-row__label {
  grid-column: 3;
}

.m-turnieje .consent-row--all {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  grid-template-columns: 22px auto;
}

.m-turnieje .consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.m-turnieje .consent-row__label {
  font-size: 14px;
  line-height: 1.45;
}

/* Badges */
.m-turnieje .consent-row__badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #E7EBF2;
  background: #EEF4FF;
  color: #2B4B8C;
  margin-right: 8px;
}

.m-turnieje .consent-row__badge--required {
  background: #FFE9E8;
  border-color: #FFD3D0;
  color: #A6251A;
}

.m-turnieje .consent-row__badge--optional {
  background: #EAF3FF;
  border-color: #D7E6FF;
  color: #1D4ED8;
}

/* Note under the list */
.m-turnieje .consents-box__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.m-turnieje .consents-box__note a {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive tweaks */
@media (width >= 900px) {
  .m-turnieje .consents-box__list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .m-turnieje .mtr-form--full {
    background: #1D232A;
    border-color: #2D333B;
  }

  .m-turnieje .mtr-form--full input,
  .m-turnieje .mtr-form--full select {
    background: #252C34;
    border-color: #2F3943;
    color: #ECEFF3;
  }

  .m-turnieje .mtr-form--full input:focus,
  .m-turnieje .mtr-form--full select:focus {
    background: #2B343D;
  }

  .m-turnieje .mtr-form--full input[readonly],
  .m-turnieje .mtr-form--full select[readonly] {
    background: #2A3139;
    color: #A7B0BA;
  }

  .m-turnieje .mtr-form--full fieldset.consents {
    background: #222A31;
    border-color: #2F3943;
  }

  .m-turnieje .mtr-form--full fieldset.consents label {
    color: #D7DBE0;
  }

  .m-turnieje .mtr-form--full .field small {
    color: #9CA7B3;
  }

  .m-turnieje .mtr-form--full .field.is-invalid input,
  .m-turnieje .mtr-form--full .field.is-invalid select {
    background: #3A1F23;
  }

  .m-turnieje .consents-box {
    background: #222A31;
    border-color: #2F3943;
  }

  .m-turnieje .consents-box__all {
    border-color: #334050;
  }

  .m-turnieje .consent-row {
    background: #1F262D;
    border-color: #2F3943;
    box-shadow: none;
  }

  .m-turnieje .consent-row__badge {
    background: #253245;
    border-color: #334050;
    color: #C9D7EE;
  }

  .m-turnieje .consent-row__badge--required {
    background: #3B2225;
    border-color: #5A2E32;
    color: #F3C5C2;
  }

  .m-turnieje .consent-row__badge--optional {
    background: #1F2F4A;
    border-color: #2B3D5E;
    color: #C9D7EE;
  }

  .m-turnieje .consents-box__note {
    color: #9CA7B3;
  }
}

/* ====== Nagłówek modułu ====== */
.m-turnieje .mtr-header {
  max-width: 1100px;
  margin: 24px auto 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.m-turnieje .mtr-header__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #F3F4F6;
  background-image: var(--module-icon);
  background-size: cover;
  background-position: center;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

.m-turnieje .mtr-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.m-turnieje .mtr-sub {
  margin: 4px 0 0;
  color: #6B7280;
}

/* ====== Lista wąskich belek ====== */
.m-turnieje .mtr-list {
  max-width: 1100px;
  margin: 8px auto 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-turnieje .mtr-list-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  background: #FFF;
  box-shadow: 0 8px 24px rgb(0 0 0 / 6%);
}

.m-turnieje .mtr-list-item__thumb {
  display: block;
  width: 96px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  background: #F3F4F6;
}

.m-turnieje .mtr-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-turnieje .mtr-list-item__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: #E5E7EB;
}

.m-turnieje .mtr-list-item__title {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
}

.m-turnieje .mtr-list-item__title a {
  text-decoration: none;
  color: inherit;
}

.m-turnieje .mtr-list-item__meta {
  font-size: 14px;
  color: #6B7280;
}

.m-turnieje .mtr-list-item__actions {
  display: flex;
  gap: 8px;
}

.m-turnieje .mtr-quick-register {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.m-turnieje .mi-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--module-accent, #176BFE);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.m-turnieje .mi-btn--ghost {
  background: #fff;
  color: #111827;
  border-color: #E5E7EB;
}

@media (width <= 640px) {
  .m-turnieje .mtr-list-item {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "thumb title"
      "thumb meta"
      "thumb actions";
  }

  .m-turnieje .mtr-list-item__thumb {
    grid-area: thumb;
    width: 72px;
    height: 48px;
  }

  .m-turnieje .mtr-list-item__body {
    grid-area: title;
  }

  .m-turnieje .mtr-list-item__meta {
    grid-area: meta;
  }

  .m-turnieje .mtr-list-item__actions {
    grid-area: actions;
    margin-top: 6px;
  }
}

/* --- Single tournament factsheet styles (appended) --- */
.mtr-detail {
  --ink: #0f0d0e;
  --bg: #efefef;
  --acc: #177BFE;
  --ring: rgb(23 123 254 / 15%);
}

.mtr-detail--single {
  background: var(--bg);
  padding: 24px 0 60px;
}

.mtr-detail .mtr-title {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 0 8px;
  font-size: clamp(24px, 2.4vw, 36px);
  color: var(--ink);
}

.mtr-factsheet {
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgb(15 23 42 / 8%);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgb(15 23 42 / 6%), 0 1px 0 rgb(15 23 42 / 6%) inset;
}

.mtr-factsheet__top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mtr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0b57d0;
  background: #eef5ff;
  border: 1px solid var(--ring);
}

.mtr-infobar {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr .7fr 1fr;
  gap: 18px;
  border-top: 1px solid rgb(15 23 42 / 6%);
  padding-top: 14px;
  margin-bottom: 18px;
}

.mtr-infobar__item {
  min-width: 0;
}

.mtr-infobar__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  margin-bottom: 6px;
}

.mtr-infobar__value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (width <= 1024px) {
  .mtr-infobar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 640px) {
  .mtr-infobar {
    grid-template-columns: 1fr;
  }

  .mtr-factsheet {
    padding: 18px;
  }
}

.mtr-content {
  max-width: 980px;
  margin: 22px auto 0;
  background: #fff;
  border: 1px solid rgb(15 23 42 / 8%);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 16px rgb(0 0 0 / 4%);
}

.mtr-content h2,
.mtr-content h3 {
  margin: 10px 0 6px;
}

.mtr-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: auto;
  display: block;
}

.mtr-content th,
.mtr-content td {
  border: 1px solid rgb(15 23 42 / 12%);
  padding: 10px 12px;
  font-size: 14px;
}

.mtr-content a {
  color: var(--acc);
  text-decoration: none;
  border-bottom: 1px solid rgb(23 123 254 / 35%);
}

.mtr-actions .mtr-btn--primary,
.mtr-detail .mtr-btn--primary {
  background: linear-gradient(135deg, var(--acc, #177BFE), #61a6ff);
  color: #fff;
  box-shadow: 0 8px 18px var(--ring, rgb(23 123 254 / 15%));
}

.mtr-actions .mtr-btn--ghost,
.mtr-detail .mtr-btn--ghost {
  background: #fff;
  color: var(--ink, #0f0d0e);
  border: 1px solid rgb(15 23 42 / 12%);
}

.mtr-cats-table th,
.mtr-cats-table td {
  border: 1px solid rgb(15 23 42 / 12%);
  padding: 6px 8px;
  font-size: 13px;
  text-align: left;
}

.mtr-cat-table-summary {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #f0f7ff;
  border: 1px solid #d6e6f5;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgb(0 0 0 / 4%);
}

.mtr-cat-table-summary td {
  text-align: center;
  vertical-align: middle;
}

@media (prefers-color-scheme: dark) {
  .mtr-cat-table-summary {
    background: #1f3546;
    border-color: #314b60;
    box-shadow: 0 2px 6px rgb(0 0 0 / 50%);
  }
}

/* Mobile stacking for category summary table */
@media (width <= 640px) {
  .mtr-cat-table-summary { display: block; }
  .mtr-cat-table-summary thead { display: none; }
  .mtr-cat-table-summary tbody { display: block; }
  .mtr-cat-table-summary tbody tr { display: block; border: 1px solid #d6e6f5; border-radius: 12px; margin: 0 0 12px; background: #f3f9ff; overflow: hidden; }
  .mtr-cat-table-summary tbody tr:last-child { margin-bottom: 0; }
  .mtr-cat-table-summary td { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid #d6e6f5; }
  .mtr-cat-table-summary td:last-child { border-bottom: 0; }
  .mtr-cat-table-summary td {
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.35;
    font-size: clamp(13px, 3.8vw, 15px);
    color: #111827;
  }
  .mtr-cat-table-summary td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: clamp(12px, 3.4vw, 14px);
    color: #213547;
    margin-bottom: 2px;
    opacity: .85;
  }
  .mtr-cat-table-summary .cat-name {
    font-size: clamp(14px, 3.8vw, 16px);
  }
  /* Mobile: unify card background (remove zebra inside card) */
  .mtr-cat-table-summary tbody tr:nth-child(even) td {
    background: transparent !important;
  }
}
@media (prefers-color-scheme: dark) and (width <= 640px) {
  .mtr-cat-table-summary tbody tr { border-color: #314b60; background: #1f3546; }
  .mtr-cat-table-summary td { border-bottom: 1px solid #314b60; }
}

/* Mobile: hide early/late columns in categories table and keep light cards */
@media (width <= 640px) {
  /* Remove Early/Late on mobile */
  .mtr-cat-table-summary td.cat-early,
  .mtr-cat-table-summary td.cat-late {
    display: none !important;
  }
}

/* Force light look on mobile even in dark mode */
@media (prefers-color-scheme: dark) and (width <= 640px) {
  .mtr-cat-table-summary tbody tr {
    background: #f3f9ff !important;
    border-color: #d6e6f5 !important;
  }
  .mtr-cat-table-summary td {
    border-bottom-color: #d6e6f5 !important;
    color: #111827 !important;
  }
}

/* Mobile: hide also code, range and capacity in categories table; keep only name and fee */
@media (width <= 640px) {
  .mtr-cat-table-summary td.cat-code,
  .mtr-cat-table-summary td.cat-range,
  .mtr-cat-table-summary td.cat-cap {
    display: none !important;
  }
  /* Remove trailing divider for the last visible row (fee) */
  .mtr-cat-table-summary td.cat-fee {
    border-bottom: 0 !important;
  }
}

/* Kontakt + przycisk inline */
.mtr-contact-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mtr-contact-inline .mtr-contact-sep {
  display: inline-block;
  color: #9ca3af;
}

.mtr-contact-inline a.mi-btn {
  margin-left: 4px;
}

/* New styles for single layout */
.mtr-infobar--with-actions {
  grid-template-columns: 1.1fr 1fr 1.2fr .7fr 1fr auto;
}

@media (width <= 1024px) {
  .mtr-infobar--with-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 640px) {
  .mtr-infobar--with-actions {
    grid-template-columns: 1fr;
  }
}

/* === Overrides: Kategorie rozgrywek layout refinement === */
.mtr-detail--single .mtr-cat-section {
  max-width: 1100px;
  margin: 32px auto 40px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0 4px;
}

.mtr-detail--single .mtr-cat-section .mtr-cat-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0 0 14px;
  text-align: left;
}

/* Delikatniejsza kolorystyka tabeli (jasnobłękitne tło) */
.mtr-detail--single .mtr-cat-table-summary {
  background: #f3f9ff;
  border-color: #c9e2f5;
}

.mtr-detail--single .mtr-cat-table-summary thead th {
  background: #e7f3fd;
  border-bottom: 1px solid #c9e2f5;
}

.mtr-detail--single .mtr-cat-table-summary tbody tr:nth-child(even) td {
  background: #eef6ff;
}

/* Wyrównanie nagłówków i wzmocnienie nazwy kategorii */
.mtr-detail--single .mtr-cat-table-summary .cat-name {
  font-weight: 700;
}

/* Legenda bardziej subtelna */
.mtr-detail--single .mtr-cat-legend small {
  color: #486680;
  font-size: 12px;
}

/* --- Signup (registration) sections (scoped) --- */
.mtr-signup-section {
  --signup-bg: #ffffff;
  --signup-border: #e5e7eb;
  --signup-radius: 16px;
  --signup-shadow: 0 4px 18px rgba(0,0,0,.06);
  background: var(--signup-bg);
  border: 1px solid var(--signup-border);
  border-radius: var(--signup-radius);
  padding: 20px 22px 24px;
  margin: 18px 0 0;
  box-shadow: var(--signup-shadow);
  position: relative;
}
.mtr-signup-section:first-of-type { margin-top: 10px; }
.mtr-signup-section > h3,
.mtr-signup-section > header > h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .3px;
}
.mtr-signup-section small { color: #6b7280; font-size: 12px; }
.mtr-signup-section .mtr-signup-note { margin-top: 10px; font-size: 13px; color:#555; }

/* Companions */
.mtr-signup-companions { padding: 1rem; }
.mtr-signup-companions__list { display: flex; flex-direction: column; gap: 12px; margin:0; padding:0; list-style:none; }
.mtr-signup-companions__item { background:#f9fafb; border:1px solid #e5e7eb; border-radius:12px; padding:14px 16px 16px; position:relative; display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.mtr-signup-companions__item label { display:flex; flex-direction:column; gap:4px; font-size:12px; font-weight:600; color:#444; }
.mtr-signup-companions__item input[type="text"],
.mtr-signup-companions__item input[type="number"],
.mtr-signup-companions__item input[type="date"] { padding:10px 12px; border:1px solid #d1d5db; border-radius:10px; background:#fff; font-size:13px; }
.mtr-signup-companions__item button.mtr-signup-remove { position:absolute; top:8px; right:8px; background:#fff; border:1px solid #e5e7eb; width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:8px; font-size:18px; line-height:1; cursor:pointer; }
.mtr-signup-companions__add { margin-top:14px; }

/* Lodging (person-nights table) */
.mtr-signup-lodging { overflow-x:auto; }
.mtr-signup-lodging table { width:100%; border-collapse:separate; border-spacing:0; font-size:13px; min-width:520px; }
.mtr-signup-lodging th, .mtr-signup-lodging td { border:1px solid #e5e7eb; padding:8px 10px; text-align:left; background:#fff; }
.mtr-signup-lodging th { background:#f1f5f9; font-weight:600; font-size:12px; letter-spacing:.5px; text-transform:uppercase; }
.mtr-signup-lodging tfoot td { background:#f9fafb; font-weight:600; }
.mtr-signup-lodging input[type="number"] { width:70px; padding:6px 8px; border:1px solid #d1d5db; border-radius:8px; }

/* Addons */
.mtr-signup-addons { display:grid; gap:18px; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); }
.mtr-signup-addons__item { border:1px solid #e5e7eb; border-radius:14px; background:#fff; padding:16px 16px 18px; display:flex; flex-direction:column; gap:10px; position:relative; box-shadow:0 4px 14px rgba(0,0,0,.04); }
.mtr-signup-addons__item h4 { margin:0; font-size:15px; font-weight:600; }
.mtr-signup-addons__item small { font-size:11px; letter-spacing:.3px; text-transform:uppercase; color:#6b7280; }
.mtr-signup-addons__item .mtr-signup-addons__days { display:grid; gap:6px; grid-template-columns:repeat(auto-fill,minmax(54px,1fr)); margin-top:4px; }
.mtr-signup-addons__item .mtr-signup-addons__days label { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:10px; font-weight:600; padding:6px 4px 7px; border:1px solid #e5e7eb; border-radius:10px; background:#f9fafb; cursor:pointer; user-select:none; }
.mtr-signup-addons__item .mtr-signup-addons__days input[type="checkbox"] { accent-color: var(--module-accent,#176BFE); }
.mtr-signup-addons__item .mtr-signup-addons__meta { font-size:12px; color:#555; line-height:1.45; }
.mtr-signup-addons__item[data-disabled="1"] { opacity:.55; pointer-events:none; }
.mtr-signup-addons__fee { font-weight:600; font-size:13px; color:#111827; }

/* Summary */
.mtr-signup-summary { background:#101828; color:#f1f5f9; border-radius:18px; padding:20px 22px; box-shadow:0 8px 24px rgba(0,0,0,.22); position:relative; overflow:hidden; }
.mtr-signup-summary:before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 75% 15%,rgba(255,255,255,.18),rgba(255,255,255,0)); pointer-events:none; }
.mtr-signup-summary h4 { margin:0 0 14px; font-size:16px; font-weight:600; letter-spacing:.4px; }
.mtr-signup-summary ul { margin:0 0 12px; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.mtr-signup-summary li { display:flex; justify-content:space-between; gap:12px; font-size:13px; }
.mtr-signup-summary li strong { font-weight:600; letter-spacing:.3px; }
.mtr-signup-summary .mtr-signup-summary__total { margin-top:6px; padding-top:10px; border-top:1px solid rgba(255,255,255,.15); font-size:14px; font-weight:600; }
.mtr-signup-summary .mtr-signup-summary__total strong { font-size:16px; }

/* Inputs inside signup sections */
.mtr-signup-section input[type="text"],
.mtr-signup-section input[type="email"],
.mtr-signup-section input[type="number"],
.mtr-signup-section input[type="date"],
.mtr-signup-section select, .mtr-signup-section textarea {
  padding:10px 12px; border:1px solid #d1d5db; border-radius:10px; background:#fff; font-size:14px; line-height:1.3; width:100%; box-sizing:border-box; }
.mtr-signup-section input:focus,
.mtr-signup-section select:focus,
.mtr-signup-section textarea:focus { outline:none; border-color:var(--module-accent,#176BFE); box-shadow:0 0 0 3px rgba(23,107,254,.18); background:#fff; }

/* Lightweight badge style inside sections */
.mtr-signup-badge { display:inline-block; padding:4px 8px; font-size:11px; font-weight:600; border:1px solid #e5e7eb; background:#f1f5f9; border-radius:999px; letter-spacing:.4px; }

/* Responsive tightening */
@media (width <= 640px){
  .mtr-signup-section { padding:18px 16px 22px; }
  .mtr-signup-addons { grid-template-columns:1fr; }
  .mtr-signup-companions__item { grid-template-columns:1fr 1fr; }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark){
  .mtr-signup-section { --signup-bg:#1f262d; --signup-border:#2f3943; --signup-shadow:0 4px 18px rgba(0,0,0,.5); }
  .mtr-signup-companions__item { background:#252e35; border-color:#37414b; }
  .mtr-signup-companions__item input { background:#1f262d; color:#e2e8f0; border-color:#3a4550; }
  .mtr-signup-lodging th { background:#2c363f; border-color:#3a4550; }
  .mtr-signup-lodging td { background:#252e35; border-color:#3a4550; }
  .mtr-signup-addons__item { background:#252e35; border-color:#3a4550; box-shadow:none; }
  .mtr-signup-addons__item .mtr-signup-addons__days label { background:#2c353d; border-color:#3a4550; color:#d6dde5; }
  .mtr-signup-summary { background:#141b22; box-shadow:0 8px 30px rgba(0,0,0,.6); }
  .mtr-signup-summary:before { background:radial-gradient(circle at 75% 15%,rgba(255,255,255,.06),rgba(255,255,255,0)); }
}

/* === Payment summary (mtr-pay) === */
.mtr-pay { max-width: 960px; margin: 24px auto 60px; }
.mtr-pay__panel { background:#fff; border:1px solid #E5E7EB; border-radius:16px; padding:24px 26px 30px; box-shadow:0 8px 28px rgba(0,0,0,.06); position:relative; }
.mtr-pay__title { margin:0 0 18px; font-size:22px; font-weight:650; letter-spacing:.4px; }
.mtr-pay__status { font-size:13px; margin:0 0 14px; color:#6B7280; min-height:18px; }
.mtr-pay__status--ok { color:#166534; }
.mtr-pay__status--err { color:#B91C1C; }
.mtr-pay__status--info { color:#1D4ED8; }
.mtr-pay__list { list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:10px; }
.mtr-pay__line { display:grid; grid-template-columns:1fr auto auto; gap:14px; align-items:center; padding:12px 14px; border:1px solid #E5E7EB; border-radius:12px; background:#F9FAFB; font-size:14px; line-height:1.35; position:relative; }
.mtr-pay__line--addon { background:#fff; }
.mtr-pay__line[data-removed="1"] { opacity:.45; text-decoration:line-through; }
.mtr-pay__line-label { font-weight:500; overflow-wrap:anywhere; }
.mtr-pay__line-amount { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-weight:600; }
.mtr-pay__line-remove { background:#fff; border:1px solid #E5E7EB; border-radius:8px; width:34px; height:34px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:18px; line-height:1; color:#111827; }
.mtr-pay__line-remove:hover { background:#F1F5F9; }
.mtr-pay__line--discount { background:#F1F8F4; border-color:#D2E8D9; }
.mtr-pay__line--discount .mtr-pay__line-amount { color:#166534; }
.mtr-pay__line--base_entry { background:#EEF5FF; border-color:#CFE3FF; }
.mtr-pay__total { display:flex; justify-content:space-between; gap:24px; padding:14px 16px 4px; font-size:15px; font-weight:600; border-top:1px solid #E5E7EB; }
.mtr-pay__actions { display:flex; gap:12px; flex-wrap:wrap; }
.mtr-pay__btn { appearance:none; border:1px solid #1D4ED8; background:#1D4ED8; color:#fff; font-weight:600; padding:10px 18px 11px; border-radius:12px; cursor:pointer; font-size:14px; line-height:1.1; box-shadow:0 4px 14px rgba(29,78,216,.25); }
.mtr-pay__btn:hover { background:#1A47C6; }
.mtr-pay__btn:disabled { opacity:.6; cursor:not-allowed; }
.mtr-pay__btn--secondary { background:#fff; color:#1D4ED8; }
@media (prefers-color-scheme: dark){
  .mtr-pay__panel { background:#1F262D; border-color:#2F3943; box-shadow:0 8px 28px rgba(0,0,0,.5); }
  .mtr-pay__line { background:#252E35; border-color:#35414B; }
  .mtr-pay__line--addon { background:#1F262D; }
  .mtr-pay__line--discount { background:#1F3526; border-color:#2A4B35; }
  .mtr-pay__line--base_entry { background:#1F3146; border-color:#2C455E; }
  .mtr-pay__line-remove { background:#1F262D; border-color:#35414B; color:#E2E8F0; }
  .mtr-pay__line-remove:hover { background:#273038; }
  .mtr-pay__status { color:#9CA7B3; }
  .mtr-pay__status--ok { color:#4ADE80; }
  .mtr-pay__status--err { color:#F87171; }
  .mtr-pay__total { border-top-color:#35414B; }
  .mtr-pay__btn { background:#2563EB; border-color:#2563EB; box-shadow:0 4px 14px rgba(37,99,235,.45); }
  .mtr-pay__btn:hover { background:#1D4ED8; }
  .mtr-pay__btn--secondary { background:#1F262D; color:#93C5FD; border-color:#35414B; }
}
@media (width <= 640px){
  .mtr-pay__panel { padding:20px 18px 26px; }
  .mtr-pay__line { grid-template-columns:1fr auto; }
  .mtr-pay__line-remove { position:absolute; top:6px; right:6px; width:30px; height:30px; }
  .mtr-pay__total { padding:12px 4px 0; }
}

/* MOBILE FIXES — Tournaments form (<= 768px). Do not alter desktop. */
@media (max-width: 768px) {
  .mtr-detail,
  .mtr-form,
  .mtr-form--full,
  .mtr-detail--register,
  .mtr-detail--club {
    overflow-x: hidden;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mtr-info-card,
  .mtr-form .mtr-section,
  .mtr-fieldset,
  .mtr-signup-section,
  .mtr-card,
  .mtr-card.mtr-draft-bar {
    max-width: 100%;
    width: 100%;
  }

  .mtr-grid {
    display: grid;
    grid-template-columns: 1fr;      /* from 2–3 cols -> 1 col */
    gap: 12px !important;
  }

  .mtr-col,
  .mtr-field {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .mtr-label {
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.3;
  }

  .mtr-input,
  .mtr-select,
  .mtr-textarea,
  .mtr-form input,
  .mtr-form select,
  .mtr-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0; /* fix for flex items */
  }

  /* Segmented/role switches */
  .mtr-register-as,
  .mtr-segmented,
  .wtv-role {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wtv-role-option { width: 100%; justify-content: flex-start; }

  /* Step nav / sticky footer */
  .mtr-step-nav,
  .mtr-sticky-footer,
  .mtr-form-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 20;
  }
  .mtr-step-nav .mi-btn,
  .mtr-sticky-footer .mi-btn,
  .mtr-form-footer .mi-btn,
  .mtr-actions .mi-btn {
    width: 100%;
  }

  /* Content safe space when sticky controls present */
  .mtr-detail,
  .mtr-detail--register,
  .mtr-detail--club {
    padding-bottom: max(72px, env(safe-area-inset-bottom, 0px));
  }

  /* Images/icons scale down */
  .mtr-detail img,
  .mtr-info-card img,
  .mtr-icon,
  .mtr-card img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure all grid variants collapse to single column despite inline styles */
  .mtr-grid,
  .mtr-grid--2,
  .mtr-grid--address,
  .mtr-grid.mtr-grid--2,
  .mtr-grid.mtr-grid--address {
    grid-template-columns: 1fr !important;
  }
  /* Prevent field min-widths from forcing overflow */
  .mtr-field,
  .mtr-field--wide,
  .mtr-field--small,
  .mtr-field--postal,
  .mtr-field--medium {
    min-width: 0 !important;
  }
  /* Registrar role pills wrap and fill width without overflow */
  .wtv-role { grid-auto-rows: minmax(40px, auto); }
  .wtv-role-option { max-width: 100%; white-space: normal; }
}

/* Extra small screens */
@media (max-width: 576px) {
  .mtr-detail .page-title,
  .mtr-title {
    font-size: clamp(16px, 5vw, 20px);
    margin-bottom: 8px;
  }
  .mtr-help,
  .mtr-signup-section small {
    font-size: 12px;
  }
}

/* === FACTSHEET — MOBILE ONLY === */
@media (width <= 768px) {
  .mtr-factsheet,
  .factsheet,
  .factsheet-table {
    width: 100%;
    overflow-x: hidden;
  }

  /* Ukryj nagłówki tabeli na mobile */
  .factsheet-table thead,
  .mtr-factsheet thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
  }

  /* Zamiana wierszy na karty */
  .factsheet-table,
  .mtr-factsheet table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .factsheet-table tr,
  .mtr-factsheet tr {
    display: block;
    background: var(--fs-row-bg, #f7f9fc);       /* jasne tło */
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 14px;
    padding: 12px;
    margin: 12px 0;
    box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
  }

  /* Subtelna zebra, bez ciemnych płyt */
  .factsheet-table tr:nth-child(even),
  .mtr-factsheet tr:nth-child(even) {
    background: var(--fs-row-bg-alt, #fff);
  }

  .factsheet-table td,
  .mtr-factsheet td {
    display: block;
    padding: 6px 0;
    border: none;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    /* word-break removed as deprecated; rely on overflow-wrap/hyphens */
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.35;
    color: #111827;
    font-size: clamp(13px, 3.8vw, 15px);
  }

  /* Etykieta kolumny nad wartością */
  .factsheet-table td::before,
  .mtr-factsheet td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: clamp(12px, 3.4vw, 14px);
    color: #213547; /* ciemny czytelny */
    margin-bottom: 2px;
    opacity: .85;
  }

  /* Przyciski/linki wewnątrz komórek na pełną szerokość */
  .factsheet-table a.btn,
  .mtr-factsheet a.btn {
    width: 100%;
    text-align: center;
  }

  /* Dostępność: focus-visible dla interaktywnych elementów */
  .mtr-factsheet a:focus-visible,
  .mtr-factsheet button:focus-visible,
  .factsheet-table a:focus-visible,
  .factsheet-table button:focus-visible {
    outline: 2px solid var(--module-accent, #176BFE);
    outline-offset: 2px;
    border-radius: 6px;
  }
}

/* W razie bardzo małych ekranów */
@media (width <= 576px) {
  .factsheet-table tr,
  .mtr-factsheet tr {
    padding: 10px;
    border-radius: 12px;
  }
}

/* --- Factsheet Cohort Cards (Karty) --- */
.factsheet-view-toggle { display:flex; gap:8px; margin:10px 0 16px; }
.factsheet-view-toggle button { border:1px solid rgba(0,0,0,.12); padding:6px 10px; border-radius:8px; background:#fff; color:#111827; font-weight:600; cursor:pointer; }
.factsheet-view-toggle button.is-active { border-color: rgba(0,0,0,.25); box-shadow: 0 1px 2px rgba(0,0,0,.05); }

.factsheet-cards { display:grid; gap:12px; }
@media (min-width: 992px) { .factsheet-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1280px) { .factsheet-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.fs-card { background:#fff; border:1px solid rgb(15 23 42 / 10%); border-radius:14px; padding:14px; box-shadow:0 1px 2px rgb(15 23 42 / 6%); }
.fs-card__head { display:flex; flex-direction:column; gap:4px; margin-bottom:8px; }
.fs-card__title { font-size: clamp(16px, 2.2vw, 18px); margin:0; color:#0f172a; }
.fs-card__meta { display:flex; gap:12px; flex-wrap:wrap; color:#1f2937; font-size: clamp(12px, 1.8vw, 13px); }

.fs-modes { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.fs-mode { display:flex; gap:10px; align-items:flex-start; border:1px dashed rgba(0,0,0,.12); border-radius:10px; padding:8px 10px; background:#f8fafc; color:#0f172a; }
.fs-chip { display:inline-flex; align-items:center; justify-content:center; min-width:38px; padding:4px 8px; border-radius:999px; font-weight:700; font-size:12px; background:#eef3ff; border:1px solid rgba(0,0,0,.08); color:#0f172a; }
.fs-mode__name { font-weight:700; font-size:13px; }
.fs-mode__fees { display:flex; gap:12px; flex-wrap:wrap; font-size: 13px; color:#111827; }
@media (max-width: 768px){ .factsheet-cards { grid-template-columns: 1fr; } .fs-mode__fees { font-size: 12px; } }

/* Hide via [hidden] attribute */
[data-view="cards"][hidden], [data-view="table"][hidden] { display:none !important; }
