/* Custom styling for Xpo Press Redesign theme */

:root {
  /* Wall Street Journal Peach/Buff Paper Color */
  --bg-paper: #f4edd9;
  --bg-paper-dark: #e8e1cd;
  --text-ink: #111110;
  --text-muted: #4e4c46;
  --border-ink: #111110;
  --ink-shadow: #111110;
  
  /* Brand Palette (Subtle/Darkened for WSJ Editorial) */
  --brand-yellow: #dca925;
  --brand-orange: #c86c18;
  --brand-red: #a81c1c;
  --brand-purple: #5c185e;
  --brand-green: #14692b;
  --brand-blue: #0e113a;

  /* Theme variables */
  --theme-bg: var(--bg-paper);
  --theme-text: var(--text-ink);
  --theme-border: var(--border-ink);
  --theme-shadow: var(--ink-shadow);
  
  --shadow-color-yellow: var(--brand-yellow);
  --shadow-color-orange: var(--brand-orange);
  --shadow-color-red: var(--brand-red);
  --shadow-color-purple: var(--brand-purple);
  --shadow-color-green: var(--brand-green);
  --shadow-color-blue: var(--brand-blue);
}

/* Dark Theme Variables */
.theme-dark {
  --theme-bg: #1a1a18;
  --theme-text: #e2ded5;
  --theme-border: #8a8880;
  --theme-shadow: #8a8880;
  --bg-paper-dark: #121211;
  --text-muted: #a8a6a0;
  
  --shadow-color-yellow: #dca925;
  --shadow-color-orange: #c86c18;
  --shadow-color-red: #a81c1c;
  --shadow-color-purple: #5c185e;
  --shadow-color-green: #14692b;
  --shadow-color-blue: #0e113a;
}

/* High Contrast Theme Variables */
.theme-contrast {
  --theme-bg: #ffffff;
  --theme-text: #000000;
  --theme-border: #000000;
  --theme-shadow: var(--brand-red);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  position: relative;
}

/* Vintage Paper Noise Overlay - connected to Drupal admin settings */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--noise-opacity, 0.028);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  transition: opacity 0.25s ease;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6, .font-editorial {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--theme-text);
}

.font-brutal {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Core Layout Wrappers */
.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Top Edition Details Bar - WSJ Flanked Double Line style */
.edition-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--theme-border);
  border-bottom: 3.5px double var(--theme-border);
  padding: 0.4rem 0.5rem;
  margin-bottom: 1.5rem;
  background-color: transparent;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

.edition-bar-section {
  padding: 0.1rem 0;
}

@media (min-width: 640px) {
  .edition-bar-section + .edition-bar-section {
    border-left: 1px solid var(--theme-border);
    padding-left: 0.75rem;
  }
}

/* Masthead - Classic WSJ Header */
.masthead {
  text-align: center;
  padding: 1.25rem 0;
  border-bottom: 4px double var(--theme-border);
  margin-bottom: 2rem;
  position: relative;
}

.masthead-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Responsive Grid Systems */
.grid-layout-12 {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .grid-layout-12 {
    grid-template-cols: repeat(12, 1fr);
  }
  .col-span-8 {
    grid-column: span 8 / span 8;
  }
  .col-span-4 {
    grid-column: span 4 / span 4;
  }
  .col-span-3 {
    grid-column: span 3 / span 3;
  }
  .col-span-6 {
    grid-column: span 6 / span 6;
  }
  .col-span-9 {
    grid-column: span 9 / span 9;
  }
}

.layout-cols-3 {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .layout-cols-3 {
    grid-template-cols: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .layout-cols-3 {
    grid-template-cols: repeat(3, 1fr);
  }
}

.layout-cols-4 {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .layout-cols-4 {
    grid-template-cols: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .layout-cols-4 {
    grid-template-cols: repeat(4, 1fr);
  }
}

.layout-cols-2 {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .layout-cols-2 {
    grid-template-cols: repeat(2, 1fr);
  }
}

/* Border Helpers */
.border-thick {
  border: 1.5px solid var(--theme-border);
}

.border-thin {
  border: 1px solid var(--theme-border);
}

.border-dashed-thick {
  border: 1px dashed var(--theme-border);
}

/* WSJ "What's News" Column */
.whats-news-col {
  border-right: 1.5px solid var(--theme-border);
  padding-right: 1rem;
  font-size: 0.8rem;
}

.whats-news-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 3.5px double var(--theme-border);
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--brand-red);
}

.whats-news-item {
  margin-bottom: 1rem;
  line-height: 1.35;
  border-bottom: 1px dashed rgba(26, 26, 24, 0.12);
  padding-bottom: 0.75rem;
}

.whats-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.whats-news-item-bullet {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--theme-text);
  display: inline;
  margin-right: 0.25rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--theme-border);
}

/* Halftone/Engraving Overlay Effect for Images */
.image-halftone-container {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--theme-border);
}

.image-halftone-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--text-ink) 25%, transparent 25%);
  background-size: 3px 3px;
  opacity: 0.09;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.editorial-card:hover .image-halftone-container::after {
  opacity: 0.03; /* fades print texture on hover */
}

/* Editorial Cards - WSJ Clean Style */
.editorial-card {
  background-color: transparent;
  border: 1px solid transparent;
  border-bottom: 1.5px solid var(--theme-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.15s ease;
  position: relative;
  padding-bottom: 1rem;
  text-decoration: none;
}

.editorial-card:hover {
  opacity: 0.9;
}

.editorial-card-img-wrapper {
  position: relative;
  height: 18rem;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-paper-dark);
  margin-bottom: 0.75rem;
}

.editorial-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.editorial-card:hover .editorial-card-img {
  filter: grayscale(0%);
}

.editorial-card-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

/* Card Accent color bottom highlights */
.editorial-card.shadow-brutal-red { border-bottom-color: var(--brand-red); }
.editorial-card.shadow-brutal-green { border-bottom-color: var(--brand-green); }
.editorial-card.shadow-brutal-orange { border-bottom-color: var(--brand-orange); }

/* Metadata alignments */
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.meta-category {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.meta-category.red { color: var(--brand-red); }
.meta-category.green { color: var(--brand-green); }
.meta-category.orange { color: var(--brand-orange); }

.meta-divider {
  color: var(--text-muted);
}

.meta-text {
  color: var(--text-muted);
}

/* Dynamic badges */
.card-badge-absolute {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--theme-border);
  font-weight: 700;
}

.vintage-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--theme-border);
  display: inline-block;
  background-color: var(--theme-bg);
}

/* Sidebar Trending items */
.sidebar-section-header {
  border-bottom: 1.5px solid var(--theme-border);
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.sidebar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trending-item {
  display: flex;
  gap: 0.75rem;
  cursor: pointer;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(26, 26, 24, 0.12);
  text-decoration: none;
  color: inherit;
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-thumb {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  overflow: hidden;
}

.trending-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.trending-item:hover .trending-thumb-img {
  filter: grayscale(0%);
}

.trending-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trending-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.trending-item:hover .trending-title {
  text-decoration: underline;
}

/* Callout Box Advertisement */
.callout-ad {
  border: 1px solid var(--theme-border);
  padding: 1rem;
  background-color: var(--bg-paper-dark);
  text-align: center;
  margin-top: 1.5rem;
}

/* Buttons - Clean Editorial style */
.btn-brutal {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--theme-border);
  background-color: var(--theme-bg);
  color: var(--theme-text);
  box-shadow: 2px 2px 0px var(--theme-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.1s ease;
  font-size: 0.65rem;
  text-decoration: none;
}

.btn-brutal:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--theme-border);
}

.btn-brutal:active, .btn-brutal.active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--theme-border);
}

/* Directory Controls bar */
.directory-controls {
  border-top: 1.5px solid var(--theme-border);
  border-bottom: 3.5px double var(--theme-border);
  padding: 0.75rem 0.25rem;
  margin-bottom: 1.5rem;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .directory-controls {
    flex-direction: row;
  }
}

.tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Section headers */
.section-header-bar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1.5px solid var(--theme-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .section-header-bar {
    flex-direction: row;
    align-items: flex-end;
  }
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.section-header-title h3 {
  font-size: 1.65rem;
  font-weight: 700;
}

.section-color-dot {
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--theme-border);
  display: inline-block;
}

.section-color-dot.red { background-color: var(--brand-red); }
.section-color-dot.green { background-color: var(--brand-green); }
.section-color-dot.orange { background-color: var(--brand-orange); }

/* Inputs */
.search-input-wrapper {
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .search-input-wrapper {
    width: 15rem;
  }
}

.search-input-icon {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 0.35rem 0.75rem 0.35rem 1.85rem;
  border: 1.5px solid var(--theme-border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  background-color: var(--bg-paper-dark);
  color: var(--theme-text);
}

.search-input:focus {
  outline: none;
  background-color: #ffffff;
}

/* Card internal lists */
.card-details-list {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(26, 26, 24, 0.12);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.card-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--text-muted);
}

.card-detail-item svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Vendor product badges */
.product-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  border-top: 1px dashed rgba(26, 26, 24, 0.12);
  padding-top: 0.5rem;
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  min-height: 2rem;
}

.product-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.1rem 0.3rem;
  background-color: var(--bg-paper-dark);
  border: 1px solid rgba(26, 26, 24, 0.1);
  color: var(--text-muted);
}

/* Article view specific */
.article-header {
  margin-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--theme-border);
  padding-bottom: 1rem;
}

.article-header h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.article-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px dashed rgba(26, 26, 24, 0.12);
  padding-top: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.article-author-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stamp-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stamp-btn {
  padding: 0.3rem;
  border: 1px solid var(--theme-border);
  background-color: #ffffff;
  color: var(--theme-text);
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0px var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-btn:hover {
  background-color: var(--bg-paper-dark);
}

.article-figure {
  margin-bottom: 2rem;
}

.article-image-box {
  border: 1.5px solid var(--theme-border);
  overflow: hidden;
  height: 24rem;
  width: 100%;
}

.article-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.article-caption {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  border-bottom: 1px dashed rgba(26, 26, 24, 0.15);
  padding-bottom: 0.75rem;
}

/* Drop cap formatting - processed via hook_preprocess_node() */
p.drop-cap::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.8rem;
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin-right: 0.55rem;
  margin-top: 0.2rem;
  color: var(--brand-red);
  border: 2px solid var(--theme-border);
  padding: 0.35rem 0.55rem;
  background-color: var(--bg-paper-dark);
  box-shadow: 3px 3px 0px var(--theme-border);
}

/* Pull quote - WSJ Centered Quotes bounded by thin rules */
.pull-quote-box {
  border: none;
  border-top: 1.5px solid var(--theme-border);
  border-bottom: 1.5px solid var(--theme-border);
  padding: 1.5rem 1rem;
  margin: 2rem 0;
  background-color: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pull-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: 36rem;
}

.pull-quote-author {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-red);
}

/* Dynamic cross relation panels */
.relational-split {
  display: grid;
  grid-template-cols: 1fr;
  gap: 2rem;
  border-top: 4px double var(--theme-border);
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .relational-split {
    grid-template-cols: 1fr 1fr;
  }
  .relational-left-pane {
    border-right: 1px solid var(--theme-border);
    padding-right: 1.5rem;
  }
}

.relational-pane-title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.pane-intro {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.relational-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.relational-item-card {
  border: 1.5px solid var(--theme-border);
  padding: 0.75rem;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
  box-shadow: none !important;
  text-decoration: none;
  color: inherit;
}

.relational-item-card:hover {
  background-color: var(--bg-paper-dark);
}

.relational-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.relational-card-title:hover {
  text-decoration: underline;
}

.relational-card-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Show Profile specific */
.show-title-banner {
  border: 1.5px solid var(--theme-border);
  border-bottom: 4px double var(--theme-border);
  padding: 2rem 1.5rem;
  background-color: transparent;
  box-shadow: none;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.show-title-banner h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.show-title-intro {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Logistic Grids */
.logistics-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .logistics-grid {
    grid-template-cols: 2fr 1fr;
  }
}

.logistics-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logistics-sub-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .logistics-sub-grid {
    grid-template-cols: 1fr 1fr;
  }
}

.logistics-box {
  border: 1.5px solid var(--theme-border);
  padding: 1rem;
  background-color: transparent;
  box-shadow: none;
}

.logistics-box-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.logistics-box-text-primary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.logistics-box-text-secondary {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.coordinate-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  border: 1px dashed var(--theme-border);
  padding: 0.5rem;
  background-color: var(--bg-paper-dark);
  align-self: flex-start;
}

/* Map Mockup Component */
.map-mockup-box {
  border: 1.5px solid var(--theme-border);
  padding: 1rem;
  background-color: var(--bg-paper-dark);
  position: relative;
  overflow: hidden;
  height: 15rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.map-pin-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--brand-green);
  border: 1.5px solid #000000;
  color: #ffffff;
  padding: 0.4rem 0.6rem;
  box-shadow: 2px 2px 0px #000000;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
}

.map-pin-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.1;
}

.map-pin-sub {
  display: block;
  font-size: 0.45rem;
  color: var(--brand-yellow);
  margin-top: 0.1rem;
}

/* Promoter sidebar card */
.promoter-sidebar-card {
  border: 1.5px solid var(--theme-border);
  padding: 1.25rem;
  background-color: var(--bg-paper-dark);
  box-shadow: none;
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.promoter-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.promoter-detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.15rem;
}

.promoter-detail-val {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Exhibitors Directory */
.exhibitors-section {
  border: 1.5px solid var(--theme-border);
  padding: 1.25rem;
  background-color: transparent;
  box-shadow: none;
}

.exhibitors-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .exhibitors-grid {
    grid-template-cols: repeat(2, 1fr);
  }
}

.exhibitor-card {
  border: 1.5px solid var(--theme-border);
  padding: 0.75rem;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.1s ease;
  text-decoration: none;
  color: inherit;
}

.exhibitor-card:hover {
  background-color: var(--bg-paper-dark);
}

.exhibitor-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.exhibitor-link-trigger {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--brand-green);
  text-transform: uppercase;
}

/* Vendor profile specific */
.vendor-merchant-card {
  border: 1.5px dashed var(--theme-border);
  padding: 1.25rem;
  background-color: var(--bg-paper-dark);
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.vendor-logo-box {
  display: flex;
  justify-content: center;
  border-bottom: 1px dashed rgba(26, 26, 24, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.vendor-logo-frame {
  width: 7rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1.5px solid var(--theme-border);
  padding: 0.35rem;
  box-shadow: none;
}

.vendor-logo-fallback {
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  border: 1.5px solid var(--theme-border);
  background-color: #ffffff;
  border-style: dashed;
  box-shadow: none;
}

.vendor-logo-fallback-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 900;
  font-style: italic;
}

.vendor-contact-table {
  border-top: 1px dashed rgba(26, 26, 24, 0.15);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
}

.vendor-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.vendor-contact-row span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vendor-contact-row strong {
  font-weight: 700;
}

/* Polaroid spec gallery */
.polaroid-container {
  border: 1.5px solid var(--theme-border);
  padding: 1.25rem;
  background-color: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.polaroid-frame {
  border: 1.5px solid var(--theme-border);
  padding: 0.75rem 0.75rem 1.75rem 0.75rem;
  background-color: var(--bg-paper-dark);
  box-shadow: none;
  margin-bottom: 1rem;
}

.polaroid-image-box {
  height: 14rem;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 24, 0.15);
  background-color: #ffffff;
}

.polaroid-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.polaroid-frame:hover .polaroid-image-box img {
  filter: grayscale(0%);
}

.polaroid-caption {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

.thumbnail-strip {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.thumbnail-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(26, 26, 24, 0.15);
  overflow: hidden;
  background-color: #ffffff;
  padding: 0.05rem;
  cursor: pointer;
}

.thumbnail-btn.active {
  border: 2.5px solid var(--theme-border);
  transform: translateY(-1.5px);
  box-shadow: none;
}

.thumbnail-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Products and show schedules on Vendor profile */
.catalog-box {
  border: 1.5px solid var(--theme-border);
  padding: 1.25rem;
  background-color: transparent;
  box-shadow: none;
  height: 100%;
}

.catalog-title-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px dashed rgba(26, 26, 24, 0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.catalog-title-bar h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.product-stamp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-stamp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--bg-paper-dark);
  color: var(--theme-text);
  padding: 0.25rem 0.5rem;
  border: 1.5px solid var(--theme-border);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.product-stamp-dot {
  width: 0.3rem;
  height: 0.3rem;
  background-color: var(--brand-orange);
  border-radius: 50%;
  display: inline-block;
}

/* Schedule listings */
.schedule-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-card {
  border: 1.5px solid var(--theme-border);
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.schedule-card:hover {
  background-color: var(--bg-paper-dark);
  box-shadow: none;
}

.schedule-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
}

.schedule-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.schedule-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  padding: 0.1rem 0.3rem;
  background-color: #ffffff;
}

/* Footer elements styling */
.footer-wrapper {
  border-top: 4px double var(--theme-border);
  margin-top: 3rem;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  background-color: transparent;
}

.footer-top-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.5rem;
  border-bottom: 1px dashed rgba(26, 26, 24, 0.15);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-cols: 3fr 6fr 3fr;
  }
}

.footer-info-text {
  font-family: 'Lora', serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

/* Newsletter section */
.newsletter-banner {
  border: 1.5px solid var(--theme-border);
  border-bottom: 4px double var(--theme-border);
  padding: 2rem;
  background-color: transparent;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.newsletter-free-badge {
  position: absolute;
  right: 0;
  top: 0;
  width: 4.5rem;
  height: 4.5rem;
  background-color: var(--brand-yellow);
  border-left: 1.5px solid var(--theme-border);
  border-bottom: 1.5px solid var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  transform: rotate(8deg) translate(0.5rem, -0.5rem);
}

.newsletter-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.newsletter-banner p {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 32rem;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--theme-border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  background-color: var(--bg-paper-dark);
}

.newsletter-form button {
  background-color: var(--brand-blue);
  color: #ffffff;
}

/* Drupal Admin UI overrides so it doesn't break editorial styling */
.contextual-region {
  position: relative;
}

.dialog-off-canvas-main-canvas {
  background-color: transparent !important;
}

/* Custom alignment for Vendor page span 5/7 columns */
@media (min-width: 1024px) {
  .col-span-5-desktop-override {
    grid-column: span 5 / span 5 !important;
  }
  .col-span-7-desktop-override {
    grid-column: span 7 / span 7 !important;
  }
}

/* Menu Dropdown and Navigation styles */
.main-menu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0;
  margin: 0;
}

.main-menu-list .menu-link {
  color: var(--theme-text);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding: 0.2rem 0;
  transition: border-color 0.15s ease;
}

.main-menu-list .menu-link:hover,
.main-menu-list .menu-link.is-active {
  border-bottom-color: var(--brand-red);
}

.main-menu-list .menu-item:hover > .menu-sub-level {
  display: block;
}

.menu-sub-level {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-paper-dark);
  border: 1.5px solid var(--theme-border);
  padding: 0.5rem;
  list-style: none;
  min-width: 180px;
  z-index: 100;
  margin: 0;
  box-shadow: 3px 3px 0px var(--theme-border);
}

.menu-sub-item {
  margin: 0;
  padding: 0;
}

.menu-sub-link {
  color: var(--theme-text);
  text-decoration: none;
  font-size: 0.7rem;
  display: block;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px dashed rgba(26, 26, 24, 0.1);
  transition: background-color 0.1s ease;
}

.menu-sub-item:last-child .menu-sub-link {
  border-bottom: none;
}

.menu-sub-link:hover {
  background-color: var(--theme-bg);
  text-decoration: underline;
}

