/* =============================================================
   Hurt Ridge Labs — Interior Page Design System
   Rides on Painless WP Bridge theme
   Design: index2/index_grid_v2.html aesthetic
   ============================================================= */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --bg-deep: #141210;
  --bg-surface: #1E1B17;
  --bg-elevated: #262219;
  --glass-bg: rgba(244,241,235,0.05);
  --glass-bg-hover: rgba(244,241,235,0.08);
  --glass-border: rgba(212,201,176,0.12);
  --glass-border-hover: rgba(212,201,176,0.22);
  --gold: #FFD500;
  --gold-dim: rgba(255,213,0,0.15);
  --gold-glow: rgba(255,213,0,0.3);
  --olive: #7B8B6F;
  --olive-dim: rgba(123,139,111,0.2);
  --text-primary: #F7F4EF;
  --text-secondary: #C4AA78;
  --text-muted: #8B8578;
  --text-dim: #5C564D;
  --danger: #E85D4A;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --blur: 16px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 900px;
  --max-width-wide: 1200px;
  --section-pad: clamp(2rem, 5vw, 4rem);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(1200px 620px at 14% -8%, rgba(123,139,111,0.14), rgba(123,139,111,0) 62%),
    radial-gradient(980px 560px at 88% 0%, rgba(196,170,120,0.10), rgba(196,170,120,0) 64%),
    linear-gradient(180deg, #141210 0%, #171410 46%, #141210 100%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- NOISE TEXTURE OVERLAY --- */
/* --- STATIC SITE BACKGROUND (non-living) --- */
/* Applies to WordPress-rendered pages/posts. /index2/ keeps its living background. */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

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

/* --- LINKS --- */
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.85; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--text-primary); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text-primary); margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-secondary); margin-top: 2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; color: var(--text-secondary); margin-top: 1.5rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  line-height: 1.8;
}

strong, b { color: var(--text-primary); font-weight: 600; }
em, i { color: var(--text-secondary); }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--glass-bg); padding: 0.15em 0.4em; border-radius: var(--radius-xs); border: 1px solid var(--glass-border); }

/* --- LISTS --- */
ul, ol {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.7;
}
li::marker {
  color: var(--gold);
}

/* --- SITE NAVIGATION BAR --- */
.hrl-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.hrl-nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hrl-nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.hrl-nav-brand:hover { color: var(--gold); opacity: 1; }
.hrl-nav-brand svg { width: 24px; height: 24px; }
.hrl-nav-brand-logo {
  display: block;
  height: 85px;
  width: auto;
  max-width: min(78vw, 648px);
}
@media (max-width: 768px) {
  .hrl-nav-brand-logo {
    height: 69px;
    max-width: 89vw;
  }
}

/* Nav links container */
.hrl-nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

/* wp_nav_menu output: ul.hrl-menu-list */
.hrl-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.hrl-menu-list li { margin: 0; }
.hrl-menu-list li a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
}
.hrl-menu-list li a:hover {
  color: var(--gold);
  background: var(--glass-bg);
}
.hrl-menu-list li.current-menu-item > a,
.hrl-menu-list li.current_page_item > a {
  color: var(--gold);
}

/* --- SEARCH TOGGLE BUTTON --- */
.hrl-search-toggle {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 0.5rem;
}
.hrl-search-toggle:hover {
  color: var(--gold);
  border-color: var(--glass-border);
  background: var(--glass-bg);
}
.hrl-search-toggle svg {
  width: 18px;
  height: 18px;
}
.hrl-search-toggle .hrl-icon-close { display: none; }
.hrl-search-toggle.is-active .hrl-icon-search { display: none; }
.hrl-search-toggle.is-active .hrl-icon-close { display: block; }
.hrl-search-toggle.is-active {
  color: var(--gold);
}

/* --- SEARCH BAR (expandable below nav) --- */
.hrl-search-bar {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
}
.hrl-search-bar[hidden] { display: none; }
.hrl-search-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
}
.hrl-search-input {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}
.hrl-search-input::placeholder {
  color: var(--text-dim);
}
.hrl-search-input:focus {
  border-color: var(--gold);
  background: rgba(244,241,235,0.08);
  box-shadow: 0 0 0 2px rgba(255,213,0,0.1);
}
.hrl-search-submit {
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.65rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.hrl-search-submit svg {
  width: 18px;
  height: 18px;
  stroke: var(--bg-deep);
}
.hrl-search-submit:hover {
  background: #ffe033;
}

/* --- HAMBURGER (hidden on desktop) --- */
.hrl-hamburger {
  display: none;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-xs);
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: var(--transition);
}
.hrl-hamburger:hover {
  border-color: var(--glass-border);
  background: var(--glass-bg);
}
.hrl-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: var(--transition);
}
.hrl-hamburger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hrl-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hrl-hamburger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.hrl-hamburger.is-active span {
  background: var(--gold);
}


/* --- MAIN CONTENT AREA --- */
#pb-main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.25rem, 4vw, 2.5rem);
}

.pb-page { position: relative; }

/* Page title styling */
.pb-page > h1 {
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Breadcrumb-style section label above title */
.pb-page > h1::before {
  content: "// " attr(data-section);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

/* Content area */
.pb-content {
  position: relative;
}

/* --- GLASS CARD for content sections --- */
.pb-content .wp-block-group,
.hrl-glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.pb-content .wp-block-group:hover,
.hrl-glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

/* --- HELP CENTER ARTICLE GRID --- */
.hrl-kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.hrl-kb-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hrl-kb-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  opacity: 1;
}
.hrl-kb-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.hrl-kb-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.hrl-kb-card .hrl-card-arrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: auto;
  opacity: 0.6;
  transition: var(--transition);
}
.hrl-kb-card:hover .hrl-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* --- SEPARATOR / DIVIDER --- */
hr, .wp-block-separator {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 2rem 0;
}

/* --- BLOCKQUOTE --- */
blockquote, .wp-block-quote {
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote p { margin-bottom: 0; color: var(--text-secondary); }

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
td { color: var(--text-primary); }
tr:hover td { background: var(--glass-bg); }

/* --- FOOTER --- */
.hrl-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  margin-top: var(--section-pad);
}
.hrl-footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hrl-footer-left {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.hrl-footer-right {
  display: flex;
  gap: 1.5rem;
}
.hrl-footer-right a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hrl-footer-right a:hover { color: var(--gold); }

/* --- BACK TO TOP --- */
.hrl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.hrl-back-link:hover { color: var(--gold); }
.hrl-back-link::before { content: "<-"; opacity: 0.5; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  #pb-main { padding: 1.5rem 1rem; }
  .hrl-kb-grid { grid-template-columns: 1fr; }

  /* Mobile: show hamburger, hide desktop nav */
  .hrl-hamburger { display: flex; }
  .hrl-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 18, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  .hrl-nav-links.is-open {
    display: flex;
  }
  .hrl-menu-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .hrl-menu-list li { width: 100%; }
  .hrl-menu-list li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-xs);
  }
  .hrl-menu-list li a:hover {
    background: var(--glass-bg-hover);
  }
  .hrl-search-toggle {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    margin-left: 0;
    margin-top: 0.5rem;
    border: 1px solid var(--glass-border);
  }
  .hrl-search-bar {
    padding: 0.75rem 1rem 1rem;
  }
  .hrl-footer-inner { flex-direction: column; text-align: center; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}


/* --- PRINT --- */
@media print {
  body { background: #fff; color: #333; }
  body::before { display: none; }
  .hrl-nav, .hrl-footer { display: none; }
  a { color: #333; }
  h1, h2, h3 { color: #000; }
}

/* ===========================
   CUSTOM 404 PAGE — CRUNCHY
   =========================== */

.hrl-404-page {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.hrl-404-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hrl-404-mascot {
  flex: 0 0 auto;
  position: relative;
}

.hrl-404-crunchy {
  width: clamp(220px, 30vw, 320px);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(255,213,0,0.15));
  /* Handle black background from image using mix-blend-mode */
  mix-blend-mode: screen;
  animation: hrl-404-float 4s ease-in-out infinite;
}

@keyframes hrl-404-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.hrl-404-content {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hrl-section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hrl-404-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.hrl-404-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 420px;
  margin: 0;
}

.hrl-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.hrl-btn-primary {
  background: var(--gold);
  color: #141210;
}
.hrl-btn-primary:hover {
  background: #ffe033;
  color: #141210;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.hrl-btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}
.hrl-btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  opacity: 1;
  transform: translateY(-1px);
}
.hrl-btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}
.hrl-btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  opacity: 1;
}

.hrl-404-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0;
  margin-top: 0.5rem;
}

/* 404 responsive */
@media (max-width: 600px) {
  .hrl-404-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .hrl-404-mascot { order: -1; }
  .hrl-404-crunchy { width: 180px; }
  .hrl-404-actions { justify-content: center; }
  .hrl-404-sub { margin: 0 auto; }
}

/* ===========================
   CONTACT PAGE & FLUENTFORMS
   DARK INDEX2 OVERRIDES
   =========================== */

/* Contact page layout */
.page-id-29 .hrl-main-content,
.page-slug-contact .hrl-main-content {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}

.page-id-29 .hrl-page-header,
.page-slug-contact .hrl-page-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

/* FluentForms container */
.fluentform,
.ff-el-group,
.ff-el-form-control,
.fluentform .ff-el-form-control {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  color: var(--text-primary) !important;
}

/* Labels */
.ff-el-group label,
.ff-el-group .ff-el-input--label label {
  color: var(--text-secondary) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 0.4rem !important;
  display: block !important;
}

/* Inputs, textareas, selects */
.ff-el-form-control,
.fluentform input[type=text],
.fluentform input[type=email],
.fluentform input[type=tel],
.fluentform textarea,
.fluentform select {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  padding: 0.7rem 1rem !important;
  width: 100% !important;
  transition: var(--transition) !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
}

.ff-el-form-control:focus,
.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus {
  border-color: var(--gold-dim) !important;
  background: var(--glass-bg-hover) !important;
  box-shadow: 0 0 0 3px rgba(255,213,0,0.08) !important;
}

.fluentform textarea {
  resize: vertical !important;
  min-height: 140px !important;
}

/* Select arrow */
.fluentform select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C4AA78' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
  cursor: pointer !important;
}

/* Placeholder text */
.fluentform input::placeholder,
.fluentform textarea::placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
}

/* Name field — two columns */
.ff-name-field-wrap {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
}

/* Form group spacing */
.ff-el-group {
  margin-bottom: 1.25rem !important;
}

/* Error messages */
.error.text-danger,
.ff-el-is-error .error {
  color: #ff6b6b !important;
  font-size: 0.8rem !important;
  margin-top: 0.3rem !important;
  display: block !important;
}

.ff-el-is-error .ff-el-form-control,
.ff-el-is-error input,
.ff-el-is-error textarea,
.ff-el-is-error select {
  border-color: #ff6b6b !important;
}

/* Submit button */
.fluentform .ff-btn-submit,
.fluentform button[type=submit] {
  background: var(--gold) !important;
  color: #141210 !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 2.5rem !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  width: 100% !important;
  letter-spacing: 0.02em !important;
  margin-top: 0.5rem !important;
  min-height: 48px !important;
  line-height: 1.5 !important;
  display: block !important;
  text-align: center !important;
}

/* Ensure submit button is visible in FluentForm containers */
.ff-el-group .ff-btn-submit {
  min-height: 48px !important;
  line-height: 1.5 !important;
  display: block !important;
  text-align: center !important;
  overflow: visible !important;
}

.fluentform .ff-btn-submit span,
.fluentform button[type=submit] span {
  display: inline-block !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
  color: #141210 !important;
}

.fluentform .ff-btn-submit:hover,
.fluentform button[type=submit]:hover {
  background: #ffe033 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px var(--gold-glow) !important;
}

.fluentform .ff-btn-submit:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Success confirmation */
.ff-message-success,
.hrl-form-success {
  background: var(--glass-bg) !important;
  border: 1px solid rgba(255,213,0,0.2) !important;
  border-radius: var(--radius) !important;
  color: var(--text-primary) !important;
  padding: 2rem !important;
  text-align: center !important;
}

.hrl-form-success h3 {
  color: var(--gold) !important;
  font-family: var(--font-heading) !important;
  font-size: 1.5rem !important;
  margin-bottom: 0.75rem !important;
}

/* Loading spinner override */
.ff-loading {
  opacity: 0.7 !important;
}

/* Remove FluentForms default borders/shadows */
.fluentform .ff-el-group .ff-el-form-control:focus {
  outline: none !important;
}

@media (max-width: 600px) {
  .ff-name-field-wrap {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* ===========================
   SEARCH RESULTS PAGE
   =========================== */
.hrl-search-results-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.25rem, 4vw, 2.5rem);
}
.hrl-search-header {
  margin-bottom: 2.5rem;
}
.hrl-search-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}
.hrl-search-term {
  color: var(--gold);
}
.hrl-search-count {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Search result items */
.hrl-search-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hrl-search-item {
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hrl-search-item-link {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}
.hrl-search-item-link:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}
.hrl-search-item-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.4rem 0;
}
.hrl-search-item-link:hover .hrl-search-item-title {
  color: var(--gold);
}
.hrl-search-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}
.hrl-search-item-type {
  color: var(--text-secondary);
  background: var(--gold-dim);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
}
.hrl-search-item-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.hrl-search-item-url {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Search empty state */
.hrl-search-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.hrl-search-empty-icon {
  margin-bottom: 1.5rem;
}
.hrl-search-empty-icon img {
  margin: 0 auto;
  opacity: 0.8;
}
.hrl-search-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
}
.hrl-search-empty p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 1.5rem;
}
.hrl-search-empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.hrl-btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
}
.hrl-btn-primary:hover {
  background: #ffe033;
  opacity: 1;
}
.hrl-btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.hrl-btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  opacity: 1;
}

/* WP pagination */
.hrl-pagination,
.nav-links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-xs);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}
.nav-links .page-numbers:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--gold);
}
.nav-links .page-numbers.current {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* Search results responsive */
@media (max-width: 600px) {
  .hrl-search-results-page { padding: 1.5rem 1rem; }
  .hrl-search-item-link { padding: 1rem; }
  .hrl-search-item-meta { flex-direction: column; gap: 0.25rem; }
}


/* ==========================================================================
   PROJECT JOURNAL EMBED
   ========================================================================== */
.pj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.pj-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(244,241,235,0.05);
  border: 1px solid rgba(212,201,176,0.12);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  text-decoration: none;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pj-card:hover {
  background: rgba(244,241,235,0.08);
  border-color: rgba(212,201,176,0.22);
  transform: translateY(-2px);
}
.pj-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #8B8578;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pj-title {
  color: #F7F4EF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}
.pj-excerpt {
  color: #8B8578;
  font-size: 0.9rem;
  line-height: 1.6;
}
.pj-read-more {
  color: #C4AA78;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: auto;
}
.pj-empty {
  padding: 2rem;
  text-align: center;
  color: #8B8578;
  font-style: italic;
  background: rgba(244,241,235,0.03);
  border: 1px dashed rgba(212,201,176,0.12);
  border-radius: 16px;
  margin-top: 2rem;
}

/* ==========================================================================
   PROJECT PAGE LAYOUT
   ========================================================================== */
.pb-page .project-summary {
  margin-bottom: 3rem;
  max-width: 800px;
}
.pb-page .project-summary p {
  color: #C4AA78;
  font-size: 1.05rem;
  line-height: 1.8;
}
.pb-page .project-screenshots {
  margin: 2rem 0 3rem;
}
.pb-page .journal-section-header {
  font-family: 'Space Grotesk', sans-serif;
  color: #F7F4EF;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212,201,176,0.12);
}


/* --- ACCOUNT LINK (between nav menu and search icon) --- */
.hrl-account-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  line-height: 1;
}
.hrl-account-link:hover {
  color: var(--gold);
  background: var(--glass-bg);
}
.hrl-account-link.is-current {
  color: #FFD500;
  text-shadow: 0 0 10px rgba(255, 213, 0, 0.4);
}

/* --- FOOTER CONTACT MICRO-BLOCK --- */
.pb-footer-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0 0 0.9rem;
  color: #C4AA78;
  font-size: 0.84rem;
}
.pb-footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.pb-footer-contact-icon {
  width: 16px;
  height: 16px;
  color: #FFD500;
  flex: 0 0 auto;
  opacity: 0.9;
}
.pb-footer-contact a {
  color: #C4AA78;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 201, 176, 0.35);
}
.pb-footer-contact a:hover {
  color: #FFD500;
  border-bottom-color: rgba(255, 213, 0, 0.7);
}

/* --- NEWSLETTER TURNSTILE DARK BLEND --- */
.pb-newsletter-footer .ff-el-turnstile,
.pb-newsletter-footer .cf-turnstile {
  margin: 0.35rem auto 0.9rem;
  display: flex;
  justify-content: center;
}
.pb-newsletter-footer .ff-el-turnstile iframe,
.pb-newsletter-footer .cf-turnstile iframe {
  border-radius: 10px;
}

@media (max-width: 900px) {
  .hrl-account-link {
    width: 100%;
    text-align: left;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background: rgba(244,241,235,0.03);
  }
  .hrl-account-link:hover {
    background: rgba(244,241,235,0.08);
  }
  .pb-footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
  }
}


/* --- ACCOUNT PAGE: Phase 1 UX --- */
.hrl-account-phase1 {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.2rem, 2vw, 2rem) clamp(1rem, 2.8vw, 2.2rem) 2.4rem;
}
.hrl-account-hero {
  margin-bottom: 1.2rem;
}
.hrl-account-kicker {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C4AA78;
  margin-bottom: 0.45rem;
}
.hrl-account-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: #F7F4EF;
}
.hrl-account-hero p {
  margin: 0;
  color: #C4AA78;
  max-width: 760px;
}
.hrl-account-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.hrl-account-card {
  grid-column: span 12;
  background: rgba(244,241,235,0.035);
  border: 1px solid rgba(212,201,176,0.14);
  border-radius: 16px;
  padding: 1rem;
  color: #F7F4EF;
}
.hrl-account-card h2 {
  margin-top: 0;
  color: #FFD500;
  font-size: 1.15rem;
}
.hrl-account-muted {
  color: #B7A98B;
  font-size: 0.92rem;
}
body.logged-in .hrl-auth-panels { display: none; }
body:not(.logged-in) .hrl-portal-panel { display: none; }
.hrl-account-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.hrl-account-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(212,201,176,0.25);
  color: #C4AA78;
  text-decoration: none;
  font-size: 0.86rem;
}
.hrl-account-actions a:hover {
  color: #FFD500;
  border-color: rgba(255,213,0,0.45);
  background: rgba(255,213,0,0.06);
}
@media (min-width: 980px) {
  .hrl-auth-panels .hrl-account-card { grid-column: span 4; }
  .hrl-portal-panel .hrl-account-card { grid-column: span 12; }
}


/* --- FOOTER SOCIAL (Facebook) --- */
.pb-footer-social-item a {
  border-bottom-color: rgba(255, 213, 0, 0.35);
}
.pb-footer-social-item .pb-footer-contact-icon {
  opacity: 0.95;
}


/* --- ACCOUNT PAGE: Phase 1.1 polish --- */
.hrl-account-phase1 .hrl-account-card {
  background: rgba(244,241,235,0.03);
  border: 1px solid rgba(212,201,176,0.16);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}
.hrl-account-phase1 .hrl-account-card h2 {
  letter-spacing: 0.01em;
}
.hrl-account-phase1 .hrl-account-card > p {
  margin-bottom: 0.85rem;
}
.hrl-account-phase1 .fst_login_wrapper,
.hrl-account-phase1 .fst_login_form_auth_wrapper,
.hrl-account-phase1 .fs_registration_form,
.hrl-account-phase1 .fs_reset_pass_form {
  background: rgba(244,241,235,0.03);
  border: 1px solid rgba(212,201,176,0.14);
  border-radius: 12px;
  padding: 0.9rem 0.9rem 0.65rem;
}
.hrl-account-phase1 .fst_field_group label,
.hrl-account-phase1 .login-username label,
.hrl-account-phase1 .login-password label {
  color: #C4AA78;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.hrl-account-phase1 input[type="text"],
.hrl-account-phase1 input[type="email"],
.hrl-account-phase1 input[type="password"],
.hrl-account-phase1 .input {
  width: 100%;
  background: rgba(244,241,235,0.05);
  border: 1px solid rgba(212,201,176,0.18);
  border-radius: 10px;
  color: #F7F4EF;
  padding: 0.62rem 0.75rem;
  outline: none;
  transition: var(--transition);
}
.hrl-account-phase1 input:focus,
.hrl-account-phase1 .input:focus {
  border-color: rgba(255,213,0,0.58);
  background: rgba(244,241,235,0.08);
  box-shadow: 0 0 0 2px rgba(255,213,0,0.12);
}
.hrl-account-phase1 #wp-submit,
.hrl-account-phase1 #fst_submit,
.hrl-account-phase1 button[type=submit] {
  border: 1px solid rgba(255,213,0,0.7) !important;
  background: linear-gradient(180deg, rgba(255,213,0,0.22), rgba(255,213,0,0.12)) !important;
  color: #F7F4EF !important;
  border-radius: 999px !important;
  padding: 0.52rem 1rem !important;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.hrl-account-phase1 #wp-submit:hover,
.hrl-account-phase1 #fst_submit:hover,
.hrl-account-phase1 button[type=submit]:hover {
  background: linear-gradient(180deg, rgba(255,213,0,0.34), rgba(255,213,0,0.18)) !important;
  transform: translateY(-1px);
}
.hrl-account-phase1 #fs_show_signup,
.hrl-account-phase1 #fs_show_login,
.hrl-account-phase1 #fs_show_reset_password {
  color: #FFD500;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,213,0,0.45);
}
.hrl-account-phase1 #fs_show_signup:hover,
.hrl-account-phase1 #fs_show_login:hover,
.hrl-account-phase1 #fs_show_reset_password:hover {
  color: #FFF0A8;
}


/* --- SIDE BACKGROUND IMAGE (non-index2): show texture outside #pb-main --- */
body.wp-singular {
  background-color: #141210;
  background-image:
    linear-gradient(180deg, rgba(20,18,16,0.68), rgba(20,18,16,0.84)),
    url("/wp-content/themes/painless-wp-bridge/assets/images/matrix-marpat-background.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-position: center top, center top;
}
body.wp-singular #pb-main {
  background-color: rgba(30, 27, 23, 0.92);
  background-image: none;
  border: 1px solid rgba(212,201,176,0.16);
  border-radius: 20px;
  box-shadow: 0 22px 56px rgba(0,0,0,0.28);
}
body.wp-singular .pb-content {
  padding: 0.3rem 0.15rem;
}
@media (max-width: 820px) {
  body.wp-singular #pb-main {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  }
}

/* --- ACCOUNT PAGE: Tabbed auth panels (folder style) --- */
.hrl-account-auth-card {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
}
.hrl-account-auth-switch {
  position: relative;
}
.hrl-account-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hrl-account-tablist {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem;
  margin: 0;
  padding: 0 0.25rem;
}
.hrl-account-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  text-align: center;
  border: 1px solid rgba(212,201,176,0.28);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(244,241,235,0.07), rgba(244,241,235,0.03));
  color: #C4AA78;
  border-radius: 12px 12px 0 0;
  min-height: 42px;
  padding: 0.5rem 0.95rem 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  position: relative;
  top: 1px;
}
.hrl-account-tab i {
  font-size: 1.02rem;
  line-height: 1;
}
.hrl-account-tab:hover {
  color: #FFD500;
  border-color: rgba(255,213,0,0.52);
  background: linear-gradient(180deg, rgba(255,213,0,0.14), rgba(255,213,0,0.05));
}
.hrl-account-panels {
  border: 1px solid rgba(212,201,176,0.2);
  border-radius: 0 16px 16px 16px;
  background: rgba(244,241,235,0.035);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  padding: 1rem;
  margin-top: 0;
}
.hrl-account-panel {
  display: none;
}
#hrl-tab-signin:checked ~ .hrl-account-tablist label[for="hrl-tab-signin"],
#hrl-tab-signup:checked ~ .hrl-account-tablist label[for="hrl-tab-signup"],
#hrl-tab-reset:checked ~ .hrl-account-tablist label[for="hrl-tab-reset"] {
  color: #F7F4EF;
  border-color: rgba(255,213,0,0.62);
  background: linear-gradient(180deg, rgba(255,213,0,0.22), rgba(255,213,0,0.12));
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  z-index: 2;
}
#hrl-tab-signin:checked ~ .hrl-account-panels .panel-signin,
#hrl-tab-signup:checked ~ .hrl-account-panels .panel-signup,
#hrl-tab-reset:checked ~ .hrl-account-panels .panel-reset {
  display: block;
}
@media (max-width: 760px) {
  .hrl-account-tablist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0;
  }
  .hrl-account-tab {
    border-radius: 10px;
    border-bottom: 1px solid rgba(212,201,176,0.28);
    top: 0;
  }
  .hrl-account-panels {
    border-radius: 12px;
    margin-top: 0.45rem;
  }
}

/* --- ACCOUNT PAGE: Full-width auth form overrides --- */
@media (min-width: 980px) {
  .hrl-auth-panels .hrl-account-auth-card {
    grid-column: 1 / -1 !important;
  }
}
.hrl-account-phase1 .hrl-auth-panels,
.hrl-account-phase1 .hrl-account-auth-card,
.hrl-account-phase1 .hrl-account-auth-switch,
.hrl-account-phase1 .hrl-account-panels,
.hrl-account-phase1 .hrl-account-panel {
  width: 100%;
  max-width: none;
}
.hrl-account-phase1 .fst_login_form_auth_wrapper,
.hrl-account-phase1 .fst_login_wrapper,
.hrl-account-phase1 .fst_registration_wrapper,
.hrl-account-phase1 .fst_reset_pass_wrapper,
.hrl-account-phase1 .fs_registration_form,
.hrl-account-phase1 .fs_reset_pass_form,
.hrl-account-phase1 form#loginform {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}


/* === Project Journal Shortcode Thumbnails (0.2.1) === */
.pj-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pj-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}
.pj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.pj-card:hover .pj-thumb img {
  transform: scale(1.04);
}
.pj-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}


/* === Scroll-to-Top Button (0.3.1) === */
.hrl-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(123, 139, 111, 0.35);
  border-radius: 12px;
  background: rgba(30, 27, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease,
              background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.hrl-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hrl-scroll-top svg {
  width: 22px;
  height: 22px;
  fill: #7B8B6F;
  transition: fill 0.25s ease, filter 0.25s ease;
}
.hrl-scroll-top:hover {
  background: rgba(38, 34, 25, 0.9);
  border-color: rgba(255, 213, 0, 0.4);
  box-shadow: 0 0 16px rgba(255, 213, 0, 0.25), 0 0 4px rgba(255, 213, 0, 0.15);
}
.hrl-scroll-top:hover svg {
  fill: #FFD500;
  filter: drop-shadow(0 0 4px rgba(255, 213, 0, 0.4));
}
.hrl-scroll-top:active {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 213, 0, 0.35), 0 0 6px rgba(255, 213, 0, 0.2);
}
/* Focus ring for keyboard navigation */
.hrl-scroll-top:focus-visible {
  outline: 2px solid #FFD500;
  outline-offset: 3px;
}
/* Mobile: smaller button, tighter to corner */
@media (max-width: 768px) {
  .hrl-scroll-top {
    width: 40px;
    height: 40px;
    bottom: 1.25rem;
    right: 1.25rem;
    border-radius: 10px;
  }
  .hrl-scroll-top svg {
    width: 18px;
    height: 18px;
  }
}

/* =========================================================
   COMMENTS — HRL Styled
   ========================================================= */

/* --- Comments Section Container --- */
.pb-comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(123, 139, 111, 0.3);
}

.hrl-comments {
  max-width: 100%;
}

.hrl-comments-title {
  font-size: 1.5rem;
  color: #e8e6dc;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* --- Comment List --- */
.hrl-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hrl-comment-list .children {
  list-style: none;
  padding-left: 2rem;
  margin: 0;
  border-left: 2px solid rgba(123, 139, 111, 0.25);
}

/* --- Individual Comment --- */
.hrl-comment {
  margin-bottom: 1.5rem;
}

.hrl-comment-body {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(30, 30, 28, 0.6);
  border: 1px solid rgba(123, 139, 111, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hrl-comment-avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.hrl-comment-content {
  flex: 1;
  min-width: 0;
}

/* --- Comment Meta --- */
.hrl-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.hrl-comment-author,
.hrl-comment-author a {
  font-weight: 600;
  color: #c8b560;
  text-decoration: none;
  font-size: 0.95rem;
}

.hrl-comment-author a:hover {
  color: #FFD500;
}

.hrl-comment-date {
  font-size: 0.8rem;
  color: rgba(232, 230, 220, 0.5);
}

/* --- Comment Text --- */
.hrl-comment-text {
  color: #e8e6dc;
  line-height: 1.65;
  font-size: 0.95rem;
}

.hrl-comment-text p {
  margin: 0 0 0.75rem 0;
}

.hrl-comment-text p:last-child {
  margin-bottom: 0;
}

/* --- Comment Actions (Reply) --- */
.hrl-comment-actions {
  margin-top: 0.5rem;
}

.hrl-reply a {
  font-size: 0.8rem;
  color: #7B8B6F;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: color 0.2s;
}

.hrl-reply a:hover {
  color: #FFD500;
}

/* --- Awaiting Moderation --- */
.hrl-comment-awaiting {
  font-style: italic;
  color: #c8b560;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* --- Comment Navigation --- */
.hrl-comment-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(123, 139, 111, 0.2);
}

.hrl-comment-nav a {
  color: #7B8B6F;
  text-decoration: none;
  font-size: 0.9rem;
}

.hrl-comment-nav a:hover {
  color: #FFD500;
}

/* --- Comment Form --- */
.hrl-comment-form {
  margin-top: 2rem;
}

.hrl-comment-form label {
  display: block;
  color: #e8e6dc;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.hrl-comment-form textarea,
.hrl-comment-form input[type="text"],
.hrl-comment-form input[type="email"],
.hrl-comment-form input[type="url"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(30, 30, 28, 0.7);
  border: 1px solid rgba(123, 139, 111, 0.3);
  border-radius: 6px;
  color: #e8e6dc;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.hrl-comment-form textarea:focus,
.hrl-comment-form input[type="text"]:focus,
.hrl-comment-form input[type="email"]:focus,
.hrl-comment-form input[type="url"]:focus {
  outline: none;
  border-color: #7B8B6F;
  box-shadow: 0 0 0 2px rgba(123, 139, 111, 0.25);
}

.hrl-comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.hrl-comment-form .form-submit {
  margin-top: 1rem;
}

.hrl-comment-form .hrl-comment-submit,
.hrl-comment-form #submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  background: rgba(123, 139, 111, 0.25);
  color: #e8e6dc;
  border: 1px solid rgba(123, 139, 111, 0.4);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.hrl-comment-form .hrl-comment-submit:hover,
.hrl-comment-form #submit:hover {
  background: rgba(123, 139, 111, 0.4);
  border-color: #FFD500;
  color: #FFD500;
}

/* Reply title */
.hrl-comment-form .comment-reply-title {
  font-size: 1.3rem;
  color: #e8e6dc;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hrl-comment-form .comment-reply-title small a {
  font-size: 0.8rem;
  color: #7B8B6F;
  text-decoration: none;
  margin-left: 0.75rem;
}

.hrl-comment-form .comment-reply-title small a:hover {
  color: #FFD500;
}

/* Turnstile note */
.hrl-comment-turnstile-note {
  font-size: 0.8rem;
  color: rgba(232, 230, 220, 0.4);
  margin-top: 0.5rem;
}

/* --- Login Prompt --- */
.hrl-comment-login-prompt {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(30, 30, 28, 0.6);
  border: 1px solid rgba(123, 139, 111, 0.25);
  border-radius: 8px;
  text-align: center;
}

.hrl-comment-login-prompt p {
  color: #e8e6dc;
  font-size: 1rem;
  margin: 0;
}

.hrl-comment-login-prompt a {
  color: #c8b560;
  text-decoration: none;
  font-weight: 600;
}

.hrl-comment-login-prompt a:hover {
  color: #FFD500;
}

/* --- No Comments Notice --- */
.hrl-no-comments {
  color: rgba(232, 230, 220, 0.5);
  font-style: italic;
  margin-top: 2rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .hrl-comment-body {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hrl-comment-list .children {
    padding-left: 1rem;
  }
  .hrl-comment-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}


/* =============================================================
   PROJECT CARDS — Grid + Cards for /projects/ page
   Matches index2 project section design
   ============================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  opacity: 1;
}
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
}
.project-card--labwork .project-icon {
  background: var(--olive-dim);
  color: var(--olive);
}
.project-card--client .project-icon {
  background: rgba(255,183,77,0.15);
  color: #FFB74D;
}
.project-card--classified .project-icon {
  background: rgba(139,133,120,0.15);
  color: var(--text-muted);
}
.project-badges {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  position: relative;
}
.badge-stable { background: rgba(76,175,80,0.15); color: #66BB6A; }
.badge-active { background: var(--olive-dim); color: var(--olive); }
.badge-prototype { background: rgba(255,152,0,0.15); color: #FFA726; }
.badge-experimental { background: rgba(171,130,255,0.15); color: #AB82FF; }
.badge-on-hold { background: rgba(139,133,120,0.15); color: var(--text-muted); }
.badge-archived { background: rgba(139,133,120,0.15); color: var(--text-muted); opacity: 0.5; }
.badge-client { background: rgba(255,183,77,0.1); color: #FFB74D; }
.badge-labwork { background: var(--olive-dim); color: var(--olive); }
.badge-classified { background: rgba(139,133,120,0.1); color: var(--text-muted); }
.badge-type { padding: 0.25rem 0.45rem; }
.badge-type i { font-size: 1rem; }
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid var(--glass-border);
  z-index: 10;
}
[data-tooltip]:hover::after { opacity: 1; }
.project-card h3 { color: var(--text-primary); margin: 0; }
.project-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.project-card--classified {
  opacity: 0.85;
  border-style: dashed;
}

/* --- STRETCHED LINK for project cards (div-based) --- */
.project-card {
  position: relative;
}
.project-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}
.project-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.project-card h3 a:hover {
  opacity: 1;
}

/* =====================================================
   wpDiscuz — MARPAT Glass-morphism Overrides
   Matches FluentForm / HurtRidge.com theme styling
   Added: 2026-03-21
   ===================================================== */

/* --- Main wrapper & area background --- */
.wpdiscuz_unauth,
.wpdiscuz_auth,
#wpdiscuz.wpdiscuz-wrap {
  background: var(--bg-surface) !important;
  border-radius: var(--radius) !important;
  padding: 1.5rem !important;
  border: 1px solid var(--glass-border) !important;
  font-family: var(--font-body) !important;
}

/* --- Rating section (Article Rating box at top) --- */
.wpd-comment-info-bar {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}

.wpd-comment-info-bar .wpd-rating-wrap .wpd-rate-value {
  color: var(--text-primary) !important;
  border-color: var(--glass-border) !important;
}

.wpd-comment-info-bar .wpd-rating-wrap .wpd-rate-text {
  color: var(--text-muted) !important;
}

/* Stars */
.wpd-rate-starts .wpdiscuz-star {
  color: var(--color-gold, #FFD500) !important;
}

/* --- Subscribe bar --- */
.wpdiscuz-subscribe-bar,
.wpd-sbs-toggle,
.wpd-auth .wpd-sbs-title {
  color: var(--text-secondary) !important;
}

.wpd-login {
  color: var(--color-gold, #FFD500) !important;
  font-weight: 500 !important;
}

.wpd-login:hover {
  color: #ffe033 !important;
}

/* --- Form wrapper & background --- */
.wpd-form-wrapper,
.wpd-main-form-wrapper,
.wpd-secondary-form-wrapper {
  background: transparent !important;
}

/* --- Textarea / Quill editor wrapper ("Join the discussion") --- */
.wpdiscuz-textarea-wrap,
.wpdiscuz-item.wc-field-textarea {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden !important;
  transition: var(--transition) !important;
}

.wpdiscuz-textarea-wrap:focus-within,
.wpdiscuz-item.wc-field-textarea:focus-within {
  border-color: var(--gold-dim, rgba(255,213,0,0.15)) !important;
  box-shadow: 0 0 0 3px rgba(255,213,0,0.08) !important;
}

/* --- Quill editor content area --- */
.ql-editor,
.ql-container,
.wc_comment.wpd-field {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  border: none !important;
  min-height: 80px !important;
}

.ql-editor.ql-blank::before {
  color: var(--text-dim) !important;
  font-style: italic !important;
  font-family: var(--font-body) !important;
}

/* --- Quill toolbar (B I U S etc.) --- */
.ql-toolbar,
.wpd-editor-buttons-right,
.wpdiscuz-textarea-foot {
  background: var(--bg-elevated, #262219) !important;
  border-top: 1px solid var(--glass-border) !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}

.ql-toolbar .ql-stroke {
  stroke: var(--text-muted) !important;
}

.ql-toolbar .ql-fill {
  fill: var(--text-muted) !important;
}

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar .ql-active .ql-stroke {
  stroke: var(--color-gold, #FFD500) !important;
}

.ql-toolbar button:hover .ql-fill,
.ql-toolbar .ql-active .ql-fill {
  fill: var(--color-gold, #FFD500) !important;
}

/* --- Input fields (name, email, etc.) --- */
.wpdiscuz-item input[type="text"],
.wpdiscuz-item input[type="email"],
.wpdiscuz-item input[type="url"],
.wpdiscuz-subscribe-form-email input,
#wpdiscuz .wpdiscuz-item input {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  padding: 0.7rem 1rem !important;
  transition: var(--transition) !important;
  box-shadow: none !important;
  outline: none !important;
}

.wpdiscuz-item input:focus,
.wpdiscuz-subscribe-form-email input:focus,
#wpdiscuz .wpdiscuz-item input:focus {
  border-color: var(--gold-dim, rgba(255,213,0,0.15)) !important;
  background: var(--glass-bg-hover) !important;
  box-shadow: 0 0 0 3px rgba(255,213,0,0.08) !important;
}

.wpdiscuz-item input::placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
}

/* --- Submit / Primary button (matches FluentForm gold button) --- */
.wpd-prim-button,
.wpdiscuz-subscribe-form-button,
#wpdiscuz .wpd-prim-button {
  background: var(--color-gold, #FFD500) !important;
  color: #141210 !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.65rem 1.75rem !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  letter-spacing: 0.02em !important;
}

.wpd-prim-button:hover,
.wpdiscuz-subscribe-form-button:hover,
#wpdiscuz .wpd-prim-button:hover {
  background: #ffe033 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px var(--gold-glow, rgba(255,213,0,0.3)) !important;
}

/* --- Comment thread items --- */
.wpd-comment .wpd-comment-wrap,
.wpd-comment .wpd-comment-right {
  color: var(--text-primary) !important;
}

.wpd-comment .wpd-comment-author,
.wpd-comment .wpd-comment-author a {
  color: var(--text-secondary) !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
}

.wpd-comment .wpd-comment-author a:hover {
  color: var(--color-gold, #FFD500) !important;
}

.wpd-comment .wpd-comment-date {
  color: var(--text-muted) !important;
}

.wpd-comment .wpd-comment-text {
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  line-height: 1.65 !important;
}

/* Author label badge */
.wpd-comment .wpd-comment-label {
  background: var(--olive, #7B8B6F) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-xs) !important;
  font-size: 0.75rem !important;
}

/* --- Comment actions (reply, vote, share) --- */
.wpd-comment-footer .wpd-reply-button,
.wpd-comment-footer a {
  color: var(--text-muted) !important;
  transition: var(--transition) !important;
}

.wpd-comment-footer .wpd-reply-button:hover,
.wpd-comment-footer a:hover {
  color: var(--color-gold, #FFD500) !important;
}

/* Vote buttons */
.wpd-vote-up,
.wpd-vote-down {
  color: var(--text-muted) !important;
  transition: var(--transition) !important;
}

.wpd-vote-up:hover { color: var(--olive, #7B8B6F) !important; }
.wpd-vote-down:hover { color: var(--danger, #E85D4A) !important; }

.wpd-vote-result {
  color: var(--text-secondary) !important;
}

/* --- Sort/filter buttons --- */
.wpdiscuz-sort-buttons {
  border-bottom: 1px solid var(--glass-border) !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1rem !important;
}

.wpdiscuz-sort-button {
  color: var(--text-muted) !important;
  font-family: var(--font-body) !important;
  transition: var(--transition) !important;
}

.wpdiscuz-sort-button:hover {
  color: var(--text-secondary) !important;
}

.wpdiscuz-sort-button.wpdiscuz-sort-button-active {
  color: var(--color-gold, #FFD500) !important;
}

/* --- Comments count header --- */
.wpd-thread-head .wpd-thread-info {
  color: var(--text-secondary) !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
}

/* --- Thread filter tabs (hot, recent, etc.) --- */
.wpd-thread-filter .wpd-filter {
  color: var(--text-muted) !important;
}

.wpd-thread-filter .wpd-filter:hover,
.wpd-thread-filter .wpd-filter.wpd-active {
  color: var(--color-gold, #FFD500) !important;
}

/* --- Reply form (nested) --- */
.wpd-secondary-form-wrapper {
  background: var(--bg-elevated, #262219) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 1rem !important;
  margin-top: 0.75rem !important;
}

/* --- Select dropdown (sorting) --- */
.wpdiscuz_select,
#wpdiscuz select {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-xs) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  padding: 0.4rem 0.75rem !important;
  transition: var(--transition) !important;
}

/* --- Loading bar --- */
.wpdiscuz-loading-bar-unauth,
.wpdiscuz-loading-bar {
  background: var(--color-gold, #FFD500) !important;
}

/* --- Character counter --- */
.wpd-editor-char-counter {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
}

/* --- Social login section --- */
.wc_social_plugin_wrapper,
.wpd-secondary-forms-social-content {
  border-color: var(--glass-border) !important;
}

/* --- Comment message for unauthenticated --- */
.wpdiscuz-comment-message-unauth {
  color: var(--text-muted) !important;
}

/* --- Comment avatar --- */
.wpd-avatar img {
  border-radius: 50% !important;
  border: 2px solid var(--glass-border) !important;
}

/* --- Comment separator / space --- */
.wpd-space {
  border-color: var(--glass-border) !important;
}

/* --- Override any inline styles wpDiscuz injects --- */
#wpdiscuz .wpd-comment-wrap {
  background: transparent !important;
}

#wpdiscuz .wpd-comment-right {
  background: transparent !important;
}

/* --- Pagination --- */
.wpdiscuz-comment-pagination .page-numbers {
  color: var(--text-muted) !important;
  border-color: var(--glass-border) !important;
  background: transparent !important;
  transition: var(--transition) !important;
}

.wpdiscuz-comment-pagination .page-numbers:hover,
.wpdiscuz-comment-pagination .page-numbers.current {
  color: var(--color-gold, #FFD500) !important;
  border-color: var(--color-gold, #FFD500) !important;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .wpdiscuz_unauth,
  .wpdiscuz_auth,
  #wpdiscuz.wpdiscuz-wrap {
    padding: 1rem !important;
    border-radius: var(--radius-sm) !important;
  }
}


/* =================================================================
   wpDiscuz Subscribe Area – Cleanup & MARPAT Styling
   - Replaces single-option dropdown with clean inline label
   - Scoped button sizing (won't affect other site forms)
   ================================================================= */

/* Hide the "Notify of" label and the useless single-option dropdown */
.wpdiscuz-subscribe-form-intro {
  display: none !important;
}
.wpdiscuz-subscribe-form-option {
  display: none !important;
}

/* Re-label the subscribe area with a clean message */
#wpdiscuz-subscribe-form {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
  position: relative !important;
}

#wpdiscuz-subscribe-form::before {
  content: "Notify me of new comments" !important;
  display: block !important;
  width: 100% !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary, #B5AD9E) !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 0.25rem !important;
}

/* Style the email input to match glass-morphism form fields */
.wpdiscuz-subscribe-form-email {
  flex: 1 1 auto !important;
  min-width: 200px !important;
}

.wpdiscuz-subscribe-form-email input.email {
  width: 100% !important;
  background: var(--glass-bg, rgba(244,241,235,0.05)) !important;
  border: 1px solid var(--glass-border, rgba(212,201,176,0.12)) !important;
  border-radius: var(--radius-sm, 6px) !important;
  color: var(--text-primary, #F7F4EF) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.875rem !important;
  padding: 0.6rem 0.85rem !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
  outline: none !important;
}

.wpdiscuz-subscribe-form-email input.email::placeholder {
  color: var(--text-muted, #7A7265) !important;
  opacity: 1 !important;
}

.wpdiscuz-subscribe-form-email input.email:focus {
  border-color: var(--color-gold, #FFD500) !important;
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.08) !important;
}

/* Subscribe button – scoped to wpDiscuz subscribe form ONLY */
.wpdiscuz-subscribe-form-button {
  flex: 0 0 auto !important;
}

.wpdiscuz-subscribe-form-button input[type="submit"],
.wpdiscuz-subscribe-form-button .wpdiscuz-subscribe-submit {
  background: transparent !important;
  border: 1px solid var(--color-gold, #FFD500) !important;
  color: var(--color-gold, #FFD500) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: var(--radius-sm, 6px) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  line-height: 1.2 !important;
  min-height: unset !important;
  height: auto !important;
}

.wpdiscuz-subscribe-form-button input[type="submit"]:hover,
.wpdiscuz-subscribe-form-button .wpdiscuz-subscribe-submit:hover {
  background: var(--color-gold, #FFD500) !important;
  color: var(--bg-deep, #141210) !important;
  box-shadow: 0 0 12px rgba(255, 213, 0, 0.15) !important;
}

/* Style the subscribe toggle bar itself */
.wpdiscuz-subscribe-bar {
  margin-top: 1rem !important;
  padding: 0.75rem !important;
  background: var(--glass-bg, rgba(244,241,235,0.05)) !important;
  border: 1px solid var(--glass-border, rgba(212,201,176,0.12)) !important;
  border-radius: var(--radius-sm, 6px) !important;
}

/* The clickable subscribe anchor/link */
.wpdiscuz-subscribe-link,
.wpdiscuz-subscribe a {
  color: var(--text-secondary, #B5AD9E) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
}

.wpdiscuz-subscribe-link:hover,
.wpdiscuz-subscribe a:hover {
  color: var(--color-gold, #FFD500) !important;
}

/* Responsive: stack on mobile */
@media (max-width: 480px) {
  #wpdiscuz-subscribe-form {
    flex-direction: column !important;
  }
  .wpdiscuz-subscribe-form-email {
    width: 100% !important;
  }
  .wpdiscuz-subscribe-form-button {
    width: 100% !important;
  }
  .wpdiscuz-subscribe-form-button input[type="submit"] {
    width: 100% !important;
  }
}
