/* ======================== BREADCRUMB ======================== */
.breadcrumb {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.9rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent-hover); }
.breadcrumb-sep { color: var(--rule); }

/* ======================== ARTICLE HEADER ======================== */
.article-header {
  padding: 1.4rem 0 1.6rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--article-max);
}

.article-category {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.subtle-branding .article-category,
.guide-hub .section-hero-label,
.guide-hub .section-label {
  display: inline-flex;
  align-items: center;
}

.subtle-branding .article-category::before,
.guide-hub .section-hero-label::before,
.guide-hub .section-label::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 13px;
  margin-right: 0.4rem;
  vertical-align: middle;
  opacity: 0.38;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='220 500 1040 640'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M 260 760 L 640 760 C 760 760 820 680 905 610 C 980 550 1060 520 1210 500' stroke='%230A2F66' stroke-opacity='0.6' stroke-width='110'/%3E%3Cpath d='M 260 1125 L 690 1125 C 785 1125 840 1048 900 980 C 955 920 1030 885 1140 875' stroke='%23D97A4A' stroke-opacity='0.55' stroke-width='84'/%3E%3C/g%3E%3C/svg%3E");
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.article-deck {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--warm-2);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.article-meta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.article-meta-sep {
  color: var(--border);
}

/* ======================== ARTICLE LAYOUT ======================== */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-max)) 1fr;
  gap: 3rem;
  padding: 2rem 0 2.5rem;
  align-items: start;
}

/* ======================== ARTICLE BODY ======================== */
.article-body { min-width: 0; word-wrap: break-word; overflow-wrap: break-word; }
.article-body p {
  margin-bottom: 1.2rem;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Step number headers */
.step-number {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.4rem;
  margin-bottom: 0.65rem;
}

.step-number .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-number h2 {
  margin: 0;
  font-size: 1.45rem;
}

/* Product recommendation box */
.product-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 1.2rem 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
}

.product-box-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.product-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.product-box p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.product-box-link,
.article-body .product-box-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  transition: background 150ms;
  min-height: 44px;
  text-decoration: none;
}

.product-box-link:hover,
.article-body .product-box-link:hover,
.product-box-link:focus-visible,
.article-body .product-box-link:focus-visible {
  background: var(--accent-hover);
  color: white;
  text-decoration: none;
}

/* Callout / tip box */
.callout {
  background: #e8f2ec;
  border: 1px solid #b6d4c2;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  font-size: 1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.55;
}

.callout-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* Warning callout */
.callout.warn {
  background: #fdf3e3;
  border-color: #e8d4b0;
}

.callout.warn .callout-label { color: #7b4f12; }

/* What to do next box */
.next-steps {
  background: var(--warm-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  margin-top: 2.4rem;
  font-family: "DM Sans", system-ui, sans-serif;
}

.next-steps h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.next-steps ol {
  padding-left: 1.4rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.next-steps ol li {
  margin-bottom: 0.5rem;
}

/* Comparison table */
.compare-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  background: var(--card);
}

.compare-table th {
  background: var(--warm-2);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: normal;
}

.compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(196, 187, 168, 0.4);
  color: var(--text);
  vertical-align: top;
  line-height: 1.45;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(243, 237, 226, 0.4); }

.compare-table .check { color: var(--accent); font-weight: 700; }
.compare-table .cross { color: #b94d2d; }
.compare-table .partial { color: #8a6500; }

/* Type section headers */
.type-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.4rem;
  margin-bottom: 0.65rem;
}

.type-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--warm-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.type-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

/* Bottom line / verdict box */
.verdict {
  background: var(--warm-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-top: 2.4rem;
  font-family: "DM Sans", system-ui, sans-serif;
}

.verdict h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.verdict-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.verdict-item-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.verdict-item p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}

/* FAQ */
.faq {
  margin-top: 2.2rem;
}

.faq h2 {
  margin-top: 0;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  margin-top: 0;
  color: var(--text);
}

.faq-item p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.55;
}

/* ======================== SIDEBAR ======================== */
.article-sidebar {
  position: sticky;
  top: 1.5rem;
}

.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  font-family: "DM Sans", system-ui, sans-serif;
}

.sidebar-widget-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.sidebar-toc {
  list-style: none;
  padding: 0;
}

.sidebar-toc li {
  border-top: 1px solid var(--border);
  padding: 0;
}

.sidebar-toc li:first-child { border-top: none; }

.sidebar-toc a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  transition: color 150ms;
}

.sidebar-toc a:hover { color: var(--accent); }

.sidebar-toc .toc-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--warm-2);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

/* ======================== HUB PAGE SPECIFIC ======================== */
/* Section hero */
.section-hero {
  padding: 2rem 0 1.8rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.guide-hub .section-hero-icon {
  background: linear-gradient(180deg, rgba(243, 237, 226, 0.8), rgba(243, 237, 226, 0.45));
  border-color: rgba(221, 214, 202, 0.9);
}

.section-hero-label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-hero h1,
.section-hero h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 520px;
}

.section-hero-icon {
  width: 90px;
  height: 90px;
  background: var(--warm-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  flex-shrink: 0;
}

/* Featured guide */
.featured-guide {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  transition: box-shadow 150ms;
}

.featured-card:hover {
  box-shadow: 0 6px 20px rgba(30, 42, 36, 0.08);
}

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

.featured-badge {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.featured-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  transition: color 150ms;
}

.featured-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.featured-meta {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.featured-format {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--warm-2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}

.featured-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  align-self: center;
  transition: background 150ms, border-color 150ms;
}

.featured-card:hover .featured-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Topic grid */
.topics {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.topic-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow 150ms, border-color 150ms;
}

.topic-card:hover {
  box-shadow: 0 4px 14px rgba(30, 42, 36, 0.07);
  border-color: var(--accent);
}

.topic-card:hover h3 { color: var(--accent); }
.topic-card:active { transform: scale(0.99); }

.topic-card-soon {
  cursor: default;
  opacity: 0.94;
}

.topic-card-soon:hover {
  box-shadow: none;
  border-color: var(--border);
}

.topic-card-soon:hover h3 {
  color: var(--text);
}

.topic-icon {
  width: 48px;
  height: 48px;
  background: var(--warm-2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.topic-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  transition: color 150ms;
}

.topic-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.topic-card-arrow {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Guide count badge */
.guide-count {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--warm-3);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  display: inline-block;
  margin-top: 0.35rem;
}

.guide-hub .guide-count {
  color: #8a4a1f;
  background: rgba(251, 239, 230, 0.72);
  border-color: rgba(231, 199, 179, 0.9);
}

/* All guides list */
.all-guides {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}

.guides-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
}

.guides-list {
  display: flex;
  flex-direction: column;
}

.guide-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(196, 187, 168, 0.5);
  text-decoration: none;
  transition: background 150ms;
}

.guide-row:first-child { border-top: none; padding-top: 0; }
.guide-row:hover h3 { color: var(--accent); }

.guide-format {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--accent);
  background: var(--warm-2);
  border: 1px solid var(--border);
}

.guide-format.video {
  color: #7b4f12;
  background: #fdf3e3;
  border-color: #e8d4b0;
}

.guide-row h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.1rem;
  transition: color 150ms;
}

.guide-row-meta {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Coming soon state */
.guide-row.coming-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.coming-badge {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--warm-3);
  border: 1px solid var(--border);
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
