/* 步森服饰商城 (www.bsfs.cn) 轻奢剪裁美学样式表 - 零外部 CDN / 375px 无横向溢出 */
:root {
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --border: #e7e2da;
  --border-strong: #d6cfc4;
  --surface: #ffffff;
  --bg: #faf8f5;
  --bg-alt: #f3efe8;
  --accent: #8c2d19;
  --accent-dark: #6b2112;
  --accent-soft: #fdf2ef;
  --gold: #a67c37;
  --gold-bg: #fbf6eb;
  --gold-border: #ead8b1;
  --sage: #2f5d46;
  --sage-bg: #eef6f1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 10px 28px rgba(28, 25, 23, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, "SimSun", serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
  overflow-x: clip;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand-link:hover {
  color: var(--ink);
}

.brand-emblem {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.main-nav a {
  padding: 7px 10px;
  font-size: 13.8px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Announcement Bar (Verbatim below nav) */
.announce-bar {
  background: var(--gold-bg);
  border-bottom: 1px solid var(--gold-border);
  padding: 9px 0;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #7c5618;
  background: #f6e7c5;
  border: 1px solid #e2c587;
  border-radius: 999px;
  flex-shrink: 0;
}

.announce-tag svg {
  width: 14px;
  height: 14px;
}

.announce-text {
  margin: 0;
  font-size: 13.8px;
  font-weight: 600;
  color: #5c3f11;
}

/* Editorial Hero */
.hero-section {
  background:
    radial-gradient(circle at 80% 18%, rgba(176, 141, 87, 0.24), transparent 46%),
    linear-gradient(135deg, #161413 0%, #241d1a 55%, #341b16 100%);
  color: #faf8f5;
  padding: 54px 0 58px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #f3dfb6;
  background: rgba(176, 141, 87, 0.16);
  border: 1px solid rgba(212, 175, 115, 0.35);
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.28;
  font-weight: 700;
  color: #ffffff;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 15px;
  color: #d6cfc4;
  max-width: 620px;
}

.hero-search {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  max-width: 630px;
}

.hero-search-light {
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  margin-top: 16px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14.5px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hero-search button:hover {
  background: var(--accent-dark);
}

.hero-search button svg {
  width: 16px;
  height: 16px;
}

.hero-hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: #b7afa4;
}

.hero-hot-tags a {
  padding: 3px 10px;
  border-radius: 999px;
  color: #f3ede4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-hot-tags a:hover {
  background: rgba(176, 141, 87, 0.35);
  color: #ffffff;
}

.hero-atelier-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 115, 0.24);
  border-radius: 16px;
  padding: 20px;
}

.atelier-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.atelier-stats > div {
  background: rgba(22, 20, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.atelier-stats strong {
  display: block;
  font-size: 20px;
  color: #f3d28e;
  line-height: 1.2;
}

.atelier-stats span {
  display: block;
  font-size: 11.5px;
  color: #d6cfc4;
  margin-top: 3px;
}

.atelier-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atelier-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: background 0.15s, transform 0.15s;
}

.atelier-tool:hover {
  background: rgba(140, 45, 25, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.at-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(243, 210, 142, 0.18);
  color: #f3d28e;
}

.at-icon svg {
  width: 20px;
  height: 20px;
}

.atelier-tool strong {
  display: block;
  font-size: 14.5px;
}

.atelier-tool span {
  display: block;
  font-size: 12.2px;
  color: #d6cfc4;
}

/* Sections */
.section {
  padding: 46px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 14.2px;
  color: var(--muted);
}

.section-link {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* Category Cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--ink);
}

.cat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cat-icon-box svg {
  width: 24px;
  height: 24px;
}

.cat-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 18px;
}

.cat-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}

.cat-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}

/* Articles & Brand Cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.article-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cat-pill, .cat-pill-sm {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.season-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #7c5618;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
}

.season-tag-dark {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  color: #f3d28e;
  background: rgba(243, 210, 142, 0.16);
  border-radius: 6px;
}

.article-card h3 {
  margin: 0 0 10px;
  font-size: 16.8px;
  line-height: 1.44;
}

.article-card h3 a {
  color: var(--ink);
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-summary {
  margin: 0 0 16px;
  font-size: 13.6px;
  color: var(--ink-soft);
  flex: 1;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

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

.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

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

.brand-card h2, .brand-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
}

.brand-en {
  font-size: 12.5px;
  color: var(--muted);
}

.brand-items, .brand-craft, .brand-advice {
  margin: 0 0 8px;
  font-size: 13.6px;
  color: var(--ink-soft);
}

.brand-price-row {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--muted);
}

.brand-price-row strong {
  color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-sage {
  color: var(--sage);
  background: var(--sage-bg);
}

.badge-gold {
  color: #7c5618;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
}

.badge-burgundy {
  color: #ffffff;
  background: var(--accent);
}

.spec-chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #6b2112;
  background: #fdf2ef;
  padding: 2px 8px;
  border-radius: 6px;
}

.price-cell {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Compact List */
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-article {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  transition: border-color 0.15s;
}

.compact-article:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.compact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

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

.compact-article h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
}

.compact-article p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Responsive Data Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.6px;
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table thead th {
  background: #f8f5f0;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #fcfaf7;
}

/* Inner Banners */
.page-banner {
  background: linear-gradient(135deg, #1b1715 0%, #2e221d 100%);
  color: #faf8f5;
  padding: 36px 0;
}

.page-banner-compact {
  padding: 28px 0;
}

.breadcrumb {
  font-size: 13px;
  color: #b7afa4;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #e7e2da;
}

.breadcrumb span {
  margin: 0 6px;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  color: #ffffff;
}

.page-banner p {
  margin: 0;
  font-size: 14.5px;
  color: #d6cfc4;
  max-width: 800px;
}

.banner-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(243, 210, 142, 0.16);
  color: #f3d28e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-icon svg {
  width: 28px;
  height: 28px;
}

/* Guide Detail & Prose */
.guide-subtitle {
  font-size: 15px;
  color: #e7e2da;
  margin-bottom: 12px !important;
}

.guide-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 12px;
  font-size: 13px;
  color: #d6cfc4;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.guide-content, .narrow-prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.narrow-prose {
  max-width: 820px;
}

.prose h2 {
  margin: 26px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-alt);
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
}

.prose h3 {
  margin: 18px 0 8px;
  font-size: 16.5px;
}

.prose p, .prose ul, .prose ol {
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 14px;
}

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
  display: block;
  overflow-x: auto;
}

.prose th, .prose td {
  padding: 9px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.prose th {
  background: var(--bg-alt);
}

.guide-lead-box {
  background: var(--gold-bg);
  border-left: 4px solid var(--gold);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  font-size: 14.5px;
  color: #5c3f11;
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.tag-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 12.5px;
}

.tag-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.guide-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.side-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 17px;
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-links li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.8px;
}

.side-links li:last-child {
  border-bottom: none;
}

.mini-list, .related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-item, .related-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
}

.mini-item strong, .related-item strong {
  display: block;
  font-size: 13.8px;
  margin-bottom: 4px;
}

.mini-item p {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.related-item span {
  font-size: 12px;
  color: var(--muted);
}

.related-item:hover {
  border-color: var(--accent);
}

/* Filters, Tabs, Buttons, Calculator */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink-soft);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 160px;
}

.filter-grow {
  flex: 1;
  min-width: 220px;
}

.filter-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.filter-field select,
.filter-field input {
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.result-summary {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pill-tab {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
}

.pill-tab.active, .pill-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.calc-card, .calc-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.calc-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 20px;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.form-row input, .form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink);
  background: #ffffff;
}

.result-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.calc-result-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 22px;
}

.calc-result-card p {
  margin: 0 0 18px;
  font-size: 14.2px;
  color: var(--ink-soft);
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.rm-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.rm-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.rm-item strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin-top: 2px;
}

.result-tips {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: #5c3f11;
}

.search-block {
  margin-bottom: 32px;
}

.search-block h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 20px;
}

.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 42px 24px;
}

.empty-state h1, .empty-state h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: #161413;
  color: #d6cfc4;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 44px 20px 36px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-emblem {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-brand-row strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  color: #ffffff;
}

.footer-brand-row span {
  font-size: 12px;
  color: #a8a29e;
}

.footer-desc {
  margin: 0;
  font-size: 13.2px;
  color: #a8a29e;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #f3d28e;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.footer-col a {
  color: #d6cfc4;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 12.8px;
  color: #a8a29e;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive Breakpoints (Zero Overflow at 375px) */
@media (max-width: 1024px) {
  .hero-inner,
  .guide-layout,
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .cat-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 12px;
    font-size: 15px;
  }

  .footer-grid,
  .brand-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }
}

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

  .brand-emblem {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 10.5px;
  }

  .hero-section {
    padding: 34px 0 38px;
  }

  .hero-search {
    flex-direction: column;
    padding: 8px;
  }

  .hero-search button {
    width: 100%;
    justify-content: center;
  }

  .cat-grid,
  .article-grid,
  .form-grid-2,
  .result-metrics {
    grid-template-columns: 1fr;
  }

  .guide-content,
  .narrow-prose,
  .calc-card,
  .calc-result-card {
    padding: 18px 16px;
  }

  .filter-field,
  .filter-grow {
    width: 100%;
    min-width: 0;
  }

  .filter-actions {
    width: 100%;
  }

  .filter-actions .btn {
    flex: 1;
  }
}
