:root {
  --siemens-navy: #000028;
  --siemens-mint: #00ffb9;
  --bg-main: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-panel: #f8fafc;
  --border-color: #dcdfe6;
  --text-main: #000028;
  --text-muted: #55595d;
  --link-color: #0000ff;
  --danger: #c62828;
  --success: #0a7a55;
  --shadow-soft: 0 10px 30px rgba(0, 0, 40, 0.12);
  --max-width: 1240px;
  --header-height: 56px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.22s ease;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Siemens Sans", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.is-hidden {
  display: none !important;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.topnav {
  background: var(--siemens-navy);
  color: #fff;
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.topnav .row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 24px;
}

.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-right: 24px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 400;
  height: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.menu a {
  display: flex;
  align-items: center;
  opacity: 0.82;
  position: relative;
  height: 100%;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 2;
}

.menu a:hover,
.menu a.active,
.menu a[aria-current="true"] {
  opacity: 1;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--siemens-mint);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.menu a:hover::after,
.menu a.active::after,
.menu a[aria-current="true"]::after {
  transform: scaleX(1);
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-mini {
  background: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 34px;
  width: 240px;
  color: #7a7d85;
}

.search-mini input {
  border: none;
  outline: none;
  padding: 0 8px;
  width: 100%;
  font-size: 13px;
  color: #000;
  background: transparent;
}

.auth-controls {
  display: flex;
  align-items: center;
  min-width: 120px;
  justify-content: flex-end;
}

.top-inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--siemens-mint);
  color: var(--siemens-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.top-inquiry-btn:hover {
  filter: brightness(0.96);
}

.login-trigger,
.logout-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.login-trigger:hover,
.logout-btn:hover {
  border-color: var(--siemens-mint);
  color: var(--siemens-mint);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 6px 4px 4px;
  max-width: 360px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.16);
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-info strong,
.user-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info strong {
  font-size: 13px;
  font-weight: 700;
}

.user-info span {
  font-size: 11px;
  opacity: 0.72;
}

.logout-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.hero {
  background: linear-gradient(180deg, #000028 0%, #03154e 100%);
  color: #fff;
  padding: 56px 0 36px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.stats-count {
  font-size: 22px;
  opacity: 0.5;
  margin-left: 10px;
  font-weight: 300;
}

.hero-subtext {
  margin: 0 0 24px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.hero-search {
  display: flex;
  max-width: 720px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 0 20px;
  font-size: 15px;
  outline: none;
}

.hero-search button {
  background: var(--siemens-mint);
  border: none;
  padding: 0 28px;
  font-weight: 700;
  color: var(--siemens-navy);
  font-size: 14px;
}

.hero-search button:hover,
.btn-primary:hover,
.btn-secondary:hover {
  filter: brightness(0.96);
}

.ad-wrap,
.ad-bottom {
  text-align: center;
}

.promo-banner-wrap {
  padding: 18px 0 12px;
  background: linear-gradient(180deg, rgba(244, 246, 248, 0.56) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.promo-banner {
  display: grid;
  gap: 38px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 40, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 40, 0.07);
}

.promo-banner-compact {
  grid-template-columns: 360px minmax(0, 1fr);
}

.promo-banner-image-only {
  grid-template-columns: 1fr;
  max-width: 460px;
  padding: 8px 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.promo-eyebrow {
  margin: 0 0 10px;
  color: #0a7a55;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-banner-copy h2 {
  margin: 0;
  color: var(--siemens-navy);
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.promo-banner-copy-compact {
  padding-left: 10px;
}

.promo-banner-desc {
  margin: 16px 0 0;
  max-width: 620px;
  color: #1e2740;
  font-size: 15px;
  line-height: 1.65;
}

.promo-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.promo-chip-group span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0, 255, 185, 0.12);
  border: 1px solid rgba(0, 0, 40, 0.08);
  color: var(--siemens-navy);
  font-size: 13px;
  font-weight: 700;
}

.promo-banner-media {
  display: flex;
  justify-content: center;
}

.promo-banner-media-compact {
  padding-right: 24px;
  border-right: 2px solid rgba(0, 255, 185, 0.8);
}

.promo-banner-media img {
  width: 100%;
  max-width: 360px;
  border-radius: 0;
  box-shadow: none;
}

.promo-banner-image-only .promo-banner-media img {
  max-width: 420px;
}

.ad-wrap {
  padding-top: 20px;
}

.ad-bottom {
  margin: 64px 0;
}

.toolbar {
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  backdrop-filter: blur(8px);
}

.toolbar .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tabs {
  display: flex;
  gap: 32px;
}

.tab {
  padding: 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  border-bottom: 4px solid transparent;
  background: transparent;
  position: relative;
  bottom: -1px;
}

.tab.active {
  color: var(--siemens-navy);
  border-bottom-color: var(--siemens-mint);
}

.actions-right {
  padding: 10px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.toolbar-purchase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
}

.btn-primary,
.btn-secondary {
  border: none;
  padding: 10px 24px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.btn-primary {
  background: var(--siemens-mint);
  color: var(--siemens-navy);
}

.btn-secondary {
  background: #eef2f8;
  color: var(--text-main);
}

.ask-btn.member-locked {
  background: #e7edf5;
  color: #384155;
}

.ask-access-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.member-posts {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

.member-posts-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-eyebrow {
  margin: 0 0 6px;
  color: var(--siemens-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-posts h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.member-posts-desc {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.question-list {
  display: grid;
  gap: 16px;
}

.question-empty-state {
  padding: 24px 20px;
  border: 1px dashed #c8d2de;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  font-size: 14px;
}

.question-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 40, 0.04);
}

.question-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.question-category {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf6ff;
  color: #0c5085;
  font-size: 12px;
  font-weight: 700;
}

.question-date {
  font-size: 12px;
  color: var(--text-muted);
}

.question-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.question-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.question-resource-link-wrap {
  margin-top: 14px;
}

.question-resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #cfe0ff;
  color: #175cd3;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.question-resource-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(23, 92, 211, 0.12);
  background: #e6f0ff;
}

.question-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef1f5;
}

.question-author-row img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.question-author-row strong {
  display: block;
  font-size: 14px;
}

.question-author-row span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  gap: 20px;
}

.filter-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 700;
  font-size: 14px;
}

.tag {
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
}

.clear-link {
  font-size: 14px;
  color: var(--link-color);
  text-decoration: underline;
  font-weight: 700;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.sort-wrap select {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-main);
}

.cat-list {
  margin-bottom: 60px;
}

.cat-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 136px;
}

.cat-item:hover {
  background: #fcfcfc;
}

.cat-item-clickable {
  cursor: pointer;
}

.cat-item-clickable:hover,
.cat-item-clickable:focus-within {
  background: linear-gradient(90deg, rgba(0, 255, 185, 0.05) 0%, rgba(0, 255, 185, 0.01) 100%);
}

.cat-item-clickable:focus-visible {
  outline: 3px solid rgba(0, 255, 185, 0.45);
  outline-offset: 4px;
}

.cat-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--siemens-navy);
}

.cat-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.cat-body p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.7;
}

.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--link-color);
}

.cat-tags a:hover {
  text-decoration: underline;
}

.cat-icon-link,
.cat-entry-link,
.cat-title-link,
.cat-tags a {
  position: relative;
  z-index: 2;
}

.cat-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: right;
  align-self: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.data-val,
.stat-val {
  font-size: 18px;
  font-weight: 700;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer {
  background: var(--siemens-navy);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--siemens-mint);
  margin: 0 0 18px;
  font-size: 20px;
}

.footer-col p {
  margin: 0;
  opacity: 0.78;
  font-size: 14px;
  line-height: 1.8;
}

.footer-col a {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  opacity: 0.58;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 30, 0.58);
}

.auth-panel {
  position: relative;
  width: min(100%, 520px);
  background: #fff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px 28px 28px;
}

.question-panel {
  width: min(100%, 620px);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 30px;
  line-height: 1;
}

.auth-eyebrow {
  margin: 0 0 10px;
  color: var(--siemens-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.auth-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.auth-list {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-list li + li {
  margin-top: 8px;
}

.google-signin-slot {
  min-height: 44px;
  display: flex;
  justify-content: flex-start;
}

.question-form {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group span {
  font-size: 14px;
  font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text-main);
  outline: none;
}

.field-group textarea {
  resize: vertical;
  min-height: 140px;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: #7ab4ff;
  box-shadow: 0 0 0 3px rgba(122, 180, 255, 0.18);
}

.field-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.question-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.auth-status {
  min-height: 24px;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.auth-status[data-state="loading"] {
  color: var(--text-main);
}

.auth-status[data-state="success"] {
  color: var(--success);
}

.auth-status[data-state="error"] {
  color: var(--danger);
}

@media (max-width: 1120px) {
  .menu {
    gap: 20px;
  }

  .cat-item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .cat-stats {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .topnav {
    height: auto;
    padding: 14px 0;
  }

  .topnav .row {
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
  }

  .brand {
    margin-right: 0;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .menu {
    order: 4;
    width: 100%;
    height: auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 100%;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    height: auto;
    padding: 14px 0;
    width: 100%;
  }

  .menu a::after {
    bottom: 6px;
    width: 72px;
  }

  .top-actions {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .search-mini {
    width: min(100%, 320px);
  }

  .toolbar {
    top: 0;
  }

  .toolbar .row,
  .filter-bar,
  .footer-bottom,
  .member-posts-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions-right {
    align-items: flex-start;
    width: 100%;
  }

  .member-posts {
    padding: 22px;
  }

  .cat-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cat-icon {
    margin: 0;
  }

  .cat-stats {
    grid-column: auto;
    text-align: left;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 44px 0 28px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-search {
    flex-direction: column;
    height: auto;
  }

  .hero-search input,
  .hero-search button {
    height: 48px;
  }

  .promo-banner {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 20px;
  }

  .promo-banner-compact {
    grid-template-columns: 1fr;
  }

  .promo-banner-image-only {
    max-width: 100%;
    padding: 0;
  }

  .promo-banner-media-compact {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: none;
    border-bottom: 2px solid rgba(0, 255, 185, 0.8);
  }

  .promo-banner-copy h2 {
    font-size: 30px;
  }

  .promo-banner-copy-compact {
    padding-left: 0;
  }

  .promo-banner-desc {
    font-size: 16px;
  }

  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-controls,
  .login-trigger,
  .user-menu,
  .ask-btn,
  .top-inquiry-btn {
    width: 100%;
  }

  .login-trigger {
    justify-content: center;
  }

  .user-menu {
    border-radius: 18px;
    padding: 10px;
  }

  .question-card-meta,
  .question-form-actions,
  .cat-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .question-form-actions {
    flex-direction: column;
  }

  .question-form-actions .btn-primary,
  .question-form-actions .btn-secondary {
    width: 100%;
  }

  .question-card-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-panel {
    padding: 28px 20px 24px;
  }
}

.cat-icon-link {
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cat-icon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 40, 0.12);
}

.cat-title-link {
  color: var(--siemens-navy);
  text-decoration: none;
}

.cat-title-link:hover {
  color: #0033aa;
  text-decoration: underline;
}

.cat-entry-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #0033aa;
}

.cat-entry-link:hover {
  text-decoration: underline;
}

.forum-breadcrumb {
  background: #f5f7fb;
  border-bottom: 1px solid #e4e9f1;
}

.forum-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: #667085;
  font-size: 13px;
}

.forum-breadcrumb strong {
  color: var(--text-main);
}

.forum-hero-panel {
  background: linear-gradient(180deg, #f9fbff 0%, #eef3fb 100%);
  border-bottom: 1px solid #dfe6f1;
}

.forum-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 320px;
  gap: 28px;
  padding: 38px 20px;
}

.forum-hero-copy h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
}

.forum-hero-desc {
  margin: 14px 0 0;
  max-width: 800px;
  font-size: 16px;
  color: #445065;
}

.forum-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.forum-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d9e2ef;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.forum-hero-stats {
  display: grid;
  gap: 14px;
}

.forum-stat-card {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dce3ee;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.forum-stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.forum-stat-card span {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 13px;
}

.forum-page-main {
  padding-top: 28px;
  padding-bottom: 70px;
}

.forum-resource-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.resource-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e1e7f0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.resource-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.resource-card p {
  margin: 0;
  color: #5b6578;
  font-size: 14px;
}

.forum-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

.forum-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.forum-side-card {
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e1e7f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.forum-side-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.forum-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.forum-side-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.forum-side-list span {
  color: #667085;
}

.forum-side-list strong {
  text-align: right;
}

.forum-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.forum-tag-cloud a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid #dbe4f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.forum-tag-cloud a:hover {
  border-color: #aac0df;
  color: #0033aa;
}

.side-cta-card p {
  margin: 0 0 14px;
  color: #5b6578;
  font-size: 14px;
}

.side-purchase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: #eef2f8;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.side-purchase-btn:hover {
  filter: brightness(0.97);
}

.forum-content {
  min-width: 0;
}

.forum-list-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.forum-list-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.topic-card {
  padding: 22px 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e1e7f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.topic-card + .topic-card {
  margin-top: 16px;
}

.featured-topic-card {
  border-color: #c9d8ee;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.topic-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.topic-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.topic-status.is-open {
  background: #eef6ff;
  color: #175cd3;
}

.topic-status.is-close {
  background: #fff1f3;
  color: #d92d20;
}

.topic-status.is-solved {
  background: #ecfdf3;
  color: #067647;
}

.topic-updated {
  font-size: 12px;
  color: #667085;
}

.topic-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.topic-card h3 a:hover {
  color: #0033aa;
}

.topic-card p {
  margin: 0;
  color: #5b6578;
  font-size: 15px;
  line-height: 1.75;
}

.topic-card .question-resource-link-wrap {
  margin-top: 14px;
}

.topic-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .forum-hero-inner,
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .forum-resource-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .forum-hero-inner {
    padding: 30px 20px;
  }

  .forum-hero-copy h1 {
    font-size: 34px;
  }

  .forum-list-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .forum-breadcrumb .container {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .forum-hero-copy h1,
  .forum-list-head h2 {
    font-size: 28px;
  }

  .forum-hero-desc {
    font-size: 15px;
  }

  .forum-stat-card strong,
  .topic-card h3 {
    font-size: 22px;
  }

  .topic-card,
  .forum-side-card,
  .resource-card,
  .member-posts {
    padding: 18px;
  }

  .topic-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
}


.forum-empty-state {
  border-style: dashed;
  box-shadow: none;
  color: #5b6578;
}

.forum-question-list:empty + .forum-empty-state {
  display: block;
}

.forum-question-list:not(:empty) + .forum-empty-state {
  display: none;
}

.reply-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e8edf4;
}

.reply-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.reply-section-head strong {
  font-size: 14px;
  color: var(--siemens-navy);
}

.reply-section-head span {
  font-size: 12px;
  color: #667085;
}

.reply-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.reply-empty-state {
  padding: 14px 16px;
  border: 1px dashed #cfd8e3;
  border-radius: 14px;
  background: #f8fafc;
  color: #667085;
  font-size: 14px;
}

.reply-card {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  padding: 14px 16px;
}

.reply-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.reply-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

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

.reply-author strong,
.reply-author span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-author strong {
  font-size: 13px;
}

.reply-author span,
.reply-date {
  font-size: 12px;
  color: #667085;
}

.reply-content-text {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.reply-attachment-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.reply-attachment-link {
  display: block;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.reply-attachment-link img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f3f6fa;
}

.reply-attachment-link.is-file {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
}

.reply-attachment-file-badge {
  margin: 18px 12px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3538cd;
  font-size: 12px;
  font-weight: 800;
}

.reply-attachment-link span {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  color: #475467;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-manage-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.post-manage-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-manage-btn {
  appearance: none;
  border: 1px solid #c9d5e3;
  background: #ffffff;
  color: #344054;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
}

.post-manage-btn:hover {
  transform: translateY(-1px);
  border-color: #00a6d6;
  color: #0064b5;
  box-shadow: 0 8px 18px rgba(0, 100, 181, 0.12);
}

.post-manage-btn.danger {
  border-color: rgba(217, 45, 32, 0.24);
  color: #b42318;
  background: #fff5f4;
}

.post-manage-btn.danger:hover {
  border-color: rgba(217, 45, 32, 0.4);
  color: #912018;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.12);
}

.reply-form {
  border: 1px solid #dce4ef;
  border-radius: 16px;
  padding: 16px;
  background: #f9fbfd;
}

.reply-field-group {
  margin-bottom: 12px;
}

.reply-content-input {
  width: 100%;
  min-height: 108px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  padding: 14px 16px;
  resize: vertical;
  background: #fff;
}

.reply-content-input:disabled {
  background: #f1f5f9;
  color: #98a2b3;
}

.reply-form-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reply-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef6ff;
  color: #175cd3;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.reply-file-label input {
  display: none;
}

.reply-file-label.is-disabled {
  background: #eef2f6;
  color: #98a2b3;
  cursor: not-allowed;
}

.reply-file-hint {
  font-size: 12px;
  color: #667085;
}

.reply-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.reply-file-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d7e0ea;
  color: #475467;
  font-size: 12px;
}

.reply-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.reply-status {
  margin: 0;
  font-size: 13px;
  color: #667085;
}

.reply-status[data-state="success"] {
  color: var(--success);
}

.reply-status[data-state="error"] {
  color: var(--danger);
}

.reply-status[data-state="loading"] {
  color: #175cd3;
}

.reply-submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 640px) {
  .reply-card-top,
  .reply-form-actions,
  .post-manage-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-manage-actions {
    width: 100%;
  }

  .reply-attachment-gallery {
    grid-template-columns: 1fr 1fr;
  }
}
