:root {
  --info-blue: #123f96;
  --info-blue-strong: #082b63;
  --info-red: #e6324b;
  --info-green: #14975a;
  --info-ink: #12233f;
  --info-muted: #65758b;
  --info-line: #dfe7f2;
  --info-surface: #ffffff;
  --info-soft: #f7faff;
}

[data-theme="dark"] {
  --info-ink: #eef5ff;
  --info-muted: #a9b8ca;
  --info-line: #2b3d55;
  --info-surface: #111c2d;
  --info-soft: #0d1726;
}

/* Homepage information-first layout */
body:has(.home-information) #features,
body:has(.home-information) .wealth-divider,
body:has(.home-information) .articles-section,
body:has(.home-information) #faq {
  display: none !important;
}

body:has(.home-information) .hero {
  min-height: auto;
  padding: 136px 0 48px;
}

body:has(.home-information) .hero .container,
.home-information .container {
  max-width: 1320px;
}

body:has(.home-information) .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, .88fr) minmax(340px, .94fr);
  gap: 32px;
  align-items: center;
}

body:has(.home-information) .hero-content {
  max-width: 620px;
}

body:has(.home-information) .hero h1 {
  margin: 18px 0 0;
}

body:has(.home-information) .hero-badge {
  color: var(--info-blue);
  border-color: #dbe8fb;
  background: #eef4ff;
}

body:has(.home-information) .hero-badge::before,
body:has(.home-information) .hero h1 .hero-brand-title {
  display: none;
}

body:has(.home-information) .hero h1 .hero-main-title {
  max-width: 660px;
  font-size: clamp(2.7rem, 4.6vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  white-space: normal;
}

:is(html[lang="en"], html[lang="id"], html[lang="fil"]) body:has(.home-information) .hero h1 .hero-main-title {
  max-width: 560px;
  font-size: clamp(2.6rem, 3.8vw, 4rem);
  line-height: 1.04;
}

body:has(.home-information) .hero-desc {
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--info-muted);
  margin: 22px 0 28px;
}

body:has(.home-information) .hero-illustration {
  min-width: 0;
}

body:has(.home-information) .m6-svg-hero {
  width: min(100%, 390px);
}

body:has(.home-information) .hero-actions .btn-secondary {
  color: #fff;
  border-color: #ff173c;
  background: #ff173c;
  box-shadow: 0 10px 24px rgba(255, 23, 60, .22);
}

body:has(.home-information) .hero-actions .btn-secondary:hover {
  color: #fff;
  border-color: #d90e31;
  background: #d90e31;
}

.home-focus-panel {
  background: var(--info-surface);
  border: 1px solid var(--info-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 50, 99, .08);
}

.home-focus-heading,
.home-focus-row,
.info-section-heading,
.info-feed-row,
.info-tool-list a,
.info-responsible-box {
  display: flex;
  align-items: center;
}

.home-focus-heading {
  justify-content: space-between;
  padding: 22px 24px 16px;
}

.home-focus-heading h2 {
  color: var(--info-ink);
  font-size: 1.25rem;
  margin: 0;
}

.home-focus-heading time {
  color: var(--info-muted);
  font-size: .78rem;
}

.home-focus-row {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 18px 46px 18px 24px;
  color: var(--info-ink);
  text-decoration: none;
  border-top: 1px solid var(--info-line);
  transition: background .2s ease;
}

.home-focus-row::after {
  content: "→";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--info-blue);
}

.home-focus-row:hover { background: var(--info-soft); }
.home-focus-row strong { font-size: .95rem; }
.home-focus-row span { color: var(--info-muted); font-size: .78rem; line-height: 1.55; }
.home-focus-more { display: block; padding: 15px 24px; text-align: center; color: var(--info-blue); font-weight: 750; text-decoration: none; border-top: 1px solid var(--info-line); }

.home-information { background: var(--info-surface); }
.home-information .section { padding: 56px 0; }
.info-latest { border-top: 1px solid var(--info-line); }
.info-home-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 24px; align-items: stretch; }
.info-feed { border: 1px solid var(--info-line); border-radius: 20px; overflow: hidden; background: var(--info-surface); }
.info-section-heading { justify-content: space-between; gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--info-line); }
.info-section-heading h2 { color: var(--info-ink); font-size: clamp(1.45rem, 2vw, 1.9rem); margin: 2px 0 0; }
.info-section-heading > a { color: var(--info-blue); font-size: .86rem; font-weight: 750; text-decoration: none; }
.info-kicker { color: var(--info-blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.info-feed-list { display: flex; flex-direction: column; }
.info-feed-row { display: grid; grid-template-columns: 92px minmax(108px, max-content) minmax(0, 1fr) 20px; gap: 14px; padding: 19px 24px; color: var(--info-ink); text-decoration: none; border-bottom: 1px solid var(--info-line); transition: background .2s ease; }
.info-feed-row:last-child { border-bottom: 0; }
.info-feed-row:hover { background: var(--info-soft); }
.info-feed-row time { color: var(--info-muted); font-size: .76rem; }
.info-feed-row strong { font-size: .9rem; line-height: 1.55; }
.info-tag { width: max-content; max-width: 100%; white-space: nowrap; border-radius: 999px; padding: 4px 8px; font-size: .7rem; font-weight: 800; }
.info-tag-blue { color: #154fae; background: #eaf2ff; }
.info-tag-red { color: #b5253a; background: #fff0f2; }
.info-tag-green { color: #087b46; background: #e8f8f0; }
.info-arrow { color: var(--info-blue); }

.info-topic-lanes { display: grid; gap: 12px; }
.info-topic { display: flex; min-height: 124px; flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px 26px; border-radius: 18px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.info-topic:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 50, 99, .08); }
.info-topic span { font-size: 1.18rem; font-weight: 850; margin-bottom: 6px; }
.info-topic strong { color: var(--info-ink); font-size: .84rem; line-height: 1.55; }
.info-topic small { margin-top: 12px; font-weight: 750; }
.info-topic-blue { color: #174eaa; background: #eff5ff; }
.info-topic-red { color: #b52a3f; background: #fff1f3; }
.info-topic-green { color: #087b46; background: #edf9f3; }

.info-tools { background: var(--info-soft); }
.info-tools-heading { padding-left: 0; padding-right: 0; }
.info-tools-heading p { max-width: 480px; margin: 0; color: var(--info-muted); font-size: .88rem; }
.info-tool-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--info-line); }
.info-tool-list a { position: relative; min-height: 136px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; padding: 24px; color: var(--info-ink); text-decoration: none; border-right: 1px solid var(--info-line); }
.info-tool-list a:last-child { border-right: 0; }
.info-tool-list a:hover { background: var(--info-surface); }
.info-tool-list strong { font-size: 1rem; }
.info-tool-list span { color: var(--info-muted); font-size: .78rem; line-height: 1.55; }
.info-tool-list b { position: absolute; right: 20px; top: 22px; color: var(--info-blue); font-size: .9rem; }

.info-responsible-box { gap: 34px; padding: 30px 34px; border: 1px solid #f0ccd3; border-radius: 18px; background: #fff8f9; }
[data-theme="dark"] .info-responsible-box { background: #211820; border-color: #52303a; }
.info-responsible-box > div { flex: 0 0 34%; }
.info-responsible-box h2 { margin: 4px 0 0; color: var(--info-ink); font-size: 1.25rem; line-height: 1.45; }
.info-responsible-box p { flex: 1; color: var(--info-muted); font-size: .84rem; line-height: 1.75; margin: 0; }
.info-responsible-box > a { color: var(--info-blue); font-size: .82rem; font-weight: 800; white-space: nowrap; }

/* Article index and detail pages */
.info-page { min-height: 100vh; background: var(--info-surface); color: var(--info-ink); }
.info-page-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 88px; }
.info-page-hero { max-width: 760px; margin-bottom: 46px; }
.info-page-hero .info-kicker { display: block; margin-bottom: 12px; }
.info-page-hero h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.1rem); line-height: 1.08; letter-spacing: -.045em; }
.info-page-hero p { color: var(--info-muted); font-size: 1.02rem; line-height: 1.8; }
.article-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-index-section { scroll-margin-top: 90px; }
.article-index-section + .article-index-section { margin-top: 56px; }
.article-index-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--info-line); }
.article-index-title h2 { margin: 0; font-size: 1.6rem; }
.article-index-title p { margin: 0; color: var(--info-muted); font-size: .82rem; }
.article-preview { display: flex; min-height: 230px; flex-direction: column; padding: 24px; border: 1px solid var(--info-line); border-radius: 18px; color: var(--info-ink); text-decoration: none; background: var(--info-surface); transition: transform .2s ease, box-shadow .2s ease; }
.article-preview:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(15, 50, 99, .09); }
.article-preview time { color: var(--info-muted); font-size: .75rem; }
.article-preview h3 { margin: 16px 0 10px; font-size: 1.14rem; line-height: 1.5; }
.article-preview p { margin: 0; color: var(--info-muted); font-size: .84rem; line-height: 1.7; }
.article-preview span { margin-top: auto; padding-top: 22px; color: var(--info-blue); font-size: .8rem; font-weight: 800; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 72px; align-items: start; }
.article-breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; color: var(--info-muted); font-size: .8rem; }
.article-breadcrumb a { color: var(--info-blue); text-decoration: none; }
.article-head .info-tag { display: inline-flex; margin-bottom: 16px; }
.article-head h1 { margin: 0; color: var(--info-ink); font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.13; letter-spacing: -.04em; }
.article-deck { color: var(--info-muted); font-size: 1.08rem; line-height: 1.8; }
.article-meta { display: flex; gap: 16px; color: var(--info-muted); font-size: .78rem; padding: 18px 0 28px; border-bottom: 1px solid var(--info-line); }
.article-body { font-size: 1rem; line-height: 1.9; }
.article-body h2 { margin: 44px 0 12px; font-size: 1.55rem; line-height: 1.35; }
.article-body p { color: var(--info-ink); }
.article-callout { margin: 28px 0; padding: 22px 24px; border-left: 4px solid var(--info-blue); background: var(--info-soft); color: var(--info-muted); }
.article-side { position: sticky; top: 92px; padding: 24px; border: 1px solid var(--info-line); border-radius: 18px; }
.article-side h2 { margin: 0 0 14px; font-size: 1rem; }
.article-side a { display: block; padding: 12px 0; color: var(--info-ink); text-decoration: none; font-size: .82rem; line-height: 1.5; border-top: 1px solid var(--info-line); }

.info-site-footer { border-top: 1px solid var(--info-line); background: var(--info-soft); }
.info-site-footer-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; padding: 48px 0 28px; }
.info-site-footer strong { display: block; color: var(--info-ink); margin-bottom: 12px; }
.info-site-footer p, .info-site-footer a { color: var(--info-muted); font-size: .8rem; line-height: 1.75; }
.info-site-footer a { display: block; text-decoration: none; margin: 6px 0; }
.info-site-footer-bottom { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid var(--info-line); color: var(--info-muted); font-size: .72rem; }

@media (max-width: 1100px) {
  body:has(.home-information) .hero-grid { grid-template-columns: 1fr .8fr; }
  .home-focus-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .home-focus-heading, .home-focus-more { grid-column: 1 / -1; }
  .home-focus-row { border-right: 1px solid var(--info-line); }
  .info-tool-list { grid-template-columns: repeat(3, 1fr); }
  .info-tool-list a { border-bottom: 1px solid var(--info-line); }
}

@media (max-width: 980px) and (min-width: 761px) {
  .info-feed-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .info-feed-row time { grid-column: 1; }
  .info-feed-row .info-tag { grid-column: 2; grid-row: 1; }
  .info-feed-row strong { grid-column: 1 / -1; }
  .info-feed-row .info-arrow { display: none; }
}

@media (max-width: 760px) {
  body:has(.home-information) .hero { padding: 96px 0 28px; }
  body:has(.home-information) .hero-grid { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  body:has(.home-information) .hero-content { order: 1; }
  body:has(.home-information) .hero-illustration { order: 0; }
  body:has(.home-information) .m6-svg-hero { width: 210px; margin: 0 auto; }
  body:has(.home-information) .hero h1 .hero-main-title { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  body:has(.home-information) .hero-badge { margin: 0; }
  body:has(.home-information) .hero-desc { margin-left: 0; margin-right: 0; }
  body:has(.home-information) .hero-actions { display: grid; grid-template-columns: 1fr; }
  .home-focus-panel { order: 2; grid-column: auto; display: block; border-radius: 16px; }
  .info-home-grid { grid-template-columns: 1fr; }
  .info-feed-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 17px 18px; }
  .info-feed-row time { grid-column: 1; }
  .info-feed-row .info-tag { grid-column: 2; grid-row: 1; }
  .info-feed-row strong { grid-column: 1 / -1; }
  .info-feed-row .info-arrow { display: none; }
  .info-tool-list { grid-template-columns: 1fr; }
  .info-tool-list a { min-height: 104px; border-right: 0; }
  .info-responsible-box { align-items: flex-start; flex-direction: column; gap: 16px; padding: 24px; }
  .info-responsible-box > div { flex-basis: auto; }
  .info-tools-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .article-index-grid, .article-layout { grid-template-columns: 1fr; }
  .article-layout { gap: 38px; }
  .article-side { position: static; }
  .info-site-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .home-information .section { padding: 42px 0; }
  .info-section-heading { padding: 18px; }
  .info-topic { min-height: 112px; padding: 20px; }
  .info-page-main { width: min(100% - 28px, 1120px); padding: 48px 0 64px; }
  .article-index-grid { gap: 14px; }
  .info-site-footer-inner { grid-template-columns: 1fr; }
}
