/*
Theme Name: CreditNice Loans
Theme URI: https://creditniceloans.com/
Author: CreditNice Loans
Description: Theme so sánh và đề xuất khoản vay trực tuyến tối ưu hiệu năng, SEO và trải nghiệm di động.
Version: 1.0.0
Text Domain: creditnice
*/

:root {
  --ink: #10231d;
  --muted: #5d6f68;
  --green: #087a55;
  --green-dark: #045b41;
  --green-soft: #e8f7f0;
  --lime: #dafa93;
  --yellow: #ffd75e;
  --cream: #fbfcf7;
  --white: #fff;
  --line: #dfe9e4;
  --danger: #a84e30;
  --shadow: 0 20px 55px rgba(16, 63, 47, .09);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(8, 122, 85, .35); outline-offset: 3px; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-soft { background: #f0f7f3; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 9999; padding: 12px 18px; background: var(--white); border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(223, 233, 228, .85);
  background: rgba(251, 252, 247, .92);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-weight: 900; font-size: 1.27rem; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--white); background: var(--green); box-shadow: 0 8px 20px rgba(8, 122, 85, .2); }
.brand-mark svg { width: 22px; height: 22px; }
.brand em { color: var(--green); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: #314840; font-size: .92rem; font-weight: 700; transition: color .2s; }
.main-nav a:hover { color: var(--green); }
.header-cta, .btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: var(--white);
  background: var(--green);
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 9px 24px rgba(8, 122, 85, .17);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.header-cta:hover, .btn:hover { color: var(--white); background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 13px 28px rgba(8, 122, 85, .23); }
.btn-outline { color: var(--green); background: transparent; border: 1.5px solid var(--green); box-shadow: none; }
.btn-outline:hover { color: var(--white); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--green-soft); color: var(--green); cursor: pointer; }
.menu-toggle svg { width: 23px; margin: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 72px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.hero::before { width: 460px; height: 460px; right: -180px; top: -170px; background: rgba(218, 250, 147, .52); }
.hero::after { width: 260px; height: 260px; left: -140px; bottom: -120px; background: rgba(8, 122, 85, .07); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 64px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #cce6da; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: .82rem; font-weight: 800; }
.hero-badge span { width: 8px; height: 8px; border-radius: 50%; background: #13ad76; box-shadow: 0 0 0 4px rgba(19, 173, 118, .13); }
.hero h1 { max-width: 720px; margin: 22px 0 20px; font-size: clamp(2.75rem, 5.6vw, 5.15rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 em { position: relative; color: var(--green); font-style: normal; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 3%; right: 0; bottom: -7px; height: 8px; border-radius: 50%; background: var(--yellow); opacity: .65; transform: rotate(-1.5deg); }
.hero-lead { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.1rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 30px; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 7px; font-size: .91rem; font-weight: 750; }
.hero-points svg { width: 19px; color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--muted); font-size: .82rem; }
.avatar-stack { display: flex; }
.avatar-stack i { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -7px; border: 2px solid var(--cream); border-radius: 50%; color: var(--white); background: var(--green); font-style: normal; font-size: .62rem; font-weight: 900; }
.avatar-stack i:first-child { margin-left: 0; }

.loan-widget { position: relative; padding: 26px; border: 1px solid rgba(255,255,255,.7); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.loan-widget::before { content: ""; position: absolute; inset: -10px 20px auto; height: 30px; border-radius: 20px; background: var(--green); z-index: -1; }
.widget-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.widget-top h2 { margin: 0 0 4px; font-size: 1.25rem; letter-spacing: -.025em; }
.widget-top p { margin: 0; color: var(--muted); font-size: .85rem; }
.widget-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 13px; color: var(--green-dark); background: var(--lime); }
.widget-icon svg { width: 23px; }
.range-group { margin: 0 0 24px; }
.range-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: .88rem; font-weight: 750; }
.range-value { color: var(--green); font-size: 1.12rem; font-weight: 900; }
.range { width: 100%; height: 6px; margin: 4px 0; border-radius: 99px; background: linear-gradient(to right, var(--green) 0%, var(--green) var(--progress, 14%), #e3ebe7 var(--progress, 14%), #e3ebe7 100%); appearance: none; }
.range::-webkit-slider-thumb { width: 22px; height: 22px; border: 4px solid var(--white); border-radius: 50%; background: var(--green); box-shadow: 0 2px 9px rgba(8, 90, 62, .28); appearance: none; cursor: pointer; }
.range::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid var(--white); border-radius: 50%; background: var(--green); box-shadow: 0 2px 9px rgba(8, 90, 62, .28); cursor: pointer; }
.range-minmax { display: flex; justify-content: space-between; margin-top: 5px; color: #84948e; font-size: .72rem; }
.loan-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 3px 0 16px; }
.summary-item { padding: 13px; border-radius: 14px; background: #f3f8f5; }
.summary-item span { display: block; color: var(--muted); font-size: .72rem; }
.summary-item strong { display: block; margin-top: 2px; color: var(--green-dark); font-size: .91rem; }
.loan-widget .btn { width: 100%; min-height: 54px; }
.fine-print { margin: 12px 0 0; color: #7b8984; text-align: center; font-size: .7rem; line-height: 1.45; }

/* Trust bar */
.trust-bar { border-block: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 100px; padding: 18px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { flex: 0 0 28px; width: 28px; color: var(--green); }
.trust-item strong { display: block; font-size: .9rem; }
.trust-item small { display: block; color: var(--muted); font-size: .73rem; }

/* App ranking */
.app-list { display: grid; gap: 20px; }
.app-card { position: relative; display: grid; grid-template-columns: 74px 1.2fr 1.35fr auto; gap: 24px; align-items: center; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 30px rgba(16, 63, 47, .04); transition: transform .2s, border-color .2s, box-shadow .2s; }
.app-card:hover { transform: translateY(-3px); border-color: #a8d7c2; box-shadow: var(--shadow); }
.app-card.featured { border: 2px solid var(--green); background: linear-gradient(100deg, #fff 55%, #f4fbf7); }
.rank { position: absolute; top: -12px; left: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; color: var(--white); background: var(--green); font-size: .67rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.app-logo { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; color: var(--white); background: linear-gradient(140deg, var(--brand-a), var(--brand-b)); font-size: 1.28rem; font-weight: 950; letter-spacing: -.04em; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-a) 22%, transparent); }
.app-info h3 { margin: 0 0 3px; font-size: 1.25rem; letter-spacing: -.025em; }
.app-info p { margin: 0; color: var(--muted); font-size: .84rem; }
.score { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .76rem; font-weight: 800; }
.stars { color: #e9a900; letter-spacing: 1px; }
.app-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spec { min-width: 0; padding: 10px 11px; border-radius: 12px; background: #f5f8f6; }
.spec small { display: block; overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.spec strong { display: block; overflow: hidden; margin-top: 1px; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.app-action { min-width: 152px; text-align: center; }
.app-action .btn { width: 100%; }
.app-action small { display: block; margin-top: 8px; color: var(--muted); font-size: .66rem; }
.list-disclaimer { margin: 24px auto 0; max-width: 850px; padding: 15px 18px; border-radius: 14px; color: #6d5a26; background: #fff7dd; text-align: center; font-size: .78rem; }

/* Value, process, article */
.value-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.visual-card { position: relative; min-height: 500px; overflow: hidden; border-radius: 30px; background: var(--green); box-shadow: var(--shadow); }
.visual-orbit { position: absolute; width: 390px; height: 390px; top: 55px; left: 50%; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; transform: translateX(-50%); }
.visual-orbit::before, .visual-orbit::after { content: ""; position: absolute; inset: 50px; border: inherit; border-radius: inherit; }
.visual-orbit::after { inset: 110px; }
.phone { position: absolute; left: 50%; top: 78px; width: 212px; height: 360px; padding: 16px; border: 7px solid #183a2f; border-radius: 34px; background: var(--white); transform: translateX(-50%) rotate(-4deg); box-shadow: 0 28px 50px rgba(0,0,0,.24); }
.phone-bar { width: 55px; height: 5px; margin: 1px auto 30px; border-radius: 99px; background: #dce4df; }
.phone-check { display: grid; place-items: center; width: 70px; height: 70px; margin: auto; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.phone-check svg { width: 38px; }
.phone h3 { margin: 15px 0 6px; text-align: center; font-size: 1.02rem; }
.phone p { margin: 0; color: var(--muted); text-align: center; font-size: .71rem; }
.phone-amount { margin: 23px 0 16px; padding: 12px; border-radius: 12px; background: #f2f7f4; text-align: center; font-weight: 900; }
.phone-line { height: 8px; margin: 9px 2px; border-radius: 99px; background: #edf1ef; }
.phone-line.short { width: 64%; }
.float-pill { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 13px; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.14); font-size: .72rem; font-weight: 850; }
.float-pill svg { width: 20px; color: var(--green); }
.pill-one { left: 25px; top: 100px; }
.pill-two { right: 18px; bottom: 85px; }
.value-copy h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.05em; }
.value-copy > p { margin: 0 0 28px; color: var(--muted); }
.benefit-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.benefit-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--green); background: var(--green-soft); }
.benefit-icon svg { width: 22px; }
.benefit-list h3 { margin: 0 0 3px; font-size: 1rem; }
.benefit-list p { margin: 0; color: var(--muted); font-size: .86rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 27px 23px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); counter-increment: step; }
.step::before { content: "0" counter(step); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 35px; border-radius: 15px; color: var(--white); background: var(--green); font-size: .86rem; font-weight: 900; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 49px; right: -20px; width: 22px; border-top: 2px dashed #a4cbbb; z-index: 2; }
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .84rem; }

/* FAQ / CTA */
.faq-wrap { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.05em; }
.faq-intro p { color: var(--muted); }
.faq-list { display: grid; gap: 11px; }
.faq { border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; cursor: pointer; font-weight: 830; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 1.2rem; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: .91rem; }
.responsible { padding: 0 0 88px; }
.responsible-box { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center; padding: 40px; border-radius: 27px; color: var(--white); background: #103b30; overflow: hidden; }
.responsible-box h2 { margin: 0 0 8px; font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.15; }
.responsible-box p { max-width: 760px; margin: 0; color: #bdd4cb; font-size: .9rem; }
.responsible-box .btn { color: var(--ink); background: var(--lime); box-shadow: none; }
.responsible-box .btn:hover { background: var(--yellow); }

/* Footer and generic */
.site-footer { padding: 56px 0 25px; color: #c8d8d2; background: #09281f; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .8fr .8fr; gap: 65px; padding-bottom: 40px; }
.site-footer .brand { color: var(--white); }
.footer-about p { max-width: 480px; color: #9eb7ae; font-size: .86rem; }
.affiliate-note { margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #9eb7ae; font-size: .72rem; }
.footer-col h2 { margin: 5px 0 15px; color: var(--white); font-size: .9rem; }
.footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: #9eb7ae; font-size: .82rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #77978b; font-size: .72rem; }
.content-page { min-height: 55vh; padding: 70px 0; }
.content-narrow { max-width: 820px; margin: auto; }
.content-narrow h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -.05em; }
.entry-content { color: #344a42; }
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content img { height: auto; border-radius: 20px; }
.empty-state { padding: 50px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); text-align: center; }

@media (max-width: 1020px) {
  .main-nav { position: fixed; inset: 77px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 16px 28px; border-bottom: 1px solid var(--line); background: var(--cream); box-shadow: 0 25px 45px rgba(0,0,0,.12); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 10px; font-size: 1rem; }
  .main-nav .header-cta { margin-top: 8px; color: var(--white); }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 58px; }
  .hero-copy { max-width: 780px; }
  .loan-widget { max-width: 680px; }
  .app-card { grid-template-columns: 70px 1fr auto; }
  .app-specs { grid-column: 2 / 4; grid-row: 2; }
  .value-grid { gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero { padding: 46px 0 54px; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .hero h1 em { white-space: normal; }
  .hero-actions .btn { flex: 1 1 180px; }
  .loan-widget { padding: 21px; border-radius: 23px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .app-card, .app-card.featured { grid-template-columns: 60px 1fr; gap: 16px; padding: 24px 19px; background: var(--white); }
  .app-logo { width: 58px; height: 58px; border-radius: 17px; font-size: 1rem; }
  .app-specs { grid-column: 1 / 3; grid-row: auto; }
  .app-action { grid-column: 1 / 3; }
  .value-grid, .faq-wrap { grid-template-columns: 1fr; }
  .visual-card { min-height: 460px; }
  .faq-intro { position: static; }
  .responsible-box { grid-template-columns: 1fr; padding: 30px 25px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-about { grid-column: 1 / 3; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .header-inner { min-height: 68px; }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 34px; height: 34px; }
  .main-nav { top: 69px; }
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-note { align-items: flex-start; }
  .widget-top { margin-bottom: 20px; }
  .loan-summary { grid-template-columns: 1fr; }
  .trust-item { justify-content: flex-start; padding: 14px 10px; }
  .trust-item svg { width: 22px; }
  .trust-item small { display: none; }
  .app-specs { grid-template-columns: 1fr 1fr; }
  .spec:last-child { grid-column: 1 / 3; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .step::before { margin-bottom: 20px; }
  .visual-card { min-height: 420px; }
  .visual-orbit { width: 330px; height: 330px; }
  .phone { top: 48px; transform: translateX(-50%) scale(.87) rotate(-4deg); }
  .pill-one { left: 7px; top: 75px; }
  .pill-two { right: 7px; bottom: 35px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Article layout */
.article-page { min-height: 65vh; padding: 38px 0 90px; }
.article-breadcrumbs { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0 0 25px; color: #74857f; font-size: .78rem; white-space: nowrap; }
.article-breadcrumbs a { color: var(--green); font-weight: 750; }
.article-breadcrumbs a:hover { text-decoration: underline; }
.article-breadcrumbs span[aria-current="page"] { overflow: hidden; text-overflow: ellipsis; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.article-main { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: 0 12px 42px rgba(16, 63, 47, .055); }
.article-header { padding: 46px 50px 30px; }
.article-category { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 11px; border-radius: 99px; color: var(--green-dark); background: var(--green-soft); font-size: .72rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.article-header h1 { margin: 17px 0 23px; font-size: clamp(2.25rem, 4.8vw, 4.15rem); line-height: 1.07; letter-spacing: -.052em; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 23px; color: var(--muted); font-size: .78rem; }
.article-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 17px; height: 17px; color: var(--green); }
.article-meta strong { color: var(--ink); }
.author-avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: var(--white); background: var(--green); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.article-hero-image { margin: 0; padding: 0 28px 28px; }
.article-hero-image img { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 20px; }
.article-content { padding: 8px 50px 42px; color: #304740; font-size: 1.02rem; line-height: 1.82; }
.article-content > p:first-child { color: #425a52; font-size: 1.12rem; line-height: 1.75; }
.article-content h2, .article-content h3 { color: var(--ink); line-height: 1.23; letter-spacing: -.03em; scroll-margin-top: 105px; }
.article-content h2 { margin: 42px 0 15px; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.article-content h3 { margin: 31px 0 12px; font-size: 1.3rem; }
.article-content p { margin: 0 0 20px; }
.article-content ul, .article-content ol { margin: 0 0 24px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; padding-left: 4px; }
.article-content blockquote { margin: 30px 0; padding: 22px 25px; border-left: 4px solid var(--green); border-radius: 0 16px 16px 0; color: #315247; background: var(--green-soft); }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: .88rem; }
.article-content th, .article-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.article-content th { color: var(--green-dark); background: var(--green-soft); }
.article-content a { color: var(--green); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content img { margin: 28px auto; }
.article-toc { margin: 30px 0 36px; border: 1px solid #cce2d8; border-radius: 18px; background: #f6fbf8; }
.article-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; color: var(--green-dark); font-weight: 900; list-style: none; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary span { display: flex; align-items: center; gap: 10px; }
.article-toc summary span::before { content: ""; width: 18px; height: 14px; border-block: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.article-toc summary small { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.article-toc summary small::after { content: "+"; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--green); background: var(--white); font-size: 1.1rem; }
.article-toc[open] summary small::after { content: "−"; }
.article-toc nav { padding: 0 20px 17px; border-top: 1px solid #dbeae3; }
.article-toc ol { margin: 13px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { position: relative; margin: 0; padding: 8px 0 8px 30px; counter-increment: toc; }
.article-toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 9px; color: #8a9c95; font-size: .68rem; font-weight: 850; }
.article-toc .toc-level-3 { margin-left: 18px; }
.article-toc a { color: #28483d; font-size: .88rem; font-weight: 700; text-decoration: none; }
.article-toc a:hover { color: var(--green); text-decoration: underline; }
.article-footer { padding: 0 50px 45px; }
.article-review-note { padding: 18px 20px; border-radius: 15px; color: #665728; background: #fff8df; font-size: .8rem; line-height: 1.6; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: .76rem; }
.article-tags > span { color: var(--muted); font-weight: 800; }
.article-tags a { padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-dark); background: #f8faf9; }

.article-sidebar { min-width: 0; }
.sidebar-inner { position: sticky; top: 102px; display: grid; gap: 20px; }
.sidebar-widget { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.widget-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.widget-heading-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--green-dark); background: var(--lime); font-size: 1.1rem; font-weight: 900; }
.widget-heading small { display: block; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.widget-heading h2 { margin: 0; font-size: 1.12rem; letter-spacing: -.025em; }
.popular-list { display: grid; margin: 0; padding: 0; list-style: none; }
.popular-list li { border-bottom: 1px solid var(--line); }
.popular-list li:last-child { border-bottom: 0; }
.popular-list a { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: start; padding: 17px 0; }
.popular-rank { color: #a3b2ac; font-size: .74rem; font-weight: 900; line-height: 1.7; }
.popular-copy { min-width: 0; }
.popular-copy strong { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: .84rem; line-height: 1.45; letter-spacing: -.01em; transition: color .2s; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.popular-list a:hover strong { color: var(--green); }
.popular-copy small { display: block; margin-top: 5px; color: #899892; font-size: .64rem; }
.sidebar-empty { margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
.sidebar-cta { position: relative; overflow: hidden; padding: 27px 25px; border-radius: 22px; color: var(--white); background: #0b4938; }
.sidebar-cta::after { content: ""; position: absolute; width: 150px; height: 150px; right: -70px; bottom: -90px; border-radius: 50%; background: rgba(218, 250, 147, .14); }
.sidebar-cta-badge { display: inline-flex; padding: 5px 9px; border-radius: 99px; color: var(--lime); background: rgba(255,255,255,.1); font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.sidebar-cta h2 { margin: 15px 0 8px; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.035em; }
.sidebar-cta p { margin: 0 0 18px; color: #bed6cd; font-size: .8rem; }
.sidebar-cta .btn { position: relative; z-index: 1; width: 100%; color: var(--ink); background: var(--lime); box-shadow: none; }
.sidebar-cta .btn:hover { color: var(--ink); background: var(--yellow); }

@media (max-width: 1020px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar-inner { position: static; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: stretch; }
  .sidebar-cta { display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 760px) {
  .article-page { padding: 25px 0 68px; }
  .article-breadcrumbs { margin-bottom: 18px; }
  .article-main { border-radius: 21px; }
  .article-header { padding: 31px 24px 23px; }
  .article-header h1 { font-size: clamp(2rem, 10.5vw, 3.2rem); }
  .article-meta { gap: 11px 17px; }
  .article-hero-image { padding: 0 15px 20px; }
  .article-hero-image img { border-radius: 15px; }
  .article-content { padding: 5px 24px 32px; font-size: .98rem; }
  .article-footer { padding: 0 24px 32px; }
  .sidebar-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .article-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .article-meta .meta-author { grid-column: 1 / 3; }
  .article-toc summary { padding: 16px; }
  .article-toc nav { padding-inline: 16px; }
  .article-content table { display: block; overflow-x: auto; }
}
