/**
 * 99tools Design System — Components
 * All UI components: Hero, Cards, Tools, Blog, Search, Workspace, FAQ, Blog, Contact
 * Brand: Gold #D4A843 | Display: Outfit | Body: Plus Jakarta Sans
 *
 * @package 99tools
 */

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Floating badge above hero */
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--brand-gold-light);
  border: 1px solid rgba(212, 168, 67, 0.35);
  color: var(--brand-gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.35rem;
  box-shadow: 0 0 20px var(--brand-gold-glow);
  animation: badgeFloat 3.5s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-pill-badge {
  background-color: var(--brand-gold-light);
  border-color: rgba(230, 184, 74, 0.3);
}

@keyframes badgeFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw + 0.5rem, 3.5rem);
  font-weight: 800;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.12;
  letter-spacing: -0.038em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  /* Safety: never overflow viewport */
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Gold gradient text — brand primary */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #f0c85a 0%, #E6B84A 50%, #E07A35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw + 0.35rem, 1.18rem);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* Hero Search */
.hero-search-wrapper {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  margin-bottom: 1.25rem;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.55rem 0.45rem 1.15rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  gap: 0.5rem;
}

.hero-search-box:focus-within {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-light), var(--shadow-glow);
}

.hero-search-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  min-width: 0; /* prevent overflow */
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.hero-search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-search-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-hover));
  color: #1a1000;
  border: none;
  outline: none;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.hero-search-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 12px var(--brand-gold-glow);
}

/* Quick Search Tag Pills */
.quick-tags-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.quick-tag-label {
  font-weight: 600;
  flex-shrink: 0;
}

.quick-tag-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.4;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.quick-tag-pill:hover {
  background-color: var(--brand-gold-light);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

/* ==========================================================================
   2. STATS BAR
   ========================================================================== */
.stats-bar-section {
  padding: 1rem 0 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--brand-gold-light);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.stat-content h4 {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  margin-bottom: 0.1rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.stat-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==========================================================================
   3. CATEGORY FILTER TABS
   ========================================================================== */
.category-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.cat-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
}

.cat-filter-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.cat-filter-btn.is-active {
  background: var(--brand-gold);
  border-color: var(--brand-gold-hover);
  color: #1a1000;
  font-weight: 700;
  box-shadow: 0 2px 12px var(--brand-gold-glow);
}

/* ==========================================================================
   4. TOOL CARDS GRID
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
}

/* Gold top-border accent on hover */
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), var(--brand-secondary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: var(--shadow-lg), 0 0 24px var(--brand-gold-glow);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-gold-light), var(--bg-subtle));
  border: 1px solid rgba(212, 168, 67, 0.2);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-badges-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tool-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Gold "Featured" pill */
.pill-featured {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-hover));
  color: #1a1000;
  border: none;
}

.pill-free {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tool-cat-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  line-height: 1.4;
}

.badge-purple  { background: rgba(139,  92, 246, 0.12); color: #8b5cf6; }
.badge-blue    { background: rgba( 10, 138, 122, 0.12); color: var(--brand-teal); }
.badge-cyan    { background: rgba(  6, 182, 212, 0.12); color: #06b6d4; }
.badge-emerald { background: rgba( 16, 185, 129, 0.12); color: #10b981; }
.badge-amber   { background: rgba(212, 168,  67, 0.14); color: var(--brand-gold); }
.badge-indigo  { background: rgba( 201, 106,  30, 0.12); color: var(--brand-copper); }

.tool-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.4vw + 0.15rem, 1.15rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
  line-height: 1.35;
  letter-spacing: -0.022em;
}

.tool-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tool-card-title a:hover {
  color: var(--brand-gold);
}

.tool-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  letter-spacing: -0.006em;
  margin-bottom: 1.15rem;
  flex: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: auto;
  gap: 0.5rem;
}

.tool-meta-reading {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.77rem;
  color: var(--text-muted);
}

.tool-launch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-gold);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tool-launch-link:hover {
  transform: translateX(3px);
  color: var(--brand-gold-hover);
}

/* Featured Blog Card 2-col layout (blog page spotlight) */
.featured-blog-card {
  container-type: inline-size;
}

/* ==========================================================================
   5. SINGLE TOOL PAGE — INTERACTIVE WORKSPACE
   ========================================================================== */
.single-tool-header {
  padding: 2.5rem 0 1.75rem;
}

.site-breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--brand-gold);
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 0.4rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.single-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.author-chip img {
  border-radius: 50%;
  width: 22px;
  height: 22px;
  object-fit: cover;
}

/* Interactive Tool Workspace */
.tool-workspace-container {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: nowrap;
}

.workspace-title-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.workspace-title-indicator .workspace-title-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.workspace-active-title {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.3;
  /* prevent overflow on narrow screens */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-active-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.workspace-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.workspace-action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.workspace-action-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Fullscreen toggle visibility */
.tool-workspace-container .workspace-btn-exit        { display: none !important; }
.tool-workspace-container.is-fullscreen .workspace-btn-enter { display: none !important; }
.tool-workspace-container.is-fullscreen .workspace-btn-exit {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.42rem 0.9rem !important;
  border-radius: var(--radius-sm, 6px) !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4) !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}
.tool-workspace-container.is-fullscreen .workspace-btn-exit:hover {
  background: #dc2626 !important;
}

.fs-esc-pill {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.67rem;
  font-family: var(--font-mono);
}

/* Admin bar compat */
body.admin-bar .tool-workspace-container.is-fullscreen {
  top: 32px !important;
  height: calc(100vh - 32px) !important;
  height: calc(100dvh - 32px) !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .tool-workspace-container.is-fullscreen {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
    height: calc(100dvh - 46px) !important;
  }
}

/* Tab strip */
.workspace-tabs-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 55px;
  z-index: 15;
}

.workspace-tabs-strip::-webkit-scrollbar { display: none; }

.workspace-tab-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.workspace-tab-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.workspace-tab-btn.is-active {
  background: var(--brand-gold);
  border-color: var(--brand-gold-hover);
  color: #1a1000;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--brand-gold-glow);
}

.workspace-canvas {
  padding: clamp(1.25rem, 3vw, 2rem);
  min-height: 220px;
}

.workspace-canvas iframe {
  width: 100%;
  min-height: 460px;
  border: none;
  border-radius: var(--radius-md);
  display: block;
}

/* Fullscreen mode */
.tool-workspace-container.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg-surface) !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
}

.tool-workspace-container.is-fullscreen .workspace-toolbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.8rem 1.5rem;
}

.tool-workspace-container.is-fullscreen .workspace-tabs-strip {
  position: sticky;
  top: 55px;
  z-index: 90;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1.5rem;
}

.tool-workspace-container.is-fullscreen .workspace-canvas {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1rem, 3vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Two-column tool grid helpers */
.tool-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.tool-inner-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ==========================================================================
   6. SINGLE POST / BLOG ARTICLE LAYOUT
   ========================================================================== */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.single-post-content {
  font-size: 1.0625rem;
  line-height: 1.82;
  letter-spacing: -0.008em;
  color: var(--text-secondary);
  max-width: 74ch;
  min-width: 0; /* prevent grid blowout */
}

.single-post-content h2 {
  font-size: clamp(1.45rem, 2.2vw + 0.35rem, 1.88rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-top: 2.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.55rem;
  color: var(--text-primary);
  text-wrap: balance;
}

.single-post-content h3 {
  font-size: clamp(1.2rem, 1.6vw + 0.25rem, 1.48rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.32;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-wrap: balance;
}

.single-post-content h4 {
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.38;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.single-post-content p {
  margin-bottom: 1.55rem;
  line-height: 1.82;
  text-wrap: pretty;
}

.single-post-content strong,
.single-post-content b {
  font-weight: 700;
  color: var(--text-primary);
}

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 1.6rem;
  padding-left: 1.5rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.single-post-content li {
  margin-bottom: 0.55rem;
}

.single-post-content pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.single-post-content code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--brand-copper);
  background-color: var(--bg-subtle);
  padding: 0.18em 0.45em;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
}

.single-post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: inherit;
}

.single-post-content blockquote {
  border-left: 3.5px solid var(--brand-gold);
  padding: 1.15rem 1.45rem;
  margin: 2rem 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--brand-gold-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
  font-weight: 500;
}

.single-post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
  font-size: 0.925rem;
}

.single-post-content th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.single-post-content td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.single-post-content tr:last-child td {
  border-bottom: none;
}

.single-post-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem auto;
  box-shadow: var(--shadow-md);
}

/* Author box */
.author-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.15rem;
  margin: 2.5rem 0;
  align-items: flex-start;
}

.author-box-avatar img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   7. SIDEBAR & WIDGETS
   ========================================================================== */
.single-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.widget-box,
.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.widget-box:hover,
.widget:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.widget-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-gold);
  flex-shrink: 0;
}

.widget ul,
.widget-box ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.widget ul li,
.widget-box ul li {
  list-style: none !important;
  margin: 0 !important;
}

/* WP Search widget */
.widget_search .search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.widget_search .search-form label {
  flex: 1;
  margin: 0;
  display: block;
  width: 100%;
}

.widget_search .search-form .screen-reader-text { display: none; }

.widget_search .search-form .search-field {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  outline: none;
}

.widget_search .search-form .search-field:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-light);
  background: var(--bg-surface);
}

.widget_search .search-form .search-submit {
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-hover));
  color: #1a1000;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.widget_search .search-form .search-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Recent posts widget */
.widget_recent_entries li {
  padding: 0.65rem 0.8rem !important;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.widget_recent_entries li:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.widget_recent_entries li a {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  text-decoration: none;
  margin-bottom: 0.2rem;
}

.widget_recent_entries li:hover a { color: var(--brand-gold); }

.widget_recent_entries li .post-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

/* Categories / Archives widgets */
.widget_categories li,
.widget_archive li,
.widget_nav_menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.42rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.widget_categories li:hover,
.widget_archive li:hover,
.widget_nav_menu li:hover { background: var(--bg-surface-hover); }

.widget_categories li a,
.widget_archive li a,
.widget_nav_menu li a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.widget_categories li:hover a,
.widget_archive li:hover a { color: var(--brand-gold); }

/* ==========================================================================
   8. CMD+K SEARCH MODAL
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 4vw, 1.5rem) 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.search-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: all var(--transition-fast);
}

.search-modal-backdrop.is-open .search-modal-container {
  transform: translateY(0) scale(1);
}

.modal-input-header {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.65rem;
}

.modal-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.modal-close-btn:hover { color: var(--text-primary); }

.modal-results-list {
  max-height: 360px;
  overflow-y: auto;
  list-style: none;
  padding: 0.6rem;
}

.modal-result-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.modal-result-item a:hover,
.modal-result-item.is-selected a {
  background: var(--brand-gold-light);
  color: var(--brand-gold);
}

.modal-result-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--brand-gold-light);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-result-info { flex: 1; min-width: 0; }

.modal-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-result-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-footer-hints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.15rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. PAGINATION
   ========================================================================== */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.page-numbers li a,
.page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.page-numbers li span.current {
  background: var(--brand-gold);
  border-color: var(--brand-gold-hover);
  color: #1a1000;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--brand-gold-glow);
}

.page-numbers li a:hover {
  background: var(--bg-surface-hover);
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}

/* ==========================================================================
   10. HOW-TO GUIDE & FAQ ACCORDION (SEO Components)
   ========================================================================== */
.tool-howto-guide {
  margin: 2.25rem 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.howto-header { margin-bottom: 1.15rem; }

.howto-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-gold);
  background: var(--brand-gold-light);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.howto-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.howto-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
}

.howto-step-card {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.howto-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 168, 67, 0.35);
  box-shadow: var(--shadow-md);
}

.step-num-pill {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-copper));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--brand-gold-glow);
}

.step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.step-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* FAQ Accordion */
.tool-faq-section {
  margin: 2.25rem 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.faq-header { margin-bottom: 1.15rem; }

.faq-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
}

.faq-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.45rem;
  margin-bottom: 0.2rem;
}

.faq-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 2px 12px var(--brand-gold-glow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  list-style: none;
  user-select: none;
  transition: background var(--transition-fast);
  gap: 0.75rem;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--bg-surface-hover); }

.faq-icon-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon-chevron {
  transform: rotate(180deg);
  color: var(--brand-gold);
}

.faq-answer {
  padding: 0.75rem 1.15rem 1rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   11. BLOG PAGE & HUB ARCHITECTURE
   ========================================================================== */
.blog-hub-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.blog-hub-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.blog-hub-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw + 0.5rem, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.038em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.blog-hub-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw + 0.2rem, 1.125rem);
  line-height: 1.7;
  letter-spacing: -0.01em;
  max-width: 660px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* Featured Article Spotlight Card */
.featured-blog-section {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.featured-blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg), 0 0 24px var(--brand-gold-glow);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.featured-blog-card:hover {
  border-color: rgba(212, 168, 67, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 32px var(--brand-gold-glow);
}

.featured-blog-content {
  min-width: 0; /* prevent blowout */
}

.featured-blog-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.featured-blog-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw + 0.3rem, 2.05rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.032em;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.featured-blog-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.featured-blog-title a:hover {
  color: var(--brand-gold);
}

.featured-blog-excerpt {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.2vw + 0.2rem, 1.025rem);
  line-height: 1.68;
  letter-spacing: -0.008em;
  margin-bottom: 1.35rem;
  text-wrap: pretty;
}

.featured-blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.65rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.featured-blog-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.featured-blog-meta .meta-author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.featured-blog-meta .meta-dot {
  color: var(--border-strong);
  font-size: 0.7rem;
}

/* Featured visual box */
.featured-blog-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.featured-blog-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212, 168, 67, 0.16) 0%, rgba(201, 106, 30, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.featured-blog-visual-inner {
  position: relative;
  z-index: 2;
}

.featured-blog-visual .visual-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.featured-blog-visual .visual-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.featured-blog-visual .visual-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Newsletter CTA Section */
.blog-newsletter-section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.blog-newsletter-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}

.blog-newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 750;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.blog-newsletter-desc {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

.blog-newsletter-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.blog-newsletter-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  outline: none;
  transition: all var(--transition-fast);
}

.blog-newsletter-input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-light);
  background: var(--bg-surface);
}

.blog-newsletter-btn {
  padding: 0.75rem 1.5rem;
  flex-shrink: 0;
}

/* ==========================================================================
   12b. GLOBAL FORM CONTROLS — Range Sliders (kills browser-default blue)
   ========================================================================== */
input[type="range"],
input[type="checkbox"],
input[type="radio"] { accent-color: var(--brand-gold); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-light);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px var(--brand-gold-light);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-light);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
}

/* Copper variant for secondary sliders (interest rate etc.) */
input[type="range"].slider-copper::-webkit-slider-thumb {
  background: var(--brand-copper);
  box-shadow: 0 0 0 3px var(--brand-copper-light);
}
input[type="range"].slider-copper::-moz-range-thumb {
  background: var(--brand-copper);
}

/* ==========================================================================
   12. CONTACT PAGE
   ========================================================================== */
.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.contact-form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-light);
  background: var(--bg-surface);
}

.contact-form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* Contact page layout & components */
.contact-page-main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.contact-page-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw + 0.5rem, 2.85rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.contact-page-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw + 0.2rem, 1.1rem);
  line-height: 1.68;
  max-width: 680px;
  margin: 0 auto;
  text-wrap: pretty;
}

.contact-grid-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-bottom: 4rem;
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.contact-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card,
.contact-faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}

.contact-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contact-email-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  word-break: break-all;
}


