:root {
  --focus-ring: rgba(192, 76, 76, 0.45);
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-kerning: normal;
  background:
    radial-gradient(circle at 12% 0%, rgba(192, 76, 76, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(153, 59, 59, 0.12), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(201, 168, 76, 0.05), transparent 24%),
    linear-gradient(180deg, #1b1b1d 0%, #171719 40%, #131314 100%) !important;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.hero {
  isolation: isolate;
}

.hero-bg {
  z-index: 0 !important;
  filter: saturate(0.92) brightness(0.7);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(192, 76, 76, 0.28), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(153, 59, 59, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(20, 20, 22, 0.62) 0%, rgba(20, 20, 22, 0.18) 42%, rgba(20, 20, 22, 0.5) 100%);
}

.hero-content {
  z-index: 2 !important;
  border: 1px solid rgba(192, 76, 76, 0.14);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.34),
    0 0 80px rgba(153, 59, 59, 0.08);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  height: auto;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(192, 76, 76, 0.28);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent2, #c04c4c);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--focus-ring);
}

.contact-detail {
  align-items: flex-start;
}

.contact-detail .c-icon {
  min-width: 56px;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.local-box,
.process-step,
.event-card,
.book-card,
.prop-card,
.wip-card,
.blog-card {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

/* Refined Forge shared public design system */
:root {
  --forge-bg: #171719;
  --forge-surface: #222224;
  --forge-surface-raised: #29292c;
  --forge-surface-soft: rgba(255, 255, 255, 0.035);
  --forge-border: rgba(255, 255, 255, 0.09);
  --forge-border-strong: rgba(255, 255, 255, 0.15);
  --forge-red: #a64040;
  --forge-red-bright: #cf5656;
  --forge-gold: #d0ae52;
  --forge-text: #f2f1f0;
  --forge-muted: #aaa8ad;
  --forge-radius: 17px;
  --forge-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  --forge-container: 1180px;
}

html body {
  color: var(--forge-text);
  line-height: 1.7;
}

/* Home page: restore the quieter charcoal-gray canvas. */
html body.home-page {
  background: #222224 !important;
  background-attachment: fixed !important;
}

html body.home-page .home-intro {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.035), transparent 34%),
    linear-gradient(180deg, #262629 0%, #222225 100%) !important;
}

html body .container {
  width: min(var(--forge-container), calc(100% - 48px));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

html body h1,
html body h2,
html body h3,
html body h4 {
  text-wrap: balance;
}

html body p {
  text-wrap: pretty;
}

html body .announcement-bar {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 9px 20px;
  background: linear-gradient(90deg, #8e3434, var(--forge-red), #8e3434);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

html body .announcement-bar a {
  text-underline-offset: 3px;
}

html body > nav:not(.breadcrumbs),
html body > header + nav:not(.breadcrumbs) {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 20, 0.94);
  border-bottom: 1px solid var(--forge-border);
  backdrop-filter: blur(16px);
}

html body .nav-inner {
  min-height: 126px;
  padding: 12px 0 10px;
  gap: 8px;
}

html body .nav-logo {
  line-height: 1;
}

html body .nav-logo img {
  width: auto;
  height: 66px;
  object-fit: contain;
}

html body .nav-links {
  gap: clamp(18px, 2.2vw, 30px);
}

html body .nav-links a {
  position: relative;
  padding: 4px 0 7px;
  color: #96949a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.105em;
}

html body .nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--forge-red-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

html body .nav-links a:hover,
html body .nav-links a.active,
html body .nav-links a.highlight {
  color: #fff;
}

html body .nav-links a:hover::after,
html body .nav-links a.active::after,
html body .nav-links a.highlight::after {
  transform: scaleX(1);
}

html body .section {
  padding: 76px 0;
}

html body .page-header {
  padding: 64px 0 58px;
  border-bottom: 1px solid var(--forge-border);
}

/* Menu-page introductions share a centered, title-first hierarchy. */
html body .page-header .container,
html body .hero-content,
html body .ws-hero-content .container {
  text-align: center;
}

html body .page-header .label,
html body .hero-content .label {
  font-size: 12px;
}

html body .page-header p,
html body .hero-content p,
html body .ws-hero-content .tagline {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  font-size: 16px;
}

html body .page-header h1,
html body .hero-content h1 {
  max-width: 840px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(38px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

html body .ws-hero-content h1 {
  font-size: clamp(40px, 4.5vw, 50px);
  line-height: 1.05;
}

html body .home-intro-copy h1 {
  font-size: clamp(38px, 4.4vw, 52px);
}

html body .section-title,
html body .home-updates-head h2,
html body .workbench-head h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
}

html body .label,
html body .gateway-kicker,
html body .update-cat,
html body .blog-cat {
  color: var(--forge-red-bright);
  font-weight: 600;
}

html body .btn,
html body .view-btn,
html body .filter-btn,
html body .book-link,
html body .blog-more {
  min-height: 44px;
  border-radius: 9px;
  font-weight: 600;
}

html body .btn-primary,
html body .view-btn.active,
html body .filter-btn.active {
  background: linear-gradient(180deg, #ae4747, #963838);
  box-shadow: 0 10px 28px rgba(153, 59, 59, 0.2);
}

html body .btn-outline,
html body .view-btn,
html body .filter-btn {
  border-color: var(--forge-border-strong);
  background-color: rgba(255, 255, 255, 0.025);
}

html body .filter-bar {
  gap: 18px;
  padding: 15px;
  border: 1px solid var(--forge-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

html body .search-input {
  min-height: 44px;
  border-color: var(--forge-border-strong);
  border-radius: 999px;
  background: rgba(15, 15, 17, 0.78);
}

html body .gateway-card,
html body .workbench-panel,
html body .workbench-card,
html body .update-card,
html body .prop-card,
html body .book-card,
html body .blog-card,
html body .process-step,
html body .event-card,
html body .event-date-box,
html body .faq-wrap details,
html body .ws-step,
html body .local-box {
  border-color: var(--forge-border);
  border-radius: var(--forge-radius);
  box-shadow: var(--forge-shadow);
}

html body .gateway-card:hover,
html body .update-card:hover,
html body .prop-card:hover,
html body .book-card:hover,
html body .blog-card:hover,
html body .event-card:hover {
  border-color: rgba(207, 86, 86, 0.5);
}

html body .prop-img,
html body .book-img,
html body .blog-img,
html body .wip-img,
html body .update-media,
html body .detail-hero-image,
html body .detail-gallery figure {
  background:
    radial-gradient(circle at 50% 42%, rgba(192, 76, 76, 0.1), transparent 38%),
    linear-gradient(135deg, #29292c, #202023);
}

html body .prop-img > img,
html body .book-img > img,
html body .blog-img > img,
html body .wip-img > img,
html body .update-media > img,
html body .detail-media img {
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

html body .prop-img::after,
html body .book-img::after,
html body .wip-img::after,
html body .blog-img::after {
  content: "View";
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html body footer {
  padding: 52px 0 28px;
  background: rgba(14, 14, 15, 0.9);
  border-top: 1px solid var(--forge-border);
  color: var(--forge-muted);
  text-align: left;
}

html body .footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 32px;
}

html body .footer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

html body .footer-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

html body .footer-brand p {
  max-width: 410px;
  color: var(--forge-muted);
}

html body .footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

html body .footer-col h4 {
  color: #bbb9bd;
  font-size: 12px;
  letter-spacing: 0.14em;
}

html body .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

html body .footer-col a,
html body .soc-btn {
  color: #96949a;
}

html body .footer-col a:hover,
html body .soc-btn:hover {
  color: #fff;
}

html body .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 20px;
  border-top-color: var(--forge-border);
  color: #7f7d83;
  font-size: 13px;
}

/* Generated product, book, and article detail pages */
html body main:has(.detail-panel) {
  padding: 54px 0 88px;
}

html body nav.breadcrumbs {
  position: static;
  z-index: auto;
  display: block;
  margin: 0 0 24px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  color: #98969c;
  font-size: 13px;
  backdrop-filter: none;
}

html body .breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

html body .breadcrumbs li {
  display: flex;
  align-items: center;
  min-width: 0;
}

html body .breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #5e5d63;
}

html body .breadcrumbs li:last-child {
  overflow: hidden;
  color: #d2d0d4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .breadcrumbs a:hover {
  color: #fff;
}

html body .detail-panel {
  gap: 38px;
  padding: clamp(26px, 3vw, 36px);
  border-color: var(--forge-border);
  border-radius: 20px;
  box-shadow: var(--forge-shadow);
}

html body .detail-copy h1 {
  font-size: clamp(38px, 4.25vw, 54px);
  line-height: 1.06;
  letter-spacing: 0.018em;
}

html body .detail-copy .lede {
  color: #cfccd1;
  font-size: 17px;
  line-height: 1.65;
}

html body .detail-chip,
html body .managed-chip {
  border-color: var(--forge-border-strong);
  background: rgba(255, 255, 255, 0.025);
}

html body .detail-section,
html body .detail-stat {
  border-color: var(--forge-border);
  border-radius: var(--forge-radius);
}

/* Public managed-detail fallback */
html body .managed-announcement {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 9px 20px;
  background: linear-gradient(90deg, #8e3434, var(--forge-red), #8e3434);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

html body .managed-announcement a {
  color: #fff;
}

html body .managed-nav-inner,
html body .managed-detail {
  width: min(var(--forge-container), calc(100% - 48px));
}

html body .managed-nav-inner {
  min-height: 126px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

html body .managed-brand img {
  width: auto;
  height: 66px;
}

html body .managed-brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

html body .managed-links {
  justify-content: center;
  gap: clamp(18px, 2.2vw, 30px);
}

html body .managed-links a {
  font-size: 12px;
}

html body .managed-breadcrumbs {
  overflow: hidden;
  color: #98969c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .managed-panel {
  border-color: var(--forge-border);
  border-radius: 20px;
  box-shadow: var(--forge-shadow);
}

html body .managed-detail h1 {
  font-size: clamp(38px, 4.25vw, 54px);
  line-height: 1.06;
}

/* Events empty state */
html body .empty-state {
  padding: 72px 24px;
  border: 1px dashed var(--forge-border-strong);
  border-radius: var(--forge-radius);
  background: var(--forge-surface-soft);
}

html body .empty-state-mark {
  position: relative;
  width: 50px;
  height: 46px;
  margin: 0 auto 18px;
  border: 2px solid #8c8990;
  border-radius: 9px;
}

html body .empty-state-mark::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  left: 0;
  height: 2px;
  background: #8c8990;
}

html body .empty-state-mark::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--forge-red-bright);
  box-shadow: 12px 0 var(--forge-gold), 24px 0 #8c8990, 0 12px #8c8990, 12px 12px #8c8990;
}

@media (max-width: 920px) {
  html body .nav-inner {
    min-height: 88px;
    flex-direction: row;
    justify-content: center;
    padding: 8px 0;
  }

  html body .nav-logo img {
    height: 68px;
  }

  html body .nav-toggle {
    top: 50%;
    right: 0;
    display: block;
    transform: translateY(-50%);
  }

  html body .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    gap: 0;
    padding: 8px 24px 16px;
    background: rgba(18, 18, 20, 0.98);
    border-bottom: 1px solid var(--forge-border);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  }

  html body .nav-links.open {
    display: flex;
  }

  html body .nav-links a {
    padding: 12px 0;
  }

  html body .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  html body .footer-brand {
    grid-column: 1 / -1;
  }

  html body .managed-nav-inner {
    min-height: auto;
    align-items: center;
    padding: 10px 0 16px;
  }

  html body .managed-links {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  html body .container,
  html body .managed-nav-inner,
  html body .managed-detail {
    width: min(100% - 32px, var(--forge-container));
  }

  html body .announcement-bar,
  html body .managed-announcement {
    min-height: 52px;
    padding: 8px 20px;
    font-size: 11px;
  }

  html body .section {
    padding: 56px 0;
  }

  html body .page-header {
    padding: 52px 0 48px;
  }

  html body .page-header h1,
  html body .hero-content h1,
  html body .ws-hero-content h1,
  html body .home-intro-copy h1 {
    font-size: clamp(34px, 10vw, 40px);
  }

  html body .section-title,
  html body .home-updates-head h2,
  html body .workbench-head h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  html body .filter-bar {
    align-items: stretch;
    padding: 12px;
  }

  html body .filter-cats {
    flex-wrap: nowrap;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  html body .search-input {
    width: 100%;
  }

  html body .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  html body .footer-brand {
    grid-column: 1 / -1;
  }

  html body main:has(.detail-panel) {
    padding: 36px 0 68px;
  }

  html body nav.breadcrumbs {
    margin-bottom: 18px;
  }

  html body .breadcrumbs ol {
    white-space: nowrap;
  }

  html body .breadcrumbs li:first-child {
    display: none;
  }

  html body .breadcrumbs li:last-child {
    flex: 1;
  }

  html body .detail-panel {
    gap: 28px;
    padding: 24px 18px;
    border-radius: 16px;
  }

  html body .detail-copy h1,
  html body .managed-detail h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 1.08;
  }

  html body .detail-copy .lede,
  html body .managed-lede {
    font-size: 16px;
  }

  html body .managed-links {
    gap: 10px 18px;
  }

  html body .managed-panel {
    padding: 24px 18px;
  }
}

@media (max-width: 440px) {
  html body .footer-grid {
    grid-template-columns: 1fr;
  }

  html body .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html body *,
  html body *::before,
  html body *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
