/* The Forge editorial archive: feature, current desk, newsletter bridge, and index. */
.forge-hub-post-grid {
  display: block !important;
  margin-top: clamp(26px, 3vw, 44px);
  --editorial-radius: 22px;
  --editorial-ink: #14181d;
  --editorial-muted: #58616b;
  --editorial-surface: #f5f0e9;
  --editorial-panel: #17222e;
  --editorial-panel-ink: #f4f7f9;
  --editorial-panel-muted: #bdc8d2;
  --editorial-row: #111923;
  --editorial-line: rgba(193, 215, 229, 0.22);
  --editorial-shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
}

/* Retire the legacy card-grid contract for the new editorial archive. */
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: none !important;
  grid-auto-flow: row !important;
  gap: 0 !important;
  align-items: initial !important;
}

html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid > .forge-editorial-lead,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid > .forge-editorial-desk,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid > .forge-editorial-newsletter,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid > .forge-editorial-archive,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid > .forge-editorial-filter-grid,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid > .forge-hub-empty {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

html[data-forge-theme="flame"] .forge-hub-post-grid {
  --editorial-ink: #24130d;
  --editorial-muted: #70473a;
  --editorial-surface: #fff5e9;
  --editorial-panel: #7f2114;
  --editorial-panel-ink: #fffaf4;
  --editorial-panel-muted: #f6d6c8;
  --editorial-row: #fff0df;
  --editorial-line: rgba(86, 30, 17, 0.2);
  --editorial-shadow: 0 22px 58px rgba(92, 22, 6, 0.25);
}

#forge-post-grid .forge-topic-brand {
  --story-accent: #b788ff;
  --story-accent-soft: #332546;
}

#forge-post-grid .forge-topic-web-design {
  --story-accent: #31d7a0;
  --story-accent-soft: #163b34;
}

#forge-post-grid .forge-topic-seo-digital-marketing {
  --story-accent: #68d5ff;
  --story-accent-soft: #173747;
}

html[data-forge-theme="flame"] #forge-post-grid .forge-topic-brand {
  --story-accent: #692aa0;
  --story-accent-soft: #f1e2ff;
}

html[data-forge-theme="flame"] #forge-post-grid .forge-topic-web-design {
  --story-accent: #00684b;
  --story-accent-soft: #dff8ed;
}

html[data-forge-theme="flame"] #forge-post-grid .forge-topic-seo-digital-marketing {
  --story-accent: #005c9e;
  --story-accent-soft: #deefff;
}

#forge-post-grid .forge-hub-taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#forge-post-grid .forge-topic-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--story-accent);
  border-radius: 999px;
  background: var(--story-accent-soft);
  color: var(--story-accent) !important;
  font: 700 11px/1.2 "Roboto Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forge-editorial-lead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  border-radius: var(--editorial-radius);
  background: var(--editorial-surface);
  color: var(--editorial-ink);
  box-shadow: var(--editorial-shadow);
}

.forge-editorial-lead::before,
.forge-editorial-desk-card::before,
.forge-editorial-result::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--story-accent);
  z-index: 2;
}

.forge-editorial-lead-media {
  min-width: 0;
  overflow: hidden;
  background: #dce6ed;
}

.forge-editorial-lead-media img,
.forge-editorial-desk-media img,
.forge-editorial-row-media img,
.forge-editorial-result-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.forge-editorial-lead:hover .forge-editorial-lead-media img,
.forge-editorial-desk-card:hover .forge-editorial-desk-media img,
.forge-editorial-row:hover .forge-editorial-row-media img,
.forge-editorial-result:hover .forge-editorial-result-media img {
  transform: scale(1.025);
}

.forge-editorial-lead-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(34px, 4vw, 62px);
}

.forge-editorial-eyebrow,
.forge-editorial-section-heading > div > span,
.forge-editorial-newsletter > div > span {
  color: var(--story-accent, #f37b4d);
  font: 700 11px/1.3 "Roboto Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.forge-editorial-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.forge-editorial-lead h3,
.forge-editorial-desk-card h4,
.forge-editorial-row h4,
.forge-editorial-result h3,
.forge-editorial-section-heading h3 {
  margin: 0;
  font-family: "Roboto Mono", monospace;
  letter-spacing: -0.045em;
}

.forge-editorial-lead h3 {
  margin-top: 22px;
  font-size: clamp(34px, 3.25vw, 52px);
  line-height: 0.98;
}

.forge-editorial-lead h3 a,
.forge-editorial-row h4 a {
  color: var(--editorial-ink) !important;
  text-decoration: none;
}

.forge-editorial-lead-copy > p {
  margin: 25px 0 0;
  color: var(--editorial-muted);
  font-size: 17px;
  line-height: 1.65;
}

.forge-editorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--editorial-line);
}

#forge-post-grid .forge-hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: inherit;
  opacity: 0.7;
  font: 700 11px/1.4 "Roboto Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.forge-editorial-read {
  flex: none;
  color: inherit !important;
  font: 700 11px/1.4 "Roboto Mono", monospace;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-color: var(--story-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.forge-editorial-desk,
.forge-editorial-archive {
  margin-top: clamp(48px, 6vw, 82px);
}

.forge-editorial-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--editorial-line);
}

.forge-editorial-section-heading h3 {
  margin-top: 7px;
  color: inherit;
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.08;
}

.forge-editorial-section-heading > p {
  margin: 0;
  color: inherit;
  opacity: 0.68;
  font: 700 11px/1.4 "Roboto Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forge-editorial-desk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.forge-editorial-desk-card,
.forge-editorial-result {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  border-radius: 18px;
  background: var(--editorial-panel);
  color: var(--editorial-panel-ink);
}

.forge-editorial-desk-card {
  min-height: 520px;
}

.forge-editorial-desk-media,
.forge-editorial-result-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dce6ed;
}

.forge-editorial-desk-media > span,
.forge-editorial-result-media > span {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--story-accent);
  border-radius: 50%;
  background: rgba(16, 24, 34, 0.82);
  color: var(--story-accent);
  font: 700 11px/1 "Roboto Mono", monospace;
}

.forge-editorial-desk-copy,
.forge-editorial-result-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
}

.forge-editorial-desk-card h4,
.forge-editorial-result h3 {
  margin-top: 22px;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.08;
}

.forge-editorial-desk-card h4 a,
.forge-editorial-result h3 a {
  color: var(--editorial-panel-ink) !important;
  text-decoration: none;
}

.forge-editorial-desk-copy > p,
.forge-editorial-result-copy > p {
  margin: 18px 0 28px;
  color: var(--editorial-panel-muted);
  font-size: 15px;
  line-height: 1.55;
}

.forge-editorial-desk-card .forge-editorial-footer,
.forge-editorial-result .forge-editorial-footer {
  border-color: var(--editorial-line);
}

.forge-editorial-newsletter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 82px);
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(122, 219, 255, 0.32);
  border-radius: 20px;
  background: linear-gradient(125deg, #172432 0%, #20293a 58%, #302344 100%);
  color: #f6f8fb;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.forge-editorial-newsletter::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #b788ff, #31d7a0, #68d5ff, #f37b4d);
}

html[data-forge-theme="flame"] .forge-editorial-newsletter {
  border-color: rgba(255, 221, 176, 0.45);
  background: linear-gradient(120deg, #6f190d 0%, #9b2814 58%, #d84a17 100%);
  box-shadow: 0 18px 50px rgba(91, 20, 4, 0.3), 0 0 38px rgba(255, 132, 42, 0.14);
}

html[data-forge-theme="flame"] .forge-editorial-newsletter::before {
  background: linear-gradient(90deg, #ffe4b5, #ff9c35, #fff8ef);
}

.forge-editorial-newsletter strong {
  display: block;
  margin-top: 8px;
  font: 700 clamp(24px, 2.4vw, 34px)/1.08 "Roboto Mono", monospace;
}

.forge-editorial-newsletter p {
  margin: 10px 0 0;
  color: rgba(246, 248, 251, 0.76);
  font-size: 14px;
}

.forge-editorial-newsletter form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.forge-editorial-newsletter input[type="email"] {
  min-width: 0;
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 500 14px/1.2 "Roboto", sans-serif;
}

.forge-editorial-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.forge-editorial-newsletter button {
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  background: #f7f2ec;
  color: #1a1c20;
  font: 700 11px/1.2 "Roboto Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.forge-editorial-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.forge-editorial-rows {
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  border-radius: 18px;
  background: var(--editorial-row);
}

.forge-editorial-row {
  display: grid;
  grid-template-columns: 48px 138px minmax(0, 1fr) minmax(170px, auto);
  align-items: center;
  gap: 22px;
  min-height: 138px;
  padding: 18px 22px;
  color: var(--editorial-ink);
}

html[data-forge-theme="metal"] .forge-editorial-row {
  color: #edf3f7;
}

.forge-editorial-row + .forge-editorial-row {
  border-top: 1px solid var(--editorial-line);
}

.forge-editorial-row-number {
  color: var(--story-accent);
  font: 700 12px/1 "Roboto Mono", monospace;
}

.forge-editorial-row-media {
  display: block;
  height: 88px;
  overflow: hidden;
  border-radius: 10px;
  background: #dce6ed;
}

.forge-editorial-row-copy {
  min-width: 0;
}

.forge-editorial-row h4 {
  margin-top: 10px;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.08;
}

html[data-forge-theme="metal"] .forge-editorial-row h4 a {
  color: #edf3f7 !important;
}

.forge-editorial-row-copy > p {
  margin: 8px 0 0;
  color: inherit;
  opacity: 0.7;
  font-size: 13px;
  line-height: 1.45;
}

.forge-editorial-row-end {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.forge-editorial-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.forge-editorial-result {
  min-height: 360px;
}

.forge-editorial-result {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
}

.forge-editorial-result-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.forge-editorial-read:hover,
.forge-editorial-lead h3 a:hover,
.forge-editorial-desk-card h4 a:hover,
.forge-editorial-row h4 a:hover,
.forge-editorial-result h3 a:hover {
  color: var(--story-accent) !important;
}

#forge-post-grid a:focus-visible,
#forge-post-grid button:focus-visible,
#forge-post-grid input:focus-visible {
  outline: 3px solid var(--story-accent, #68d5ff);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .forge-editorial-lead {
    grid-template-columns: 1fr;
  }

  .forge-editorial-lead-media {
    aspect-ratio: 16 / 8;
  }

  .forge-editorial-desk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forge-editorial-desk-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .forge-editorial-newsletter {
    grid-template-columns: 1fr;
  }

  .forge-editorial-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .forge-hub-post-grid {
    margin-top: 24px;
    --editorial-radius: 16px;
  }

  .forge-editorial-lead {
    min-height: 0;
  }

  .forge-editorial-lead-media {
    aspect-ratio: 16 / 10;
  }

  .forge-editorial-lead-copy {
    padding: 26px 22px;
  }

  .forge-editorial-eyebrow {
    margin-bottom: 18px;
  }

  .forge-editorial-lead h3 {
    font-size: clamp(29px, 10vw, 38px);
  }

  .forge-editorial-lead-copy > p {
    margin-top: 18px;
    font-size: 15px;
  }

  .forge-editorial-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 26px;
  }

  .forge-editorial-desk,
  .forge-editorial-archive,
  .forge-editorial-newsletter {
    margin-top: 42px;
  }

  .forge-editorial-section-heading {
    align-items: flex-start;
  }

  .forge-editorial-desk-grid {
    grid-template-columns: 1fr;
  }

  .forge-editorial-desk-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .forge-editorial-desk-card {
    min-height: 0;
  }

  .forge-editorial-desk-copy,
  .forge-editorial-result-copy {
    padding: 22px;
  }

  .forge-editorial-newsletter {
    padding: 25px 22px;
  }

  .forge-editorial-newsletter form {
    grid-template-columns: 1fr;
  }

  .forge-editorial-newsletter button,
  .forge-editorial-newsletter input[type="email"] {
    width: 100%;
  }

  .forge-editorial-row {
    grid-template-columns: 34px 92px minmax(0, 1fr);
    gap: 13px;
    padding: 15px;
  }

  .forge-editorial-row-media {
    height: 76px;
  }

  .forge-editorial-row-copy > p {
    display: none;
  }

  .forge-editorial-row-end {
    grid-column: 2 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    padding-top: 4px;
  }

  .forge-editorial-row-end .forge-editorial-read {
    justify-self: end;
  }

  .forge-editorial-result {
    display: flex;
    min-height: 0;
  }

  .forge-editorial-result-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .forge-editorial-lead-media img,
  .forge-editorial-desk-media img,
  .forge-editorial-row-media img,
  .forge-editorial-result-media img {
    transition: none;
  }
}
/* Editorial links must follow their local surface, not the global page link color. */
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-lead h3 a {
  color: var(--editorial-ink) !important;
}

html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-desk-card h4 a,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-result h3 a {
  color: var(--editorial-panel-ink) !important;
}

html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-desk-card .forge-editorial-read,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-result .forge-editorial-read,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-row .forge-editorial-read {
  color: var(--story-accent) !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-row h4 a {
  color: var(--editorial-ink) !important;
}

html[data-forge-theme="metal"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-row h4 a {
  color: #edf3f7 !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-editorial-newsletter input[type="email"] {
  color: #4b1d12 !important;
  background: #fffaf4 !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-editorial-newsletter input[type="email"]::placeholder {
  color: rgba(75, 29, 18, 0.66) !important;
  opacity: 1 !important;
}

html[data-forge-theme="metal"] body.forge-page.forge-hub .forge-editorial-newsletter input[type="email"] {
  color: #101a24 !important;
  background: #edf3f7 !important;
}

html[data-forge-theme="metal"] body.forge-page.forge-hub .forge-editorial-newsletter input[type="email"]::placeholder {
  color: rgba(16, 26, 36, 0.68) !important;
  opacity: 1 !important;
}
/* The spotlight copy sits on a cream surface in both themes, so its supporting
   text needs a stable dark palette instead of inheriting page-theme colors. */
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-lead .forge-editorial-lead-copy > p {
  color: #5a463d !important;
  opacity: 1 !important;
}

html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-lead .forge-hub-meta,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-lead .forge-hub-meta time,
html[data-forge-theme] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid .forge-editorial-lead .forge-hub-meta span {
  color: #684f44 !important;
  opacity: 1 !important;
}

/* Flame discipline accents: stay vivid and readable against hot red surfaces. */
html[data-forge-theme="flame"] body.forge-page.forge-hub {
  --forge-flame-brand: #e7caff;
  --forge-flame-web: #a5f3cf;
  --forge-flame-seo: #a7e3ff;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub
  :is(.forge-editorial-desk-card, .forge-editorial-result, .forge-editorial-row).forge-topic-brand {
  --story-accent: var(--forge-flame-brand);
  --flame-topic-text: var(--forge-flame-brand);
  --flame-topic-border: #d8aef8;
  --flame-topic-panel: #3e2451;
  --flame-topic-glow: rgba(206, 151, 255, 0.24);
}

html[data-forge-theme="flame"] body.forge-page.forge-hub
  :is(.forge-editorial-desk-card, .forge-editorial-result, .forge-editorial-row).forge-topic-web-design {
  --story-accent: var(--forge-flame-web);
  --flame-topic-text: var(--forge-flame-web);
  --flame-topic-border: #72dfae;
  --flame-topic-panel: #073d30;
  --flame-topic-glow: rgba(96, 240, 174, 0.22);
}

html[data-forge-theme="flame"] body.forge-page.forge-hub
  :is(.forge-editorial-desk-card, .forge-editorial-result, .forge-editorial-row).forge-topic-seo-digital-marketing {
  --story-accent: var(--forge-flame-seo);
  --flame-topic-text: var(--forge-flame-seo);
  --flame-topic-border: #72cbed;
  --flame-topic-panel: #0a3850;
  --flame-topic-glow: rgba(98, 203, 247, 0.24);
}

html[data-forge-theme="flame"] body.forge-page.forge-hub
  :is(.forge-editorial-desk-card, .forge-editorial-result, .forge-editorial-row)[class*="forge-topic-"] {
  border-inline-start-color: var(--flame-topic-border) !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub
  :is(.forge-editorial-desk-card, .forge-editorial-result, .forge-editorial-row)[class*="forge-topic-"]
  .forge-topic-label {
  color: var(--flame-topic-text) !important;
  background: var(--flame-topic-panel) !important;
  border-color: var(--flame-topic-border) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 16px var(--flame-topic-glow);
}

html[data-forge-theme="flame"] body.forge-page.forge-hub
  :is(.forge-editorial-desk-card, .forge-editorial-result, .forge-editorial-row)[class*="forge-topic-"]
  .forge-editorial-read {
  color: var(--flame-topic-text) !important;
  border-color: var(--flame-topic-border) !important;
  text-decoration-color: var(--flame-topic-border) !important;
  text-shadow: 0 0 14px var(--flame-topic-glow);
}

html[data-forge-theme="flame"] body.forge-page.forge-hub
  :is(.forge-editorial-desk-card, .forge-editorial-result)[class*="forge-topic-"]
  :is(.forge-editorial-desk-media, .forge-editorial-result-media)::after {
  color: var(--flame-topic-text) !important;
  border-color: var(--flame-topic-border) !important;
  text-shadow: 0 0 12px var(--flame-topic-glow);
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-topic-button[data-forge-topic="brand"] {
  color: var(--forge-flame-brand) !important;
  background: rgba(62, 36, 81, 0.78) !important;
  border-color: #d8aef8 !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-topic-button[data-forge-topic="web-design"] {
  color: var(--forge-flame-web) !important;
  background: rgba(7, 61, 48, 0.82) !important;
  border-color: #72dfae !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-topic-button[data-forge-topic="seo-digital-marketing"] {
  color: var(--forge-flame-seo) !important;
  background: rgba(10, 56, 80, 0.82) !important;
  border-color: #72cbed !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-path-card:nth-child(1) {
  --flame-path-accent: var(--forge-flame-brand);
  --flame-path-border: #d8aef8;
  --flame-path-panel: rgba(62, 36, 81, 0.76);
  border-top-color: #d8aef8 !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-path-card:nth-child(2) {
  --flame-path-accent: var(--forge-flame-web);
  --flame-path-border: #72dfae;
  --flame-path-panel: rgba(7, 61, 48, 0.78);
  border-top-color: #72dfae !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-path-card:nth-child(3) {
  --flame-path-accent: var(--forge-flame-seo);
  --flame-path-border: #72cbed;
  --flame-path-panel: rgba(10, 56, 80, 0.78);
  border-top-color: #72cbed !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-path-card > span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 0.28rem 0.62rem;
  color: var(--flame-path-accent) !important;
  background: var(--flame-path-panel) !important;
  border: 1px solid var(--flame-path-border);
  border-radius: 999px;
  text-shadow: 0 0 14px color-mix(in srgb, var(--flame-path-accent) 34%, transparent);
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-path-card:nth-child(1)::after {
  color: rgba(231, 202, 255, 0.48) !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-path-card:nth-child(2)::after {
  color: rgba(165, 243, 207, 0.46) !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub .forge-hub-path-card:nth-child(3)::after {
  color: rgba(167, 227, 255, 0.46) !important;
}

/* Bind Flame colors to the rendered category elements, not only their cards. */
html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  :is(.forge-editorial-desk-card, .forge-editorial-result, .forge-editorial-row).forge-topic-brand {
  --story-accent: #f2ddff !important;
  --flame-topic-text: #f2ddff !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  :is(.forge-editorial-desk-card, .forge-editorial-result, .forge-editorial-row).forge-topic-web-design {
  --story-accent: #baffdd !important;
  --flame-topic-text: #baffdd !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  :is(.forge-editorial-desk-card, .forge-editorial-result, .forge-editorial-row).forge-topic-seo-digital-marketing {
  --story-accent: #c4eeff !important;
  --flame-topic-text: #c4eeff !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-topic-label.forge-topic-brand {
  --story-accent: #f2ddff !important;
  color: #f2ddff !important;
  background: #402455 !important;
  border-color: #d49cff !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-topic-label.forge-topic-web-design {
  --story-accent: #baffdd !important;
  color: #baffdd !important;
  background: #063d30 !important;
  border-color: #5df0ad !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-topic-label.forge-topic-seo-digital-marketing {
  --story-accent: #c4eeff !important;
  color: #c4eeff !important;
  background: #073852 !important;
  border-color: #63d4ff !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-editorial-desk-card.forge-topic-brand :is(.forge-editorial-desk-media > span, .forge-editorial-read),
html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-editorial-result.forge-topic-brand :is(.forge-editorial-result-media > span, .forge-editorial-read),
html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-editorial-row.forge-topic-brand :is(> span:first-child, .forge-editorial-read) {
  color: #f2ddff !important;
  border-color: #d49cff !important;
  text-decoration-color: #d49cff !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-editorial-desk-card.forge-topic-web-design :is(.forge-editorial-desk-media > span, .forge-editorial-read),
html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-editorial-result.forge-topic-web-design :is(.forge-editorial-result-media > span, .forge-editorial-read),
html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-editorial-row.forge-topic-web-design :is(> span:first-child, .forge-editorial-read) {
  color: #baffdd !important;
  border-color: #5df0ad !important;
  text-decoration-color: #5df0ad !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-editorial-desk-card.forge-topic-seo-digital-marketing :is(.forge-editorial-desk-media > span, .forge-editorial-read),
html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-editorial-result.forge-topic-seo-digital-marketing :is(.forge-editorial-result-media > span, .forge-editorial-read),
html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content #forge-archive #forge-post-grid
  .forge-editorial-row.forge-topic-seo-digital-marketing :is(> span:first-child, .forge-editorial-read) {
  color: #c4eeff !important;
  border-color: #63d4ff !important;
  text-decoration-color: #63d4ff !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content
  .forge-hub-topic-button[data-forge-topic="brand"] {
  color: #f2ddff !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content
  .forge-hub-topic-button[data-forge-topic="web-design"] {
  color: #baffdd !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content
  .forge-hub-topic-button[data-forge-topic="seo-digital-marketing"] {
  color: #c4eeff !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content
  .forge-hub-path-card:nth-child(1) > span {
  color: #f2ddff !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content
  .forge-hub-path-card:nth-child(2) > span {
  color: #baffdd !important;
}

html[data-forge-theme="flame"] body.forge-page.forge-hub main#main-content
  .forge-hub-path-card:nth-child(3) > span {
  color: #c4eeff !important;
}

/* Give the Forge breadcrumb room before its themed surface transitions. */
html[data-forge-theme] body.forge-page.forge-hub .breadcrumbs {
  padding-bottom: clamp(20px, 1.4vw, 28px) !important;
}

@media (max-width: 640px) {
  html[data-forge-theme] body.forge-page.forge-hub .breadcrumbs {
    padding: 10px 0 !important;
  }
}

/* Keep footer typography legible and native to each Forge theme. */
html[data-forge-theme="flame"] body.forge-page .footer {
  color: #fff0e6 !important;
  border-color: rgba(255, 226, 210, 0.24) !important;
}

html[data-forge-theme="flame"] body.forge-page .footer .footer-meta > div:first-child {
  color: #fff0e6 !important;
}

html[data-forge-theme="flame"] body.forge-page .footer .footer-legal {
  color: #f3c5b2 !important;
  opacity: 1 !important;
}

html[data-forge-theme="flame"] body.forge-page .footer :is(.footer-links a, .footer-email) {
  color: #ffd7bd !important;
  opacity: 1 !important;
}

html[data-forge-theme="flame"] body.forge-page .footer :is(.footer-links a, .footer-email):is(:hover, :focus-visible) {
  color: #ffe082 !important;
}

html[data-forge-theme="metal"] body.forge-page .footer {
  color: #edf4f7 !important;
  border-color: rgba(203, 226, 235, 0.18) !important;
}

html[data-forge-theme="metal"] body.forge-page .footer .footer-meta > div:first-child {
  color: #edf4f7 !important;
}

html[data-forge-theme="metal"] body.forge-page .footer .footer-legal {
  color: #b9c8d0 !important;
  opacity: 1 !important;
}

html[data-forge-theme="metal"] body.forge-page .footer :is(.footer-links a, .footer-email) {
  color: #d5e3e9 !important;
  opacity: 1 !important;
}

html[data-forge-theme="metal"] body.forge-page .footer :is(.footer-links a, .footer-email):is(:hover, :focus-visible) {
  color: #82e7ff !important;
}
