*,
*::before,
*::after { box-sizing: border-box; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at 20% -10%, #1b2a49 0%, #0b111d 36%, #070b12 100%); color: #e8edf5; line-height: 1.65; }
a { color: #81cbff; text-decoration: none; transition: color .2s ease; }
a:hover { color: #b6e4ff; }
.container { width: min(1200px, 92%); margin-inline: auto; }
.site-header, .site-footer { background: rgba(14, 20, 32, .86); border-bottom: 1px solid #22324d; backdrop-filter: blur(10px); }
.site-header { position: sticky; top: 0; z-index: 20; }
.reading-progress { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, #31b0ff, #6f80ff); transition: width .08s linear; }
.site-footer { border-top: 1px solid #22324d; border-bottom: 0; margin-top: 2rem; }
.site-footer p { margin: 0; padding: 1rem 0; color: #9cb0c8; font-size: .92rem; }
.footer-main { display: grid; gap: 1rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 1.35rem 0 .9rem; }
.footer-main section { border: 1px solid #24364f; border-radius: 12px; padding: .9rem; background: rgba(14, 20, 33, .62); }
.footer-main h2, .footer-main h3 { margin: 0 0 .6rem; }
.footer-main h2 { font-size: 1.1rem; color: #eef6ff; }
.footer-main h3 { font-size: .95rem; color: #d5e6fb; }
.footer-brand p { margin: 0; padding: 0; color: #9cb6d3; font-size: .9rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.footer-badges span { font-size: .75rem; border: 1px solid #385276; border-radius: 999px; padding: .2rem .5rem; color: #b7d0eb; background: rgba(17, 31, 51, .64); }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.footer-links a { color: #aecded; font-size: .88rem; }
.footer-links a:hover { color: #e6f3ff; text-decoration: underline; text-underline-offset: 2px; }
.footer-menu { margin-top: .65rem; padding-top: .65rem; border-top: 1px dashed #375275; }
.footer-bottom { display: flex; gap: .8rem; justify-content: space-between; align-items: center; border-top: 1px solid #22324d; padding: .4rem 0 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; padding: 0; color: #8ea8c6; font-size: .85rem; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.site-brand { font-weight: 800; font-size: 1.08rem; color: #fff; letter-spacing: .2px; }
.nav-toggle { display: none; border: 1px solid #365173; background: rgba(20, 30, 47, .7); color: #d4e5f8; border-radius: 10px; padding: .4rem .7rem; font-size: .84rem; }
.site-nav ul { display: flex; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: #bfd0e4; font-size: .94rem; padding: .42rem .72rem; border-radius: 8px; }
.site-nav a:hover { background: rgba(67, 125, 219, .18); color: #fff; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { background: rgba(67, 125, 219, .22); color: #fff; }
.theme-toggle { border: 1px solid #365173; background: rgba(20, 30, 47, .7); color: #d4e5f8; border-radius: 10px; padding: .44rem .7rem; font-size: .84rem; }
.site-main { padding: 1.5rem 0 2.5rem; }
.section { margin-bottom: 2.2rem; }
.defer-section { content-visibility: auto; contain-intrinsic-size: 1px 780px; }
.page-shell { border: 1px solid #27415f; border-radius: 14px; padding: 1rem 1.1rem; background: rgba(14, 22, 37, .66); margin-bottom: .95rem; }
.page-shell h1 { margin: 0 0 .35rem; }
.page-shell p { margin: 0; color: #9cb6d3; }
.archive-meta-bar { margin-top: .6rem; display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; font-size: .88rem; color: #9ab5d3; }
.archive-meta-bar a { color: #9fd0ff; font-weight: 600; }
.active-filter-bar { margin-bottom: .95rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; color: #9cb7d4; font-size: .87rem; }
.hero { padding: 2.2rem; border: 1px solid #2a3b5a; border-radius: 18px; background: linear-gradient(145deg, rgba(20, 31, 54, .95), rgba(11, 17, 29, .96)); box-shadow: 0 16px 40px rgba(4, 11, 26, .35); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; align-items: center; }
.hero h1 { margin: 0 0 .7rem; font-size: clamp(1.55rem, 2.6vw, 2.2rem); line-height: 1.24; }
.hero p { margin: 0; color: #b6c8dc; max-width: 760px; }
.hero-actions { margin-top: 1.15rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: .6rem 1rem; font-weight: 600; font-size: .92rem; }
.btn-primary { background: linear-gradient(135deg, #288dff, #4b66ff); color: #fff; }
.btn-ghost { border: 1px solid #355276; color: #c8ddf4; background: rgba(20, 28, 44, .45); }
.hero-stats { display: grid; gap: .6rem; }
.stat-card { border: 1px solid #2a405f; border-radius: 12px; padding: .75rem .9rem; background: rgba(12, 20, 34, .78); }
.stat-card span { display: block; font-size: .8rem; color: #86a4c6; margin-bottom: .2rem; }
.stat-card strong { font-size: .94rem; color: #e7f3ff; }
.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards .empty-state { grid-column: 1 / -1; }
.journey-grid { display: grid; gap: .8rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journey-step span { display: inline-block; font-size: .74rem; font-weight: 700; color: #86b6ff; margin-bottom: .35rem; }
.journey-step h3 { margin: 0 0 .4rem; font-size: 1rem; }
.journey-step p { margin: 0; color: #99b2cf; font-size: .9rem; }
.card { background: linear-gradient(160deg, rgba(17, 24, 38, .96), rgba(11, 16, 28, .97)); border: 1px solid #25364f; border-radius: 14px; padding: 1rem; box-shadow: 0 10px 24px rgba(5, 12, 28, .25); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: #3a5680; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: .9rem; margin-bottom: .8rem; }
.section-head h2 { margin: 0; font-size: 1.18rem; }
.section-head p { margin: 0; font-size: .88rem; color: #92acc8; }
.filter-bar { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .85rem; border: 1px solid #24364f; border-radius: 12px; background: rgba(14, 20, 33, .75); }
input[type="search"], select { min-width: 180px; border: 1px solid #304968; background: #0d1727; color: #f2f8ff; border-radius: 10px; padding: .6rem .75rem; }
input[type="search"]::placeholder { color: #829ab9; }
button { border: 0; border-radius: 10px; background: linear-gradient(135deg, #2e86ff, #3a60ff); color: #fff; padding: .6rem 1rem; cursor: pointer; font-weight: 600; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.score { font-size: 1.6rem; font-weight: 700; color: #66e0a3; }
.tool-score { color: #66e0a3; font-size: .92rem; margin: 0; }
.score-list { margin: .5rem 0 0; padding-left: 1.1rem; }
.tag-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { padding: .35rem .72rem; border: 1px solid #365173; border-radius: 999px; color: #c8d8ef; font-size: .88rem; background: rgba(16, 25, 41, .85); }
.breadcrumb { margin-bottom: .9rem; color: #9fb1ca; font-size: .9rem; }
.breadcrumb a { color: #9fd0ff; }
.action-bar { display: flex; gap: .6rem; margin-top: .8rem; }
.card-top { display: flex; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.score-pill, .meta-pill { display: inline-block; padding: .22rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.score-pill { background: rgba(38, 216, 155, .18); color: #74f0bc; border: 1px solid rgba(59, 200, 150, .35); }
.meta-pill { background: rgba(72, 128, 255, .16); color: #a9c8ff; border: 1px solid rgba(67, 120, 235, .35); }
.card-link { display: inline-block; margin-top: .55rem; color: #a8d4ff; font-size: .87rem; font-weight: 600; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid #212c40; border-radius: 10px; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.comparison-table th, .comparison-table td { border-bottom: 1px solid #212c40; padding: .65rem .75rem; text-align: left; }
.comparison-table th { background: #131e2f; color: #d7e6fa; }
img { max-width: 100%; height: auto; }
img[loading="lazy"] { opacity: .98; }
.card strong { color: #8cd7ff; }
.taxonomy-intro { margin-bottom: 1rem; }
.faq-list details { border: 1px solid #24324a; border-radius: 8px; padding: .65rem .8rem; margin-bottom: .55rem; background: #111827; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.empty-state { border: 1px dashed #3a5478; border-radius: 10px; background: rgba(15, 22, 35, .72); padding: .85rem 1rem; color: #9fbbd8; }
.skeleton-card { pointer-events: none; }
.skeleton-line { height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(66, 91, 127, .25) 25%, rgba(121, 152, 197, .45) 50%, rgba(66, 91, 127, .25) 75%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; margin-bottom: .55rem; }
.skeleton-line.w100 { width: 100%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w60 { width: 60%; margin-bottom: 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -20% 0; } }
.tool-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; align-items: start; }
.tool-toc { position: sticky; top: 90px; }
.tool-toc h2 { margin-top: 0; font-size: 1rem; }
.tool-toc nav { display: grid; gap: .35rem; }
.tool-toc a { color: #a7c0de; padding: .35rem .45rem; border-radius: 8px; font-size: .9rem; }
.tool-toc a.is-active, .tool-toc a:hover { background: rgba(73, 126, 214, .2); color: #fff; }
.tool-main section { scroll-margin-top: 100px; }
.sticky-cta { margin-top: .9rem; padding-top: .75rem; border-top: 1px dashed #385276; display: grid; gap: .45rem; }
.sticky-cta h3 { margin: 0 0 .2rem; font-size: .9rem; color: #9cb8d8; }
.sticky-cta .btn-primary, .sticky-cta .btn-ghost { width: 100%; text-align: center; }

body.theme-light { background: #f3f7fc; color: #0f1e35; }
body.theme-light .site-header, body.theme-light .site-footer { background: rgba(255, 255, 255, .88); border-color: #d7e3f0; }
body.theme-light .reading-progress { background: linear-gradient(90deg, #2e86ff, #5f7dff); }
body.theme-light .site-brand { color: #0e1f37; }
body.theme-light .site-nav a { color: #35506f; }
body.theme-light .site-nav a:hover { background: rgba(68, 118, 204, .14); color: #0e2f5a; }
body.theme-light .hero, body.theme-light .card, body.theme-light .filter-bar, body.theme-light .stat-card, body.theme-light .faq-list details { background: #ffffff; color: #12243d; border-color: #d5e2ef; box-shadow: 0 8px 20px rgba(16, 40, 78, .08); }
body.theme-light .page-shell { background: #fff; border-color: #d5e2ef; }
body.theme-light .hero p, body.theme-light .section-head p, body.theme-light .site-footer p { color: #4f6784; }
body.theme-light input[type="search"], body.theme-light select { background: #fff; color: #13263f; border-color: #c7d8ea; }
body.theme-light .chip { background: #f5f9ff; color: #345277; border-color: #c6d9ee; }
body.theme-light .tool-toc a { color: #3f5f84; }
body.theme-light .tool-toc a.is-active, body.theme-light .tool-toc a:hover { color: #0f366a; background: rgba(70, 118, 206, .16); }
body.theme-light .sticky-cta { border-top-color: #c7d8ea; }
body.theme-light .active-filter-bar { color: #4e6887; }
body.theme-light .footer-main section { background: #fff; border-color: #d5e2ef; }
body.theme-light .footer-main h2, body.theme-light .footer-main h3 { color: #11335b; }
body.theme-light .footer-brand p, body.theme-light .footer-bottom p { color: #55708f; }
body.theme-light .footer-badges span { background: #f5f9ff; border-color: #c6d9ee; color: #3e5f86; }
body.theme-light .footer-links a { color: #35506f; }
body.theme-light .footer-menu { border-top-color: #c7d8ea; }
body.theme-light .empty-state { border-color: #c2d4e8; background: #f7fbff; color: #466487; }
body.theme-light .journey-step p { color: #55708f; }

@media (max-width: 768px) {
	.nav-wrap { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .45rem; padding: .7rem 0; }
	.nav-toggle { display: inline-flex; justify-content: center; }
	.site-nav { grid-column: 1 / -1; display: none; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-wrap: wrap; justify-content: flex-start; gap: .45rem; padding-top: .35rem; }
	.hero { padding: 1.1rem; }
	.hero-grid { grid-template-columns: 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; gap: .2rem; }
	.filter-bar { padding: .65rem; }
	.archive-meta-bar { gap: .55rem; }
	.journey-grid { grid-template-columns: 1fr; }
	.tool-layout { grid-template-columns: 1fr; }
	.tool-toc { position: static; }
	.footer-main { grid-template-columns: 1fr; padding-top: 1rem; }
	.footer-bottom { align-items: flex-start; }
}
