body {
  min-height: 100vh;
  background: #f4f6f8;
  color: #212529;
}

.site-header {
  width: 100%;
  background: linear-gradient(135deg, #181a1f, #22252c);
  color: #fff;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0;
  line-height: 1.2;
  color: #ffffffc7;
}

.navbar-toggler {
  border-color: #ffffff40;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.header-menu {
  gap: .5rem;
}

.header-menu .nav-link {
  color: #ffffffc7;
  font-weight: 500;
  padding-left: .85rem;
  padding-right: .85rem;
  border-radius: .65rem;
}

.header-menu .nav-link:hover,
.header-menu .nav-link:focus {
  color: #fff;
  background: #ffffff14;
}

.hero-card {
  border: 1px solid #e6e8ec;
  border-radius: 1.25rem;
  overflow: hidden;
}

.hero-card-header {
  background: #fff;
  border-bottom: 1px solid #e6e8ec;
}

.form-select,
.form-control,
.alert,
.font-card,
.about-card,
.content-card {
  border-radius: .85rem;
}

.postal-code-badge {
  font-size: 1.45rem;
  letter-spacing: .5px;
  color: #111827;
}

.place-list {
  max-height: 240px;
  overflow-y: auto;
}

.place-list li {
  margin-bottom: .25rem;
}

.postal-card {
  border: 1px solid #e6e8ec;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.postal-card:hover {
  box-shadow: 0 .75rem 1.5rem #11182714;
}

.about-card {
  border: 1px solid #e6e8ec;
}

.content-card {
  border: 1px solid #e6e8ec;
}

.breadcrumb-nav {
  --bs-breadcrumb-divider-color: #6c757d;
  font-size: .925rem;
}

.breadcrumb-nav a {
  color: #495057;
  text-decoration: none;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav a:focus {
  color: #111827;
  text-decoration: underline;
}

.accordion-button {
  font-weight: 600;
}

.accordion-button:focus {
  box-shadow: none;
}

.site-footer {
  width: 100%;
  background: #181a1f;
  color: #ffffffb8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #ffffffc7;
  text-decoration: none;
  font-size: .925rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff;
  text-decoration: underline;
}

.footer-language-switcher {
  border-top: 1px solid #ffffff1a;
  margin-top: 1rem;
  padding-top: 1rem;
}

.footer-language-title {
  color: #ffffffd9;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.footer-language-links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  padding: .3rem .65rem;
  line-height: 1.2;
}

.footer-language-links a:hover,
.footer-language-links a:focus {
  background: #ffffff12;
}

.form-select-lg {
  font-size: 16px;
}

@media (max-width: 991.98px) {
  .header-navbar-row {
    flex-wrap: wrap;
  }

  .site-logo {
    flex: 0 0 auto;
  }

  .site-title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-toggler {
    flex: 0 0 auto;
  }

  .navbar-collapse {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 1rem;
    padding: .75rem;
    background: #ffffff0f;
    border: 1px solid #ffffff1a;
    border-radius: 1rem;
  }

  .header-menu {
    width: 100%;
  }

  .header-menu .nav-link {
    padding: .75rem .85rem;
  }
}

.hero-intro {
  max-width: 780px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #1118270d;
  color: #111827;
  font-size: .9rem;
  font-weight: 700;
}

.generator-textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid #d8dde6;
  box-shadow: inset 0 1px 1px #11182708;
}

.generator-textarea:focus,
.font-output:focus {
  border-color: #22252c;
  box-shadow: 0 0 0 .2rem #181a1f14;
}

.font-card {
  border: 1px solid #e6e8ec;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.font-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 .75rem 1.5rem #11182714;
}

.font-card-label {
  color: #6b7280;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.font-output {
  min-height: 48px;
  font-size: 1.05rem;
  background: #f9fafb;
  border: 1px solid #e6e8ec;
}

.copybutton {
  min-width: 92px;
  justify-content: center;
  font-weight: 700;
  background: #181a1f;
  color: #fff;
  border-color: #181a1f;
  user-select: none;
}

.copybutton:hover,
.copybutton:focus {
  color: #fff;
  background: #2c3038;
  border-color: #2c3038;
}

.generator-meta {
  color: #6c757d;
  font-size: .95rem;
}

.keyword-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.keyword-pill {
  display: inline-flex;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #f4f6f8;
  color: #343a40;
  border: 1px solid #e6e8ec;
  font-weight: 600;
  font-size: .92rem;
}

.step-list {
  padding-left: 1.15rem;
}

.step-list li {
  margin-bottom: .45rem;
}

.site-logo {
  border-radius: .9rem;
}

@media (max-width: 575.98px) {
  .input-group.font-row {
    display: block;
  }

  .input-group.font-row .font-output {
    width: 100%;
    border-radius: .85rem .85rem 0 0 !important;
  }

  .input-group.font-row .copybutton {
    width: 100%;
    border-radius: 0 0 .85rem .85rem !important;
    padding: .75rem 1rem;
  }
}

.mini-info-card {
  background: #f9fafb;
  border: 1px solid #e6e8ec;
  border-radius: 1rem;
  padding: 1rem;
}

.mini-info-card h3 {
  color: #181a1f;
  font-weight: 700;
}

/* Compact one-line language flag switcher */
.footer-language-links {
  flex-wrap: nowrap;
  gap: .22rem;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: .15rem 0 .5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.footer-language-links li {
  flex: 0 0 auto;
}

.footer-language-links a.footer-flag-link {
  width: 22px;
  height: 22px;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.footer-language-links a.footer-flag-link:hover,
.footer-language-links a.footer-flag-link:focus {
  text-decoration: none;
}

.footer-language-links .fi {
  width: 1.33em;
  line-height: 1em;
  font-size: .78rem;
  border-radius: .12rem;
  box-shadow: 0 0 0 1px #0000001f;
}

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

@media (max-width: 767.98px) {
  .footer-language-links {
    justify-content: flex-start;
  }
}

/* Language codes for countries that share the same flag */
.footer-language-links a.footer-flag-link--code {
  width: 28px;
  overflow: visible;
  position: relative;
}

.footer-language-links a.footer-flag-link--code .fi {
  opacity: .86;
}

.footer-language-links .footer-language-code {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 15px;
  height: 10px;
  padding: 0 2px;
  border-radius: 999px;
  background: #181a1f;
  color: #fff;
  font-size: .43rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 10px;
  text-align: center;
  box-shadow: 0 0 0 1px #ffffff40;
  pointer-events: none;
}

