:root {
    --ygt-bg: #ffffff;
    --ygt-bg-subtle: #f6f8fa;
    --ygt-card: #ffffff;
    --ygt-card-soft: #f6f8fa;
    --ygt-border: #d0d7de;
    --ygt-border-muted: #d8dee4;
    --ygt-text: #1f2328;
    --ygt-muted: #59636e;
    --ygt-link: #0969da;
    --ygt-green: #1f883d;
    --ygt-green-strong: #2da44e;
    --ygt-blue: #0969da;
    --ygt-shadow: 0 1px 0 rgba(31, 35, 40, 0.04);
    --ygt-shadow-hover: 0 8px 28px rgba(140, 149, 159, 0.18);
    --ygt-radius: 8px;
    --ygt-radius-small: 6px;
    --ygt-container: 1320px;
    --ygt-code-bg: #f6f8fa;
    --ygt-code-text: #1f2328;
    --ygt-logo-max-width: 210px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding-top: 68px;
    background: var(--ygt-bg);
    color: var(--ygt-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ygt-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ygt-container { width: min(calc(100% - 32px), var(--ygt-container)); margin: 0 auto; }
.ygt-main { min-height: 60vh; }

/* Header */
.ygt-site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; width: 100%;
    background: color-mix(in srgb, var(--ygt-bg) 94%, transparent);
    border-bottom: 1px solid var(--ygt-border);
    backdrop-filter: blur(14px);
}
body.admin-bar .ygt-site-header { top: 32px; }
.ygt-header-inner { height: 68px; min-height: 68px; display: flex; align-items: center; gap: 18px; overflow: visible; }
.ygt-brand { flex: 0 1 var(--ygt-logo-max-width); display: flex; align-items: center; min-width: 0; max-width: var(--ygt-logo-max-width); color: var(--ygt-text); overflow: hidden; }
.ygt-brand-fallback { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ygt-text); }
.ygt-brand-fallback:hover { text-decoration: none; }
.ygt-brand-mark { width: 34px; height: 34px; color: #fff; display: grid; place-items: center; background: var(--ygt-green); border-radius: 7px; }
.ygt-brand-mark svg { width: 24px; height: 24px; fill: currentColor; }
.ygt-brand-logo { display: block; width: 100%; min-width: 0; }
.ygt-brand-logo .custom-logo-link { display: flex; align-items: center; max-width: 100%; height: 48px; overflow: hidden; }
.ygt-brand-logo img { display: block; width: auto; height: auto; max-width: var(--ygt-logo-max-width); max-height: 46px; object-fit: contain; object-position: left center; }
.ygt-brand-logo-link { display: flex; align-items: center; max-width: 100%; height: 48px; overflow: hidden; border-radius: 6px; }
.ygt-brand-logo-image { display: block; width: auto; height: auto; max-width: var(--ygt-logo-max-width); max-height: 46px; object-fit: contain; object-position: left center; }
.ygt-brand-logo-dark { display: none; }
[data-theme="dark"] .ygt-brand-logo-light { display: none; }
[data-theme="dark"] .ygt-brand-logo-dark { display: block; }
[data-theme="dark"] .ygt-brand--auto-contrast .ygt-brand-logo-light { display: block; }
[data-theme="dark"] .ygt-brand--auto-contrast .ygt-brand-logo-link { padding: 0; background: transparent; }
[data-theme="dark"] .ygt-brand--auto-contrast .ygt-brand-logo-light { filter: grayscale(1) brightness(0) invert(1); opacity: .96; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .ygt-brand-logo-light { display: none; }
    :root:not([data-theme]) .ygt-brand-logo-dark { display: block; }
    :root:not([data-theme]) .ygt-brand--auto-contrast .ygt-brand-logo-light { display: block; filter: grayscale(1) brightness(0) invert(1); opacity: .96; }
    :root:not([data-theme]) .ygt-brand--auto-contrast .ygt-brand-logo-link { padding: 0; background: transparent; }
}
.ygt-brand-copy { display: grid; line-height: 1.2; min-width: 0; }
.ygt-brand-copy strong { font-size: 17px; color: var(--ygt-text); white-space: nowrap; }
.ygt-brand-copy small { color: var(--ygt-muted); font-size: 10px; margin-top: 3px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ygt-v2-brand { overflow: visible; max-width: none; flex: 0 0 auto; }
.ygt-v2-brand-link { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--ygt-text); text-decoration: none; }
.ygt-v2-brand-link:hover { text-decoration: none; }
.ygt-v2-brand-mark { display: block; width: 38px; height: 38px; flex: 0 0 38px; }
.ygt-v2-brand-copy { display: grid; min-width: 0; line-height: 1.1; }
.ygt-v2-brand-copy strong { color: var(--ygt-text); font-size: 17px; font-weight: 760; letter-spacing: -.02em; white-space: nowrap; }
.ygt-v2-brand-copy small { margin-top: 4px; color: var(--ygt-muted); font: 650 9px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .045em; white-space: nowrap; }
.ygt-v2-brand--footer .ygt-v2-brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
.ygt-v2-brand--footer .ygt-v2-brand-copy strong { font-size: 20px; }
.ygt-v2-brand--footer .ygt-v2-brand-copy small { font-family: inherit; font-size: 11px; letter-spacing: 0; }
.ygt-v2-brand-mark-only img { display: block; width: 40px; height: 40px; }
.ygt-primary-nav { flex: 1 1 auto; min-width: 0; }
.ygt-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; gap: 4px; }
.ygt-menu li { margin: 0; }
.ygt-menu a { display: block; padding: 10px 11px; border-radius: 6px; color: var(--ygt-text); font-weight: 600; font-size: 14px; }
.ygt-menu a:hover { background: var(--ygt-bg-subtle); text-decoration: none; }
.ygt-header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: auto; }
.ygt-home-link { height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; color: var(--ygt-text); font-weight: 650; font-size: 14px; white-space: nowrap; }
.ygt-home-link:hover { background: var(--ygt-bg-subtle); border-color: var(--ygt-border); text-decoration: none; }
.ygt-header-search { width: clamp(170px, 15vw, 230px); }
.ygt-icon-button, .ygt-menu-button, .ygt-account-button {
    height: 36px; border: 1px solid var(--ygt-border); background: var(--ygt-card); color: var(--ygt-text);
    border-radius: 6px; display: inline-grid; place-items: center; padding: 0 12px; cursor: pointer; font-weight: 600;
}
.ygt-account-button { min-width: 56px; background: var(--ygt-green); border-color: var(--ygt-green); color: #fff; white-space: nowrap; line-height: 1; }
.ygt-account-button:hover { background: var(--ygt-green-strong); text-decoration: none; }
.ygt-menu-button { display: none; width: 40px; padding: 0; }
.ygt-mobile-account-button { display: none; }

/* Hero */
.ygt-hero { border-bottom: 1px solid var(--ygt-border); background: linear-gradient(180deg, var(--ygt-bg), var(--ygt-bg-subtle)); overflow: hidden; }
.ygt-hero-grid { min-height: 310px; padding: 28px 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); align-items: center; gap: 52px; }
.ygt-hero-grid--single { min-height: 280px; grid-template-columns: minmax(0, 860px); justify-content: center; }
.ygt-hero-copy { min-width: 0; }
.ygt-eyebrow { margin: 0 0 8px; color: var(--ygt-green); font-weight: 700; letter-spacing: .04em; }
.ygt-hero h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -.035em; color: var(--ygt-text); }
.ygt-hero-lead { margin: 14px 0 0; font-size: 20px; font-weight: 650; color: var(--ygt-text); }
.ygt-hero-description { max-width: 690px; margin: 10px 0 0; color: var(--ygt-muted); font-size: 16px; }
.ygt-hero-actions { display: flex; gap: 10px; margin-top: 18px; }
.ygt-button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-card); color: var(--ygt-text); font-weight: 650; display: inline-flex; align-items: center; justify-content: center; }
.ygt-button:hover { text-decoration: none; border-color: var(--ygt-muted); }
.ygt-button-primary { background: var(--ygt-green); border-color: var(--ygt-green); color: #fff; }
.ygt-button-primary:hover { background: var(--ygt-green-strong); border-color: var(--ygt-green-strong); }
.ygt-stats { margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 680px; }
.ygt-stat { padding-right: 22px; min-width: 0; }
.ygt-stat + .ygt-stat { border-left: 1px solid var(--ygt-border); padding-left: 22px; }
.ygt-stat strong { display: block; font-size: 21px; line-height: 1.2; color: var(--ygt-text); }
.ygt-stat span { display: block; margin-top: 6px; color: var(--ygt-muted); font-size: 12px; }
.ygt-code-visual { position: relative; min-height: 250px; padding: 46px 30px 30px; border: 1px solid var(--ygt-border); border-radius: 12px; background: var(--ygt-card); box-shadow: var(--ygt-shadow-hover); transform: perspective(900px) rotateY(-3deg); }
.ygt-code-toolbar { position: absolute; left: 0; right: 0; top: 0; height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--ygt-border); background: var(--ygt-bg-subtle); border-radius: 12px 12px 0 0; }
.ygt-code-toolbar span { width: 10px; height: 10px; border-radius: 50%; background: #afb8c1; }
.ygt-code-toolbar span:first-child { background: #cf222e; }.ygt-code-toolbar span:nth-child(2) { background: #bf8700; }.ygt-code-toolbar span:nth-child(3) { background: #1a7f37; }
.ygt-code-toolbar em { margin-left: 7px; color: var(--ygt-muted); font-size: 12px; font-style: normal; }
.ygt-code-visual pre { margin: 0; overflow: hidden; background: transparent; color: var(--ygt-code-text); font: 600 15px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ygt-code-comment { color: #6e7781; }.ygt-code-keyword { color: #cf222e; }.ygt-code-fn { color: #8250df; }.ygt-code-string { color: #0a3069; }
.ygt-float-badge { position: absolute; padding: 7px 10px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-card); color: var(--ygt-text); font: 700 12px ui-monospace, monospace; box-shadow: var(--ygt-shadow); }
.ygt-float-badge-a { right: 34px; top: -18px; }.ygt-float-badge-b { right: -20px; bottom: 62px; }.ygt-float-badge-c { left: -18px; bottom: 34px; }

/* Categories */
.ygt-category-section { padding: 24px 0 10px; background: var(--ygt-bg); }
.ygt-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ygt-category-card { min-width: 0; min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--ygt-border); border-radius: var(--ygt-radius); background: var(--ygt-card); color: var(--ygt-text); box-shadow: var(--ygt-shadow); }
.ygt-category-card:hover { border-color: #8c959f; box-shadow: var(--ygt-shadow-hover); text-decoration: none; }
.ygt-category-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--ygt-green) 12%, var(--ygt-card)); color: var(--ygt-green); font: 800 12px ui-monospace, monospace; }
.ygt-category-copy { min-width: 0; display: grid; gap: 3px; }
.ygt-category-copy strong { font-size: 14px; line-height: 1.25; color: var(--ygt-text); white-space: normal; overflow-wrap: anywhere; }
.ygt-category-copy small { font-size: 10px; color: var(--ygt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Content and article cards */
.ygt-content-section { padding: 28px 0 50px; }
.ygt-section-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.ygt-section-kicker { display: block; margin-bottom: 4px; color: var(--ygt-green); font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .12em; }
.ygt-section-header h2 { margin: 0; color: var(--ygt-text); font-size: 24px; }
.ygt-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ygt-content-layout > * { min-width: 0; }
.ygt-content-layout--full { grid-template-columns: minmax(0, 1fr); }
.ygt-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.ygt-post-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--ygt-border); border-radius: var(--ygt-radius); background: var(--ygt-card); box-shadow: var(--ygt-shadow); }
.ygt-post-card:hover { border-color: #8c959f; box-shadow: var(--ygt-shadow-hover); }
.ygt-post-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--ygt-border); background: var(--ygt-code-bg); }
.ygt-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.ygt-generated-cover { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 16px 18px 14px; background: linear-gradient(145deg, #ffffff 0%, #f6f8fa 58%, #eef7f0 100%); color: #1f2328; }
.ygt-cover-grid { position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(208,215,222,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(208,215,222,.55) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom right, rgba(0,0,0,.9), transparent 78%); }
.ygt-cover-chrome { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; min-width: 0; color: #57606a; font: 650 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ygt-cover-dots { display: inline-flex; gap: 4px; flex: 0 0 auto; }.ygt-cover-dots i { width: 7px; height: 7px; border-radius: 50%; background: #cf222e; }.ygt-cover-dots i:nth-child(2){background:#bf8700}.ygt-cover-dots i:nth-child(3){background:#1a7f37}
.ygt-cover-kicker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ygt-cover-content { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; }
.ygt-cover-category { max-width: 88%; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--ygt-green) 30%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--ygt-green) 10%, #fff); color: #116329; font-size: 10px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ygt-cover-title { width: 100%; color: #1f2328; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.28; letter-spacing: -.015em; font-weight: 800; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; text-wrap: balance; }
.ygt-cover-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #57606a; font: 650 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ygt-sticky-badge { position: absolute; top: 10px; right: 10px; padding: 3px 7px; border-radius: 999px; background: #cf222e; color: #fff; font-size: 10px; font-weight: 700; }
.ygt-post-body { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 15px; }
.ygt-post-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin-bottom: 9px; }
.ygt-post-category { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ygt-green) 12%, var(--ygt-card)); color: var(--ygt-green); font-size: 11px; font-weight: 700; }
.ygt-post-category:hover { text-decoration: none; background: color-mix(in srgb, var(--ygt-green) 18%, var(--ygt-card)); }
.ygt-post-language { color: var(--ygt-green); font-size: 10px; }
.ygt-post-title { margin: 0; min-width: 0; font-size: 18px; line-height: 1.45; }
.ygt-post-title a { color: var(--ygt-text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.ygt-post-title a:hover { color: var(--ygt-link); text-decoration: none; }
.ygt-post-excerpt { min-width: 0; margin: 9px 0 14px; color: var(--ygt-muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.ygt-post-meta { min-width: 0; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ygt-border-muted); display: flex; align-items: center; gap: 10px; color: var(--ygt-muted); font-size: 11px; white-space: nowrap; }
.ygt-post-save { margin-left: auto; font-size: 16px; color: var(--ygt-muted); }
.ygt-empty-state { grid-column: 1 / -1; padding: 56px 24px; border: 1px dashed var(--ygt-border); border-radius: var(--ygt-radius); text-align: center; background: var(--ygt-bg-subtle); }
.ygt-empty-state h2 { margin: 10px 0 4px; }.ygt-empty-state p { color: var(--ygt-muted); margin: 0 0 18px; }
.ygt-empty-icon { font: 800 28px ui-monospace, monospace; color: var(--ygt-green); }

/* Search and sidebar */
.ygt-search-form { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.ygt-search-form input[type="search"] { width: 100%; min-width: 0; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-bg-subtle); color: var(--ygt-text); outline: none; }
.ygt-search-form input[type="search"]:focus { border-color: var(--ygt-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ygt-green) 20%, transparent); background: var(--ygt-card); }
.ygt-search-icon { position: absolute; left: 11px; z-index: 1; color: var(--ygt-muted); pointer-events: none; }
.ygt-search-form button { position: static; min-width: 62px; height: 36px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--ygt-green) 75%, #0000); border-radius: 6px; background: var(--ygt-green); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.ygt-search-form button:hover { filter: brightness(.94); color: #fff; }
.ygt-search-form button:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ygt-green) 24%, transparent); }
.ygt-search-form button:active { transform: translateY(1px); }
.ygt-sidebar { min-width: 0; display: grid; gap: 12px; }
.ygt-sidebar-card, .ygt-widget { min-width: 0; padding: 16px; border: 1px solid var(--ygt-border); border-radius: var(--ygt-radius); background: var(--ygt-card); box-shadow: var(--ygt-shadow); }
.ygt-profile-head { display: flex; align-items: center; gap: 12px; }
.ygt-profile-avatar { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ygt-border); }
.ygt-profile-copy { min-width: 0; display: grid; gap: 2px; }
.ygt-profile-copy strong { color: var(--ygt-text); font-size: 17px; }
.ygt-profile-copy span { color: var(--ygt-muted); font-size: 11px; }
.ygt-profile-card > p { margin: 14px 0; color: var(--ygt-muted); font-size: 13px; }
.ygt-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 0; border-top: 1px solid var(--ygt-border); border-bottom: 1px solid var(--ygt-border); }
.ygt-profile-stats div { min-width: 0; text-align: center; }
.ygt-profile-stats div + div { border-left: 1px solid var(--ygt-border); }
.ygt-profile-stats strong { display: block; color: var(--ygt-text); font-size: 15px; }
.ygt-profile-stats span { color: var(--ygt-muted); font-size: 10px; }
.ygt-profile-action { width: 100%; margin-top: 14px; }
.ygt-sidebar-title, .ygt-widget-title { margin: 0; color: var(--ygt-text); font-size: 15px; }
.ygt-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ygt-sidebar-heading > span { color: var(--ygt-muted); font-size: 10px; }
.ygt-search-card .ygt-sidebar-title { margin-bottom: 10px; }
.ygt-popular-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ygt-popular-list li { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: start; }
.ygt-popular-rank { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ygt-bg-subtle); color: var(--ygt-text); font: 700 10px ui-monospace, monospace; }
.ygt-popular-list li:nth-child(-n+3) .ygt-popular-rank { background: var(--ygt-green); color: #fff; }
.ygt-popular-copy { min-width: 0; display: grid; gap: 3px; }
.ygt-popular-copy a { min-width: 0; color: var(--ygt-text); font-size: 12px; font-weight: 650; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.ygt-popular-copy a:hover { color: var(--ygt-link); text-decoration: none; }
.ygt-popular-copy small { color: var(--ygt-muted); font-size: 10px; }
.ygt-tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.ygt-tag-list a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--ygt-border); border-radius: 999px; background: var(--ygt-bg-subtle); color: var(--ygt-text); font-size: 10px; }
.ygt-tag-list a:hover { border-color: var(--ygt-muted); text-decoration: none; }
.ygt-tag-list span { color: var(--ygt-muted); }
.ygt-muted { color: var(--ygt-muted); }
.ygt-widget ul { margin: 10px 0 0; padding-left: 20px; }

/* Listings */
.ygt-listing-page { padding: 34px 0 54px; background: var(--ygt-bg); }
.ygt-archive-head { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ygt-border); }
.ygt-archive-head h1 { margin: 4px 0 6px; color: var(--ygt-text); font-size: clamp(26px, 4vw, 38px); line-height: 1.2; }
.ygt-archive-head p, .ygt-archive-description { margin: 0; color: var(--ygt-muted); }
.navigation.pagination { margin-top: 20px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 9px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-card); color: var(--ygt-text); font-size: 12px; }
.page-numbers.current, .page-numbers:hover { border-color: var(--ygt-green); background: var(--ygt-green); color: #fff; text-decoration: none; }
.ygt-404 { min-height: 65vh; display: grid; place-items: center; padding: 60px 0; }
.ygt-404-inner { max-width: 620px; text-align: center; }
.ygt-404-code { color: var(--ygt-green); font: 800 clamp(60px, 12vw, 120px)/1 ui-monospace, monospace; letter-spacing: -.08em; }
.ygt-404 h1 { margin: 12px 0 6px; font-size: 30px; color: var(--ygt-text); }
.ygt-404 p { color: var(--ygt-muted); margin: 0 auto 18px; }
.ygt-404-search { max-width: 460px; margin: 0 auto 14px; }

/* README-style article */
.ygt-article-shell { padding: 34px 0 60px; background: var(--ygt-bg); }
.ygt-article { max-width: 880px; margin: 0 auto; min-width: 0; }
.ygt-article-header { padding-bottom: 24px; border-bottom: 1px solid var(--ygt-border); }
.ygt-article-breadcrumb { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; color: var(--ygt-muted); font-size: 12px; }
.ygt-article-breadcrumb a { color: var(--ygt-muted); }
.ygt-article-header h1 { margin: 0; color: var(--ygt-text); font-size: clamp(32px, 5vw, 48px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ygt-article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: var(--ygt-muted); font-size: 12px; }
.ygt-article-taxonomy { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; }
.ygt-article-categories, .ygt-article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ygt-article-categories a, .ygt-article-tags a { padding: 3px 8px; border: 1px solid var(--ygt-border); border-radius: 999px; background: var(--ygt-bg-subtle); color: var(--ygt-text); font-size: 11px; }
.ygt-article-cover { margin: 22px 0 0; overflow: hidden; border: 1px solid var(--ygt-border); border-radius: var(--ygt-radius); background: var(--ygt-bg-subtle); }
.ygt-article-cover img { width: 100%; height: auto; }
.ygt-entry-content { min-width: 0; padding: 30px 0 12px; color: var(--ygt-text); font-size: 16px; line-height: 1.86; overflow-wrap: anywhere; }
.ygt-entry-content > *:first-child { margin-top: 0; }
.ygt-entry-content h2, .ygt-entry-content h3, .ygt-entry-content h4 { position: relative; scroll-margin-top: 92px; color: var(--ygt-text); line-height: 1.35; }
.ygt-entry-content h2 { margin: 38px 0 16px; padding-bottom: 9px; border-bottom: 1px solid var(--ygt-border); font-size: 26px; }
.ygt-entry-content h3 { margin: 30px 0 13px; font-size: 21px; }
.ygt-entry-content h2::before { content: '#'; position: absolute; left: -22px; color: var(--ygt-green); font: 700 .8em ui-monospace, monospace; opacity: .85; }
.ygt-entry-content h3::before { content: '##'; position: absolute; left: -32px; color: var(--ygt-green); font: 700 .58em ui-monospace, monospace; opacity: .75; top: .45em; }
.ygt-entry-content a { color: var(--ygt-link); text-decoration: underline; text-underline-offset: 2px; }
.ygt-entry-content p, .ygt-entry-content ul, .ygt-entry-content ol { margin: 0 0 18px; }
.ygt-entry-content ul, .ygt-entry-content ol { padding-left: 1.55em; }
.ygt-entry-content blockquote { margin: 20px 0; padding: 3px 0 3px 16px; border-left: 4px solid var(--ygt-border); color: var(--ygt-muted); }
.ygt-entry-content blockquote > :last-child { margin-bottom: 0; }
.ygt-entry-content code { padding: .18em .36em; border-radius: 4px; background: var(--ygt-code-bg); color: var(--ygt-code-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.ygt-entry-content pre { max-width: 100%; overflow-x: auto; margin: 20px 0; padding: 16px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-code-bg); color: var(--ygt-code-text); font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ygt-entry-content pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.ygt-entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-spacing: 0; border-collapse: collapse; margin: 20px 0; }
.ygt-entry-content th, .ygt-entry-content td { padding: 9px 12px; border: 1px solid var(--ygt-border); text-align: left; white-space: nowrap; }
.ygt-entry-content th { background: var(--ygt-bg-subtle); font-weight: 700; }
.ygt-entry-content img { border-radius: 6px; }
.ygt-entry-content hr { border: 0; border-top: 1px solid var(--ygt-border); margin: 30px 0; }
.ygt-page-links { margin: 24px 0; padding: 12px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-bg-subtle); }
.ygt-article-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ygt-border); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.post-navigation a { min-width: 0; display: grid; gap: 3px; padding: 14px; border: 1px solid var(--ygt-border); border-radius: 6px; color: var(--ygt-text); }
.post-navigation a:hover { border-color: var(--ygt-muted); text-decoration: none; }
.ygt-nav-label { color: var(--ygt-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.post-navigation strong { overflow-wrap: anywhere; }
.ygt-toc { position: sticky; top: 92px; padding: 14px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-card); color: var(--ygt-muted); }

/* Comments */
.ygt-comments-area { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--ygt-border); }
.ygt-comments-header h2, .comment-reply-title { margin: 0 0 18px; color: var(--ygt-text); font-size: 21px; }
.ygt-comment-list { list-style: none; margin: 0; padding: 0; }
.ygt-comment-list .comment { margin: 0 0 14px; padding: 14px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-card); }
.ygt-comment-list .children { list-style: none; margin: 12px 0 0; padding-left: 24px; }
.comment-author { display: flex; align-items: center; gap: 9px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: 5px 0 10px; color: var(--ygt-muted); font-size: 11px; }
.comment-content { color: var(--ygt-text); }
.comment-form { display: grid; gap: 10px; }
.comment-form p { margin: 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-card); color: var(--ygt-text); padding: 10px 12px; outline: none; }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ygt-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ygt-blue) 18%, transparent); }

/* Explicit color schemes */
[data-theme="light"] {
    color-scheme: light;
    --ygt-bg: #ffffff;
    --ygt-bg-subtle: #f6f8fa;
    --ygt-card: #ffffff;
    --ygt-card-soft: #f6f8fa;
    --ygt-border: #d0d7de;
    --ygt-border-muted: #d8dee4;
    --ygt-text: #1f2328;
    --ygt-muted: #59636e;
    --ygt-link: #0969da;
    --ygt-green: #1f883d;
    --ygt-green-strong: #2da44e;
    --ygt-blue: #0969da;
    --ygt-code-bg: #f6f8fa;
    --ygt-code-text: #1f2328;
    --ygt-shadow: 0 1px 0 rgba(31, 35, 40, .04);
    --ygt-shadow-hover: 0 8px 28px rgba(140, 149, 159, .18);
}

[data-theme="dark"] {
    color-scheme: dark;
    --ygt-bg: #0d1117;
    --ygt-bg-subtle: #161b22;
    --ygt-card: #161b22;
    --ygt-card-soft: #1c2128;
    --ygt-border: #30363d;
    --ygt-border-muted: #30363d;
    --ygt-text: #f0f6fc;
    --ygt-muted: #8b949e;
    --ygt-link: #58a6ff;
    --ygt-green: #3fb950;
    --ygt-green-strong: #2ea043;
    --ygt-blue: #58a6ff;
    --ygt-code-bg: #161b22;
    --ygt-code-text: #f0f6fc;
    --ygt-shadow: 0 0 0 1px rgba(255,255,255,.015);
    --ygt-shadow-hover: 0 8px 30px rgba(0,0,0,.28);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --ygt-bg: #0d1117;
        --ygt-bg-subtle: #161b22;
        --ygt-card: #161b22;
        --ygt-card-soft: #1c2128;
        --ygt-border: #30363d;
        --ygt-border-muted: #30363d;
        --ygt-text: #f0f6fc;
        --ygt-muted: #8b949e;
        --ygt-link: #58a6ff;
        --ygt-green: #3fb950;
        --ygt-green-strong: #2ea043;
        --ygt-blue: #58a6ff;
        --ygt-code-bg: #161b22;
        --ygt-code-text: #f0f6fc;
        --ygt-shadow: 0 0 0 1px rgba(255,255,255,.015);
        --ygt-shadow-hover: 0 8px 30px rgba(0,0,0,.28);
    }
}


/* Dark-mode compatibility for article table-of-contents plugins/blocks. */
[data-theme="dark"] .ygt-entry-content #toc_container,
[data-theme="dark"] .ygt-entry-content #ez-toc-container,
[data-theme="dark"] .ygt-entry-content .ez-toc-container,
[data-theme="dark"] .ygt-entry-content .lwptoc_i,
[data-theme="dark"] .ygt-entry-content .toc-container,
[data-theme="dark"] .ygt-entry-content .toc-box,
[data-theme="dark"] .ygt-entry-content .wp-block-table-of-contents,
[data-theme="dark"] .ygt-entry-content .ygt-toc {
    background: var(--ygt-card) !important;
    border-color: var(--ygt-border) !important;
    color: var(--ygt-text) !important;
    box-shadow: none !important;
}
[data-theme="dark"] .ygt-entry-content #toc_container *,
[data-theme="dark"] .ygt-entry-content #ez-toc-container *,
[data-theme="dark"] .ygt-entry-content .ez-toc-container *,
[data-theme="dark"] .ygt-entry-content .lwptoc_i *,
[data-theme="dark"] .ygt-entry-content .toc-container *,
[data-theme="dark"] .ygt-entry-content .toc-box *,
[data-theme="dark"] .ygt-entry-content .wp-block-table-of-contents *,
[data-theme="dark"] .ygt-entry-content .ygt-toc * {
    border-color: var(--ygt-border) !important;
}
[data-theme="dark"] .ygt-entry-content #toc_container .toc_title,
[data-theme="dark"] .ygt-entry-content #ez-toc-container .ez-toc-title,
[data-theme="dark"] .ygt-entry-content .ez-toc-container .ez-toc-title,
[data-theme="dark"] .ygt-entry-content .lwptoc_title,
[data-theme="dark"] .ygt-entry-content .toc-container .toc-title,
[data-theme="dark"] .ygt-entry-content .toc-box .toc-title,
[data-theme="dark"] .ygt-entry-content .ygt-toc strong {
    color: var(--ygt-text) !important;
}
[data-theme="dark"] .ygt-entry-content #toc_container a,
[data-theme="dark"] .ygt-entry-content #ez-toc-container a,
[data-theme="dark"] .ygt-entry-content .ez-toc-container a,
[data-theme="dark"] .ygt-entry-content .lwptoc_i a,
[data-theme="dark"] .ygt-entry-content .toc-container a,
[data-theme="dark"] .ygt-entry-content .toc-box a,
[data-theme="dark"] .ygt-entry-content .wp-block-table-of-contents a,
[data-theme="dark"] .ygt-entry-content .ygt-toc a {
    color: var(--ygt-link) !important;
}
[data-theme="dark"] .ygt-entry-content #toc_container ul,
[data-theme="dark"] .ygt-entry-content #ez-toc-container ul,
[data-theme="dark"] .ygt-entry-content .ez-toc-container ul,
[data-theme="dark"] .ygt-entry-content .lwptoc_i ul,
[data-theme="dark"] .ygt-entry-content .toc-container ul,
[data-theme="dark"] .ygt-entry-content .toc-box ul,
[data-theme="dark"] .ygt-entry-content .wp-block-table-of-contents ul {
    background: transparent !important;
}


/* Structurally detected article TOC (v1.6): catches custom/manual TOC markup. */
[data-theme="dark"] .ygt-entry-content .ygt-detected-toc {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
    box-shadow: none !important;
}
[data-theme="dark"] .ygt-entry-content .ygt-detected-toc :where(div, span, nav, section, aside, figure, blockquote, ul, ol, li, p, table, tbody, tr, td) {
    background: transparent !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}
[data-theme="dark"] .ygt-entry-content .ygt-detected-toc :where(strong, b, h1, h2, h3, h4, h5, h6) {
    color: #f0f6fc !important;
}
[data-theme="dark"] .ygt-entry-content .ygt-detected-toc a {
    color: #58a6ff !important;
}

[data-theme="dark"] .ygt-code-comment { color: #8b949e; }
[data-theme="dark"] .ygt-code-keyword { color: #ff7b72; }
[data-theme="dark"] .ygt-code-fn { color: #d2a8ff; }
[data-theme="dark"] .ygt-code-string { color: #a5d6ff; }
[data-theme="dark"] .ygt-generated-cover { background: linear-gradient(145deg, #161b22 0%, #0d1117 68%, #112218 100%); color: #f0f6fc; }
[data-theme="dark"] .ygt-cover-grid { background-image: linear-gradient(rgba(48,54,61,.78) 1px, transparent 1px), linear-gradient(90deg, rgba(48,54,61,.78) 1px, transparent 1px); }
[data-theme="dark"] .ygt-cover-chrome, [data-theme="dark"] .ygt-cover-footer { color: #8b949e; }
[data-theme="dark"] .ygt-cover-category { background: color-mix(in srgb, var(--ygt-green) 16%, #161b22); color: #56d364; border-color: color-mix(in srgb, var(--ygt-green) 38%, transparent); }
[data-theme="dark"] .ygt-cover-title { color: #f0f6fc; }

@media (prefers-color-scheme: dark) {

    :root:not([data-theme]) .ygt-entry-content .ygt-detected-toc {
        background: #161b22 !important;
        border: 1px solid #30363d !important;
        border-color: #30363d !important;
        color: #f0f6fc !important;
        box-shadow: none !important;
    }
    :root:not([data-theme]) .ygt-entry-content .ygt-detected-toc :where(div, span, nav, section, aside, figure, blockquote, ul, ol, li, p, table, tbody, tr, td) {
        background: transparent !important;
        border-color: #30363d !important;
        color: #f0f6fc !important;
    }
    :root:not([data-theme]) .ygt-entry-content .ygt-detected-toc :where(strong, b, h1, h2, h3, h4, h5, h6) { color: #f0f6fc !important; }
    :root:not([data-theme]) .ygt-entry-content .ygt-detected-toc a { color: #58a6ff !important; }
    :root:not([data-theme]) .ygt-code-comment { color: #8b949e; }
    :root:not([data-theme]) .ygt-code-keyword { color: #ff7b72; }
    :root:not([data-theme]) .ygt-code-fn { color: #d2a8ff; }
    :root:not([data-theme]) .ygt-code-string { color: #a5d6ff; }
    :root:not([data-theme]) .ygt-generated-cover { background: linear-gradient(145deg, #161b22 0%, #0d1117 68%, #112218 100%); color: #f0f6fc; }
    :root:not([data-theme]) .ygt-cover-grid { background-image: linear-gradient(rgba(48,54,61,.78) 1px, transparent 1px), linear-gradient(90deg, rgba(48,54,61,.78) 1px, transparent 1px); }
    :root:not([data-theme]) .ygt-cover-chrome, :root:not([data-theme]) .ygt-cover-footer { color: #8b949e; }
    :root:not([data-theme]) .ygt-cover-category { background: color-mix(in srgb, var(--ygt-green) 16%, #161b22); color: #56d364; border-color: color-mix(in srgb, var(--ygt-green) 38%, transparent); }
    :root:not([data-theme]) .ygt-cover-title { color: #f0f6fc; }
}

/* Footer */
.ygt-site-footer { margin-top: 42px; border-top: 1px solid var(--ygt-border); background: var(--ygt-bg-subtle); }
.ygt-footer-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); gap: 52px; padding: 46px 0 40px; align-items: start; }
.ygt-footer-grid > * { min-width: 0; }
.ygt-footer-brand-panel { padding-right: 10px; }
.ygt-footer-logo { display: inline-flex; width: auto; max-width: 100%; align-items: center; gap: 11px; margin-bottom: 14px; color: var(--ygt-text); overflow: visible; }
.ygt-footer-logo:hover { text-decoration: none; }
.ygt-footer-logo .ygt-brand-mark { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 10px; }
.ygt-footer-logo .ygt-brand-copy { gap: 2px; }
.ygt-footer-logo .ygt-brand-copy strong { font-size: 20px; line-height: 1.2; }
.ygt-footer-logo .ygt-brand-copy small { font-size: 11px; }
.ygt-footer-intro { max-width: 440px; margin: 0; color: var(--ygt-muted); font-size: 13px; line-height: 1.8; }
.ygt-footer-socials { display: flex; align-items: center; gap: 9px; margin-top: 18px; }
.ygt-footer-socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ygt-border); border-radius: 999px; background: var(--ygt-card); color: var(--ygt-text); }
.ygt-footer-socials a:hover { color: var(--ygt-link); border-color: color-mix(in srgb, var(--ygt-link) 44%, var(--ygt-border)); text-decoration: none; transform: translateY(-1px); }
.ygt-footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.ygt-footer-quick h2, .ygt-footer-support h2, .ygt-footer-subscribe h2 { margin: 0 0 14px; color: var(--ygt-text); font-size: 14px; line-height: 1.4; }
.ygt-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ygt-footer-quick .ygt-footer-list, .ygt-footer-support .ygt-footer-list {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 7px;
}
.ygt-footer-list li { margin: 0; min-width: 0; }
.ygt-footer-list a { min-height: 28px; display: flex; align-items: center; justify-content: flex-start; gap: 0; color: var(--ygt-muted); font-size: 12.5px; white-space: nowrap; }
.ygt-footer-list a:hover { color: var(--ygt-link); text-decoration: none; }
.ygt-footer-subscribe > p { margin: 0 0 13px; color: var(--ygt-muted); font-size: 12.5px; line-height: 1.7; }
.ygt-subscribe-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ygt-subscribe-form input[type="email"] { width: 100%; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-card); color: var(--ygt-text); outline: none; }
.ygt-subscribe-form input[type="email"]:focus { border-color: var(--ygt-link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ygt-link) 16%, transparent); }
.ygt-subscribe-form button { height: 38px; padding: 0 16px; border: 1px solid var(--ygt-link); border-radius: 6px; background: var(--ygt-link); color: #fff; font-weight: 700; cursor: pointer; }
.ygt-subscribe-form button:hover { filter: brightness(1.05); }
.ygt-subscribe-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.ygt-subscribe-benefits { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 11px; color: var(--ygt-muted); font-size: 10.5px; }
.ygt-subscribe-benefits span::first-letter { color: var(--ygt-green); }
.ygt-subscribe-note { margin-top: 10px !important; font-size: 11px !important; }
.ygt-subscribe-note--success { color: var(--ygt-green) !important; }
.ygt-subscribe-note--error { color: #cf222e !important; }
.ygt-footer-bottom { border-top: 1px solid var(--ygt-border); }
.ygt-footer-bottom .ygt-container { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--ygt-muted); font-size: 11px; }
.ygt-footer-bottom-copy, .ygt-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ygt-footer-legal { justify-content: flex-end; }
.ygt-footer-legal a { color: var(--ygt-muted); }
.ygt-footer-legal a:hover { color: var(--ygt-link); }
.ygt-back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 38px; height: 38px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-card); color: var(--ygt-text); cursor: pointer; box-shadow: var(--ygt-shadow); }
.ygt-back-to-top:hover { border-color: var(--ygt-muted); box-shadow: var(--ygt-shadow-hover); }

/* Responsive */

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .ygt-brand--auto-contrast .ygt-brand-logo-link { padding: 0; background: transparent; }
    :root:not([data-theme]) .ygt-brand--auto-contrast .ygt-brand-logo-light { filter: grayscale(1) brightness(0) invert(1); opacity: .96; }
    :root:not([data-theme]) .ygt-entry-content #toc_container,
    :root:not([data-theme]) .ygt-entry-content #ez-toc-container,
    :root:not([data-theme]) .ygt-entry-content .ez-toc-container,
    :root:not([data-theme]) .ygt-entry-content .lwptoc_i,
    :root:not([data-theme]) .ygt-entry-content .toc-container,
    :root:not([data-theme]) .ygt-entry-content .toc-box,
    :root:not([data-theme]) .ygt-entry-content .wp-block-table-of-contents,
    :root:not([data-theme]) .ygt-entry-content .ygt-toc {
        background: var(--ygt-card) !important;
        border-color: var(--ygt-border) !important;
        color: var(--ygt-text) !important;
        box-shadow: none !important;
    }
    :root:not([data-theme]) .ygt-entry-content #toc_container a,
    :root:not([data-theme]) .ygt-entry-content #ez-toc-container a,
    :root:not([data-theme]) .ygt-entry-content .ez-toc-container a,
    :root:not([data-theme]) .ygt-entry-content .lwptoc_i a,
    :root:not([data-theme]) .ygt-entry-content .toc-container a,
    :root:not([data-theme]) .ygt-entry-content .toc-box a,
    :root:not([data-theme]) .ygt-entry-content .wp-block-table-of-contents a,
    :root:not([data-theme]) .ygt-entry-content .ygt-toc a { color: var(--ygt-link) !important; }
}

@media (max-width: 1200px) {
    .ygt-header-search { width: 190px; }
    .ygt-menu a { padding-inline: 8px; font-size: 13px; }
    .ygt-hero-grid { gap: 36px; }
    .ygt-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


@media (max-width: 1180px) {
    .ygt-header-inner { gap: 12px; }
    .ygt-primary-nav { display: none; position: absolute; left: 14px; right: 14px; top: 62px; padding: 8px; border: 1px solid var(--ygt-border); border-radius: 8px; background: var(--ygt-card); box-shadow: var(--ygt-shadow-hover); }
    .ygt-primary-nav.is-open { display: block; }
    .ygt-menu { display: grid; justify-content: stretch; gap: 2px; }
    .ygt-menu a { padding: 10px 12px; }
    .ygt-menu-button { display: inline-grid; }
    .ygt-header-actions { margin-left: auto; }
}

@media (max-width: 1024px) {
    .ygt-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 42px; }
    .ygt-container { width: min(calc(100% - 28px), var(--ygt-container)); }
    .ygt-primary-nav { display: none; position: absolute; left: 14px; right: 14px; top: 60px; padding: 8px; border: 1px solid var(--ygt-border); border-radius: 8px; background: var(--ygt-card); box-shadow: var(--ygt-shadow-hover); }
    .ygt-primary-nav.is-open { display: block; }
    .ygt-menu { display: grid; justify-content: stretch; gap: 2px; }
    .ygt-menu a { padding: 10px 12px; }
    .ygt-menu-button { display: inline-grid; }
    .ygt-header-actions { margin-left: auto; }
    .ygt-hero-grid { min-height: auto; padding: 30px 0; grid-template-columns: 1fr; }
    .ygt-code-visual { max-width: 720px; width: 100%; margin: 0 auto; transform: none; }
    .ygt-float-badge-b { right: 12px; }
    .ygt-float-badge-c { left: 12px; }
    .ygt-content-layout { grid-template-columns: 1fr; }
    .ygt-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ygt-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; }
    .ygt-dynamic-widgets { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    .ygt-container { width: min(calc(100% - 20px), var(--ygt-container)); }
    .ygt-header-inner { height: 60px; min-height: 60px; gap: 10px; }
    .ygt-brand { min-width: 0; }
    .ygt-brand-copy small { display: none; }
    .ygt-brand-copy strong { font-size: 15px; }
    .ygt-brand-mark { width: 31px; height: 31px; }
    .ygt-v2-brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
    .ygt-v2-brand-copy strong { font-size: 15px; }
    .ygt-v2-brand-copy small { display: none; }
    .ygt-header-search { display: block; width: clamp(132px, 34vw, 190px); }
    .ygt-account-button { display: none; }
    .ygt-mobile-account-button { display: flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--ygt-green); border-radius: 6px; background: var(--ygt-green); color: #fff; font-weight: 700; }
    .ygt-mobile-account-button:hover, .ygt-mobile-account-button:focus-visible { background: var(--ygt-green-strong); color: #fff; text-decoration: none; outline: none; }
    .ygt-icon-button { width: 36px; padding: 0; }
    .ygt-primary-nav { top: 56px; left: 10px; right: 10px; }
    .ygt-hero-grid { padding: 26px 0; gap: 24px; }
    .ygt-hero h1 { font-size: clamp(32px, 10vw, 46px); }
    .ygt-hero-lead { font-size: 17px; }
    .ygt-hero-description { font-size: 14px; }
    .ygt-hero-actions { flex-wrap: wrap; }
    .ygt-hero-actions .ygt-button { flex: 1 1 140px; }
    .ygt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
    .ygt-stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .ygt-code-visual { min-height: 260px; padding: 54px 18px 20px; }
    .ygt-code-visual pre { font-size: 12px; }
    .ygt-float-badge { display: none; }
    .ygt-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ygt-category-card { min-height: 72px; padding: 12px; }
    .ygt-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ygt-post-card { min-width: 0; }
    .ygt-post-title { font-size: 18px; }
    .ygt-sidebar { grid-template-columns: 1fr; }
    .ygt-article-shell { padding-top: 24px; }
    .ygt-article-header h1 { font-size: clamp(29px, 9vw, 40px); }
    .ygt-entry-content { font-size: 15px; }
    .ygt-entry-content h2::before, .ygt-entry-content h3::before { position: static; margin-right: 7px; }
    .post-navigation .nav-links { grid-template-columns: 1fr; }
    .ygt-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; padding-block: 34px; }
    .ygt-footer-brand-panel { grid-column: 1 / -1; padding-right: 0; }
    .ygt-footer-quick .ygt-footer-list, .ygt-footer-support .ygt-footer-list { width: 100%; max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; row-gap: 8px; }
    .ygt-footer-list a { min-height: 26px; font-size: 11.5px; line-height: 1.35; }
    .ygt-footer-subscribe { grid-column: 1 / -1; }
    .ygt-footer-bottom .ygt-container { align-items: flex-start; justify-content: center; flex-direction: column; padding-block: 14px; }
    .ygt-footer-legal { justify-content: flex-start; }
    .ygt-back-to-top { right: 12px; bottom: 12px; }
}


@media (max-width: 782px) {
    body.admin-bar .ygt-site-header { top: 46px; }
}

@media (max-width: 480px) {
    .ygt-v2-brand-copy { display: none; }
    .ygt-v2-brand { width: 34px; }
    .ygt-home-link { display: none; }
    .ygt-header-actions { gap: 5px; }
    .ygt-header-search { width: min(44vw, 140px); }
    .ygt-search-form { gap: 5px; }
    .ygt-search-form button { min-width: 46px; padding-inline: 8px; }
    .ygt-category-grid { grid-template-columns: 1fr; }
    .ygt-stats { gap: 14px 0; }
    .ygt-stat { padding-right: 12px; }
    .ygt-stat + .ygt-stat { padding-left: 12px; }
    .ygt-post-meta { gap: 8px; }
    .ygt-post-date { display: none; }
}

/* Project/tool recommendations */
.ygt-project-list { display: grid; gap: 8px; }
.ygt-project-item { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 9px; align-items: center; padding: 9px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-bg-subtle); color: var(--ygt-text); }
.ygt-project-item:hover { border-color: var(--ygt-muted); box-shadow: var(--ygt-shadow); text-decoration: none; }
.ygt-project-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: color-mix(in srgb, var(--ygt-green) 13%, var(--ygt-card)); color: var(--ygt-green); font: 800 10px ui-monospace, monospace; }
.ygt-project-copy { min-width: 0; display: grid; gap: 2px; }
.ygt-project-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ygt-text); font-size: 11px; }
.ygt-project-copy small { color: var(--ygt-muted); font-size: 9px; }
.ygt-project-arrow { color: var(--ygt-muted); }

/* v2 subscriptions */
.ygt-category-card-shell { position: relative; min-width: 0; }
.ygt-category-card-shell .ygt-category-card { height: 100%; padding-right: 82px; }
.ygt-category-card-actions { position: absolute; top: 10px; right: 10px; z-index: 2; }
.ygt-category-subscribe { min-width: 58px; height: 28px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--ygt-green) 55%, var(--ygt-border)); border-radius: 6px; background: var(--ygt-card); color: var(--ygt-green); font-size: 11px; font-weight: 700; cursor: pointer; }
.ygt-category-subscribe:hover:not(:disabled), .ygt-category-subscribe:focus-visible { background: color-mix(in srgb, var(--ygt-green) 10%, var(--ygt-card)); border-color: var(--ygt-green); outline: none; }
.ygt-category-subscribe.is-subscribed { background: var(--ygt-green); border-color: var(--ygt-green); color: #fff; }
.ygt-category-subscribe:disabled { opacity: .42; cursor: not-allowed; }
.ygt-subscribe-note:empty { display: none; }
.ygt-subscribe-note[data-ygt-register-status] { min-height: 1.6em; color: var(--ygt-muted); }
.ygt-modal-open { overflow: hidden; }
.ygt-subscribe-modal[hidden] { display: none; }
.ygt-subscribe-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; }
.ygt-subscribe-modal__backdrop { position: absolute; inset: 0; background: rgba(1,4,9,.62); backdrop-filter: blur(4px); }
.ygt-subscribe-modal__dialog { position: relative; width: min(440px, 100%); padding: 24px; border: 1px solid var(--ygt-border); border-radius: 12px; background: var(--ygt-card); color: var(--ygt-text); box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.ygt-subscribe-modal__dialog h2 { margin: 0 36px 8px 0; font-size: 20px; }
.ygt-subscribe-modal__description { margin: 0 0 18px; color: var(--ygt-muted); font-size: 13px; line-height: 1.7; }
.ygt-subscribe-modal__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--ygt-muted); font-size: 22px; cursor: pointer; }
.ygt-subscribe-modal form label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.ygt-subscribe-modal__row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.ygt-subscribe-modal__row input { min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--ygt-border); border-radius: 6px; background: var(--ygt-bg); color: var(--ygt-text); }
.ygt-subscribe-modal__row button { height: 40px; padding: 0 18px; border: 1px solid var(--ygt-green); border-radius: 6px; background: var(--ygt-green); color: #fff; font-weight: 700; cursor: pointer; }
.ygt-subscribe-modal__status { min-height: 20px; margin: 9px 0 0; color: var(--ygt-muted); font-size: 12px; }
@media (max-width: 480px) { .ygt-subscribe-modal__row { grid-template-columns: 1fr; } .ygt-subscribe-modal__row button { width: 100%; } }
.ygt-unsubscribe-feedback { margin-top: 24px; padding: 11px 14px; border: 1px solid var(--ygt-border); border-radius: 7px; background: color-mix(in srgb, var(--ygt-green) 8%, var(--ygt-card)); color: var(--ygt-text); font-size: 13px; }

/* v2.0.2 complete footer destination pages */
.ygt-page-meta { margin-top: 10px; color: var(--ygt-muted); font-size: 12px; }
.ygt-info-grid, .ygt-sitemap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.ygt-sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ygt-info-card { min-width: 0; padding: 18px 20px; border: 1px solid var(--ygt-border); border-radius: 8px; background: var(--ygt-card); }
.ygt-info-card h2, .ygt-info-card h3 { margin: 0 0 14px; padding: 0; border: 0; font-size: 18px; }
.ygt-info-card h2::before, .ygt-info-card h3::before { content: none; }
.ygt-info-card ul { margin: 0; padding: 0; list-style: none; }
.ygt-info-card li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--ygt-border); }
.ygt-info-card li:last-child { border-bottom: 0; }
.ygt-info-card li a { min-width: 0; text-decoration: none; }
.ygt-info-card li span { flex: 0 0 auto; color: var(--ygt-muted); font-size: 12px; }
.ygt-sitemap-posts { grid-column: 1 / -1; }
.ygt-contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 26px; padding: 16px 18px; border: 1px solid var(--ygt-border); border-radius: 8px; background: var(--ygt-bg-subtle); }
.ygt-contact-card strong { color: var(--ygt-text); }
@media (max-width: 768px) {
    .ygt-info-grid, .ygt-sitemap-grid { grid-template-columns: 1fr; }
    .ygt-sitemap-posts { grid-column: auto; }
    .ygt-info-card li { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* v2.0.3 richer footer pages and 3-column content indexes */
.ygt-content-index { margin: 24px 0 4px; }
.ygt-content-categories { margin-bottom: 22px; }
.ygt-category-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ygt-category-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid var(--ygt-border); border-radius: 7px; background: var(--ygt-bg-subtle); color: var(--ygt-text); text-decoration: none; }
.ygt-category-chip:hover { border-color: color-mix(in srgb, var(--ygt-link) 45%, var(--ygt-border)); text-decoration: none; }
.ygt-category-chip small { color: var(--ygt-muted); }
.ygt-content-index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.ygt-content-index-heading h3 { margin: 0; font-size: 20px; }
.ygt-content-index-heading span { color: var(--ygt-muted); font-size: 12px; }
.ygt-content-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ygt-content-mini-card { min-width: 0; min-height: 210px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--ygt-border); border-radius: 9px; background: var(--ygt-card); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.ygt-content-mini-card:hover { border-color: color-mix(in srgb, var(--ygt-link) 38%, var(--ygt-border)); box-shadow: var(--ygt-shadow); transform: translateY(-2px); }
.ygt-content-mini-card__meta { margin-bottom: 9px; color: var(--ygt-muted); font-size: 11px; }
.ygt-content-mini-card h4 { margin: 0 0 10px; padding: 0; border: 0; font-size: 16px; line-height: 1.5; }
.ygt-content-mini-card h4::before { content: none; }
.ygt-content-mini-card h4 a { color: var(--ygt-text); text-decoration: none; }
.ygt-content-mini-card h4 a:hover { color: var(--ygt-link); }
.ygt-content-mini-card p { margin: 0 0 16px; color: var(--ygt-muted); font-size: 13px; line-height: 1.75; }
.ygt-content-mini-card__more { margin-top: auto; font-size: 12px; font-weight: 700; text-decoration: none; }
.ygt-content-empty { grid-column: 1 / -1; padding: 26px; border: 1px dashed var(--ygt-border); border-radius: 9px; color: var(--ygt-muted); text-align: center; }
.ygt-static-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.ygt-static-card { padding: 18px 20px; border: 1px solid var(--ygt-border); border-radius: 9px; background: var(--ygt-card); }
.ygt-static-card h2 { margin-top: 0; }
.ygt-rss-feed-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0; padding: 20px; border: 1px solid var(--ygt-border); border-radius: 9px; background: var(--ygt-bg-subtle); }
.ygt-rss-feed-card p { margin: 6px 0 10px; color: var(--ygt-muted); }
.ygt-rss-feed-card code { overflow-wrap: anywhere; }
.ygt-rss-feed-button { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--ygt-green); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.ygt-rss-copy-status { display: block; min-height: 1.5em; margin-top: 8px; color: var(--ygt-green); font-size: 13px; }
@media (max-width: 1024px) {
    .ygt-content-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ygt-static-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .ygt-content-card-grid { grid-template-columns: 1fr; }
    .ygt-static-card-grid { grid-template-columns: 1fr; }
    .ygt-rss-feed-card { align-items: stretch; flex-direction: column; }
    .ygt-rss-feed-button { justify-content: center; }
}


/* v2.0.11 compact mobile/tablet article grid */
@media (max-width: 1024px) {
    .ygt-content-section .ygt-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .ygt-content-section .ygt-post-grid > .ygt-post-card:nth-child(n+5) { display: none; }
    .ygt-content-section .ygt-post-card {
        min-height: 112px;
        box-shadow: none;
        border-radius: 7px;
    }
    .ygt-content-section .ygt-post-cover { display: none; }
    .ygt-content-section .ygt-post-body {
        position: relative;
        min-height: 112px;
        padding: 12px 12px 11px 52px;
    }
    .ygt-content-section .ygt-post-body::before {
        content: '</>';
        position: absolute;
        left: 11px;
        top: 13px;
        width: 31px;
        height: 31px;
        display: grid;
        place-items: center;
        border-radius: 6px;
        background: color-mix(in srgb, var(--ygt-green) 13%, var(--ygt-card));
        color: var(--ygt-green);
        font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }
    .ygt-content-section .ygt-post-topline {
        justify-content: flex-start;
        margin-bottom: 5px;
    }
    .ygt-content-section .ygt-post-category {
        max-width: 100%;
        min-height: 20px;
        padding: 1px 6px;
        font-size: 9.5px;
    }
    .ygt-content-section .ygt-post-language { display: none; }
    .ygt-content-section .ygt-post-title {
        font-size: 14px;
        line-height: 1.38;
    }
    .ygt-content-section .ygt-post-title a { -webkit-line-clamp: 2; }
    .ygt-content-section .ygt-post-excerpt { display: none; }
    .ygt-content-section .ygt-post-meta {
        margin-top: auto;
        padding-top: 7px;
        gap: 7px;
        font-size: 9.5px;
        overflow: hidden;
    }
    .ygt-content-section .ygt-post-comments,
    .ygt-content-section .ygt-post-save { display: none; }
}

@media (max-width: 480px) {
    .ygt-content-section .ygt-post-grid { gap: 8px; }
    .ygt-content-section .ygt-post-card,
    .ygt-content-section .ygt-post-body { min-height: 108px; }
    .ygt-content-section .ygt-post-body { padding: 10px 9px 9px 45px; }
    .ygt-content-section .ygt-post-body::before {
        left: 9px;
        top: 11px;
        width: 27px;
        height: 27px;
        font-size: 9px;
    }
    .ygt-content-section .ygt-post-category { font-size: 9px; }
    .ygt-content-section .ygt-post-title { font-size: 12.5px; line-height: 1.4; }
    .ygt-content-section .ygt-post-meta { gap: 5px; font-size: 8.8px; }
    .ygt-content-section .ygt-post-date { display: inline; }
}

/* v2.0.12 mobile/tablet homepage redesign */
.ygt-mobile-home-showcase { display: none; }

@media (max-width: 1024px) {
    .ygt-hero {
        position: relative;
        isolation: isolate;
        background:
            radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--ygt-green) 18%, transparent) 0 12%, transparent 32%),
            linear-gradient(135deg, color-mix(in srgb, var(--ygt-green) 5%, var(--ygt-bg)) 0%, var(--ygt-bg) 48%, color-mix(in srgb, #5f7cff 6%, var(--ygt-bg)) 100%);
    }
    .ygt-hero::before {
        content: '';
        position: absolute;
        z-index: -1;
        width: 280px;
        height: 280px;
        right: -110px;
        top: 56px;
        border-radius: 45% 55% 58% 42%;
        background: color-mix(in srgb, var(--ygt-green) 11%, transparent);
        filter: blur(2px);
        transform: rotate(16deg);
    }
    .ygt-hero-grid {
        padding: 38px 0 32px;
        gap: 22px;
    }
    .ygt-hero-copy { position: relative; z-index: 2; }
    .ygt-eyebrow {
        width: fit-content;
        margin-bottom: 18px;
        padding: 7px 13px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--ygt-green) 11%, var(--ygt-card));
        border: 1px solid color-mix(in srgb, var(--ygt-green) 14%, transparent);
        box-shadow: 0 8px 24px color-mix(in srgb, var(--ygt-green) 9%, transparent);
    }
    .ygt-eyebrow::before { content: '⚡'; margin-right: 6px; }
    .ygt-hero h1 {
        max-width: 760px;
        font-size: clamp(42px, 7vw, 68px);
        line-height: 1.04;
        letter-spacing: -.055em;
    }
    .ygt-hero-title-primary,
    .ygt-hero-title-accent { display: block; }
    .ygt-hero-title-accent {
        width: fit-content;
        margin-top: 4px;
        color: var(--ygt-green);
        position: relative;
    }
    .ygt-hero-title-accent::after {
        content: '';
        position: absolute;
        left: 0;
        right: 16%;
        bottom: -8px;
        height: 4px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--ygt-green), color-mix(in srgb, var(--ygt-green) 15%, transparent));
        transform: rotate(-2deg);
    }
    .ygt-hero-lead { margin-top: 24px; font-size: clamp(17px, 2.5vw, 21px); }
    .ygt-hero-description { max-width: 620px; margin-top: 14px; font-size: 15px; line-height: 1.85; }
    .ygt-hero-actions { margin-top: 24px; gap: 12px; }
    .ygt-hero-actions .ygt-button {
        min-height: 50px;
        border-radius: 10px;
        box-shadow: 0 10px 28px rgba(27,31,36,.06);
        font-weight: 750;
    }
    .ygt-hero-actions .ygt-button-primary::before { content: '▣'; margin-right: 8px; }
    .ygt-hero-actions .ygt-button:not(.ygt-button-primary)::before { content: '▦'; margin-right: 8px; color: var(--ygt-green); }
    .ygt-stats {
        max-width: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 28px;
        padding: 18px 10px;
        border: 1px solid color-mix(in srgb, var(--ygt-border) 82%, transparent);
        border-radius: 18px;
        background: color-mix(in srgb, var(--ygt-card) 92%, transparent);
        box-shadow: 0 18px 50px rgba(27,31,36,.07);
        backdrop-filter: blur(12px);
    }
    .ygt-stat { position: relative; padding: 0 8px !important; text-align: center; }
    .ygt-stat + .ygt-stat { border-left: 1px solid var(--ygt-border); }
    .ygt-stat::before {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        margin: 0 auto 7px;
        border-radius: 50%;
        background: color-mix(in srgb, var(--ygt-green) 10%, var(--ygt-card));
        color: var(--ygt-green);
        font-size: 15px;
        font-weight: 800;
    }
    .ygt-stat:nth-child(1)::before { content: '▤'; }
    .ygt-stat:nth-child(2)::before { content: '□'; color: #2563eb; background: color-mix(in srgb, #2563eb 10%, var(--ygt-card)); }
    .ygt-stat:nth-child(3)::before { content: '⚒'; color: #f97316; background: color-mix(in srgb, #f97316 10%, var(--ygt-card)); }
    .ygt-stat:nth-child(4)::before { content: '◉'; color: #7c3aed; background: color-mix(in srgb, #7c3aed 10%, var(--ygt-card)); }
    .ygt-stat strong { font-size: clamp(22px, 3.2vw, 32px); }
    .ygt-stat span { margin-top: 4px; font-size: 12px; }

    .ygt-code-visual {
        max-width: 690px;
        min-height: 300px;
        margin-top: 8px;
        padding: 58px 22px 22px;
        overflow: visible;
        border-color: color-mix(in srgb, var(--ygt-green) 20%, var(--ygt-border));
        border-radius: 18px;
        background: linear-gradient(145deg, #101827 0%, #16243a 58%, #0d2b25 100%);
        color: #eef6ff;
        box-shadow: 0 28px 70px rgba(16,24,39,.20);
    }
    .ygt-code-toolbar { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); border-radius: 18px 18px 0 0; }
    .ygt-code-toolbar em { color: #afbed1; }
    .ygt-code-visual pre { color: #e5edf7; }
    .ygt-code-comment { color: #65d6a0 !important; }
    .ygt-code-keyword { color: #ff7a90 !important; }
    .ygt-code-fn { color: #78a9ff !important; }
    .ygt-code-string { color: #93e47d !important; }
    .ygt-float-badge {
        display: inline-flex;
        border: 1px solid rgba(255,255,255,.7);
        border-radius: 10px;
        background: color-mix(in srgb, var(--ygt-card) 88%, transparent);
        box-shadow: 0 10px 32px rgba(27,31,36,.12);
    }
    .ygt-float-badge-a { right: -8px; top: 55px; color: #b45309; }
    .ygt-float-badge-a::before { content: 'JS '; font-weight: 800; }
    .ygt-float-badge-b { right: -10px; bottom: 66px; color: #7c3aed; }
    .ygt-float-badge-b::before { content: 'PHP '; font-weight: 800; }
    .ygt-float-badge-c { left: auto; right: 18px; bottom: 18px; color: #111827; }
    .ygt-float-badge-c::before { content: 'Linux '; font-weight: 800; }

    .ygt-mobile-home-showcase { display: block; padding: 22px 0 10px; background: var(--ygt-bg); }
    .ygt-mobile-showcase-card {
        min-height: 250px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr);
        gap: 24px;
        align-items: center;
        padding: 30px;
        overflow: hidden;
        border: 1px solid var(--ygt-border);
        border-radius: 22px;
        background:
            radial-gradient(circle at 10% 12%, color-mix(in srgb, #5eead4 20%, transparent), transparent 36%),
            radial-gradient(circle at 72% 20%, color-mix(in srgb, #818cf8 13%, transparent), transparent 40%),
            linear-gradient(135deg, var(--ygt-card), color-mix(in srgb, var(--ygt-green) 4%, var(--ygt-card)));
        box-shadow: 0 18px 50px rgba(27,31,36,.06);
    }
    .ygt-mobile-showcase-copy { min-width: 0; }
    .ygt-mobile-showcase-kicker { display: block; margin-bottom: 12px; color: var(--ygt-green); font-size: 13px; font-weight: 750; }
    .ygt-mobile-showcase-copy strong { display: block; max-width: 430px; font-size: clamp(25px, 4vw, 38px); line-height: 1.18; letter-spacing: -.035em; }
    .ygt-mobile-showcase-copy ul { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--ygt-text); font-size: 13px; }
    .ygt-mobile-showcase-copy li::before { content: '✓'; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--ygt-green); color: #fff; font-size: 11px; font-weight: 800; }
    .ygt-mobile-showcase-code {
        min-height: 190px;
        display: grid;
        align-content: center;
        gap: 10px;
        padding: 24px;
        border-radius: 16px;
        transform: rotate(-1.5deg);
        background: linear-gradient(145deg, #142033, #0c2b26);
        color: #dbeafe;
        box-shadow: 0 22px 50px rgba(16,24,39,.22);
        font: 600 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }
    .ygt-mobile-showcase-code b { color: #8ee7a8; }
    .ygt-mobile-showcase-code em { margin-top: 10px; color: #8ca4c2; font-style: normal; font-size: 11px; }

    .ygt-category-section { padding-top: 26px; }
    .ygt-category-section .ygt-container::before {
        content: '快速导航';
        display: block;
        margin: 0 0 16px;
        padding-left: 12px;
        border-left: 4px solid var(--ygt-green);
        color: var(--ygt-text);
        font-size: 24px;
        font-weight: 800;
        letter-spacing: -.02em;
    }
    .ygt-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .ygt-category-card-shell .ygt-category-card {
        min-height: 86px;
        padding: 12px 10px;
        padding-right: 10px;
        border-radius: 12px;
        box-shadow: none;
    }
    .ygt-category-card { gap: 9px; }
    .ygt-category-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 50%; }
    .ygt-category-copy strong { font-size: 13px; }
    .ygt-category-copy small { font-size: 9px; }
    .ygt-category-card-actions { top: 5px; right: 5px; }
    .ygt-category-subscribe { min-width: 34px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 9px; }

    .ygt-content-section { padding-top: 34px; }
    .ygt-section-header > div { padding-left: 12px; border-left: 4px solid var(--ygt-green); }
    .ygt-section-kicker { display: none; }
    .ygt-section-header h2 { font-size: 24px; }
}

@media (max-width: 768px) {
    .ygt-hero-grid { padding: 30px 0 26px; gap: 18px; }
    .ygt-hero h1 { font-size: clamp(38px, 11vw, 56px); }
    .ygt-hero-description { font-size: 14px; }
    .ygt-stats { gap: 0; padding: 14px 4px; border-radius: 15px; }
    .ygt-stat::before { width: 30px; height: 30px; font-size: 13px; }
    .ygt-stat strong { font-size: clamp(19px, 5vw, 27px); }
    .ygt-stat span { font-size: 10.5px; }
    .ygt-code-visual { min-height: 270px; padding: 54px 16px 18px; border-radius: 16px; }
    .ygt-code-visual pre { font-size: 11px; }
    .ygt-float-badge { display: inline-flex; font-size: 9px; padding: 5px 8px; }

    .ygt-mobile-home-showcase { padding-top: 16px; }
    .ygt-mobile-showcase-card { grid-template-columns: 1.05fr .95fr; min-height: 210px; gap: 12px; padding: 20px; border-radius: 18px; }
    .ygt-mobile-showcase-copy strong { font-size: clamp(22px, 6vw, 30px); }
    .ygt-mobile-showcase-copy ul { margin-top: 14px; gap: 6px; font-size: 11px; }
    .ygt-mobile-showcase-copy li::before { width: 17px; height: 17px; font-size: 9px; }
    .ygt-mobile-showcase-code { min-height: 160px; padding: 16px; font-size: 10px; border-radius: 13px; }
    .ygt-mobile-showcase-code em { font-size: 9px; }

    .ygt-category-section .ygt-container::before,
    .ygt-section-header h2 { font-size: 21px; }
    .ygt-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ygt-category-card-shell .ygt-category-card { min-height: 76px; padding: 9px 7px; }
    .ygt-category-icon { flex-basis: 30px; width: 30px; height: 30px; }
    .ygt-category-copy strong { font-size: 11px; }
    .ygt-category-copy small { display: none; }
    .ygt-category-subscribe { min-width: 28px; height: 18px; padding: 0 4px; font-size: 8px; }
}

@media (max-width: 480px) {
    .ygt-hero::before { width: 190px; height: 190px; right: -85px; top: 80px; }
    .ygt-eyebrow { margin-bottom: 15px; padding: 6px 10px; font-size: 12px; }
    .ygt-hero h1 { font-size: clamp(36px, 10.8vw, 48px); }
    .ygt-hero-title-accent::after { bottom: -5px; height: 3px; }
    .ygt-hero-lead { margin-top: 19px; font-size: 15px; line-height: 1.6; }
    .ygt-hero-description { margin-top: 10px; font-size: 13px; line-height: 1.8; }
    .ygt-hero-actions { margin-top: 19px; }
    .ygt-hero-actions .ygt-button { min-height: 46px; font-size: 14px; }
    .ygt-stats { margin-top: 22px; }
    .ygt-stat { padding-inline: 3px !important; }
    .ygt-stat::before { width: 27px; height: 27px; margin-bottom: 5px; }
    .ygt-stat strong { font-size: clamp(17px, 5.2vw, 23px); }
    .ygt-stat span { font-size: 9px; }

    .ygt-code-visual { min-height: 238px; margin-top: 4px; padding: 50px 13px 15px; }
    .ygt-code-visual pre { font-size: 9.7px; line-height: 1.55; }
    .ygt-float-badge-a { right: -4px; top: 48px; }
    .ygt-float-badge-b { right: -4px; bottom: 54px; }
    .ygt-float-badge-c { right: 8px; bottom: 12px; }

    .ygt-mobile-showcase-card { grid-template-columns: 1fr; padding: 18px; }
    .ygt-mobile-showcase-copy strong { max-width: 330px; font-size: 25px; }
    .ygt-mobile-showcase-copy ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .ygt-mobile-showcase-copy li { font-size: 9.5px; white-space: nowrap; }
    .ygt-mobile-showcase-copy li::before { display: none; }
    .ygt-mobile-showcase-code { min-height: 126px; transform: none; }

    .ygt-category-section { padding-top: 24px; }
    .ygt-category-grid { gap: 6px; }
    .ygt-category-card-shell .ygt-category-card { min-height: 70px; display: grid; justify-items: center; gap: 5px; text-align: center; }
    .ygt-category-copy { justify-items: center; }
    .ygt-category-copy strong { font-size: 10px; }
    .ygt-category-card-actions { top: 4px; right: 4px; }
    .ygt-category-subscribe { min-width: 21px; width: 21px; height: 21px; padding: 0; overflow: hidden; color: transparent; display: inline-flex; align-items: center; justify-content: center; font-size: 0; line-height: 1; }
    .ygt-category-subscribe::before { content: '+'; color: var(--ygt-green); font-size: 13px; line-height: 1; }
    .ygt-category-subscribe.is-subscribed::before { content: '✓'; color: #fff; }
}


/* v2.0.13 mobile article readability + non-fixed phone header */
@media (max-width: 768px) {
    /* Phone navigation scrolls with the page instead of covering content. */
    body { padding-top: 0; }
    .ygt-site-header { position: relative; top: auto; left: auto; right: auto; width: 100%; }
    body.admin-bar .ygt-site-header { top: auto; }

    /* Homepage compact cards: keep the 2-column layout, but let titles breathe. */
    .ygt-content-section .ygt-post-card { min-height: 0; height: auto; }
    .ygt-content-section .ygt-post-body {
        min-height: 126px;
        height: auto;
        padding-top: 11px;
        padding-bottom: 10px;
    }
    .ygt-content-section .ygt-post-title { font-size: 13.5px; line-height: 1.45; }
    .ygt-content-section .ygt-post-title a { -webkit-line-clamp: 3; }
    .ygt-content-section .ygt-post-meta { margin-top: auto; }

    /* Archive/search cards: increase cover room and remove hard visual clipping. */
    .ygt-listing-page .ygt-post-card { height: auto; }
    .ygt-listing-page .ygt-post-cover {
        aspect-ratio: 4 / 3;
        min-height: 138px;
    }
    .ygt-listing-page .ygt-generated-cover {
        padding: 11px 11px 10px;
        overflow: hidden;
    }
    .ygt-listing-page .ygt-cover-chrome {
        gap: 6px;
        font-size: 8.5px;
        line-height: 1.2;
    }
    .ygt-listing-page .ygt-cover-dots { gap: 3px; }
    .ygt-listing-page .ygt-cover-dots i { width: 6px; height: 6px; }
    .ygt-listing-page .ygt-cover-kicker { min-width: 0; }
    .ygt-listing-page .ygt-cover-content {
        justify-content: center;
        gap: 6px;
        padding-block: 5px;
    }
    .ygt-listing-page .ygt-cover-category {
        max-width: 100%;
        padding: 3px 7px;
        font-size: 8.8px;
        line-height: 1.25;
        white-space: normal;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }
    .ygt-listing-page .ygt-cover-title {
        font-size: 14.5px;
        line-height: 1.28;
        letter-spacing: -.01em;
        -webkit-line-clamp: 3;
        overflow-wrap: anywhere;
        text-wrap: wrap;
    }
    .ygt-listing-page .ygt-cover-footer {
        gap: 6px;
        font-size: 8px;
        line-height: 1.2;
    }
    .ygt-listing-page .ygt-post-body {
        min-height: 0;
        height: auto;
        padding: 12px;
    }
    .ygt-listing-page .ygt-post-topline { margin-bottom: 7px; }
    .ygt-listing-page .ygt-post-category {
        max-width: 100%;
        min-height: 22px;
        height: auto;
        padding: 2px 7px;
        font-size: 9.5px;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .ygt-listing-page .ygt-post-title { font-size: 15.5px; line-height: 1.42; }
    .ygt-listing-page .ygt-post-title a { -webkit-line-clamp: 3; }
    .ygt-listing-page .ygt-post-excerpt {
        margin: 8px 0 11px;
        font-size: 11.8px;
        line-height: 1.65;
        -webkit-line-clamp: 3;
    }
    .ygt-listing-page .ygt-post-meta {
        padding-top: 9px;
        gap: 7px;
        flex-wrap: wrap;
        font-size: 9.5px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .ygt-content-section .ygt-post-body { min-height: 122px; }
    .ygt-content-section .ygt-post-title { font-size: 13px; line-height: 1.45; }

    .ygt-listing-page .ygt-post-cover {
        aspect-ratio: 5 / 4;
        min-height: 145px;
    }
    .ygt-listing-page .ygt-generated-cover { padding: 10px 9px 9px; }
    .ygt-listing-page .ygt-cover-title { font-size: 14px; line-height: 1.3; }
    .ygt-listing-page .ygt-post-body { padding: 10px; }
    .ygt-listing-page .ygt-post-title { font-size: 14.5px; line-height: 1.45; }
    .ygt-listing-page .ygt-post-excerpt { font-size: 11.3px; line-height: 1.6; }
    .ygt-listing-page .ygt-post-meta { font-size: 9px; gap: 6px; }
}
