:root {
  --bg: #f4f7f4;
  --bg-accent: #eef7f2;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-muted: #f7f9fc;
  --text: #0f172a;
  --text-soft: #5b6475;
  --text-faint: #7c8799;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.32);
  --primary: #1E7558;
  --primary-dark: #175a44;
  --primary-soft: rgba(30, 117, 88, 0.10);
  --success-soft: #ecfdf3;
  --warning-soft: #fff7ed;
  --danger: #b42318;
  --radius-xs: 14px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 24px 60px rgba(15, 23, 42, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(27, 92, 255, 0.09), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; }
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.hidden { display: none !important; }
.section { padding: 34px 0 8px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-head h1,
.section-head h2,
.section-head h3 {
  margin: 0 0 8px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.section-head p { margin: 0; color: var(--text-soft); max-width: 64ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 92, 255, 0.1);
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-note {
  text-align: center;
  padding: 12px 16px;
  font-size: 0.93rem;
  color: #36516f;
  background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.header-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #4ca07f 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(30, 117, 88, 0.22);
  font-size: 0.95rem;
}

.brand-text small {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0;
}

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

.nav a,
.nav span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(255,255,255,0.82);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  padding: 26px 0 14px;
}

.hero-copy,
.hero-side,
.card,
.ad-slot,
.featured-post,
.post-card,
.dashboard-panel,
.auth-card,
.article-shell,
.category-shell {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 92, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.hero-text {
  font-size: 1.04rem;
  color: var(--text-soft);
  max-width: 62ch;
  margin: 0 0 20px;
}

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

.hero-point {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.hero-point strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.hero-point span {
  display: block;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-side {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.hero-mini-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.hero-mini-card h3,
.hero-mini-card p { margin: 0; }
.hero-mini-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.hero-mini-card p { color: var(--text-soft); }

.card,
.tool-card,
.dashboard-panel,
.auth-card,
.article-shell,
.category-shell {
  padding: 24px;
}

.ad-slot {
  min-height: 118px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-soft);
  border-style: dashed;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,250,252,0.85));
}

.ad-slot strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.ad-inline { margin: 26px 0; }

.chip-grid,
.post-grid,
.tools-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.chip-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tools-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.post-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.compact { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.chip:hover {
  border-color: rgba(27, 92, 255, 0.25);
  color: var(--primary);
}

.tool-card {
  position: relative;
  overflow: hidden;
}

.tool-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 92, 255, 0.09), transparent 70%);
  pointer-events: none;
}

.tool-card h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -0.02em; }
.tool-card p { margin-top: 0; color: var(--text-soft); }
.tool-card label,
.post-form label {
  display: grid;
  gap: 8px;
  font-weight: 650;
  margin-bottom: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(27, 92, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(27, 92, 255, 0.08);
  background: #fff;
}

textarea { resize: vertical; }

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3f7bff 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(27, 92, 255, 0.22);
}

.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark) 0%, #3468da 100%); }

.btn-secondary {
  background: rgba(255,255,255,0.88);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover { background: #fff; }
.btn-full { width: 100%; }

.tool-result,
.helper-text {
  margin-top: 12px;
  color: var(--text-soft);
}

.tool-result {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.featured-post {
  margin-bottom: 22px;
  overflow: hidden;
}

.featured-post a {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 0;
}

.post-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover,
.featured-post:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 92, 255, 0.18);
}

.post-card-content {
  padding: 22px;
}

.post-card img,
.featured-post img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card h3,
.featured-post h3 {
  margin: 14px 0 10px;
  line-height: 1.14;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.post-card p,
.featured-post p {
  color: var(--text-soft);
  margin: 0 0 16px;
}

.post-card small,
.featured-post small {
  color: var(--text-faint);
  font-weight: 600;
}

.article-layout {
  padding: 28px 0 48px;
}

.article-shell {
  width: min(900px, 100%);
  margin: 0 auto;
}

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.article-title {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.article-summary {
  font-size: 1.08rem;
  color: var(--text-soft);
  margin: 0;
  max-width: 65ch;
}

.article-cover {
  border-radius: var(--radius-md);
  margin: 24px 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.article-content {
  font-size: 1.04rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.35rem; }
.article-content p,
.article-content li { color: #243042; }
.article-content ul,
.article-content ol { padding-left: 22px; }
.article-content blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  background: rgba(27, 92, 255, 0.05);
  border-radius: 0 16px 16px 0;
}

.faq-block,
.internal-links { margin-top: 34px; }

.faq-block h2,
.internal-links h2 { margin: 0 0 14px; letter-spacing: -0.03em; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.84);
}

.faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--text-soft); }

.empty-state {
  border: 1px dashed var(--line-strong);
  padding: 22px;
  border-radius: 22px;
  color: var(--text-soft);
  background: rgba(255,255,255,0.62);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 34px 0 42px;
  color: var(--text-soft);
}

.footer-shell {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  margin-top: 28px;
}

.admin-body .dashboard-grid {
  grid-template-columns: 0.95fr 1.15fr;
  padding-bottom: 42px;
}

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

.panel-head h1,
.panel-head h2 { margin: 6px 0 0; letter-spacing: -0.03em; }

.admin-post-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.74);
}

.admin-post-actions,
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-form { display: grid; gap: 4px; }
.form-actions { margin-top: 8px; }

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.auth-card {
  width: min(480px, 100%);
  text-align: center;
}

.auth-card p { color: var(--text-soft); }

.page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.page-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero,
  .featured-post a,
  .admin-body .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { max-width: none; }
  .hero-points { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head,
  .page-intro,
  .panel-head,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .container { width: min(var(--container), calc(100% - 24px)); }
  .hero-copy,
  .hero-side,
  .card,
  .tool-card,
  .dashboard-panel,
  .auth-card,
  .article-shell,
  .category-shell { padding: 20px; }
}

@media (max-width: 640px) {
  body { line-height: 1.58; }
  .nav { width: 100%; }
  .nav a, .nav span { width: auto; }
  .hero { padding-top: 14px; }
  .hero-copy { padding: 22px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .post-card-content { padding: 18px; }
  .post-card h3,
  .featured-post h3 { font-size: 1.2rem; }
  .article-title { font-size: clamp(1.85rem, 10vw, 2.6rem); }
  .btn-primary,
  .btn-secondary { width: 100%; justify-content: center; }
  .admin-post-actions .btn-secondary,
  .admin-post-actions .btn-primary,
  .form-actions .btn-secondary,
  .form-actions .btn-primary { width: auto; }
}

/* Phase 2 */
.hero-copy-portal {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.84)),
    radial-gradient(circle at top right, rgba(27, 92, 255, 0.14), transparent 28%);
}
.hero-side-portal {
  align-content: start;
}
.eyebrow-soft {
  background: rgba(27, 92, 255, 0.08);
  border-color: rgba(27, 92, 255, 0.06);
}
.hero-actions,
.search-row,
.tool-card-head,
.portal-stats,
.portal-band-points,
.sidebar-links {
  display: flex;
  gap: 12px;
}
.hero-actions {
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #306cff);
  color: #fff;
  box-shadow: 0 18px 34px rgba(27, 92, 255, 0.22);
}
.btn-secondary {
  background: rgba(255,255,255,0.88);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-soft);
}
.search-shell {
  margin: 4px 0 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.search-shell-inline {
  margin: 0 0 18px;
}
.search-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.93rem;
  font-weight: 700;
}
.search-row input,
.tool-card input,
.tool-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255,255,255,0.92);
  color: var(--text);
}
.search-row {
  align-items: center;
}
.search-row .btn-ghost {
  flex: 0 0 auto;
}
.search-helper,
.search-status,
.helper-text {
  color: var(--text-soft);
  font-size: 0.92rem;
}
.search-status {
  margin: 0 0 16px;
}
.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.portal-stat,
.portal-band-card,
.sidebar-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.portal-stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}
.portal-stat span {
  color: var(--text-soft);
  font-size: 0.9rem;
}
.portal-band {
  padding-top: 4px;
}
.portal-band-card {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(17,24,39,0.98), rgba(30,64,175,0.94));
  color: #f8fbff;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.16);
}
.portal-band-card p {
  color: rgba(248,251,255,0.78);
}
.portal-band-points {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.portal-band-points span {
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.93rem;
}
.tools-grid-enhanced {
  align-items: stretch;
}
.tool-card {
  padding: 24px;
}
.tool-card-head {
  align-items: flex-start;
  margin-bottom: 10px;
}
.tool-card-head h3 {
  margin: 0 0 4px;
}
.tool-card-head p {
  margin: 0;
  color: var(--text-soft);
}
.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(27, 92, 255, 0.08);
  color: var(--primary);
  font-weight: 800;
  flex: 0 0 auto;
}
.tool-card label {
  display: block;
  margin: 12px 0 8px;
  font-weight: 700;
  font-size: 0.92rem;
}
.tool-result {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(27, 92, 255, 0.06);
  border: 1px solid rgba(27, 92, 255, 0.08);
  min-height: 24px;
}
.section-head-tight {
  margin-bottom: 18px;
}
.post-card,
.featured-post,
.sidebar-card,
.auth-card,
.dashboard-panel,
.category-shell,
.article-shell {
  overflow: hidden;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.post-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.post-card img,
.featured-post img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-card-content {
  padding: 18px;
}
.post-card-content h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.post-card-content p {
  margin: 0 0 12px;
  color: var(--text-soft);
}
.post-card-content small {
  color: var(--text-faint);
}
.featured-post > a {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.featured-post .post-card-content {
  padding: 28px;
}
.featured-post h3 {
  margin: 14px 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.05;
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip,
.chip-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: 700;
}
.article-layout-phase2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.article-shell {
  padding: 28px;
}
.article-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}
.sticky-card {
  position: sticky;
  top: 96px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.article-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.article-summary {
  margin: 0 0 22px;
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 60ch;
}
.article-cover {
  width: 100%;
  border-radius: 24px;
  margin: 0 0 22px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-content {
  font-size: 1.04rem;
}
.article-content h2,
.article-content h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 28px;
}
.article-content p,
.article-content li {
  color: #1f2a3d;
}
.article-content ul {
  padding-left: 20px;
}
.faq-block,
.internal-links {
  margin-top: 30px;
}
.faq-item {
  padding: 16px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.faq-item:first-child {
  border-top: 0;
}
.sidebar-card h3 {
  margin: 10px 0 8px;
}
.sidebar-card p,
.sidebar-summary {
  margin: 0;
  color: var(--text-soft);
}
.sidebar-links {
  flex-direction: column;
}
.sidebar-links a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(27, 92, 255, 0.06);
  color: var(--text);
  font-weight: 600;
}
.page-intro-phase2 {
  align-items: center;
}
.page-badge {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(27, 92, 255, 0.08);
  color: var(--primary);
  font-weight: 800;
}
.empty-state {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(148,163,184,0.16);
  color: var(--text-soft);
}
.footer-shell {
  margin-top: 24px;
  border-top: 1px solid rgba(148,163,184,0.12);
  background: rgba(255,255,255,0.38);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 38px;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 16px;
}
.ad-slot > div {
  text-align: center;
}
.ad-slot strong {
  display: block;
  margin-bottom: 6px;
}
@media (max-width: 1080px) {
  .hero,
  .portal-band-card,
  .featured-post > a,
  .article-layout-phase2 {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sticky-card {
    position: static;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-header,
  .nav,
  .search-row,
  .hero-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .container {
    width: min(var(--container), calc(100% - 20px));
  }
  .hero-copy,
  .hero-side,
  .article-shell,
  .tool-card,
  .portal-band-card {
    padding: 20px;
  }
  .hero h1,
  .article-title {
    max-width: none;
  }
  .hero-points,
  .portal-stats,
  .post-grid,
  .post-grid.compact,
  .article-sidebar {
    grid-template-columns: 1fr;
  }
  .featured-post .post-card-content {
    padding: 20px;
  }
  .page-badge {
    width: 100%;
    text-align: center;
  }
}

/* ===== FASE 3 ===== */
.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 38%);
}

.brand-mark span {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.breadcrumbs a:hover { color: var(--primary); }

.quick-guides-grid,
.category-summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-guide-card,
.summary-mini-card,
.subscribe-band,
.share-band {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.quick-guide-card {
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.quick-guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 92, 255, 0.25);
  box-shadow: var(--shadow-md);
}
.quick-guide-card strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.quick-guide-card span { color: var(--text-soft); }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.post-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-accent);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.featured-post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.chip-count span {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.posts-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.subscribe-band,
.share-band {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.subscribe-band h2,
.share-band h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.subscribe-band p,
.share-band p {
  margin: 0;
  color: var(--text-soft);
  max-width: 58ch;
}
.subscribe-band-actions,
.share-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.article-shell {
  width: 100%;
  margin: 0;
}

.article-sidebar {
  display: grid;
  gap: 16px;
}

.sidebar-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.sticky-card {
  position: sticky;
  top: 94px;
}

.sidebar-card h3 {
  margin: 8px 0 12px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.sidebar-links,
.sidebar-post-list {
  display: grid;
  gap: 10px;
}

.sidebar-links a,
.sidebar-post-item,
.toc-link {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-soft);
}

.sidebar-links a:hover,
.sidebar-post-item:hover,
.toc-link:hover {
  color: var(--text);
  border-color: rgba(27, 92, 255, 0.22);
}

.sidebar-post-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.35;
}
.sidebar-post-item span {
  font-size: 0.83rem;
  color: var(--text-faint);
}

.toc-h3 {
  margin-left: 14px;
  font-size: 0.92rem;
}

.article-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}
.article-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.faq-item {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
  padding: 0 18px;
  margin-bottom: 12px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 750;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.page-intro-phase3 { margin-bottom: 18px; }
.summary-mini-card {
  padding: 18px;
  text-align: left;
}
.summary-mini-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.summary-mini-card span { color: var(--text-soft); }

.search-shell-inline { margin: 22px 0 10px; }
.search-status,
.empty-state {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-soft);
}

.article-content p,
.article-content li { color: #243247; }
.article-content ul { padding-left: 20px; }
.article-content a { color: var(--primary); }
.article-content h2 { font-size: 1.7rem; }
.article-content h3 { font-size: 1.25rem; }

@media (max-width: 980px) {
  .hero,
  .article-layout-grid,
  .quick-guides-grid,
  .category-summary-grid {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .site-header { padding: 14px 0; }
  .hero-copy,
  .hero-side,
  .card,
  .article-shell,
  .category-shell,
  .dashboard-panel,
  .auth-card,
  .subscribe-band,
  .share-band,
  .sidebar-card { padding: 20px; }
  .hero h1 { max-width: none; font-size: clamp(2rem, 10vw, 3rem); }
  .featured-post a { grid-template-columns: 1fr; }
  .post-card img,
  .featured-post img { min-height: 200px; }
  .nav { gap: 6px; }
  .nav a { padding: 8px 12px; font-size: 0.9rem; }
  .search-row,
  .subscribe-band-actions,
  .share-band-actions { display: grid; grid-template-columns: 1fr; }
}

/* ===== FASE BLOG PREMIUM ===== */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) 360px;
  gap: 24px;
  align-items: start;
  padding: 28px 0 10px;
}

.editorial-hero-card {
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 100%),
    radial-gradient(circle at top right, rgba(27, 92, 255, 0.14), transparent 30%);
}

.editorial-hero-card h1 {
  margin: 14px 0 14px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .95;
  letter-spacing: -0.055em;
  max-width: 12ch;
}

.search-shell-hero {
  margin-top: 24px;
  margin-bottom: 8px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-metrics div,
.spotlight-card,
.briefing-card,
.editorial-column-card,
.category-lead-card {
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-metrics div {
  padding: 16px;
}
.hero-metrics strong,
.editorial-guide-card strong,
.spotlight-card h3 {
  display: block;
  margin-bottom: 6px;
  line-height: 1.25;
}
.hero-metrics span,
.editorial-guide-card p,
.spotlight-card p,
.briefing-list,
.stack-item span,
.category-lead-content p {
  color: var(--text-soft);
}

.home-hero-side {
  display: grid;
  gap: 16px;
}
.spotlight-card,
.briefing-card {
  padding: 22px;
}
.spotlight-meta,
.category-lead-meta,
.post-card-topline,
.article-meta-blog {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.spotlight-meta span,
.read-time {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(27,92,255,.08);
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 700;
}
.btn-block { width: 100%; justify-content: center; }

.briefing-list {
  padding-left: 18px;
  margin: 12px 0 0;
}
.briefing-list li + li { margin-top: 10px; }

.editorial-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.editorial-guide-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.82));
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.editorial-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27,92,255,.18);
}
.editorial-guide-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.editorial-column-card {
  padding: 24px;
}
.stack-list {
  display: grid;
  gap: 12px;
}
.stack-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(148,163,184,.14);
}
.stack-item:hover {
  border-color: rgba(27,92,255,.22);
  box-shadow: var(--shadow-sm);
}
.stack-item-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(27,92,255,.12), rgba(27,92,255,.02));
  color: var(--primary-dark);
  font-weight: 800;
}
.stack-item strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.post-card-blog,
.featured-post-editorial,
.category-shell-blog,
.article-shell-blog {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
}
.post-card-blog .post-card-content,
.featured-post-editorial .post-card-content {
  padding: 22px;
}
.post-card-blog h3,
.featured-post-editorial h3 {
  font-size: 1.34rem;
  line-height: 1.18;
}
.post-card-blog p,
.featured-post-editorial p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-retention-band {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(242,247,255,.9));
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 32px;
  box-shadow: var(--shadow-md);
}

.article-layout-blog {
  padding-top: 22px;
  padding-bottom: 28px;
}
.article-layout-grid-blog {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}
.article-shell-blog {
  padding: 0;
  overflow: hidden;
}
.article-opening {
  padding: 28px 32px 18px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.article-title-blog {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 12px 0 14px;
  max-width: 14ch;
}
.article-summary-blog {
  font-size: 1.08rem;
  max-width: 62ch;
  color: var(--text-soft);
}
.article-reading-shell {
  padding: 0 32px 28px;
}
.article-cover {
  border-radius: 0;
  max-height: 430px;
  object-fit: cover;
  width: 100%;
}
.article-content-blog {
  max-width: 70ch;
  margin: 0 auto;
  padding-top: 26px;
  font-size: 1.06rem;
}
.article-content-blog h2,
.article-content-blog h3 {
  letter-spacing: -.03em;
  line-height: 1.08;
}
.article-content-blog p + p,
.article-content-blog ul + p,
.article-content-blog p + ul {
  margin-top: 1.05em;
}
.article-content-blog ul li + li { margin-top: .55em; }
.ad-inline-article {
  margin: 0 32px 18px;
}
.faq-block-blog,
.article-share-band-blog,
.internal-links {
  margin-top: 28px;
}
.article-sidebar-blog {
  gap: 18px;
}
.sticky-card-blog {
  top: 88px;
}
.sidebar-card-note p { margin: 0; color: var(--text-soft); }

.category-shell-blog {
  padding: 26px;
}
.category-summary-grid-blog {
  margin-bottom: 18px;
}
.category-lead-card {
  padding: 24px;
  margin-bottom: 22px;
}
.category-lead-content h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.category-lead-meta {
  margin-top: 14px;
  justify-content: space-between;
}

.placeholder-copy {
  color: var(--text-soft);
}

@media (max-width: 1100px) {
  .home-hero,
  .article-layout-grid-blog,
  .editorial-guides-grid,
  .home-columns-grid {
    grid-template-columns: 1fr;
  }

  .article-content-blog,
  .article-title-blog,
  .article-summary-blog {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .editorial-hero-card,
  .spotlight-card,
  .briefing-card,
  .editorial-column-card,
  .category-shell-blog,
  .category-lead-card {
    padding: 20px;
  }

  .hero-metrics,
  .editorial-guides-grid,
  .home-columns-grid {
    grid-template-columns: 1fr;
  }

  .article-opening,
  .article-reading-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ad-inline-article {
    margin-left: 20px;
    margin-right: 20px;
  }

  .article-title-blog {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .stack-item {
    grid-template-columns: 42px 1fr;
  }
}


/* Guia Benefício Brasil refinements */
.hero-text,
.article-summary,
.page-intro p,
.section-head p,
.post-card-content p,
.sidebar-card p,
.helper-text {
  max-width: 68ch;
}

.home-hero-main h1 {
  max-width: 12ch;
}

.editorial-guide-card strong,
.stack-item strong,
.post-card-content h3,
.spotlight-card h3 {
  line-height: 1.18;
}

.site-note {
  background: rgba(30, 117, 88, 0.08);
  color: var(--text-soft);
}

.brand-mark {
  letter-spacing: -0.03em;
}

.hero-metrics div,
.summary-mini-card,
.hero-point {
  background: rgba(255,255,255,0.9);
}

.editorial-guide-card:hover,
.post-card:hover,
.stack-item:hover,
.sidebar-post-item:hover {
  border-color: rgba(30, 117, 88, 0.28);
  transform: translateY(-2px);
}

.post-card img,
.featured-post img,
.article-cover {
  background: #eef4ef;
}

.page-badge {
  background: rgba(30, 117, 88, 0.1);
  color: var(--primary-dark);
}

@media (max-width: 900px) {
  .home-hero-main h1 {
    max-width: 15ch;
  }
}


.launch-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.launch-card{padding:28px}
.quick-links-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.quick-links-grid a{display:block;padding:14px 16px;border:1px solid rgba(30,117,88,.14);border-radius:16px;background:#fff;color:inherit;text-decoration:none;font-weight:600;transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease}
.quick-links-grid a:hover{transform:translateY(-2px);border-color:rgba(30,117,88,.32);box-shadow:0 14px 34px rgba(12,31,24,.08)}
.reading-paths{display:grid;gap:14px}
.reading-paths article{padding:16px 18px;border-radius:16px;background:linear-gradient(180deg,#ffffff 0%,#f8fbfa 100%);border:1px solid rgba(30,117,88,.1)}
.reading-paths article strong{display:block;margin-bottom:6px}
.category-extras{margin-top:24px;padding:24px}
.quick-links-grid-category{grid-template-columns:repeat(4,minmax(0,1fr))}
.dashboard-panel-tips{align-self:start}
.editorial-checklist ul{margin:12px 0 0 18px;padding:0;display:grid;gap:8px}
.editorial-checklist li{padding-left:2px}
@media (max-width: 980px){.launch-grid{grid-template-columns:1fr}.quick-links-grid-category{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 680px){.quick-links-grid{grid-template-columns:1fr}.launch-card{padding:22px}.quick-links-grid-category{grid-template-columns:1fr}}


/* Previdenciarista mais limpo e mais leve */
.post-list {
  display: grid;
  gap: 0;
}

.post-list-editorial {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
  border: 1px solid rgba(148,163,184,.14);
  box-shadow: var(--shadow-sm);
}

.post-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}

.post-item:last-child {
  border-bottom: 0;
}

.post-item:hover {
  background: rgba(30,117,88,.03);
}

.post-item-main {
  min-width: 0;
}

.post-item-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chip-soft {
  background: var(--primary-soft);
  border-color: rgba(30,117,88,.12);
  color: var(--primary-dark);
}

.post-item h3 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.post-item h3 a:hover {
  color: var(--primary);
}

.post-item p {
  margin: 0;
  color: var(--text-soft);
  max-width: 70ch;
}

.post-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.78);
  color: var(--primary-dark);
  font-weight: 700;
  white-space: nowrap;
}

.post-item-link:hover {
  border-color: rgba(30,117,88,.24);
  background: var(--primary-soft);
}

.post-inline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.post-inline-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148,163,184,.12);
  color: var(--text-soft);
  font-size: .82rem;
}

.featured-post {
  margin-bottom: 22px;
}

.featured-post > a {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
  box-shadow: var(--shadow-md);
}

.featured-post img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.featured-post .post-card-content {
  padding: 30px;
  display: grid;
  align-content: center;
}

.featured-post .post-card-content h3 {
  margin: 10px 0 14px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.featured-post .post-card-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.featured-post-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--text-soft);
}

.category-lead-card {
  padding: 28px;
}

.category-lead-content {
  max-width: 70ch;
}

.category-lead-content p {
  color: var(--text-soft);
}

.post-list-category {
  margin-top: 10px;
}

.article-shell-blog {
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.9));
}

.article-reading-shell {
  max-width: 860px;
}

.article-content-blog {
  max-width: 68ch;
}

.article-content-blog h2,
.article-content-blog h3 {
  margin-top: 1.6em;
}

.article-content-blog p,
.article-content-blog li {
  color: #1f2937;
}

@media (max-width: 900px) {
  .featured-post > a {
    grid-template-columns: 1fr;
  }

  .featured-post img {
    min-height: 220px;
  }

  .post-item {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .post-item-link {
    justify-self: start;
  }
}



/* Minimal blog home refinements */
.home-minimal {
  padding-top: 28px;
}

.section-compact {
  padding-top: 18px;
}

.search-shell-inline {
  width: min(100%, 420px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.quick-links-list {
  display: grid;
  gap: 12px;
}

.quick-link-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.quick-link-item strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
  line-height: 1.35;
}

.quick-link-item span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.editorial-hero-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.editorial-hero-image {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  max-height: 360px;
}

.editorial-hero-copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.editorial-hero-copy h1 a:hover {
  color: var(--primary);
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.post-list-editorial {
  display: grid;
  gap: 0;
}

.post-item-editorial {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.post-item-editorial h3 {
  margin: 10px 0 8px;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.post-item-editorial p {
  margin: 0;
  color: var(--text-soft);
}

.post-item-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-item-link {
  white-space: nowrap;
  color: var(--primary);
  font-weight: 700;
  align-self: flex-start;
  margin-top: 6px;
}

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

@media (max-width: 860px) {
  .post-item-editorial {
    flex-direction: column;
  }

  .post-item-link {
    margin-top: 0;
  }

  .tools-grid-minimal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .editorial-hero-card {
    padding: 20px;
  }

  .editorial-hero-copy h1 {
    font-size: 1.8rem;
  }
}


.page-narrow { max-width: 880px; }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.home-minimal .editorial-hero-card { padding: 24px; }
.tools-hub {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.tool-hero-link,
.tool-links-panel,
.calendar-tool-card,
.calendar-side-info,
.content-card-plain {
  padding: 22px;
}
.tool-hero-link h3,
.tool-links-panel h3,
.calendar-tool-card h2,
.calendar-side-info h2,
.content-card-plain h2 {
  margin: 10px 0 10px;
  line-height: 1.15;
}
.tool-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.tool-links-list,
.simple-link-list {
  display: grid;
  gap: 10px;
}
.tool-links-list a,
.simple-link-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
}
.tool-links-list a:hover,
.simple-link-list a:hover { border-color: var(--line-strong); }
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}
.calendar-tool-card label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.calendar-tool-card select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  margin-bottom: 14px;
}
.calendar-note {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 14px 0 0;
}
.calendar-result-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--success-soft);
  border: 1px solid rgba(30, 117, 88, 0.12);
}
.calendar-result-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.result-warning {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--warning-soft);
}
.content-card-plain p { color: var(--text-soft); }
@media (max-width: 900px) {
  .tools-hub,
  .calendar-layout { grid-template-columns: 1fr; }
}


.calendar-layout-improved {
  align-items: start;
}
.calendar-tool-card-improved {
  display: grid;
  gap: 14px;
}
.calendar-tool-intro {
  margin: 0;
  color: var(--text-soft);
}
.calendar-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.calendar-tool-card-improved .btn-primary {
  width: 100%;
  justify-content: center;
}
.calendar-side-info-improved {
  position: sticky;
  top: 96px;
}
.calendar-result-box-improved {
  background: rgba(30, 117, 88, 0.06);
}
.calendar-result-box-improved h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 2px;
}
.calendar-table th,
.calendar-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.calendar-table th {
  width: 40%;
  color: var(--text-soft);
  font-weight: 700;
}
.result-note {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.result-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
}
.result-warning p {
  margin: 6px 0 0;
  color: var(--text-soft);
}
@media (max-width: 700px) {
  .calendar-form-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.analytics-paths {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.analytics-path-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.76);
}

.analytics-path-item strong {
  font-size: 0.96rem;
  word-break: break-word;
}

.analytics-path-item span {
  color: var(--text-soft);
  white-space: nowrap;
}

.editor-shell {
  display: grid;
  gap: 10px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

.editor-tool {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.editor-shell textarea {
  min-height: 340px;
}

.editor-helper {
  margin-top: -2px;
}

.markdown-legend {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.72);
}

.markdown-legend strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.94rem;
}

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

.markdown-legend span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.markdown-legend code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

@media (max-width: 980px) {
  .analytics-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .analytics-admin-grid {
    grid-template-columns: 1fr;
  }

  .editor-toolbar {
    padding: 10px;
  }

  .markdown-legend-grid {
    grid-template-columns: 1fr;
  }

  .analytics-path-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Home editorial refresh */
.home-main {
  padding-bottom: 28px;
}

.home-editorial-shell {
  display: grid;
  gap: 22px;
}

.home-editorial-intro {
  display: grid;
  gap: 10px;
  max-width: 72ch;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.home-editorial-intro h1,
.editorial-hero-title,
.section-head-home-posts h2,
.editorial-brief-card h2,
.tool-hero-link h3,
.tool-links-panel h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.home-editorial-intro h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-editorial-intro p,
.section-head-home-posts p,
.editorial-brief-card p {
  margin: 0;
  color: var(--text-soft);
  max-width: 68ch;
}

.home-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.82fr);
  gap: 22px;
  align-items: start;
}

.home-hero-main,
.editorial-rail-card,
.editorial-brief-card,
.tool-hero-link,
.tool-links-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.editorial-hero-card {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 2vw, 30px);
  border-radius: 30px;
}

.editorial-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 430px;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30,117,88,0.14), rgba(15,23,42,0.04));
}

.editorial-hero-image-fallback {
  min-height: 240px;
}

.editorial-hero-copy {
  display: grid;
  gap: 14px;
}

.editorial-hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.editorial-hero-title a:hover {
  color: var(--primary);
}

.hero-text {
  margin: 0;
  font-size: 1.03rem;
  color: var(--text-soft);
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-meta span:not(.read-time) {
  display: inline-flex;
  align-items: center;
}

.hero-actions {
  margin: 2px 0 0;
}

.home-hero-rail {
  display: grid;
  gap: 18px;
}

.home-rail-head {
  margin-bottom: 6px;
}

.home-rail-head h2,
.editorial-brief-card h2 {
  margin: 6px 0 0;
  font-size: 1.55rem;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.editorial-rail-card,
.editorial-brief-card {
  padding: 24px;
  border-radius: 26px;
}

.quick-links-list {
  display: grid;
  gap: 0;
}

.quick-link-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.quick-link-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.quick-link-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(30, 117, 88, 0.08);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.quick-link-copy {
  min-width: 0;
}

.quick-link-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.35;
}

.quick-link-copy span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.editorial-brief-card {
  display: grid;
  gap: 12px;
}

.section-head-home-posts {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 18px;
}

.section-head-home-posts h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.04;
}

.search-shell-inline {
  width: min(100%, 440px);
}

.post-list-editorial {
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.post-item-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.post-item-layout {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.post-item-thumb {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #eef4ef;
  aspect-ratio: 4 / 3;
}

.post-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item-main h3 {
  margin: 8px 0 8px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.post-item-main p {
  margin: 0;
  color: var(--text-soft);
  max-width: 66ch;
}

.post-item-topline small {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.post-item-link {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.82);
  padding: 12px 18px;
}

.posts-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

#categorias .chip-grid {
  gap: 12px;
}

.tools-hub {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: stretch;
}

.tool-hero-link,
.tool-links-panel {
  border-radius: 28px;
}

.tool-hero-link p,
.tool-links-panel .tool-links-list a {
  color: var(--text-soft);
}

.tool-links-list a {
  background: rgba(248, 250, 252, 0.82);
}

@media (max-width: 980px) {
  .home-editorial-grid,
  .tools-hub {
    grid-template-columns: 1fr;
  }

  .home-editorial-intro {
    padding-bottom: 2px;
  }
}

@media (max-width: 720px) {
  .home-editorial-intro h1,
  .editorial-hero-title,
  .section-head-home-posts h2 {
    text-wrap: initial;
  }

  .editorial-hero-card,
  .editorial-rail-card,
  .editorial-brief-card {
    padding: 20px;
    border-radius: 24px;
  }

  .post-item-editorial,
  .post-item-layout {
    grid-template-columns: 1fr;
  }

  .post-item-thumb {
    max-width: 220px;
  }

  .post-item-link {
    justify-self: start;
  }

  .quick-link-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .quick-link-index {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
}

@media (max-width: 520px) {
  .home-minimal {
    padding-top: 18px;
  }

  .home-editorial-intro h1 {
    font-size: 2rem;
  }

  .editorial-hero-title {
    font-size: 1.9rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .tool-hero-actions .btn-primary,
  .tool-hero-actions .btn-secondary {
    width: 100%;
  }
}

/* Footer refinement */
.footer-shell {
  margin-top: 36px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.56), rgba(255,255,255,0.82)),
    radial-gradient(circle at top left, rgba(30, 117, 88, 0.05), transparent 34%);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr) minmax(260px, 1fr);
  gap: 18px 28px;
  align-items: start;
  padding: 30px 0 44px;
  color: var(--text-soft);
}

.site-footer p {
  margin: 0;
  max-width: 34ch;
  line-height: 1.65;
}

.site-footer p:first-child {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer p:last-child {
  padding-left: 18px;
  border-left: 2px solid rgba(30, 117, 88, 0.12);
}

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0 34px;
  }

  .site-footer p {
    max-width: none;
  }

  .site-footer p:last-child {
    padding-left: 0;
    border-left: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
  }
}

/* Tools page refinement */
.tools-page-hero {
  padding-top: 24px;
}

.tools-breadcrumbs {
  margin-bottom: 20px;
}

.tools-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.tools-hero-copy,
.tools-hero-aside,
.calendar-tool-card,
.calendar-side-info,
.tools-content-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.tools-hero-copy {
  margin: 0;
  padding: 28px;
  border-radius: 30px;
}

.tools-hero-copy h1,
.tools-hero-aside h2,
.calendar-tool-header h2,
.calendar-side-info h2,
.tools-content-card h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.tools-hero-copy h1 {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 5vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.tools-hero-copy p,
.tools-hero-aside p,
.calendar-tool-intro,
.calendar-note,
.calendar-side-info p,
.tools-content-card p {
  color: var(--text-soft);
}

.tools-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tools-hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(30, 117, 88, 0.08);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.tools-hero-aside {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 28px;
}

.tools-hero-aside h2,
.calendar-tool-header h2,
.calendar-side-info h2,
.tools-content-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.calendar-layout-improved {
  gap: 22px;
}

.calendar-tool-card-improved,
.calendar-side-info-improved,
.tools-content-card {
  border-radius: 30px;
  padding: 26px;
}

.calendar-tool-card-improved {
  gap: 18px;
}

.calendar-tool-header {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.calendar-form-grid {
  gap: 16px;
}

.calendar-field {
  padding: 16px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.calendar-tool-card select {
  background: #fff;
}

.calendar-tool-card-improved .btn-primary {
  min-height: 54px;
  font-size: 1rem;
  box-shadow: 0 18px 34px rgba(30, 117, 88, 0.18);
}

.tool-result {
  min-height: 92px;
  border-radius: 22px;
  background: rgba(30, 117, 88, 0.05);
  border: 1px solid rgba(30, 117, 88, 0.08);
}

.calendar-result-box-improved,
.result-warning {
  border-radius: 22px;
}

.calendar-side-info-improved {
  gap: 14px;
}

.calendar-side-info-improved p {
  margin: 0;
}

.simple-link-list li {
  list-style: none;
}

.simple-link-list {
  padding-left: 0;
  margin: 0;
}

.simple-link-list a {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.simple-link-list a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.tools-content-card {
  display: grid;
  gap: 10px;
}

.tools-content-card h2 {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .tools-hero-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tools-hero-copy,
  .tools-hero-aside,
  .calendar-tool-card-improved,
  .calendar-side-info-improved,
  .tools-content-card {
    padding: 20px;
    border-radius: 24px;
  }

  .tools-hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .calendar-field {
    padding: 14px;
    border-radius: 18px;
  }
}

/* Tools page */
.tools-page-hero-wrap {
  padding-bottom: 10px;
}

.tools-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 20px;
  align-items: end;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.tools-page-hero h1,
.utility-card-head h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.tools-page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.tools-page-hero p {
  margin: 0;
  max-width: 68ch;
  color: var(--text-soft);
}

.tools-page-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.utility-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.utility-card-featured {
  display: grid;
  align-content: space-between;
}

.utility-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.utility-card-head h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.utility-card-head p {
  margin: 0;
  color: var(--text-soft);
}

.utility-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-form-stack {
  display: grid;
  gap: 14px;
}

.tool-field-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

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

.tool-field-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-field {
  display: grid;
  grid-template-rows: minmax(22px, auto) minmax(54px, auto);
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.tool-calculator-card label {
  display: block;
  min-height: 22px;
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
}

.tool-calculator-card input,
.tool-calculator-card select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.tool-calculator-card input::placeholder {
  color: var(--text-faint);
}

.tool-calculator-card input:focus,
.tool-calculator-card select:focus {
  border-color: rgba(30, 117, 88, 0.34);
  box-shadow:
    0 0 0 4px rgba(30, 117, 88, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.7);
  background: #fff;
}

.tool-calculator-card .btn-primary {
  min-height: 54px;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(30, 117, 88, 0.18);
}

.tool-calculator-card .tool-result {
  min-height: 92px;
  margin-top: 2px;
  border-radius: 22px;
}

.tool-result-box-strong {
  margin-top: 2px;
}

@media (max-width: 980px) {
  .tools-page-grid,
  .tools-page-hero {
    grid-template-columns: 1fr;
  }

  .tools-page-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .tool-field-grid-2,
  .tool-field-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tools-page-hero,
  .utility-card {
    padding: 20px;
    border-radius: 24px;
  }

  .tools-page-hero-actions .btn-primary,
  .tools-page-hero-actions .btn-secondary,
  .utility-card-actions .btn-primary,
  .utility-card-actions .btn-secondary {
    width: 100%;
  }
}


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

.tools-main-column {
  min-width: 0;
}

.tools-sidebar-column {
  display: grid;
  gap: 16px;
}

.tools-sidebar-card {
  padding: 20px;
}

.tools-sidebar-links a {
  font-weight: 600;
}

.scroll-offset-target {
  scroll-margin-top: 110px;
}

.category-tools-promo {
  margin-top: 22px;
}

@media (max-width: 980px) {
  .tools-page-layout {
    grid-template-columns: 1fr;
  }

  .tools-sidebar-column {
    order: -1;
  }

  .tools-sidebar-card.sticky-card,
  .sticky-card.tools-sidebar-card {
    position: static;
    top: auto;
  }
}

/* Tools page no-grid refresh */
.tools-page-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.tools-page-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 70ch;
}

.tools-page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.tools-page-layout,
.tools-page-grid,
.tools-sidebar-column {
  display: block;
}

.tools-page-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tools-anchor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tools-anchor-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: 700;
}

.tools-anchor-strip a:hover {
  color: var(--primary-dark);
  border-color: rgba(30, 117, 88, 0.24);
  background: rgba(30, 117, 88, 0.08);
}

.utility-card {
  padding: 28px;
}

.utility-card-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.utility-card-head {
  margin-bottom: 0;
  max-width: 62ch;
}

.utility-card-actions {
  flex: 0 0 auto;
}

.tool-form-stack {
  gap: 16px;
}

.tool-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.tool-field-row > .tool-field {
  flex: 1 1 190px;
}

.tool-field-row-wide > .tool-field {
  flex-basis: 260px;
}

.tool-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.tool-field-single {
  max-width: 340px;
}

.tool-calculator-card input,
.tool-calculator-card select {
  min-height: 56px;
}

.tool-calculator-card .btn-primary {
  align-self: flex-start;
  min-width: 220px;
}

.tools-support-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.tools-support-card {
  flex: 1 1 240px;
}

@media (max-width: 860px) {
  .utility-card-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .tools-support-flow {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .utility-card,
  .tools-page-hero,
  .tools-support-card {
    padding: 20px;
    border-radius: 24px;
  }

  .tool-field-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-field-row > .tool-field,
  .tool-field-single {
    width: 100%;
    max-width: none;
  }

  .tool-calculator-card .btn-primary,
  .utility-card-actions .btn-primary,
  .utility-card-actions .btn-secondary,
  .tools-page-hero-actions .btn-primary,
  .tools-page-hero-actions .btn-secondary {
    width: 100%;
  }
}


.ai-draft-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,250,252,0.96));
}

.ai-draft-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.ai-draft-panel-head h3 {
  margin: 6px 0 0;
  font-size: 1.28rem;
  line-height: 1.08;
}

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

.ai-draft-grid label:last-child {
  grid-column: 1 / -1;
}

.ai-draft-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .ai-draft-grid {
    grid-template-columns: 1fr;
  }
}

/* Refinamento editorial seguro */
:root {
  --bg: #f3f5f2;
  --bg-accent: #edf4ef;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-muted: #f5f7f5;
  --text: #16202b;
  --text-soft: #5d6876;
  --text-faint: #7f8897;
  --line: rgba(110, 124, 144, 0.18);
  --line-strong: rgba(110, 124, 144, 0.28);
  --primary: #1d6a52;
  --primary-dark: #144d3c;
  --primary-soft: rgba(29, 106, 82, 0.08);
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 22px 56px rgba(15, 23, 42, 0.08);
  --container: 1200px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(29, 106, 82, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.05), transparent 24%),
    linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
}

.section {
  padding: 42px 0 10px;
}

.section-compact {
  padding-top: 24px;
}

.header-shell {
  background: rgba(248, 250, 248, 0.88);
  border-bottom: 1px solid rgba(110, 124, 144, 0.14);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.site-header {
  min-height: 78px;
  gap: 24px;
}

.brand {
  align-items: center;
  gap: 14px;
}

.brand-text {
  display: grid;
  gap: 4px;
  line-height: 1.05;
}

.brand-text small {
  max-width: 32ch;
}

.nav {
  gap: 8px;
}

.nav a {
  padding: 11px 15px;
  font-weight: 700;
  color: var(--text-soft);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  outline: none;
}

.home-editorial-shell,
.article-layout-grid-blog,
.category-shell-blog {
  position: relative;
}

.home-editorial-intro {
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  max-width: none;
  width: 100%;
}

.home-editorial-intro h1 {
  max-width: 22ch;
}

.home-editorial-intro p {
  font-size: 1.01rem;
  max-width: 90ch;
}

.home-editorial-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(310px, 0.78fr);
  gap: 26px;
}

.editorial-hero-card,
.editorial-rail-card,
.editorial-brief-card,
.tool-hero-link,
.tool-links-panel,
.article-shell-blog,
.category-shell-blog,
.sidebar-card,
.summary-mini-card,
.category-lead-card {
  border-color: rgba(110, 124, 144, 0.14);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
}

.editorial-hero-card {
  padding: 28px;
  gap: 22px;
  border-radius: 30px;
}

.editorial-hero-image {
  aspect-ratio: 16 / 8.8;
  max-height: 460px;
  border-radius: 24px;
}

.editorial-hero-copy {
  gap: 16px;
}

.editorial-hero-title {
  max-width: 13ch;
  text-wrap: balance;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero-meta {
  gap: 8px;
}

.hero-meta span,
.read-time,
.category-lead-meta span,
.article-meta-blog span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(29, 106, 82, 0.07);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-actions,
.tool-hero-actions,
.share-band-actions {
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  min-height: 50px;
  border-radius: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2f7d63 100%);
  box-shadow: 0 14px 32px rgba(29, 106, 82, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #24634f 100%);
  outline: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible,
.post-item-link:hover,
.post-item-link:focus-visible,
.tool-links-list a:hover,
.tool-links-list a:focus-visible,
.quick-links-grid a:hover,
.quick-links-grid a:focus-visible,
.sidebar-links a:hover,
.sidebar-links a:focus-visible,
.sidebar-post-item:hover,
.sidebar-post-item:focus-visible,
.toc-link:hover,
.toc-link:focus-visible,
.quick-link-item:hover,
.quick-link-item:focus-visible {
  outline: none;
  border-color: rgba(29, 106, 82, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.editorial-rail-card,
.editorial-brief-card {
  padding: 26px;
}

.quick-links-list {
  gap: 0;
}

.quick-link-item {
  padding: 18px 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.quick-link-item:hover {
  transform: translateX(2px);
  color: var(--primary-dark);
}

.quick-link-copy strong {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.section-head-home-posts {
  align-items: end;
  gap: 22px;
  margin-bottom: 14px;
  padding-bottom: 18px;
}

.search-shell-inline {
  width: min(100%, 460px);
}

.search-row {
  gap: 10px;
}

.search-row input {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
}

.search-status,
.empty-state {
  margin-top: 14px;
}

.post-list-editorial {
  border-radius: 32px;
}

.post-item {
  gap: 24px;
  padding: 26px 30px;
}

.post-item:hover {
  background: rgba(29, 106, 82, 0.035);
}

.post-item-layout {
  grid-template-columns: minmax(0, 212px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.post-item-thumb {
  border-radius: 20px;
  aspect-ratio: 16 / 11;
}

.post-item-main h3,
.post-item-editorial h3 {
  margin: 10px 0;
  font-size: clamp(1.32rem, 2vw, 1.68rem);
  line-height: 1.12;
}

.post-item-main p,
.post-item-editorial p {
  line-height: 1.68;
}

.post-item-link {
  min-height: 46px;
  padding: 0 18px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.9);
}

#categorias .chip-grid {
  gap: 14px;
}

.chip,
.chip-grid a {
  min-height: 40px;
  padding: 0 15px;
}

.tools-hub {
  gap: 22px;
}

.tool-hero-link,
.tool-links-panel {
  padding: 26px;
}

.tool-links-list,
.quick-links-grid {
  gap: 12px;
}

.tool-links-list a,
.quick-links-grid a {
  min-height: 56px;
  display: flex;
  align-items: center;
}

.ad-slot {
  min-height: 110px;
  border-radius: 24px;
  border-color: rgba(110, 124, 144, 0.18);
  background:
    linear-gradient(180deg, rgba(250, 251, 250, 0.96), rgba(244, 247, 244, 0.94));
}

.ad-slot > div {
  display: grid;
  gap: 4px;
}

.article-layout-blog {
  padding-top: 28px;
  padding-bottom: 34px;
}

.article-layout-grid-blog {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.article-shell-blog {
  border-radius: 32px;
}

.article-opening {
  padding: 34px 38px 22px;
}

.article-title-blog {
  max-width: 15ch;
  margin: 14px 0 16px;
}

.article-summary-blog {
  max-width: 64ch;
  line-height: 1.72;
}

.article-highlights {
  margin-top: 18px;
  gap: 12px;
}

.article-highlights span {
  padding: 10px 14px;
}

.article-cover {
  max-height: 500px;
}

.article-reading-shell {
  padding: 0 38px 34px;
}

.article-content-blog {
  max-width: 69ch;
  padding-top: 30px;
  font-size: 1.08rem;
  line-height: 1.82;
}

.article-content-blog h2,
.article-content-blog h3 {
  scroll-margin-top: 120px;
}

.article-content-blog h2 {
  margin-top: 1.9em;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.article-content-blog h3 {
  font-size: clamp(1.32rem, 2.2vw, 1.58rem);
}

.article-content-blog p,
.article-content-blog li {
  color: #223041;
}

.article-content-blog ul,
.article-content-blog ol {
  padding-left: 1.35rem;
}

.article-content-blog blockquote {
  margin: 1.8em 0;
  padding: 18px 20px;
  border-left-color: var(--primary);
  background: rgba(29, 106, 82, 0.05);
}

.ad-inline-article {
  margin: 0 38px 20px;
}

.faq-block-blog,
.article-share-band-blog,
.internal-links {
  margin-top: 32px;
}

.faq-item {
  border-radius: 20px;
}

.faq-item summary {
  font-size: 1rem;
}

.share-band,
.category-extras {
  border-radius: 28px;
}

.article-sidebar-blog {
  gap: 18px;
}

.sidebar-card {
  padding: 22px;
  border-radius: 26px;
}

.sidebar-card h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.sidebar-links a,
.sidebar-post-item,
.toc-link {
  padding: 12px 14px;
  border-radius: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.sidebar-post-item strong {
  margin-bottom: 8px;
}

.sticky-card,
.sticky-card-blog {
  top: 100px;
}

.category-shell-blog {
  padding: 30px;
  border-radius: 32px;
}

.category-summary-grid {
  gap: 18px;
}

.summary-mini-card {
  padding: 20px;
}

.summary-mini-card strong {
  font-size: 1.24rem;
}

.category-lead-card {
  padding: 28px;
  margin-bottom: 24px;
}

.category-lead-content {
  max-width: 72ch;
}

.category-lead-content h2 {
  max-width: 22ch;
}

.category-lead-meta {
  gap: 12px;
  margin-top: 18px;
}

.post-list-category {
  margin-top: 14px;
}

.footer-shell {
  margin-top: 44px;
}

.site-footer {
  padding: 34px 0 42px;
}

@media (max-width: 1100px) {
  .home-editorial-grid,
  .article-layout-grid-blog,
  .tools-hub {
    grid-template-columns: 1fr;
  }

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

  .sticky-card,
  .sticky-card-blog {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: auto;
  }

  .brand-text small {
    max-width: none;
  }

  .article-sidebar-blog {
    grid-template-columns: 1fr;
  }

  .post-item,
  .post-item-editorial {
    grid-template-columns: 1fr;
    padding: 22px 0;
  }

  .post-item-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .post-item-thumb {
    max-width: 280px;
  }
}

@media (max-width: 720px) {
  .section {
    padding-top: 30px;
  }

  .editorial-hero-card,
  .editorial-rail-card,
  .editorial-brief-card,
  .tool-hero-link,
  .tool-links-panel,
  .article-shell-blog,
  .category-shell-blog,
  .category-lead-card,
  .sidebar-card,
  .summary-mini-card,
  .share-band,
  .category-extras {
    border-radius: 24px;
  }

  .editorial-hero-card,
  .editorial-rail-card,
  .editorial-brief-card,
  .tool-hero-link,
  .tool-links-panel,
  .category-shell-blog,
  .category-lead-card {
    padding: 20px;
  }

  .article-opening,
  .article-reading-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .ad-inline-article {
    margin-left: 22px;
    margin-right: 22px;
  }

  .article-title-blog,
  .editorial-hero-title,
  .home-editorial-intro h1 {
    max-width: none;
  }

  .category-summary-grid,
  .quick-links-grid-category {
    grid-template-columns: 1fr;
  }

  .search-row,
  .hero-actions,
  .tool-hero-actions,
  .share-band-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-shell-inline {
    width: 100%;
  }

  .post-list-editorial {
    border-radius: 26px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--container), calc(100% - 18px));
  }

  .site-header {
    padding: 12px 0 14px;
  }

  .nav {
    width: 100%;
    gap: 6px;
  }

  .nav a {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .editorial-hero-image {
    max-height: 280px;
    border-radius: 18px;
  }

  .post-item-thumb {
    max-width: none;
  }

  .article-opening,
  .article-reading-shell,
  .ad-inline-article {
    padding-left: 18px;
    padding-right: 18px;
    margin-left: 0;
    margin-right: 0;
  }

  .article-content-blog {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* Editorial article refinement */
.article-layout-blog {
  padding-top: 32px;
  padding-bottom: 44px;
}

.article-layout-grid-blog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.article-shell-blog {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 249, 0.95));
  border: 1px solid rgba(110, 124, 144, 0.14);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.article-opening-blog {
  padding: 40px 44px 24px;
  border-bottom: 1px solid rgba(110, 124, 144, 0.12);
}

.article-kicker-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-status {
  margin: 0;
  min-height: 22px;
}

.article-title-blog {
  max-width: 16ch;
  margin: 16px 0 14px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-summary-blog {
  max-width: 66ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--text-soft);
}

.article-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.article-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(29, 106, 82, 0.08);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.article-cover-shell {
  margin: 0;
  padding: 0 44px;
}

.article-cover {
  width: 100%;
  max-height: 520px;
  margin: 28px 0 0;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.article-reading-shell {
  padding: 0 44px 40px;
}

.article-body-section {
  padding-top: 34px;
}

.article-content-blog {
  max-width: 72ch;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #223041;
}

.article-content-blog > *:first-child {
  margin-top: 0;
}

.article-content-blog h2,
.article-content-blog h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.15;
  letter-spacing: 0;
  color: #16202b;
  text-wrap: balance;
  scroll-margin-top: 120px;
}

.article-content-blog h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.article-content-blog h3 {
  margin: 1.7em 0 0.65em;
  font-size: clamp(1.32rem, 2vw, 1.7rem);
}

.article-content-blog p {
  margin: 0 0 1.15em;
}

.article-content-blog ul,
.article-content-blog ol {
  margin: 0 0 1.4em;
  padding-left: 1.4rem;
}

.article-content-blog li {
  margin-bottom: 0.7em;
  padding-left: 0.2rem;
}

.article-content-blog blockquote {
  margin: 2em 0;
  padding: 20px 22px;
  border-left: 4px solid var(--primary);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(180deg, rgba(29, 106, 82, 0.06), rgba(29, 106, 82, 0.03));
  color: #1f2d3d;
}

.article-content-blog a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-word;
}

.article-content-blog a:hover,
.article-content-blog a:focus-visible {
  color: var(--primary);
  outline: none;
}

.article-empty-state {
  padding: 22px 24px;
  border: 1px solid rgba(110, 124, 144, 0.14);
  border-radius: 20px;
  background: rgba(248, 250, 248, 0.94);
}

.faq-block-blog,
.article-share-band-blog,
.internal-links {
  margin-top: 34px;
}

.faq-item {
  border: 1px solid rgba(110, 124, 144, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0;
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-soft);
}

.faq-answer p {
  margin: 0;
  line-height: 1.75;
}

.article-share-band-blog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(110, 124, 144, 0.14);
  background: linear-gradient(135deg, rgba(22, 32, 43, 0.98), rgba(29, 106, 82, 0.92));
  color: #f7fbf8;
}

.article-share-band-blog p {
  color: rgba(247, 251, 248, 0.78);
}

.share-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.internal-links .post-card {
  border: 1px solid rgba(110, 124, 144, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,248,0.94));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.internal-links .post-card-content {
  padding: 20px;
}

.internal-links .post-card h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.article-sidebar-blog {
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(110, 124, 144, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 10px 0 14px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.sidebar-summary {
  color: var(--text-soft);
  line-height: 1.72;
}

.sidebar-links,
.sidebar-post-list {
  display: grid;
  gap: 10px;
}

.sidebar-links a,
.sidebar-post-item,
.toc-link {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(110, 124, 144, 0.12);
  background: rgba(248, 250, 248, 0.94);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-post-item strong {
  display: block;
  margin-bottom: 6px;
}

.toc-h3 {
  margin-left: 14px;
}

.sticky-card-blog {
  position: sticky;
  top: 96px;
}

.ad-inline-article {
  margin: 26px 44px 0;
}

@media (max-width: 1100px) {
  .article-layout-grid-blog {
    grid-template-columns: 1fr;
  }

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

  .sticky-card-blog {
    position: static;
  }
}

@media (max-width: 860px) {
  .article-opening-blog,
  .article-reading-shell,
  .article-cover-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .ad-inline-article {
    margin-left: 24px;
    margin-right: 24px;
  }

  .article-title-blog {
    max-width: none;
  }

  .article-share-band-blog,
  .internal-links .post-grid.compact,
  .article-sidebar-blog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .article-opening-blog,
  .article-reading-shell,
  .article-cover-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .article-title-blog {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .article-summary-blog,
  .article-content-blog {
    font-size: 1rem;
    line-height: 1.8;
  }

  .ad-inline-article {
    margin-left: 18px;
    margin-right: 18px;
  }

  .share-band-actions .btn-primary,
  .share-band-actions .btn-secondary {
    width: 100%;
  }
}
