:root {
    --vp-ink: #171b2e;
    --vp-muted: #697086;
    --vp-violet: #4d3bfe;
    --vp-line: #e7e9f1;
    --vp-paper: #fff;
}
body { background: #f4f5fa; color: var(--vp-ink); }
.vp-container { width: calc(100% - 64px); max-width: 1240px; margin: 0 auto; }
.vp-icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.vp-site-header { background: var(--vp-paper); border-bottom: 1px solid var(--vp-line); }
.vp-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 22px; padding-bottom: 22px; }
.vp-brand { flex: 0 0 auto; line-height: 1; }
.vp-brand .custom-logo-link { display: block; width: fit-content; max-width: 100%; }
.vp-brand .custom-logo { display: block; width: 232px; max-width: 100%; height: auto; max-height: 66px; object-fit: contain; object-position: left center; }
.vp-brand__text { font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--vp-ink); }
.vp-brand__tagline { display: block; margin: 7px 0 0 2px; font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: .03em; color: var(--vp-muted); }
.vp-header-tools { display: flex; align-items: center; gap: 18px; }
.vp-header-search { display: flex; align-items: center; width: 285px; height: 44px; border: 1px solid var(--vp-line); border-radius: 9px; background: #f8f9fc; transition: border-color .15s, box-shadow .15s; }
.vp-header-search:focus-within { border-color: var(--vp-violet); box-shadow: 0 0 0 3px #4d3bfe12; }
.vp-header-search input[type="search"] { width: 100%; min-width: 0; border: 0; border-radius: 9px; padding: 11px 0 11px 14px; background: transparent; color: var(--vp-ink); font: inherit; font-size: 13px; outline: none; }
.vp-header-search input::placeholder { color: #858b9e; opacity: 1; }
.vp-header-search button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--vp-muted); padding: 0; cursor: pointer; }
.vp-header-search button:hover { color: var(--vp-violet); }
.vp-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 11px 16px; border-radius: 9px; background: var(--vp-violet); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; }
.vp-button:hover { color: #fff; background: #3e2be0; transform: translateY(-1px); text-decoration: none; }
.vp-primary-nav { display: block; border-top: 1px solid #f0f1f6; background: #fff; }
.vp-primary-nav #header_menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.vp-primary-nav #header_menu > li { position: relative; margin: 0; padding: 0; }
.vp-primary-nav #header_menu > li > a { display: block; padding: 17px 0; color: #41465d; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.5; border-bottom: 2px solid transparent; }
.vp-primary-nav #header_menu > li > a:hover, .vp-primary-nav #header_menu > .current-menu-item > a { color: var(--vp-violet); border-bottom-color: var(--vp-violet); }
.vp-primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 220px; margin: 0; padding: 10px; list-style: none; border: 1px solid var(--vp-line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px #171b2e12; }
.vp-primary-nav li:hover > .sub-menu, .vp-primary-nav li:focus-within > .sub-menu { display: block; }
.vp-primary-nav .sub-menu a { display: block; padding: 9px; color: var(--vp-ink); font-size: 13px; text-decoration: none; }
.vp-primary-nav .sub-menu a:hover { color: var(--vp-violet); background: #f5f4ff; }
.vp-menu-toggle { display: none; }

/* The content remains in the original main/sidebar layout. */
.site-content.fixed { width: calc(100% - 64px); max-width: 1240px; margin: 32px auto 0; padding: 36px; border: 1px solid var(--vp-line); border-radius: 16px; box-shadow: 0 6px 30px #171b2e03; }
.site-main { min-width: 0; }
.vp-home-intro { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--vp-line); }
.vp-eyebrow { margin: 0 0 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--vp-violet); }
.vp-home-intro h1 { margin: 0 0 14px; max-width: 660px; color: var(--vp-ink); font-size: clamp(27px, 2.8vw, 38px); line-height: 1.2; letter-spacing: -.045em; font-weight: 800; }
.vp-home-intro__lead { max-width: 610px; margin: 0; color: var(--vp-muted); font-size: 15px; line-height: 1.8; }
.vp-topic-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.vp-topic-links a { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #e6e2ff; border-radius: 7px; padding: 8px 11px; background: #f8f7ff; color: #4b40b5; font-size: 11px; font-weight: 600; text-decoration: none; }
.vp-topic-links a:hover { background: #f0edff; border-color: #cfc7ff; }
.vp-topic-links .vp-icon { width: 15px; height: 15px; }
.vp-feed-title { margin: 0 0 22px; font-size: 19px; letter-spacing: -.025em; font-weight: 700; }
.site-main > .post-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.site-main > .post-cards > .post-card--standard { display: flex; flex-direction: column; width: auto; min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--vp-line); border-radius: 11px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.site-main > .post-cards > .post-card--standard::after { display: none; }
.site-main > .post-cards > .post-card--standard:hover { border-color: #d4cef7; box-shadow: 0 8px 22px #171b2e08; transform: translateY(-2px); }
.post-card--standard .post-card__thumbnail { order: 0; position: relative; margin: 0; }
.post-card--standard .post-card__thumbnail > a { display: block; }
.post-card--standard .post-card__thumbnail img { display: block; width: 100%; height: auto; aspect-ratio: 87 / 40; object-fit: cover; }
.site .post-card--standard .post-card__thumbnail .post-card__category { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); margin: 0; padding: 5px 8px; border-radius: 5px; font-size: 9px; line-height: 1.3; font-weight: 600; background: #4d3bfeee; color: #fff; }
.post-card--standard .post-card__title { order: 1; margin: 0; padding: 17px 17px 10px; font-size: 16px; line-height: 1.45; font-weight: 700; letter-spacing: -.025em; }
.post-card--standard .post-card__title a { color: var(--vp-ink); text-decoration: none; }
.post-card--standard .post-card__title a:hover { color: var(--vp-violet); }
.post-card--standard .post-card__meta { order: 2; gap: 5px 10px; padding: 0 17px; margin-bottom: 10px; color: var(--vp-muted); opacity: 1; font-size: 11px; line-height: 1.7; }
.post-card--standard .post-card__meta > span { padding-left: 0; }
.post-card--standard .post-card__meta > span::before { display: none; }
.post-card--standard .post-card__meta > span + span { padding-left: 10px; }
.post-card--standard .post-card__meta > span + span::before { display: block; content: "·"; color: #a1a7b9; font: inherit; }
.post-card--standard .post-card__description { order: 3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 17px 19px; padding: 0; color: #697086; font-size: 13px; line-height: 1.8; }
.site-main .pagination { margin: 32px 0 12px; }
.site-main .page-numbers { border-radius: 7px; }
.entry-title, .page-title { color: var(--vp-ink); letter-spacing: -.035em; line-height: 1.3; }
.entry-title { margin-top: 18px; font-size: clamp(27px, 2.8vw, 36px); }
.breadcrumb { color: var(--vp-muted); font-size: 11px; line-height: 1.8; }
.entry-content { color: #30364a; font-size: 16px; line-height: 1.9; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content h2 { margin-top: 1.65em; color: var(--vp-ink); font-size: 1.45em; letter-spacing: -.025em; line-height: 1.4; }
.entry-content h3 { color: var(--vp-ink); font-size: 1.16em; line-height: 1.5; }
.entry-content table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: .87em; }
.entry-content th { padding: 12px; background: #f3f1ff; color: var(--vp-ink); text-align: left; }
.entry-content td { padding: 12px; border-bottom: 1px solid var(--vp-line); vertical-align: top; }
.widget-area .widget-title { color: var(--vp-ink); font-size: 17px; letter-spacing: -.02em; }
.widget-area .widget_search { display: none; }
.widget-area .widget_categories > ul { overflow: hidden; border-radius: 10px; border-color: var(--vp-line); }
.widget-area .widget_categories > ul a { color: #555d74; font-size: 12px; }
.widget-area .widget_categories > ul a:hover { color: var(--vp-violet); }

.vp-site-footer { display: block; margin-top: 48px; padding: 50px 0 0; background: #171b2e; color: #d8dbea; }
.vp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 40px; }
.vp-brand--footer .custom-logo { width: 220px; filter: brightness(0) invert(1); }
.vp-brand--footer .vp-brand__text { color: #fff; }
.vp-footer-brand > p { max-width: 270px; margin: 20px 0 18px; font-size: 13px; line-height: 1.9; color: #adb4ce; }
.vp-footer-start { display: inline-flex; align-items: center; gap: 12px; color: #c4bdff; font-size: 11px; font-weight: 600; text-decoration: none; }
.vp-footer-start:hover { color: #fff; }
.vp-footer-nav h2 { margin: 0 0 18px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.6; }
.vp-footer-menu { list-style: none; margin: 0; padding: 0; }
.vp-footer-menu li { margin: 0 0 11px; padding: 0; line-height: 1.6; }
.vp-footer-menu a { color: #b5bdd6; font-size: 13px; text-decoration: none; }
.vp-footer-menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.vp-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid #ffffff16; color: #959fbe; font-size: 10px; }
.vp-footer-bottom p { margin: 0; }
.vp-backtop { display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; border: 0; background: transparent; color: #cbd1e4; font: inherit; cursor: pointer; }
.vp-backtop .vp-icon { width: 16px; height: 16px; }
.vp-site-header a:focus-visible, .vp-site-header button:focus-visible, .vp-site-footer a:focus-visible, .vp-site-footer button:focus-visible, .vp-topic-links a:focus-visible { outline: 2px solid #8274ff; outline-offset: 4px; }
@media (min-width: 1024px) {
    .site-content .content-area { max-width: calc(100% - 270px); flex: 0 0 calc(100% - 270px); padding-right: 36px; }
    .site-content .widget-area { display: block; max-width: 270px; flex: 0 0 270px; }
}
@media (max-width: 1199px) {
    .vp-primary-nav #header_menu { gap: 4px 20px; }
    .vp-primary-nav #header_menu > li > a { font-size: 12px; }
    .vp-header-search { width: 235px; }
    .vp-footer-grid { gap: 24px; }
}
@media (max-width: 1023px) {
    .site-content .content-area { max-width: 100%; flex: 0 0 100%; padding: 0; }
    .site-content .widget-area { display: none; }
    .site-content.fixed { padding: 28px; }
    .vp-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vp-footer-brand { grid-column: 1 / -1; }
    .vp-footer-brand > p { max-width: 480px; }
}
@media (max-width: 899px) {
    .vp-header-bar { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 18px 16px; padding: 18px 0; }
    .vp-header-tools { grid-column: 1 / -1; width: 100%; }
    .vp-header-search { width: 100%; }
    .vp-header-search input[type="search"] { font-size: 16px; }
    .vp-header-learn { display: none; }
    .vp-brand .custom-logo { width: 208px; max-height: 56px; }
    .vp-menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 1px solid var(--vp-line); border-radius: 8px; background: #fff; color: var(--vp-ink); cursor: pointer; }
    .vp-menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .15s, opacity .15s; }
    .vp-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .vp-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .vp-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .vp-primary-nav { display: none; }
    .vp-primary-nav.is-open { display: block; }
    .vp-primary-nav #header_menu { display: block; padding: 7px 0 12px; }
    .vp-primary-nav #header_menu > li > a { padding: 11px 0; font-size: 13px; border: 0; }
    .vp-primary-nav .sub-menu { display: block; position: static; box-shadow: none; min-width: 0; border: 0; background: #f7f7fc; }
}
@media (max-width: 639px) {
    .vp-container, .site-content.fixed { width: calc(100% - 32px); }
    .site-content.fixed { margin-top: 18px; padding: 22px 18px; border-radius: 12px; }
    .vp-home-intro { margin-bottom: 24px; padding-bottom: 24px; }
    .vp-home-intro h1 { font-size: 29px; line-height: 1.25; }
    .vp-home-intro__lead { font-size: 14px; }
    .site-main > .post-cards { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .post-card--standard .post-card__title { font-size: 17px; }
    .post-card--standard .post-card__meta { font-size: 11px; }
    .post-card--standard .post-card__description { font-size: 13px; }
    .entry-content { font-size: 16px; }
    .entry-title { font-size: 27px; }
    .vp-site-footer { margin-top: 28px; padding-top: 36px; }
    .vp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-bottom: 26px; }
    .vp-footer-nav:last-child { grid-column: 1 / -1; }
    .vp-footer-nav:last-child .vp-footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
    .vp-footer-nav h2 { font-size: 14px; }
    .vp-footer-menu a { font-size: 13px; }
    .vp-footer-bottom { flex-wrap: wrap; gap: 10px 20px; padding: 18px 0; }
    .vp-footer-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .vp-button, .vp-menu-toggle span, .site-main > .post-cards > .post-card--standard { transition: none; }
    .vp-button:hover, .site-main > .post-cards > .post-card--standard:hover { transform: none; }
}
