: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;
  }
}


/* Vida Fácil 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}}
