/**
 * gStream Publisher — Article Styles
 * Standalone light-theme stylesheet for gStream articles rendered on WordPress.
 * Scoped under .gstream-article-content to avoid theme conflicts.
 */

/* ── Light-theme variables ── */
.gstream-article-content {
  --gs-text: #2d3748;
  --gs-text-heading: #1a202c;
  --gs-text-muted: #718096;
  --gs-accent: #319795;
  --gs-bg: #ffffff;
  --gs-bg-card: #f7fafc;
  --gs-bg-card-inner: #edf2f7;
  --gs-border: #e2e8f0;
  --gs-green: #38a169;
  --gs-red: #e53e3e;
  --gs-blue: #3182ce;
  --gs-orange: #dd6b20;
  --gs-purple: #805ad5;
}

/* ── Base article typography ── */
.gstream-article-content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--gs-text);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ── Heading Hierarchy ── */
.gstream-article-content h1,
.gstream-article-content h2,
.gstream-article-content h3,
.gstream-article-content h4 {
  color: var(--gs-text-heading);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.3;
  font-weight: 700;
}

.gstream-article-content h1 {
  font-size: 32px;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}

.gstream-article-content h2 {
  font-size: 20px;
  margin: 40px 0 14px;
  padding-top: 20px;
  letter-spacing: -0.2px;
  border-top: 1px solid var(--gs-border);
}

/* First H2 right after H1 or intro — no border */
.gstream-article-content h1 + h2,
.gstream-article-content h1 + blockquote + h2,
.gstream-article-content .article-main > h1 + h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 32px;
}

.gstream-article-content h3 {
  font-size: 16px;
  margin: 28px 0 10px;
  color: var(--gs-accent);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.gstream-article-content h1:first-child,
.gstream-article-content .article-main > h1:first-child {
  margin-top: 0;
}

/* ── Article title block (above hero image) ── */
.gstream-article-content .article-title-block {
  margin: 4px 0 16px;
}

.gstream-article-content .article-title-block h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

/* ── Reading bar — published date ── */
.gstream-article-content .reading-published {
  color: var(--gs-text-muted);
}

/* ── Paragraphs ── */
.gstream-article-content p {
  font-size: 17px;
  color: var(--gs-text);
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.8;
}

.gstream-article-content p + p {
  margin-top: 16px;
}

.gstream-article-content h2 + p {
  margin-top: 0;
}

.gstream-article-content h3 + p {
  margin-top: 4px;
}

/* Drop cap — editorial style */
.gstream-article-content.article-style-editorial > p:first-of-type::first-letter,
.gstream-article-content.article-style-editorial .article-main > p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.85;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--gs-accent);
  font-weight: 700;
  font-family: Georgia, serif;
}

/* ── Lists ── */
.gstream-article-content ul,
.gstream-article-content ol {
  padding-left: 28px;
  margin-bottom: 12px;
  margin-top: 8px;
}

.gstream-article-content li {
  font-size: 16px;
  color: var(--gs-text);
  margin-bottom: 4px;
  line-height: 1.7;
}

/* ── Blockquotes ── */
.gstream-article-content blockquote {
  border-left: 4px solid var(--gs-accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(49, 151, 149, 0.04);
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  line-height: 1.75;
}

/* ── TL;DR box ── */
.gstream-article-content .tldr {
  background: rgba(49, 151, 149, 0.06);
  border-left: 4px solid var(--gs-accent);
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  margin: 14px 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gs-text);
}

.gstream-article-content .tldr p {
  margin-bottom: 4px;
}

/* ── Pull Quote ── */
.gstream-article-content aside.pull-quote,
.gstream-article-content .pull-quote {
  border-left: 4px solid var(--gs-accent);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  color: var(--gs-text-heading);
  background: rgba(49, 151, 149, 0.04);
  border-radius: 0 10px 10px 0;
  line-height: 1.6;
}

.gstream-article-content .pull-quote.elevated {
  border-left: 4px solid var(--gs-accent);
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  color: var(--gs-text-heading);
  background: rgba(49, 151, 149, 0.03);
  border-radius: 0 10px 10px 0;
  line-height: 1.6;
}

/* ── Callout Box ── */
.gstream-article-content .callout-box {
  background: rgba(221, 107, 32, 0.05);
  border: 1px solid rgba(221, 107, 32, 0.2);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.7;
}

.gstream-article-content .callout-box.elevated {
  background: rgba(221, 107, 32, 0.05);
  border: 1px solid rgba(221, 107, 32, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 18px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.gstream-article-content .callout-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.gstream-article-content .callout-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gs-text);
}

/* ── Links ── */
.gstream-article-content a,
.gstream-article-content a.internal-link {
  color: var(--gs-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gstream-article-content a:hover {
  color: var(--gs-text-heading);
}

/* ── Reading Bar ── */
.gstream-article-content .article-reading-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  margin-bottom: 18px;
  background: rgba(49, 151, 149, 0.05);
  border-radius: 10px;
  font-size: 13px;
  color: var(--gs-text-muted);
}

.gstream-article-content .reading-time {
  color: var(--gs-accent);
  font-weight: 600;
}

/* Hide difficulty badge — presumptive to label readers by level */
.gstream-article-content .reading-difficulty {
  display: none;
}

.gstream-article-content .reading-author {
  color: var(--gs-text-heading);
  font-weight: 500;
}

.gstream-article-content .reading-approver {
  color: var(--gs-text-muted);
  font-style: italic;
}

/* ── Table of Contents ── */
.gstream-article-content .article-toc {
  background: var(--gs-bg-card-inner);
  border: 1px solid var(--gs-border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.gstream-article-content .toc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gs-text-heading);
  margin-bottom: 12px;
}

.gstream-article-content .toc-list {
  padding-left: 22px;
  margin: 0;
  list-style: decimal;
}

.gstream-article-content .toc-list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.gstream-article-content .toc-list li a {
  color: var(--gs-accent);
  text-decoration: none;
  transition: color 0.15s;
}

.gstream-article-content .toc-list li a:hover {
  color: var(--gs-text-heading);
}

/* ── Hero Image ── */
.gstream-article-content .article-hero-image {
  max-height: 400px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

.gstream-article-content .article-hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ── Scene Images ── */
.gstream-article-content .article-scene-image {
  max-height: 320px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  margin: 20px 0;
}

.gstream-article-content .article-scene-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.gstream-article-content .brand-tint-overlay {
  pointer-events: none;
}

/* ── Content-Aware Image Placement ── */
.gstream-article-content .content-image-float-right {
  width: 33%;
  float: right;
  margin: 8px 0 20px 24px;
  border-radius: 10px;
  shape-outside: margin-box;
  max-height: none;
  overflow: hidden;
}
.gstream-article-content .content-image-float-right img {
  width: 100%;
  height: auto;
  display: block;
}
.gstream-article-content .content-image-float-left {
  width: 33%;
  float: left;
  margin: 8px 24px 20px 0;
  border-radius: 10px;
  shape-outside: margin-box;
  max-height: none;
  overflow: hidden;
}
.gstream-article-content .content-image-float-left img {
  width: 100%;
  height: auto;
  display: block;
}
.gstream-article-content h2,
.gstream-article-content .pull-quote,
.gstream-article-content .callout-box,
.gstream-article-content .article-faq-bottom {
  clear: both;
}
.gstream-article-content .content-image-column {
  width: 100%;
  border-radius: 10px;
  margin: 16px 0;
  overflow: hidden;
}
.gstream-article-content .content-image-column img {
  width: 100%;
  height: auto;
  display: block;
}
.gstream-article-content .content-image-break {
  max-height: 260px;
  border-radius: 12px;
  margin: 28px 0;
}
.gstream-article-content .content-image-break img {
  height: 260px;
}

@media (max-width: 800px) {
  .gstream-article-content .content-image-float-right,
  .gstream-article-content .content-image-float-left {
    width: 100%;
    float: none;
    margin: 16px 0;
  }
}

/* ── FAQ Section ── */
.gstream-article-content .article-faq-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gs-border);
}

.gstream-article-content .article-faq-bottom h2 {
  font-size: 20px;
  margin-bottom: 16px;
  border-top: none;
  padding-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gstream-article-content .faq-item {
  background: var(--gs-bg);
  border: 1px solid var(--gs-border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.gstream-article-content .faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gs-text-heading);
  cursor: pointer;
  transition: background 0.15s;
  list-style: none;
}

.gstream-article-content .faq-item summary::-webkit-details-marker {
  display: none;
}

.gstream-article-content .faq-item summary::before {
  content: "\25B6";
  display: inline-block;
  margin-right: 12px;
  font-size: 10px;
  color: var(--gs-accent);
  transition: transform 0.2s;
}

.gstream-article-content .faq-item[open] summary::before {
  transform: rotate(90deg);
}

.gstream-article-content .faq-item summary:hover {
  background: rgba(49, 151, 149, 0.03);
}

.gstream-article-content .faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--gs-text);
  line-height: 1.7;
  border-top: 1px solid var(--gs-border);
  padding-top: 14px;
  margin-top: 0;
}

.gstream-article-content .faq-answer p {
  margin: 0;
}

/* ── Related Articles ── */
.gstream-article-content .related-articles {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gs-border);
}

.gstream-article-content .related-articles h2 {
  font-size: 18px;
  margin-bottom: 14px;
  border-top: none;
  padding-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gstream-article-content .related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gstream-article-content .related-article-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: var(--gs-bg-card-inner);
  border: 1px solid var(--gs-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gstream-article-content .related-article-card:hover {
  border-color: var(--gs-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gstream-article-content .related-article-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gs-text-heading);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gstream-article-content .related-article-link {
  font-size: 13px;
  color: var(--gs-accent);
  font-weight: 500;
}

/* ==========================================================================
   ARTICLE + SIDEBAR GRID
   ========================================================================== */
.gstream-article-content .article-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
}

@media (max-width: 900px) {
  .gstream-article-content .article-with-sidebar {
    grid-template-columns: 1fr;
  }
  .gstream-article-content .page-sidebar {
    display: none;
  }
}

/* ── Page Sidebar ── */
.gstream-article-content .page-sidebar a {
  color: inherit;
}

.gstream-article-content .page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
  align-self: start;
}

.gstream-article-content .sidebar-card {
  background: var(--gs-bg-card-inner);
  border: 1px solid var(--gs-border);
  border-radius: 12px;
  padding: 18px;
}

.gstream-article-content .sidebar-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gs-text-heading);
  margin-bottom: 10px;
}

.gstream-article-content .sidebar-card-subtitle {
  font-size: 13px;
  color: var(--gs-text-muted);
  margin-bottom: 12px;
}

/* Business card */
.gstream-article-content .sidebar-biz-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gs-text-heading);
  margin-bottom: 10px;
}

.gstream-article-content .sidebar-address {
  font-size: 14px;
  color: var(--gs-text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.gstream-article-content .sidebar-phone {
  display: block;
  font-size: 15px;
  color: var(--gs-accent);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
}

.gstream-article-content .sidebar-phone:hover {
  color: var(--gs-text-heading);
}

.gstream-article-content .sidebar-directions {
  display: block;
  font-size: 13px;
  color: var(--gs-text-muted);
  text-decoration: none;
  margin-top: 4px;
}

.gstream-article-content .sidebar-directions:hover {
  color: var(--gs-accent);
}

/* CTA button */
.gstream-article-content .sidebar-cta-card {
  padding: 0;
}

.gstream-article-content .sidebar-cta-button {
  display: block;
  text-align: center;
  padding: 16px 18px;
  background: var(--gs-accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.gstream-article-content .sidebar-cta-button:hover {
  background: #2c7a7b;
  transform: translateY(-1px);
}

/* Service list */
.gstream-article-content .sidebar-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gstream-article-content .sidebar-service-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gs-border);
  font-size: 14px;
}

.gstream-article-content .sidebar-service-list li:last-child {
  border-bottom: none;
}

.gstream-article-content .sidebar-service-list a {
  color: var(--gs-accent);
  text-decoration: none;
}

.gstream-article-content .sidebar-service-list a:hover {
  color: var(--gs-text-heading);
}

/* Trust signals */
.gstream-article-content .sidebar-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gstream-article-content .sidebar-trust-list li {
  padding: 6px 0 6px 20px;
  font-size: 13px;
  color: var(--gs-text);
  position: relative;
  line-height: 1.5;
}

.gstream-article-content .sidebar-trust-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gs-accent);
  font-weight: 700;
}

/* Location items */
.gstream-article-content .sidebar-location-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--gs-border);
}

.gstream-article-content .sidebar-location-item:last-child {
  border-bottom: none;
}

.gstream-article-content .sidebar-loc-city {
  font-size: 14px;
  font-weight: 600;
  color: var(--gs-text-heading);
}

.gstream-article-content .sidebar-loc-address {
  font-size: 13px;
  color: var(--gs-text-muted);
  margin-top: 2px;
}

.gstream-article-content .sidebar-loc-hours {
  font-size: 12px;
  color: var(--gs-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   S1: MAGAZINE SPREAD STYLE — grid-based 2-column layout
   ========================================================================== */
/* Intro spans full width above the columns */
.gstream-article-content.article-style-magazine .mag-intro {
  margin-bottom: 24px;
}

/* Two balanced columns via CSS Grid */
.gstream-article-content.article-style-magazine .mag-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--gs-border);
  padding-top: 20px;
}

.gstream-article-content.article-style-magazine .mag-col-left,
.gstream-article-content.article-style-magazine .mag-col-right {
  min-width: 0;
}

.gstream-article-content.article-style-magazine .pull-quote.elevated {
  font-size: 19px;
  padding: 24px 28px;
  margin: 24px 0;
  position: relative;
}

.gstream-article-content.article-style-magazine .pull-quote.elevated::before {
  content: "\201C";
  position: absolute;
  left: 12px;
  top: 8px;
  font-size: 44px;
  color: var(--gs-accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

@media (max-width: 800px) {
  .gstream-article-content.article-style-magazine .mag-columns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   S3: CLASSIC BLOG STYLE
   ========================================================================== */
.gstream-article-content.article-style-classic .article-main {
  max-width: none;
}

.gstream-article-content.article-style-classic .classic-image-full {
  width: calc(100% + 48px);
  margin: 24px -24px;
  border-radius: 0;
  max-height: 320px;
}

.gstream-article-content.article-style-classic .classic-image-full img {
  height: 320px;
}

.gstream-article-content.article-style-classic .classic-image-float {
  width: 40%;
  float: right;
  margin: 4px 0 24px 28px;
  border-radius: 12px;
  shape-outside: margin-box;
}

.gstream-article-content.article-style-classic h2,
.gstream-article-content.article-style-classic .pull-quote,
.gstream-article-content.article-style-classic .callout-box,
.gstream-article-content.article-style-classic .article-faq-bottom {
  clear: both;
}

.gstream-article-content.article-style-classic .classic-image-float + p {
  min-height: 100px;
}

.gstream-article-content.article-style-classic .pull-quote.elevated {
  max-width: 85%;
  margin: 24px auto;
  text-align: center;
  border-left: none;
  border-top: 2px solid var(--gs-accent);
  border-bottom: 2px solid var(--gs-accent);
  padding: 20px 24px;
}

/* ==========================================================================
   S4: VISUAL FEATURE STYLE (alternating image-text blocks)
   ========================================================================== */
.gstream-article-content .visual-block {
  display: grid;
  gap: 28px;
  margin: 28px 0;
  align-items: stretch;
}

.gstream-article-content .visual-block-left {
  grid-template-columns: 320px 1fr;
}

.gstream-article-content .visual-block-right {
  grid-template-columns: 1fr 320px;
}

.gstream-article-content .visual-block .article-scene-image {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  max-height: none;
}

.gstream-article-content .visual-block .article-scene-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.gstream-article-content .visual-block-text h2 {
  margin-top: 0;
}

.gstream-article-content .visual-block-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .gstream-article-content .visual-block-left,
  .gstream-article-content .visual-block-right {
    grid-template-columns: 1fr;
  }
  .gstream-article-content .visual-block .article-scene-image img {
    height: 220px;
    min-height: auto;
  }
  .gstream-article-content .article-hero-image,
  .gstream-article-content .article-hero-image img {
    max-height: 260px;
    height: 260px;
  }
  .gstream-article-content .article-scene-image,
  .gstream-article-content .article-scene-image img {
    max-height: 200px;
    height: 200px;
  }
  .gstream-article-content.article-style-classic .classic-image-float {
    width: 100%;
    float: none;
    margin: 16px 0;
  }
}

.gstream-article-content.article-style-visual .article-main > h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 10px;
}

/* ── Difficulty Badges — hidden (not shown to readers) ── */
.gstream-article-content .difficulty-beginner,
.gstream-article-content .difficulty-intermediate,
.gstream-article-content .difficulty-advanced {
  display: none;
}

/* ── Tables (if any) ── */
.gstream-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.gstream-article-content th,
.gstream-article-content td {
  padding: 12px 16px;
  border: 1px solid var(--gs-border);
  text-align: left;
}

.gstream-article-content th {
  background: var(--gs-bg-card-inner);
  font-weight: 600;
  color: var(--gs-text-heading);
}

.gstream-article-content tr:nth-child(even) {
  background: rgba(237, 242, 247, 0.5);
}

/* ── Images — general resets ── */
.gstream-article-content img {
  max-width: 100%;
  height: auto;
}

/* ── Strong / Bold ── */
.gstream-article-content strong {
  color: var(--gs-text-heading);
  font-weight: 600;
}

/* ── Code ── */
.gstream-article-content code {
  background: var(--gs-bg-card-inner);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.gstream-article-content pre {
  background: var(--gs-bg-card-inner);
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}

.gstream-article-content pre code {
  background: none;
  padding: 0;
}

/* ── Horizontal Rule ── */
.gstream-article-content hr {
  border: none;
  border-top: 1px solid var(--gs-border);
  margin: 32px 0;
}

/* ── Print Styles ── */
@media print {
  .gstream-article-content .page-sidebar {
    display: none;
  }
  .gstream-article-content .article-with-sidebar {
    grid-template-columns: 1fr;
  }
  .gstream-article-content .article-hero-image,
  .gstream-article-content .article-scene-image {
    max-height: none;
  }
  .gstream-article-content .article-hero-image img,
  .gstream-article-content .article-scene-image img {
    height: auto;
  }
}


/* ==========================================================================
   PAGE CONTAINER & ARTICLE FRAME
   Provides centered, framed layout independent of the WordPress theme.
   ========================================================================== */

/* ── Design tokens (available to container & archive, outside article scope) ── */
.gstream-page-container {
  --gs-text: #2d3748;
  --gs-text-heading: #1a202c;
  --gs-text-muted: #718096;
  --gs-accent: #319795;
  --gs-bg: #ffffff;
  --gs-bg-card: #f7fafc;
  --gs-bg-card-inner: #edf2f7;
  --gs-border: #e2e8f0;
}

/* ── Centered page container ── */
.gstream-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 72px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gs-text);
}

/* ── Single article: push content down to clear sticky nav ──
   --gstream-nav-offset is set by inline JS in the single template.
   Scoped to .gstream-single-view so it never affects the archive page
   (which handles its own offset via the hero's margin). */
.gstream-page-container.gstream-single-view {
  padding-top: calc(40px + var(--gstream-nav-offset, 0px));
}

/* ── Back-link to archive ── */
.gstream-back-link {
  margin-bottom: 20px;
}

.gstream-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gs-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.gstream-back-link a:hover {
  color: var(--gs-accent);
}

/* ── Article layout — frame + sidebar side by side ── */
.gstream-article-layout {
  display: block; /* default: no sidebar */
}

.gstream-article-layout.has-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .gstream-article-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ── Sidebar (outside the frame card) ── */
.gstream-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gstream-sidebar .page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Reset the inner page-sidebar display if it was set to none on mobile */
.gstream-sidebar .page-sidebar a {
  color: inherit;
}

.gstream-sidebar .sidebar-card {
  background: var(--gs-bg);
  border: 1px solid var(--gs-border);
  border-radius: 12px;
  padding: 18px;
}

.gstream-sidebar .sidebar-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gs-text-heading);
  margin-bottom: 10px;
}

.gstream-sidebar .sidebar-card-subtitle {
  font-size: 13px;
  color: var(--gs-text-muted);
  margin-bottom: 12px;
}

.gstream-sidebar .sidebar-biz-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gs-text-heading);
  margin-bottom: 10px;
}

.gstream-sidebar .sidebar-address {
  font-size: 14px;
  color: var(--gs-text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.gstream-sidebar .sidebar-phone {
  display: block;
  font-size: 15px;
  color: var(--gs-accent);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
}

.gstream-sidebar .sidebar-phone:hover {
  color: var(--gs-text-heading);
}

.gstream-sidebar .sidebar-directions {
  display: block;
  font-size: 13px;
  color: var(--gs-text-muted);
  text-decoration: none;
  margin-top: 4px;
}

.gstream-sidebar .sidebar-directions:hover {
  color: var(--gs-accent);
}

.gstream-sidebar .sidebar-cta-card {
  padding: 0;
}

.gstream-sidebar .sidebar-cta-button {
  display: block;
  text-align: center;
  padding: 16px 18px;
  background: var(--gs-accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.gstream-sidebar .sidebar-cta-button:hover {
  background: #2c7a7b;
  transform: translateY(-1px);
}

.gstream-sidebar .sidebar-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gstream-sidebar .sidebar-service-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gs-border);
  font-size: 14px;
}

.gstream-sidebar .sidebar-service-list li:last-child {
  border-bottom: none;
}

.gstream-sidebar .sidebar-service-list a {
  color: var(--gs-accent);
  text-decoration: none;
}

.gstream-sidebar .sidebar-service-list a:hover {
  color: var(--gs-text-heading);
}

.gstream-sidebar .sidebar-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gstream-sidebar .sidebar-trust-list li {
  padding: 6px 0 6px 20px;
  font-size: 13px;
  color: var(--gs-text);
  position: relative;
  line-height: 1.5;
}

.gstream-sidebar .sidebar-trust-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gs-accent);
  font-weight: 700;
}

.gstream-sidebar .sidebar-location-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--gs-border);
}

.gstream-sidebar .sidebar-location-item:last-child {
  border-bottom: none;
}

.gstream-sidebar .sidebar-loc-city {
  font-size: 14px;
  font-weight: 600;
  color: var(--gs-text-heading);
}

.gstream-sidebar .sidebar-loc-address {
  font-size: 13px;
  color: var(--gs-text-muted);
  margin-top: 2px;
}

.gstream-sidebar .sidebar-loc-hours {
  font-size: 12px;
  color: var(--gs-text-muted);
  margin-top: 2px;
}

/* Stack sidebar below article on narrow screens */
@media (max-width: 1024px) {
  .gstream-sidebar {
    position: static;
  }
}

/* ── Article frame — the white card ── */
.gstream-article-frame {
  background: var(--gs-bg);
  border: 1px solid var(--gs-border);
  border-radius: 16px;
  padding: 44px 52px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.03);
  overflow: hidden; /* clip full-bleed images within rounded corners */
}

/* ── Ensure all 5 article styles breathe inside the frame ── */

/* S1 Magazine: full-bleed images extend into frame padding */
.gstream-article-frame .magazine-image-full {
  width: calc(100% + 104px);
  margin-left: -52px;
  margin-right: -52px;
}

/* S3 Classic: full-bleed images extend into frame padding */
.gstream-article-frame .classic-image-full {
  width: calc(100% + 104px);
  margin-left: -52px;
  margin-right: -52px;
}

/* S4 Visual: ensure side-by-side blocks don't cramp */
.gstream-article-frame .visual-block {
  gap: 28px;
}

/* Hero images bleed to frame edges horizontally */
.gstream-article-frame .article-hero-image {
  margin: 0 -52px 24px -52px;
  border-radius: 0;
  max-height: 420px;
}

/* When hero is the very first element, also bleed to top */
.gstream-article-frame > .gstream-article-content > :first-child > .article-hero-image:first-child,
.gstream-article-frame > .gstream-article-content > .article-hero-image:first-child {
  margin-top: -44px;
}

.gstream-article-frame .article-hero-image img {
  height: 420px;
}

/* ── Responsive frame ── */
@media (max-width: 768px) {
  .gstream-page-container {
    padding: 20px 16px 48px;
  }

  .gstream-article-frame {
    padding: 24px 20px;
    border-radius: 12px;
  }

  /* Adjust bleed images for smaller padding */
  .gstream-article-frame .article-hero-image {
    margin: 0 -20px 20px -20px;
    max-height: 280px;
  }

  .gstream-article-frame > .gstream-article-content > :first-child > .article-hero-image:first-child,
  .gstream-article-frame > .gstream-article-content > .article-hero-image:first-child {
    margin-top: -24px;
  }

  .gstream-article-frame .article-hero-image img {
    height: 280px;
  }

  .gstream-article-frame .magazine-image-full,
  .gstream-article-frame .classic-image-full {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }
}

@media (max-width: 480px) {
  .gstream-article-frame {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .gstream-article-frame .article-hero-image {
    margin: 0 -16px 16px -16px;
    max-height: 220px;
  }

  .gstream-article-frame > .gstream-article-content > :first-child > .article-hero-image:first-child,
  .gstream-article-frame > .gstream-article-content > .article-hero-image:first-child {
    margin-top: -20px;
  }

  .gstream-article-frame .article-hero-image img {
    height: 220px;
  }

  .gstream-article-frame .magazine-image-full,
  .gstream-article-frame .classic-image-full {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }
}


/* ==========================================================================
   ARCHIVE — Article Listing Page
   ========================================================================== */

/* ==========================================================================
   ARCHIVE LAUNCH PAGE — Hero, Filters, Mosaic, Promo Cards, Load More
   ========================================================================== */

/* ── Hero Banner ── */
.gstream-archive-hero {
  text-align: center;
  padding: 56px 24px 48px;
  /* --gstream-hero-offset is set by JS to the sticky-nav height (default 0px).
     The -32px bleed is preserved; offset pushes the hero down to clear the nav. */
  margin: calc(-32px + var(--gstream-hero-offset, 0px)) -16px 0;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #319795 100%);
  border-radius: 16px;
  color: #fff;
  margin-bottom: 36px;
}

.gstream-archive-hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  border: none;
  padding: 0;
}

.gstream-archive-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.55;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Topic Filters ── */
.gstream-topic-filters {
  margin-bottom: 32px;
}

.gstream-pillar-chips,
.gstream-cluster-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.gstream-cluster-chips {
  margin-top: 10px;
}

.gstream-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--gs-border);
  border-radius: 100px;
  background: var(--gs-bg);
  color: var(--gs-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.3;
}

.gstream-chip:hover {
  border-color: var(--gs-accent);
  color: var(--gs-accent);
}

.gstream-chip.active {
  background: var(--gs-accent);
  color: #fff;
  border-color: var(--gs-accent);
}

.gstream-chip-cluster {
  font-size: 13px;
  padding: 6px 14px;
}

.gstream-chip-count {
  font-size: 11px;
  opacity: 0.7;
}

/* ── Mosaic Grid ── */
.gstream-archive-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 420px;
  grid-auto-flow: dense;
  gap: 24px;
}

/* Featured cards span 2 columns */
.gstream-mosaic-card.gstream-featured {
  grid-column: span 2;
}

/* Hidden cards (for load-more and filter) */
.gstream-hidden {
  display: none !important;
}

.gstream-filter-hidden {
  display: none !important;
}

/* ── Article Cards ── */
.gstream-mosaic-card {
  display: flex;
  flex-direction: column;
  background: var(--gs-bg);
  border: 1px solid var(--gs-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.gstream-mosaic-card:hover {
  border-color: var(--gs-accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* Card image — fixed height so text space is predictable */
.gstream-mosaic-image {
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--gs-bg-card-inner);
}

/* Featured: same image height — prominence comes from width */
.gstream-mosaic-card.gstream-featured .gstream-mosaic-image {
  height: 180px;
}

.gstream-mosaic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gstream-mosaic-card:hover .gstream-mosaic-image img {
  transform: scale(1.04);
}

.gstream-mosaic-no-image {
  background: linear-gradient(135deg, var(--gs-bg-card-inner), var(--gs-bg-card));
}

/* Card body — min-height:0 lets flex children clip inside fixed-height cards */
.gstream-mosaic-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Pillar chip label */
.gstream-mosaic-pillar {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gs-accent);
  background: rgba(49, 151, 149, 0.08);
  padding: 3px 10px;
  border-radius: 100px;
  align-self: flex-start;
}

.gstream-mosaic-body h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  line-height: 1.35 !important;
  margin: 2px 0 0 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  border: none !important;
  padding: 0 !important;
}

.gstream-mosaic-card.gstream-featured .gstream-mosaic-body h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
  -webkit-line-clamp: 2;
}

/* Card teaser — line-clamp truncates with ellipsis at the end of the last
 * visible line instead of clipping mid-word. flex:1 + min-height:0 keeps the
 * card footer pinned to the bottom of the card. */
.gstream-card-teaser {
  font-size: 14px;
  color: var(--gs-text);
  line-height: 1.55;
  margin: 2px 0 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  text-overflow: ellipsis;
}

/* Featured cards get more room, so allow more lines. */
.gstream-mosaic-card.gstream-featured .gstream-card-teaser {
  -webkit-line-clamp: 7;
}

/* Featured cards: slightly larger text */
.gstream-mosaic-card.gstream-featured .gstream-card-teaser {
  font-size: 15px;
  line-height: 1.6;
}

/* Card footer */
.gstream-mosaic-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.gstream-mosaic-footer time {
  font-size: 12px;
  color: var(--gs-text-muted);
  font-weight: 500;
}

.gstream-mosaic-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--gs-accent);
}

/* ── Promo Cards ── */
.gstream-promo-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  border-radius: 14px;
  min-height: 200px;
  overflow: visible;
  position: relative;
}

.gstream-promo-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.gstream-promo-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.gstream-promo-message {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
}

.gstream-promo-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  padding: 8px 20px;
  border: 2px solid currentColor;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
  opacity: 0.9;
}

.gstream-promo-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* When card has image, center everything and push CTA down */
.gstream-promo-has-image .gstream-promo-content {
  align-items: center;
  text-align: center;
}

.gstream-promo-has-image .gstream-promo-cta {
  align-self: center;
  margin-top: auto;
}

/* Product shot image — centered above the CTA, distinct from article header images */
.gstream-promo-image {
  display: block;
  max-width: 160px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
  margin: 8px auto 20px auto;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.gstream-promo-card:hover .gstream-promo-image {
  transform: rotate(0deg) scale(1.06);
}

/* ── Load More ── */
.gstream-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.gstream-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--gs-accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.gstream-load-more-btn:hover {
  background: #2b8583;
  transform: translateY(-1px);
}

/* ── Empty state ── */
.gstream-archive-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--gs-text-muted);
  font-size: 16px;
}

/* ==========================================================================
   ARCHIVE RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .gstream-archive-mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 420px;
  }

  .gstream-mosaic-card.gstream-featured {
    grid-column: span 2;
  }

  .gstream-archive-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .gstream-archive-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 400px;
    gap: 20px;
  }

  .gstream-mosaic-image {
    height: 160px;
  }

  .gstream-mosaic-card.gstream-featured .gstream-mosaic-image {
    height: 160px;
  }

  .gstream-mosaic-card.gstream-featured {
    grid-column: span 2;
  }

  .gstream-archive-hero {
    padding: 40px 20px 36px;
    margin: calc(-24px + var(--gstream-hero-offset, 0px)) -8px 0;
  }

  .gstream-archive-hero h1 {
    font-size: 28px;
  }

  .gstream-archive-hero p {
    font-size: 16px;
  }

  .gstream-chip {
    padding: 6px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .gstream-archive-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .gstream-mosaic-image {
    height: 180px;
  }

  .gstream-mosaic-card.gstream-featured .gstream-mosaic-image {
    height: 180px;
  }

  /* On mobile, teaser uses line-clamp instead of flex fill */
  .gstream-card-teaser {
    flex: 0 0 auto;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  /* Featured collapses to single column on mobile */
  .gstream-mosaic-card.gstream-featured {
    grid-column: span 1;
  }

  .gstream-mosaic-card.gstream-featured .gstream-mosaic-body h2 {
    font-size: 18px;
  }

  .gstream-archive-hero h1 {
    font-size: 24px;
  }

  .gstream-promo-message {
    font-size: 17px;
  }
}

/* ── Sidebar Logo ── */
.gstream-sidebar .sidebar-logo {
  margin: -18px -18px 14px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #1a1a1a;
}

.gstream-sidebar .sidebar-logo img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
  display: block;
}

/* ── Archive Identity Card ── */
.gstream-identity-card {
  background: var(--gs-bg);
  border: 1px solid var(--gs-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gstream-id-logo {
  background: #111111; /* overridden per-client via inline style */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  min-height: 80px;
  overflow: hidden;
}

.gstream-id-logo img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gstream-id-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gstream-id-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gs-text-heading);
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--gs-border);
}

.gstream-id-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gs-border);
  font-size: 14px;
  color: var(--gs-text);
  line-height: 1.5;
}

.gstream-id-row:last-child {
  border-bottom: none;
}

.gstream-id-icon {
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  opacity: 0.55;
}
.gstream-id-icon svg {
  display: block;
}

.gstream-id-phone a,
.gstream-id-directions a {
  color: var(--gs-accent);
  text-decoration: none;
  font-weight: 500;
}

.gstream-id-phone a:hover,
.gstream-id-directions a:hover {
  color: var(--gs-text-heading);
}

@media (max-width: 480px) {
  .gstream-identity-card {
    grid-column: span 1;
  }
}
