/* Shared responsive layer. Loaded after page styles to resolve layout conflicts. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

main,
section,
.container,
.container-wide,
.grid,
.grid-2,
.grid-3,
.hero-inner,
.split-highlight {
  min-width: 0;
}

.grid > *,
.grid-2 > *,
.grid-3 > *,
.hero-inner > *,
.split-highlight > * {
  min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
dd,
.hero-title,
.menu-item-name,
.link-inline {
  overflow-wrap: anywhere;
}

.hero-media,
.card,
.card-soft,
.card-elevated,
.split-highlight-aside {
  max-width: 100%;
}

.hero-media img,
.gallery-item img,
.poker-image-block img,
.team-image-wrap img,
figure img {
  width: 100%;
}

.menu-item-name,
.timeline-content {
  min-width: 0;
}

.link-inline {
  max-width: 100%;
  white-space: normal;
}

/* Footer columns are semantic sections, but should not inherit page-section spacing. */
.site-footer {
  margin-top: 0;
}

.site-footer .footer-col,
.site-footer .footer-col + .footer-col {
  padding: 0;
  border: 0;
}

.footer-meta p {
  margin-bottom: 0;
  color: inherit;
}

@media (max-width: 899.98px) {
  .site-header {
    isolation: isolate;
  }

  .header-inner {
    min-height: 4rem;
    padding-block: 0.65rem;
  }

  .brand,
  .brand-link,
  .brand-text {
    min-width: 0;
  }

  .brand-link {
    gap: 0.6rem;
  }

  .brand-title,
  .brand-subtitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-title {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .brand-subtitle {
    max-width: 14rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .nav-list-wrapper {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    max-height: calc(100svh - 4rem);
    overflow-y: auto;
    transform: translateY(-1rem);
    visibility: hidden;
  }

  .nav-list-wrapper.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-list {
    gap: 0;
    padding: 0.65rem clamp(1rem, 5vw, 1.5rem) 1rem;
  }

  .nav-list li + li {
    border-top: 1px solid rgba(224, 212, 197, 0.8);
  }

  .nav-link {
    display: block;
    padding: 0.8rem 0;
    font-size: 0.8rem;
  }

  .nav-toggle {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-32) var(--space-24);
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.975rem;
  }

  section {
    padding-block: clamp(2.25rem, 10vw, 3rem);
  }

  .container,
  .container-wide {
    padding-inline: clamp(1rem, 5vw, 1.5rem);
  }

  .hero,
  .hero-contact,
  .hero-policy,
  .hero-reservation,
  .page-hero {
    padding-top: clamp(2.25rem, 9vw, 3rem);
    padding-bottom: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-inner {
    gap: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-content {
    max-width: none;
  }

  .hero-title,
  .page-hero-text h1 {
    font-size: clamp(2rem, 9.5vw, 2.5rem);
    letter-spacing: 0.01em;
  }

  .hero-subtitle,
  .page-hero-lead {
    font-size: 1rem;
  }

  .section-heading {
    margin-bottom: var(--space-24);
  }

  .section-heading h2 {
    font-size: clamp(1.75rem, 8vw, 2rem);
  }

  .grid,
  .grid-2,
  .grid-3,
  .split-highlight {
    gap: var(--space-24);
  }

  .card,
  .card-elevated,
  .card-soft,
  .split-highlight-aside {
    padding: clamp(1rem, 5vw, 1.5rem);
    border-radius: var(--radius-md);
  }

  .hero-media {
    min-height: 0;
    border-radius: var(--radius-lg);
  }

  .hero-media-inner {
    padding-top: min(72%, 28rem);
  }

  .card-hero-detail,
  .hero-menu-detail,
  .hero-poker-detail,
  .hero-reservation-detail,
  .hero-detail-contact {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    border: 0;
    border-top: 1px solid rgba(212, 188, 154, 0.9);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: var(--space-20);
  }

  .hero-actions,
  .team-cta-buttons,
  .faq-cta-actions {
    gap: var(--space-12);
  }

  .hero-meta {
    display: grid;
    gap: var(--space-12);
  }

  .hero-meta-item {
    align-items: flex-start;
  }

  .gallery-grid {
    gap: var(--space-8);
  }

  .gallery-item {
    aspect-ratio: 1 / 1;
  }

  .gallery-item img {
    height: 100%;
  }

  .menu-item-header {
    gap: var(--space-12);
  }

  .timeline-item {
    gap: var(--space-12);
  }

  .timeline-time {
    min-width: 5rem;
  }

  .form-row {
    gap: var(--space-16);
  }

  .input-control {
    min-height: 2.75rem;
    font-size: 1rem;
  }

  textarea.input-control {
    min-height: 8rem;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    min-width: 7.5rem;
  }

  .table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .table-wrapper table {
    display: table;
    min-width: 40rem;
  }

  .page-hero-aside {
    max-width: none;
    margin-left: 0;
  }

  .contact-cta-actions,
  .contact-cta-actions .btn {
    max-width: none;
    width: 100%;
  }

  .contact-checkbox,
  .consent-group input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
  }

  .toc-list a {
    width: 100%;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 599.98px) {
  .site-footer {
    padding-top: var(--space-32);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .footer-meta {
    display: grid;
    align-items: start;
    margin-top: var(--space-24);
  }

  .cookie-banner-inner {
    max-height: min(80svh, 36rem);
    overflow-y: auto;
    padding-bottom: calc(var(--space-16) + env(safe-area-inset-bottom));
  }

  .age-modal {
    align-items: flex-end;
    padding-top: var(--space-16);
  }

  .age-modal-content {
    max-height: calc(100svh - var(--space-16));
    overflow-y: auto;
    margin: 0;
    padding: var(--space-24) var(--space-20) calc(var(--space-20) + env(safe-area-inset-bottom));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

@media (max-width: 479.98px) {
  .container,
  .container-wide {
    padding-inline: 1rem;
  }

  .hero-title,
  .page-hero-text h1 {
    font-size: clamp(1.85rem, 10vw, 2.2rem);
  }

  .hero-actions,
  .team-cta-buttons,
  .faq-cta-actions,
  .cookie-actions,
  .thank-you-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .team-cta-buttons .btn,
  .faq-cta-actions .btn,
  .cookie-actions .btn,
  .thank-you-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .timeline-item {
    display: grid;
    gap: 0.25rem;
  }

  .timeline-time {
    min-width: 0;
    font-weight: 600;
    color: var(--color-text);
  }

  .menu-item-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .badge-age,
  .badge,
  .chip,
  .pill {
    white-space: normal;
    text-align: left;
  }

  .card-hero-detail,
  .hero-menu-detail,
  .hero-poker-detail,
  .hero-reservation-detail,
  .hero-detail-contact {
    padding: var(--space-16);
  }
}

@media (max-width: 399.98px) {
  .brand-subtitle {
    max-width: 10.5rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
  }
}
