/*
* lebensmittel-grosshandel.info
* ---
* Modern, mobile-first CSS
*/

/* --- VARIABLES & RESET --- */

:root {
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --primary-color: #212529;
  --accent-color: #0056b3;
  --background-color: #fdfdfd;
  --background-color-alt: #eef6ff;
  --surface-color: #ffffff;
  --border-color: #e9ecef;
  --border-radius: 0.375rem;
  --container-width: 1140px;
  --spacing: 1.25rem;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

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

html {
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--primary-color);
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em 0;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- LAYOUT --- */

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing);
  padding-right: var(--spacing);
  width: 100%;
  overflow-x: hidden;
}

.site-header {
  background-color: var(--surface-color);
  padding: var(--spacing) 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  border-bottom: none;
  margin-top: calc(var(--spacing) * 2);
  font-size: 0.9em;
  color: #6c757d;
  overflow-x: hidden;
}

main#content {
    padding: calc(var(--spacing) * 2) 0;
    flex-grow: 1;
    overflow-x: hidden;
}

/* --- HEADER & NAVIGATION --- */
.header__inner, .footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

.main-nav__list, .footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.main-nav__list li:not(:last-child),
.footer-nav__list li:not(:last-child) {
  margin-right: var(--spacing);
}

.main-nav a {
  color: var(--primary-color);
  font-weight: bold;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  z-index: 1001;
  min-height: 44px;
  min-width: 44px;
}

.mobile-nav-toggle .icon-close {
  display: none;
}

/* --- COMPONENTS --- */

.page-header {
  margin-bottom: calc(var(--spacing) * 2);
  overflow-x: hidden;
}

.page-title {
    margin-bottom: calc(var(--spacing) / 2);
    font-size: 2.5em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.seo-text {
  max-width: 80ch;
  font-size: 1.1em;
  color: #555;
  overflow-x: hidden;
}
.seo-text p {
  margin: 0 0 1em 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.section-title {
  font-size: 1.75em;
  margin-bottom: var(--spacing);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: calc(var(--spacing) / 2);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.breadcrumb {
    margin-bottom: var(--spacing);
    font-size: 0.9em;
    overflow-x: hidden;
}

.breadcrumb__list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
}

.breadcrumb__item:not(:last-child)::after {
    content: '›';
    margin: 0 0.6em;
    color: #6c757d;
}

.state-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing);
    list-style: none;
    padding: 0;
    width: 100%;
}

.state-card {
    display: block;
    padding: var(--spacing);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow);
    min-height: 44px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.state-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    text-decoration: none;
    color: var(--accent-color);
}

.handler-list, .category-list {
    list-style: none;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.handler-list {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.handler-list__item, .category-list__item {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease-in-out;
    overflow-x: hidden;
}
.handler-list__item:hover a {
  text-decoration: none!important;
}
.handler-list__item:hover, .handler-list__item:focus, .handler-list__item:active, .category-list__item:hover {
  background-color: var(--background-color-alt);

}

.handler-list__item a, .category-list__item a {
    display: block;
    padding: var(--spacing);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.handler-list__item a.handler-card {
    display: flex;
    align-items: center;
    gap: var(--spacing);
    min-height: 44px;
}

.handler-card__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: white;
}

.handler-card__logo-placeholder {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.handler-card__logo-placeholder::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon icon-tabler icons-tabler-outline icon-tabler-photo'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M15 8h.01' /%3E%3Cpath d='M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z' /%3E%3Cpath d='M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5' /%3E%3Cpath d='M14 14l1 -1c.928 -.893 2.072 -.893 3 0l2 2' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
}

.handler-card__info {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.handler-card__rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  color: var(--color-primary);
  font-weight: 500;
}

.handler-card__name {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.handler-card__meta-title,
.handler-card__category {
    margin: 0.25em 0 0;
    font-size: 0.9em;
    color: #6c757d;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* --- HANDLER DETAIL PAGE --- */

.handler-header {
  margin-bottom: var(--spacing);
  display: flex;
  align-items: center;
  gap: var(--spacing);
  flex-wrap: wrap;
  overflow-x: hidden;
}

.handler-name {
  font-size: 2.5em;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.handler-logo {
  max-height: 60px;
  width: auto;
}

.handler-main-image {
  width: 100%;
  align-self: start;
}

.handler-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing) * 2);
  margin-bottom: calc(var(--spacing) * 2);
  overflow-x: hidden;
}

@media(min-width: 992px) {
  .handler-media-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.handler-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing) * 2);
  overflow-x: hidden;
}

@media (min-width: 992px) {
  .handler-content {
    grid-template-columns: 2fr 1fr;
  }
}

.handler-sidebar .handler-meta,
.handler-sidebar .handler-details,
.handler-sidebar .handler-ratings {
  background: var(--surface-color);
  padding: var(--spacing);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing);
  border: 1px solid var(--border-color);
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.handler-sidebar h2 {
  font-size: 1.25em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

.handler-sidebar h3 {
  font-size: 1em;
  margin-top: 1.5em;
}

.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  overflow-x: hidden;
}

.tag-list .tag {
  background: var(--background-color);
  padding: 0.25em 0.75em;
  border-radius: var(--border-radius);
  font-size: 0.9em;
  border: 1px solid var(--border-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tag-list .tag a {
  color: var(--primary-color);
}

.toggle-list-button {
    background-color: var(--accent-color);
    color: var(--surface-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75em 1.25em;
    font-size: 0.9em;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background-color 0.2s ease-in-out;
    min-height: 44px;
    min-width: 44px;
}

.toggle-list-button:hover {
    background-color: var(--primary-color);
}

.stars {
  color: #ffc107;
  display: inline-block;
}

.stars-outer {
  position: relative;
  display: inline-block;
  font-size: 1.25rem;
  vertical-align: middle;
}

.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
}

.stars-outer::before {
  content: '☆☆☆☆☆';
  color: #d3d3d3;
}

.stars-inner::before {
  content: '★★★★★';
  color: #ffc107;
  display: block;
}

/* New star-rating size modifiers */
.star-rating--large .stars-outer {
  font-size: 1.6rem;
}

.star-rating--small .stars-outer {
  font-size: 1rem;
}

/* Rating hierarchy */
.overall-rating {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sub-rating .rating-label {
  font-size: 0.95rem;
  color: #555;
}

/* Layout tweaks: keep stars on same line */
.rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* No additional layout tweaks needed for larger screens for rating rows */

.handler-ratings {
    background: var(--surface-color);
    padding: var(--spacing);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing);
    border: 1px solid var(--border-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.handler-ratings h2 {
    font-size: 1.5em;
    margin-bottom: 0.75em;
}

.rating-details {
    list-style: none;
    padding: 0;
    margin-top: 1em;
}

/* --- MOBILE FIRST --- */

@media (max-width: 767px) {
  .header__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .mobile-nav-toggle {
    display: block;
  }
  
  .main-nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 85%;
      max-width: 320px;
      height: 100%;
      background-color: var(--surface-color);
      box-shadow: -2px 0 5px rgba(0,0,0,0.1);
      transition: right 0.3s ease-in-out;
      padding-top: 5rem;
      z-index: 1000;
      overflow-y: auto;
  }

  .main-nav[data-visible="true"] {
    right: 0;
  }

  .main-nav[data-visible="true"] + .mobile-nav-toggle .icon-hamburger {
    display: none;
  }

  .main-nav[data-visible="true"] + .mobile-nav-toggle .icon-close {
    display: block;
  }
  
  .main-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .main-nav a {
    font-size: 1.25rem;
    padding: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .handler-name {
    font-size: 2rem;
  }

  .state-list__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.homepage-content {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
    overflow-x: hidden;
}

.homepage-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.homepage-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.homepage-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #495057;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.homepage-content ol,
.homepage-content ul {
    text-align: left;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-left: 1.2em;
}

.homepage-content li {
    margin-bottom: 0.75rem;
}

/* --- New Homepage Styles --- */
.homepage-hero {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 4rem 0;
    text-align: center;
    overflow-x: hidden;
}

.homepage-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.homepage-hero .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.page-section {
    padding: 3rem 0;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing);
    text-align: center;
    width: 100%;
}

.stat-item {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow-x: hidden;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing);
    width: 100%;
}

.step-item {
    text-align: center;
    overflow-x: hidden;
}

.step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.page-section-cta {
    background-color: #f8f9fa;
    padding: 3rem 0;
    overflow-x: hidden;
}

.why-us-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    overflow-x: hidden;
}

.why-us-item p {
    margin: 0;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.why-us-item svg {
    color: var(--accent-color);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Override category-list to be tags in the sidebar */
.city-sidebar .category-list {
    display: block;
    flex-wrap: nowrap;
    gap: 0;
}

.city-sidebar .category-list__item {
    margin-bottom: var(--spacing);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow-x: hidden;
}

.city-sidebar .category-list__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

.city-sidebar .category-list__item a {
    padding: var(--spacing);
    border: none;
    border-radius: 0;
    background-color: transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.city-sidebar .category-list__item a:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: transparent;
    text-decoration: underline;
}

.handler-list__item a.handler-card {
    display: flex;
}

/* --- Page-specific Layouts --- */

/*
  City Page Layout Grid
  ---------------------
  A responsive 2-column grid for city pages.
  - On mobile: A single column stack. The sidebar (categories) appears after the main content.
  - On desktop (992px+): A main content area (2fr) and a sidebar (1fr).
  This is a reusable grid structure.
*/
.city-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing) * 2);
  margin-top: var(--spacing);
  overflow-x: hidden;
}

@media (min-width: 992px) {
  .city-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.city-main h2, .city-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.list-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  gap: 1rem;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .list-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.search-bar {
  position: relative;
  margin-bottom: 0;
  width: 100%;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #6c757d;
  pointer-events: none;
}

@media (min-width: 768px) {
  .search-bar {
    min-width: 280px;
    max-width: 400px;
  }
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--surface-color);
  color: var(--primary-color);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.city-list {
  margin-top: 0;
  overflow-x: hidden;
}

.city-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing);
    list-style: none;
    padding: 0;
    width: 100%;
}

.city-list__item {
  list-style: none;
}

.city-card {
    display: block;
    padding: var(--spacing);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow);
    height: 100%;
    font-weight: 500;
    color: var(--primary-color);
    min-height: 44px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    text-decoration: none;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- ARTICLE & CONTENT STYLES --- */

.article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: hidden;
}

.article-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.9em;
  color: #6c757d;
  margin: 0;
}

.article-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem auto;
}

.article-content {
  max-width: 75ch; /* Optimal reading length for prose */
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: .4em;
}

.article-content h3 {
  font-size: 1.4rem;
}

.article-content p {
  margin-bottom: 1.25em;
}

.article-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, background-color 0.2s;
}

.article-content a:hover {
  text-decoration-color: var(--primary-color);
  background-color: var(--background-color-alt);
}

.article-content hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 3rem 0;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.5em;
  border-left: 3px solid var(--border-color);
  color: #6c757d;
  overflow-x: hidden;
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95em;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border-color);
  padding: 0.75em;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.article-content th {
  background-color: #f8f9fa;
  font-weight: 700;
}

/* Article Index Page */
.article-list {
  display: grid;
  gap: 1.5rem;
  overflow-x: hidden;
}

.article-list-item {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--surface-color);
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow);
  overflow-x: hidden;
}

.article-list-item:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 12px -2px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  border-color: var(--accent-color);
}

.article-list-item__title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.article-list-item__description {
  margin: 0 0 1rem 0;
  color: #495057;
  font-size: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.article-list-item__date {
  font-size: 0.9rem;
  color: #6c757d;
}

@media(max-width: 768px) {
    .article-header h1 {
        font-size: 2.2rem;
    }
    .article-content {
        font-size: 1rem;
    }
    .homepage-hero h1 {
        font-size: 2.2rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 480px) {
    .state-list__grid,
    .city-list__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Rating grid container */
.rating-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 575.98px) {
  .rating-grid {
    grid-template-columns: auto 1fr;
  }
}

/* Individual rating row uses grid cells */
.rating-row {
  display: contents; /* let child elements participate in parent grid */
}

.rating-row .rating-label {
  justify-self: start;
}

.rating-row .star-rating {
  justify-self: end;
}

/* Hierarchy */
.rating-row.overall .rating-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.rating-row.sub .rating-label {
  font-size: 0.95rem;
  color: #555;
  padding-left: 0.5rem;
}

/* adjust star sizes if needed */
.star-rating--large .stars-outer {
  font-size: 1.5rem;
}
.star-rating--small .stars-outer {
  font-size: 1.1rem;
}

.handler-website-cta {
  display: block;
  width: 100%;
  background-color: var(--accent-color);
  color: var(--surface-color);
  padding: 0.75em 1.25em;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
  transition: background-color 0.2s ease-in-out;
}

.handler-website-cta:hover,
.handler-website-cta:focus {
  background-color: var(--primary-color);
  text-decoration: none;
}

/* ensure rating-cta doesn't affect grid layout */
.rating-cta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.rating-cta-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.rating-cta-info .icon {
  color: var(--accent-color);
}

.rating-cta-info p {
  margin: 0;
  font-weight: 500;
}

/* ------------------------------------------------------------------- */
/* Global Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75em 1.25em;
  border-radius: var(--border-radius);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.btn svg {
  width: 1em;
  height: 1em;
}

/* Primary */
.btn-primary {
  background-color: var(--accent-color);
  color: var(--surface-color);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-color);
  color: var(--surface-color);
}

/* Outline */
.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--accent-color);
  color: var(--surface-color);
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--accent-color);
}
.btn-ghost:hover,
.btn-ghost:focus {
  background-color: rgba(0,0,0,0.05);
}

/* Alert */
.btn-alert {
  background-color: #ffae00;
  color: #111;
}
.btn-alert:hover,
.btn-alert:focus {
  background-color: #e79c00;
}

/* Error */
.btn-error {
  background-color: #dc3545;
  color: var(--surface-color);
}
.btn-error:hover,
.btn-error:focus {
  background-color: #c82333;
}

/* Disabled state */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Full-width buttons inside rating CTA */
.rating-cta .btn {
  width: 100%;
}

/* ------------------------------------------------------------------- */ 