.fairdriving-portal {
  --fd-bg: #f4f5ee;
  --fd-surface: #ffffff;
  --fd-ink: #071313;
  --fd-muted: #62706c;
  --fd-border: #d6ded9;
  --fd-lime: #c8ff31;
  --fd-lime-strong: #9fe000;
  --fd-danger: #b42318;
  color: var(--fd-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  margin: 24px auto;
  max-width: 1280px;
}

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

.fd-shell,
.fd-login-shell {
  background: var(--fd-bg);
  border: 1px solid var(--fd-border);
  border-radius: 28px;
  min-height: 640px;
  overflow: hidden;
}

.fd-header {
  align-items: center;
  background: var(--fd-surface);
  border-bottom: 1px solid var(--fd-border);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 18px 24px;
}

.fd-brand,
.fd-login-brand {
  align-items: center;
  display: flex;
  font-size: 24px;
  font-weight: 850;
  gap: 11px;
  letter-spacing: -0.04em;
}

.fd-brand-mark {
  align-items: center;
  background: var(--fd-ink);
  border-radius: 13px 17px 14px 7px;
  color: var(--fd-lime);
  display: inline-flex;
  font-size: 27px;
  font-style: italic;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  transform: skew(-4deg);
  width: 52px;
}

.fd-account {
  align-items: center;
  display: flex;
  gap: 16px;
  text-align: right;
}

.fd-account span,
.fd-account small {
  display: block;
}

.fd-account small {
  color: var(--fd-muted);
  margin-top: 2px;
}

.fd-tabs {
  background: var(--fd-surface);
  border-bottom: 1px solid var(--fd-border);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 20px 12px;
  scrollbar-width: thin;
}

.fd-tab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--fd-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 10px 15px;
  white-space: nowrap;
}

.fd-tab:hover,
.fd-tab:focus-visible {
  background: #edf0e8;
}

.fd-tab.is-active {
  background: var(--fd-lime);
}

.fd-content {
  padding: 28px;
}

.fd-page-heading {
  margin-bottom: 24px;
}

.fd-page-heading h1,
.fd-login-card h2 {
  color: var(--fd-ink);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 7px;
}

.fd-page-heading p,
.fd-login-card > p {
  color: var(--fd-muted);
  font-size: 17px;
  margin: 0;
}

.fd-card {
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgb(7 19 19 / 4%);
  padding: 20px;
}

.fd-card h3,
.fd-card p {
  margin-top: 0;
}

.fd-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 22px;
}

.fd-stat {
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: 20px;
  min-height: 116px;
  padding: 20px;
}

.fd-stat span,
.fd-stat strong {
  display: block;
}

.fd-stat span {
  color: var(--fd-muted);
  font-size: 14px;
  font-weight: 700;
}

.fd-stat strong {
  font-size: 27px;
  letter-spacing: -0.035em;
  margin-top: 13px;
}

.fd-info-card {
  border-left: 7px solid var(--fd-lime);
  margin-top: 18px;
}

.fd-list {
  display: grid;
  gap: 12px;
}

.fd-list-item,
.fd-working-hour,
.fd-card-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.fd-list-item div span {
  color: var(--fd-muted);
  display: block;
  font-size: 14px;
}

.fd-list-item p {
  color: var(--fd-muted);
  flex-basis: 100%;
  margin: 8px 0 0;
}

.fd-list-item {
  flex-wrap: wrap;
}

.fd-status {
  background: rgb(200 255 49 / 30%);
  border-radius: 999px;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
  white-space: nowrap;
}

.fd-form {
  display: grid;
  gap: 16px;
}

.fd-form h3 {
  border-bottom: 1px solid var(--fd-border);
  font-size: 21px;
  margin: 16px 0 0;
  padding-bottom: 9px;
}

.fd-form label,
.fd-card > label {
  color: var(--fd-ink);
  display: grid;
  font-size: 14px;
  font-weight: 750;
  gap: 6px;
}

.fd-form input,
.fd-form select,
.fd-form textarea,
.fd-card > label select {
  background: #fff;
  border: 1px solid var(--fd-border);
  border-radius: 13px;
  color: var(--fd-ink);
  font: inherit;
  min-height: 48px;
  padding: 11px 13px;
  width: 100%;
}

.fd-form input[type="file"] {
  cursor: pointer;
  padding: 8px;
}

.fd-form label > small {
  color: var(--fd-muted);
  font-weight: 500;
}

.fd-form input:focus,
.fd-form select:focus,
.fd-form textarea:focus,
.fd-card > label select:focus {
  border-color: var(--fd-lime-strong);
  box-shadow: 0 0 0 4px rgb(200 255 49 / 22%);
  outline: 0;
}

.fd-form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.fd-check-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fd-checkbox,
.fd-switch {
  align-items: center;
  background: #f8faf6;
  border: 1px solid var(--fd-border);
  border-radius: 13px;
  cursor: pointer;
  display: flex !important;
  gap: 10px !important;
  min-height: 48px;
  padding: 11px 13px;
}

.fd-checkbox input,
.fd-switch input {
  accent-color: var(--fd-lime-strong);
  height: 20px;
  min-height: auto;
  width: 20px;
}

.fd-input-prefix {
  align-items: center;
  display: flex;
  position: relative;
}

.fd-input-prefix > span {
  color: var(--fd-muted);
  left: 13px;
  position: absolute;
  z-index: 1;
}

.fd-input-prefix input {
  padding-left: 34px;
}

.fd-button {
  align-items: center;
  background: var(--fd-lime);
  border: 1px solid var(--fd-lime-strong);
  border-radius: 999px;
  color: var(--fd-ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  text-decoration: none;
}

.fd-button:hover,
.fd-button:focus-visible {
  background: var(--fd-lime-strong);
}

.fd-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.fd-button-quiet {
  background: #fff;
  border-color: var(--fd-border);
}

.fd-button-danger {
  background: #fff;
  border-color: #f4b9b3;
  color: var(--fd-danger);
}

.fd-button-danger:hover,
.fd-button-danger:focus-visible {
  background: #fee4e2;
}

.fd-link-button,
.fd-icon-button {
  background: transparent;
  border: 0;
  color: var(--fd-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
}

.fd-icon-button {
  align-items: center;
  background: #f5f5f2;
  border-radius: 50%;
  display: inline-flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  text-decoration: none;
  width: 38px;
}

.fd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.fd-message {
  border-radius: 13px;
  font-weight: 700;
  margin: 16px 24px 0;
  padding: 12px 15px;
}

.fd-message.is-success {
  background: #dff8d5;
}

.fd-message.is-info {
  background: #e9f2fb;
}

.fd-message.is-error {
  background: #fee4e2;
  color: var(--fd-danger);
}

.fd-login-shell {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 20px;
}

.fd-login-brand {
  margin-bottom: 24px;
}

.fd-login-card {
  max-width: 480px;
  padding: clamp(24px, 5vw, 42px);
  width: 100%;
}

.fd-login-card .fd-message {
  margin: 15px 0;
}

.fd-loading,
.fd-error,
.fd-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  text-align: center;
}

.fd-spinner {
  animation: fd-spin 0.85s linear infinite;
  border: 4px solid var(--fd-border);
  border-radius: 50%;
  border-top-color: var(--fd-lime-strong);
  height: 42px;
  width: 42px;
}

.fd-table-wrap {
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: 20px;
  overflow-x: auto;
}

.fd-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.fd-table th,
.fd-table td {
  border-bottom: 1px solid var(--fd-border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.fd-table th {
  background: #fafbf7;
  font-size: 13px;
  text-transform: uppercase;
}

.fd-comparison {
  background: rgb(200 255 49 / 25%);
  border-radius: 18px;
  display: grid;
  gap: 3px;
  padding: 18px;
}

.fd-comparison span,
.fd-comparison small {
  color: var(--fd-muted);
}

.fd-comparison strong {
  font-size: 26px;
}

.fd-comparison-preview {
  border: 1px solid rgb(159 224 0 / 45%);
  min-height: 108px;
}

.fd-comparison-components {
  background: #fafbf7;
  border: 1px solid var(--fd-border);
  border-radius: 16px;
  padding: 12px;
}

.fd-callout,
.fd-invite-code {
  background: rgb(200 255 49 / 20%);
  border: 1px solid rgb(159 224 0 / 35%);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 14px;
  width: 100%;
}

.fd-callout p,
.fd-invite-code small {
  color: var(--fd-muted);
  margin: 0;
}

.fd-invite-code strong {
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: 0.08em;
}

.fd-details {
  border-top: 1px solid var(--fd-border);
  padding-top: 12px;
  width: 100%;
}

.fd-details summary,
.fd-user-card > summary {
  cursor: pointer;
  font-weight: 800;
}

.fd-details .fd-form,
.fd-user-card .fd-form {
  margin-top: 16px;
}

.fd-user-card {
  margin-bottom: 12px;
}

.fd-user-card > summary span,
.fd-user-card > summary small {
  display: block;
}

.fd-user-card > summary small {
  color: var(--fd-muted);
  font-weight: 500;
  margin-top: 3px;
}

.fd-danger-zone {
  border-color: #f4b9b3;
  margin-top: 20px;
}

@keyframes fd-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
  .fairdriving-portal {
    margin: 10px auto;
  }

  .fd-shell,
  .fd-login-shell {
    border-radius: 18px;
  }

  .fd-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .fd-account {
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }

  .fd-content {
    padding: 20px 14px;
  }

  .fd-tabs {
    padding-left: 12px;
  }

  .fd-card-heading,
  .fd-list-item {
    align-items: flex-start;
  }

  .fd-card-heading {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fd-spinner { animation-duration: 1.8s; }
  .fairdriving-portal * { scroll-behavior: auto !important; }
}

.fairdriving-school-directory {
  --fdsd-ink: #071313;
  --fdsd-muted: #5f6d68;
  --fdsd-yellow: #ffe04a;
  --fdsd-yellow-soft: #fff6bb;
  --fdsd-lime: #c8ff31;
  --fdsd-cream: #f7f4e9;
  --fdsd-white: #ffffff;
  --fdsd-border: #d8dfd9;
  color: var(--fdsd-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  margin: 24px auto;
  max-width: 1320px;
}

.fairdriving-school-directory *,
.fairdriving-school-directory *::before,
.fairdriving-school-directory *::after {
  box-sizing: border-box;
}

.fdsd-shell {
  background: var(--fdsd-cream);
  border: 1px solid var(--fdsd-border);
  border-radius: 32px;
  overflow: hidden;
}

.fdsd-hero {
  background:
    radial-gradient(circle at 84% 18%, rgb(255 255 255 / 68%) 0 8%, transparent 8.5%),
    linear-gradient(135deg, var(--fdsd-yellow) 0%, #f2ff74 100%);
  padding: clamp(36px, 7vw, 84px) clamp(22px, 7vw, 88px);
  position: relative;
}

.fdsd-hero::after {
  background: var(--fdsd-ink);
  border-radius: 48% 52% 40% 60%;
  bottom: -36px;
  content: "";
  height: 92px;
  opacity: 0.06;
  position: absolute;
  right: 8%;
  transform: rotate(-8deg);
  width: 190px;
}

.fdsd-eyebrow {
  align-items: center;
  display: flex;
  font-size: 15px;
  font-weight: 850;
  gap: 10px;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.fdsd-brand-mark,
.fdsd-school-mark {
  align-items: center;
  background: var(--fdsd-ink);
  color: var(--fdsd-lime);
  display: inline-flex;
  font-style: italic;
  font-weight: 950;
  justify-content: center;
  transform: skew(-4deg);
}

.fdsd-brand-mark {
  border-radius: 9px 12px 10px 5px;
  font-size: 18px;
  height: 32px;
  width: 36px;
}

.fdsd-hero h1 {
  font-size: clamp(38px, 7vw, 76px);
  letter-spacing: -0.06em;
  line-height: 0.96;
  margin: 0;
  max-width: 850px;
}

.fdsd-hero > p {
  font-size: clamp(17px, 2vw, 22px);
  margin: 24px 0 0;
  max-width: 720px;
}

.fdsd-filters {
  align-items: end;
  background: var(--fdsd-white);
  border: 1px solid var(--fdsd-border);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgb(7 19 19 / 9%);
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(150px, 1fr)) auto;
  margin: -24px clamp(14px, 4vw, 52px) 0;
  padding: 18px;
  position: relative;
  z-index: 2;
}

.fdsd-filters label {
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.fdsd-filters input,
.fdsd-filters select {
  appearance: none;
  background: #fff;
  border: 1px solid var(--fdsd-border);
  border-radius: 12px;
  color: var(--fdsd-ink);
  font: inherit;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.fdsd-filters select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fdsd-ink) 50%), linear-gradient(135deg, var(--fdsd-ink) 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 32px;
}

.fdsd-filters input:focus,
.fdsd-filters select:focus {
  border-color: #adca00;
  box-shadow: 0 0 0 4px rgb(200 255 49 / 32%);
  outline: 0;
}

.fdsd-reset {
  background: var(--fdsd-ink);
  border: 1px solid var(--fdsd-ink);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 48px;
  padding: 10px 18px;
  white-space: nowrap;
}

.fdsd-reset:hover,
.fdsd-reset:focus-visible {
  background: #17312d;
  outline: 3px solid var(--fdsd-lime);
  outline-offset: 2px;
}

.fdsd-result-bar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 34px clamp(18px, 4vw, 54px) 16px;
}

.fdsd-result-bar p {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
}

.fdsd-result-bar span {
  color: var(--fdsd-muted);
  font-size: 13px;
}

.fdsd-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 clamp(18px, 4vw, 54px) 28px;
}

.fdsd-card {
  background: var(--fdsd-white);
  border: 1px solid var(--fdsd-border);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgb(7 19 19 / 5%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
}

.fdsd-card-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
}

.fdsd-card-head > div {
  min-width: 0;
}

.fdsd-school-mark {
  border-radius: 14px 18px 15px 7px;
  flex: 0 0 auto;
  font-size: 29px;
  height: 58px;
  width: 64px;
}

.fdsd-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.fdsd-title-row h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
  overflow-wrap: anywhere;
}

.fdsd-partner {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
  text-transform: uppercase;
}

.fdsd-partner-gold { background: #ffe68a; }
.fdsd-partner-silver { background: #e7eceb; }
.fdsd-partner-bronze { background: #efd2b5; }

.fdsd-location {
  color: var(--fdsd-muted);
  margin: 6px 0 5px;
}

.fdsd-rating {
  color: #725500;
  font-size: 14px;
  font-weight: 850;
}

.fdsd-rating small {
  color: var(--fdsd-muted);
  font-weight: 650;
}

.fdsd-rating-empty {
  color: var(--fdsd-muted);
  font-weight: 650;
}

.fdsd-stars {
  color: #d39c00;
  letter-spacing: 1px;
  white-space: nowrap;
}

.fdsd-review-details {
  margin-top: 0;
}

.fdsd-rating-summary {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 18px 0 10px;
}

.fdsd-rating-summary > strong {
  font-size: 42px;
  letter-spacing: -0.05em;
}

.fdsd-rating-summary > span {
  display: grid;
  gap: 2px;
}

.fdsd-rating-summary small {
  color: var(--fdsd-muted);
}

.fdsd-rating-bars {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

.fdsd-rating-bars > div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 14px 1fr 24px;
}

.fdsd-rating-track {
  background: #e9eeea;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.fdsd-rating-track i {
  background: #d39c00;
  display: block;
  height: 100%;
}

.fdsd-rating-bars small {
  color: var(--fdsd-muted);
  text-align: right;
}

.fdsd-reviews {
  display: grid;
  gap: 12px;
}

.fdsd-review {
  background: #f7f8f4;
  border: 1px solid var(--fdsd-border);
  border-radius: 16px;
  padding: 14px;
}

.fdsd-review-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.fdsd-review > small,
.fdsd-response small {
  color: var(--fdsd-muted);
}

.fdsd-review p {
  margin: 8px 0 0;
}

.fdsd-response {
  background: var(--fdsd-white);
  border-left: 3px solid var(--fdsd-yellow);
  border-radius: 10px;
  margin-top: 12px;
  padding: 11px 12px;
}

.fdsd-price-panel {
  background: linear-gradient(135deg, var(--fdsd-yellow-soft), #efffc0);
  border: 1px solid #e1d65d;
  border-radius: 18px;
  display: grid;
  gap: 2px;
  padding: 17px 18px;
}

.fdsd-price-panel span,
.fdsd-price-panel small {
  color: #4d5b50;
}

.fdsd-price-panel span {
  font-size: 13px;
  font-weight: 800;
}

.fdsd-price-panel strong {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.fdsd-price-panel small {
  font-size: 12px;
}

.fdsd-section h3 {
  font-size: 13px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.fdsd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fdsd-chips span {
  background: var(--fdsd-ink);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.fdsd-feature-chips span {
  background: #edf3ee;
  color: var(--fdsd-ink);
}

.fdsd-languages {
  color: var(--fdsd-muted);
  font-size: 14px;
  margin: 0;
}

.fdsd-details {
  border-top: 1px solid var(--fdsd-border);
  margin-top: auto;
  padding-top: 15px;
}

.fdsd-details summary {
  cursor: pointer;
  font-weight: 850;
  list-style-position: outside;
  margin-left: 18px;
}

.fdsd-details dl {
  display: grid;
  gap: 0;
  margin: 13px 0 0;
}

.fdsd-details dl > div {
  align-items: baseline;
  border-bottom: 1px solid #edf0ed;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 8px 0;
}

.fdsd-details dt {
  color: var(--fdsd-muted);
}

.fdsd-details dd {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.fdsd-updated {
  color: var(--fdsd-muted);
  font-size: 12px;
  margin: -8px 0 0;
}

.fdsd-disclaimer {
  color: var(--fdsd-muted);
  font-size: 12px;
  margin: 0;
  padding: 0 clamp(18px, 4vw, 54px) 36px;
}

.fdsd-state,
.fdsd-empty {
  align-items: center;
  background: var(--fdsd-cream, #f7f4e9);
  border: 1px solid var(--fdsd-border, #d8dfd9);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 320px;
  padding: 28px;
  text-align: center;
}

.fdsd-empty {
  grid-column: 1 / -1;
}

.fdsd-empty > span,
.fdsd-state-icon {
  align-items: center;
  background: var(--fdsd-yellow, #ffe04a);
  border-radius: 50%;
  display: inline-flex;
  font-size: 34px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.fdsd-empty h2,
.fdsd-empty p,
.fdsd-state p {
  margin: 0;
}

.fdsd-state-error {
  background: #fff4f1;
  color: #8c1d18;
}

.fdsd-spinner {
  animation: fdsd-spin 0.85s linear infinite;
  border: 4px solid #d8dfd9;
  border-radius: 50%;
  border-top-color: #9abf00;
  height: 44px;
  width: 44px;
}

@keyframes fdsd-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .fdsd-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fdsd-reset {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .fairdriving-school-directory {
    margin: 10px auto;
  }

  .fdsd-shell {
    border-radius: 20px;
  }

  .fdsd-hero {
    padding: 34px 20px 50px;
  }

  .fdsd-filters,
  .fdsd-grid {
    grid-template-columns: 1fr;
  }

  .fdsd-filters {
    margin-left: 12px;
    margin-right: 12px;
  }

  .fdsd-result-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .fdsd-card-head {
    gap: 12px;
  }

  .fdsd-school-mark {
    height: 50px;
    width: 54px;
  }

  .fdsd-details dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .fdsd-details dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fdsd-spinner { animation-duration: 1.8s; }
}
