.section-pad { padding-inline: 1.25rem; }
@media (min-width: 768px) { .section-pad { padding-inline: 2rem; } }
@media (min-width: 1280px) { .section-pad { padding-inline: 0; } }

.container-shell { width: min(1120px, 100%); margin-inline: auto; }
.container-wide { width: min(1280px, 100%); margin-inline: auto; }

/* Shared public site container — header / main / footer alignment */
.site-container,
.hp-header__inner,
.ilj-footer__inner,
.ilj-shell {
  width: min(100% - 28px, 1240px);
  max-width: 1240px;
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .site-container,
  .hp-header__inner,
  .ilj-footer__inner,
  .ilj-shell {
    width: 100%;
    max-width: 100%;
  }

  .site-container,
  .ilj-shell {
    padding-inline: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-container,
  .hp-header__inner,
  .ilj-footer__inner,
  .ilj-shell {
    width: min(100% - 40px, 960px);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .site-container,
  .hp-header__inner,
  .ilj-footer__inner,
  .ilj-shell {
    width: min(100% - 48px, 1120px);
  }
}

@media (min-width: 1280px) {
  .site-container,
  .hp-header__inner,
  .ilj-footer__inner,
  .ilj-shell {
    width: min(100% - 64px, 1240px);
  }
}

@media (min-width: 1600px) {
  .site-container,
  .hp-header__inner,
  .ilj-footer__inner,
  .ilj-shell {
    width: min(100% - 80px, 1320px);
    max-width: 1320px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--header-h);
}
.brand-link { min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tagline {
  display: none;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
@media (min-width: 640px) {
  .brand-name { font-size: 1.25rem; }
  .brand-tagline { display: block; }
}

.nav-desktop { display: none; align-items: center; gap: 1.5rem; }
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color .2s;
}
.nav-desktop a:hover { color: var(--brand); }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .header-actions { gap: 0.75rem; } }

.lang-switch {
  display: none;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
}
@media (min-width: 640px) { .lang-switch { display: inline-flex; } }
.lang-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--ink-muted);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1rem 0;
}
.mobile-nav.is-open { display: block; }
.mobile-nav .lang-switch { display: inline-flex; margin-bottom: 0.75rem; }
.mobile-nav a {
  display: block;
  padding: 0.75rem;
  border-radius: 14px;
  font-weight: 500;
}
.mobile-nav a:hover { background: var(--sky); }

.pb-mobile-bar {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { .pb-mobile-bar { padding-bottom: 0; } }

.mobile-action-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  width: 100%;
  height: 60px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 768px) { .mobile-action-bar { display: none; } }
.mobile-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.5rem;
}
.mab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 56px;
  border: 0;
  background: transparent;
  border-radius: 14px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.mab-btn--primary { background: var(--brand); color: #fff; }
.mab-btn .icon { color: var(--brand); }
.mab-btn--primary .icon { color: #fff; }
.mab-drawer {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 0.75rem 1rem;
}
.mab-drawer.is-open { display: block; }
.mab-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.mab-drawer a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-footer {
  background: var(--brand-deep);
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.footer-tag { color: var(--sky); font-size: 0.875rem; margin-top: 0.25rem; }
.footer-summary { margin-top: 1rem; color: rgba(255,255,255,0.75); font-size: 0.95rem; max-width: 28rem; }
.footer-group { border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 768px) { .footer-group { border: 0; } }
.footer-group-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  text-align: start;
}
@media (min-width: 768px) {
  .footer-group-toggle { pointer-events: none; padding: 0 0 1rem; }
  .footer-group-toggle .icon { display: none; }
}
.footer-links { display: none; padding-bottom: 1rem; }
.footer-group.is-open .footer-links,
@media (min-width: 768px) {
  .footer-links { display: block !important; }
}
.footer-group.is-open .footer-links { display: block; }
.footer-links a, .footer-links li {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 2rem 0 3rem;
}
.footer-copy { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-top: 1.5rem; }
.footer-disclaimer { color: rgba(255,255,255,0.45); font-size: 0.75rem; margin-top: 0.5rem; max-width: 48rem; }
.site-footer .lang-switch {
  display: inline-flex;
  margin-top: 1.25rem;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
}
.site-footer .lang-switch button { color: rgba(255,255,255,0.8); }
.site-footer .lang-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand-deep);
}
