@charset "UTF-8";

/* ==========================================================================
   Beer Lupulin - Ginza Craft Beer & Sports Bar
   Human-crafted Responsive Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #0f1115;
  --bg-surface: #161920;
  --bg-surface-elevated: #1f232d;
  --bg-surface-glass: rgba(22, 25, 32, 0.92);
  --accent-gold: #e29b38;
  --accent-gold-hover: #f5b04c;
  --accent-gold-dark: #b87212;
  --accent-gold-subtle: rgba(226, 155, 56, 0.12);
  --border-color: #272d38;
  --border-color-light: #353d4c;
  --text-primary: #f5f6f8;
  --text-secondary: #a3adbd;
  --text-muted: #6f7a8b;
  --badge-live: #d9483b;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-display: 'Montserrat', 'Noto Sans JP', sans-serif;
  --container-width: 1240px;
  --header-height: 84px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s ease-in-out;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Reset & Base Layout (Rule 15: Sticky Footer)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  flex-shrink: 0;
  width: 100%;
  background-color: #0b0c0f;
  border-top: 1px solid var(--border-color);
}

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

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Top Bar Announcement
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: #0b0d10;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-notice span:not(.live-indicator) {
  word-break: break-all;
  overflow-wrap: anywhere;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(217, 72, 59, 0.15);
  color: #ff6b5c;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.live-indicator::before {
  content: '';
  width: 7px;
  height: 7px;
  background-color: #d9483b;
  border-radius: 50%;
  display: inline-block;
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Main Navigation Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nav-item:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 9px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dropdown-link:hover {
  color: var(--accent-gold);
  background-color: rgba(226, 155, 56, 0.08);
  padding-left: 22px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #0b0d10;
  box-shadow: 0 4px 14px rgba(226, 155, 56, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  color: #0b0d10;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(226, 155, 56, 0.45);
}

.btn-outline {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: #0b0d10;
}

.menu-toggle {
  display: none;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: var(--accent-gold);
  color: #0b0d10;
}

/* --------------------------------------------------------------------------
   Mobile Drawer Navigation
   -------------------------------------------------------------------------- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  padding: 24px;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.is-active {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 8px;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-sub-menu {
  list-style: none;
  padding-left: 14px;
  margin: 6px 0;
}

.mobile-sub-menu a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 400;
  padding: 6px 0;
}

/* --------------------------------------------------------------------------
   Hero Section (Homepage Only)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.7) 0%, rgba(15, 17, 21, 0.95) 100%),
              url('../images/bar-interior.jpg') center/cover no-repeat;
  padding: 110px 0 100px;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-content {
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-gold-subtle);
  border: 1px solid rgba(226, 155, 56, 0.35);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  border-left: 3px solid var(--accent-gold);
  padding-left: 16px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Page Header (Inner Pages Only - Replaces Hero per Rule 26)
   -------------------------------------------------------------------------- */
.page-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 44px 0 40px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-gold);
}

.breadcrumbs-separator {
  color: var(--border-color-light);
}

.page-category-tag {
  display: inline-block;
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid rgba(226, 155, 56, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Live Matches & Fixtures Ticker
   -------------------------------------------------------------------------- */
.section-matches {
  background-color: #0b0c10;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.matches-ticker-wrap {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color-light) transparent;
}

.match-card {
  flex: 0 0 290px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: var(--transition);
}

.match-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 700;
}

.match-teams {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.match-status-badge {
  font-size: 0.74rem;
  color: var(--accent-gold);
  background: var(--accent-gold-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Content Section & Cards Layout
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 50px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 36px;
}

/* Feature Cards */
.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.feature-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-title a {
  color: var(--text-primary);
}

.card-title a:hover {
  color: var(--accent-gold);
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Standings & Schedule Table (SportsPress Design)
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  margin-bottom: 2rem;
}

.sports-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.sports-table th {
  background-color: #1a1e27;
  color: var(--text-primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.sports-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.sports-table tr:last-child td {
  border-bottom: none;
}

.sports-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-gold {
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
}

.badge-green {
  background-color: rgba(56, 178, 114, 0.15);
  color: #38b272;
}

/* --------------------------------------------------------------------------
   Team / Specialists Cards
   -------------------------------------------------------------------------- */
.specialist-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.specialist-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.specialist-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.specialist-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.specialist-role {
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.specialist-bio {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Article Content Styling (Rule 6, 29, 30, 35)
   -------------------------------------------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 60px 0;
}

.article-content {
  color: #e4e7ed;
  font-size: 1.05rem;
  line-height: 1.95;
}

.article-content h2 {
  font-size: 1.85rem;
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.article-content h4 {
  font-size: 1.15rem;
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 1.8rem;
}

.article-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.article-content strong {
  color: #ffffff;
}

/* Image formatting with Rule 29 & Rule 7 */
.article-figure {
  margin: 36px 0;
}

.article-figure.align-center {
  display: block;
  text-align: center;
}

.article-figure.align-center img {
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-figure.align-left {
  float: left;
  margin: 10px 28px 24px 0;
  max-width: 44%;
}

.article-figure.align-right {
  float: right;
  margin: 10px 0 24px 28px;
  max-width: 44%;
}

.article-figure figcaption {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

.callout-box {
  background-color: var(--bg-surface-elevated);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
}

.callout-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

/* Article Images & Figures */
.article-image {
  margin: 32px 0;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-image.align-center {
  text-align: center;
}

.article-image.align-center img {
  margin-left: auto;
  margin-right: auto;
}

.article-image.align-left {
  float: left;
  margin: 10px 24px 20px 0;
  max-width: 44%;
}

.article-image.align-right {
  float: right;
  margin: 10px 0 20px 24px;
  max-width: 44%;
}

.article-image figcaption {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background-color: var(--bg-surface-elevated);
  color: var(--accent-gold);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Feature Cards & Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

/* FAQ Accordion */
.faq-accordion {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Sticky Sidebar */
.article-sidebar {
  position: sticky;
  top: 104px;
  height: fit-content;
}

.sidebar-widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: block;
}

.toc-list a:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}

/* --------------------------------------------------------------------------
   Contact Form & Feedback (Rule 37)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(226, 155, 56, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-feedback {
  display: none;
  background-color: rgba(56, 178, 114, 0.15);
  border: 1px solid #38b272;
  color: #38b272;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 20px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Instagram / Photo Gallery Strip
   -------------------------------------------------------------------------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-color);
}

.gallery-strip-item {
  position: relative;
  overflow: hidden;
  height: 190px;
}

.gallery-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-strip-item:hover img {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Footer Layout
   -------------------------------------------------------------------------- */
.footer-top {
  padding: 70px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}

.footer-brand-logo {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
}

.footer-lead {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-cta .btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-cta .btn {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-logo img {
    height: 34px;
    max-width: 180px;
  }
  .top-bar-info {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .page-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
    word-break: break-word;
  }
  .page-meta {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.8rem;
  }
  .hero-section {
    padding: 50px 0 45px;
  }
  .hero-title {
    font-size: clamp(1.65rem, 6.2vw, 2.2rem);
    word-break: break-word;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }
  .article-figure.align-left,
  .article-figure.align-right,
  .article-image.align-left,
  .article-image.align-right {
    float: none;
    max-width: 100%;
    margin: 24px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}


/* Internal page sidebar: duplicate the main sections and show tidy page previews. */
.article-sidebar .sidebar-menu-widget,
.article-sidebar .sidebar-featured-widget {
  padding: 22px;
}

.sidebar-nav-list {
  display: grid;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav-list a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  transition: var(--transition);
}

.sidebar-nav-list a:hover,
.sidebar-nav-list a:focus-visible {
  color: var(--accent-gold);
  background: rgba(226, 155, 56, 0.08);
}

.sidebar-preview-list {
  display: grid;
  gap: 17px;
}

.sidebar-preview + .sidebar-preview {
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.sidebar-preview-link {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-decoration: none;
}

.sidebar-preview-title {
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.sidebar-preview-link:hover .sidebar-preview-title,
.sidebar-preview-link:focus-visible .sidebar-preview-title {
  color: var(--accent-gold);
}

.sidebar-preview img {
  display: block;
  order: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}