/* Faye Dark Plus — Ghost port of the active Plus UI 2.6.1 components */
:root {
    --accent: #482dff;
    --accent-soft: #e8e5ff;
    --bg: #fff;
    --surface: #fffdfc;
    --surface-2: #f7f8fb;
    --text: #08102b;
    --muted: #707783;
    --border: #e7e9ef;
    --shadow: 0 12px 38px rgba(9, 32, 76, .08);
    --header-height: 60px;
    --nav-width: 230px;
    --content-width: 1280px;
    --sidebar-width: 300px;
    --radius: 14px;
    --font-sans: var(--gh-font-body, "Google Sans Text", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --font-heading: var(--gh-font-heading, "Google Sans Text", Inter, ui-sans-serif, system-ui, sans-serif);
}

html[data-theme="dark"] {
    --bg: #101114;
    --surface: #18191d;
    --surface-2: #202126;
    --text: #f1f2f4;
    --muted: #a3a8b2;
    --border: #303139;
    --accent-soft: #282249;
    --shadow: 0 12px 38px rgba(0, 0, 0, .3);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.65; transition: background .2s, color .2s; }
body.nav-open, body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .65em; color: var(--text); font-family: var(--font-heading); line-height: 1.22; }
p { margin: 0 0 1em; }
.hidden, [hidden] { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 9999; padding: .7rem 1rem; background: var(--accent); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .55rem 1rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.button:hover { color: #fff; filter: brightness(1.07); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 120; height: var(--header-height); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(15px); }
.header-inner { display: flex; align-items: center; gap: 12px; width: min(100%, calc(var(--content-width) + var(--nav-width))); height: 100%; margin: auto; padding: 0 20px; }
.site-brand { display: inline-flex; align-items: center; min-width: 0; color: var(--text); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.site-brand img { width: auto; max-width: 180px; height: 36px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-button:hover { background: var(--surface-2); color: var(--accent); }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-button { margin-right: 4px; }

/* Shell and left navigation */
.site-shell { display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); width: min(100%, calc(var(--content-width) + var(--nav-width))); min-height: calc(100vh - var(--header-height)); margin: auto; }
.side-nav { position: sticky; top: var(--header-height); align-self: start; height: calc(100vh - var(--header-height)); padding: 22px 14px 90px; overflow: auto; border-right: 1px solid var(--border); background: var(--surface); scrollbar-width: thin; }
.primary-nav { display: grid; gap: 5px; }
.nav-item, .nav-group summary { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border-radius: 10px; color: var(--text); cursor: pointer; list-style: none; }
.nav-item:hover, .nav-group summary:hover { background: var(--surface-2); color: var(--accent); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group .chevron { transition: transform .2s; }
.nav-group[open] .chevron { transform: rotate(180deg); }
.nav-group > div { display: grid; gap: 2px; padding: 3px 0 8px 45px; }
.nav-group > div a { padding: 6px 8px; border-radius: 7px; color: var(--muted); font-size: 14px; }
.nav-group > div a:hover { background: var(--surface-2); color: var(--accent); }
.nav-divider { margin: 8px 10px; border-top: 1px solid var(--border); }
.nav-socials { display: flex; gap: 8px; margin: 22px 12px; }
.nav-socials a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; font-weight: 800; }
.nav-backdrop { display: none; }
.site-main { min-width: 0; padding: 30px clamp(18px, 3vw, 42px) 70px; }
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width); gap: 34px; max-width: var(--content-width); margin: 0 auto; }
.content-column { min-width: 0; }

/* Sections */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.section-heading > a { color: var(--accent); font-size: 14px; font-weight: 700; }
.section-kicker { margin: 0 0 5px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.feed-section, .category-section, .pinned-section { margin-bottom: 42px; }
.pinned-card { display: grid; grid-template-columns: minmax(230px, .85fr) 1.15fr; gap: 28px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, var(--surface), var(--accent-soft)); box-shadow: var(--shadow); }
.pinned-image { overflow: hidden; min-height: 230px; border-radius: 11px; }
.pinned-image img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; transition: transform .4s; }
.pinned-image:hover img { transform: scale(1.025); }
.pinned-card h1 { font-size: clamp(25px, 3vw, 38px); }
.pinned-card p { color: var(--muted); }

/* Cards */
.post-list { display: grid; gap: 18px; }
.post-card { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); box-shadow: var(--shadow); }
.post-card-image { overflow: hidden; min-height: 150px; border-radius: 10px; background: var(--surface-2); }
.post-card-image img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.post-card-content { min-width: 0; align-self: center; }
.post-card h2 { margin: 5px 0 8px; font-size: clamp(19px, 2vw, 24px); }
.post-card p { display: -webkit-box; overflow: hidden; margin: 0 0 10px; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.primary-tag { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.post-card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 13px; }
.bookmark-button { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--border); border-radius: 50%; background: color-mix(in srgb, var(--surface) 90%, transparent); cursor: pointer; backdrop-filter: blur(8px); }
.bookmark-button.is-saved, [data-bookmark-button].is-saved { color: var(--accent); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compact-card { display: grid; grid-template-columns: 105px 1fr; gap: 13px; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.compact-image { overflow: hidden; height: 88px; border-radius: 8px; background: var(--surface-2); }
.compact-image img { width: 100%; height: 100%; object-fit: cover; }
.compact-card h3 { display: -webkit-box; overflow: hidden; margin: 3px 0 6px; font-size: 15px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.compact-card time { color: var(--muted); font-size: 12px; }

/* Sidebar widgets */
.sidebar, .article-sidebar { display: grid; align-content: start; gap: 20px; min-width: 0; }
.widget { overflow: hidden; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.widget > h2 { margin-bottom: 15px; font-size: 17px; }
.contributors { display: grid; gap: 10px; }
.contributors > a { display: flex; align-items: center; gap: 11px; padding: 7px; border-radius: 10px; }
.contributors > a:hover { background: var(--surface-2); }
.contributors img, .avatar-fallback { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; text-align: center; }
.contributors span span { display: grid; }
.contributors strong { font-size: 14px; }
.contributors small { color: var(--muted); }
.clock-widget { text-align: center; }
.clock-widget time { display: block; font-size: 30px; letter-spacing: .14em; }
.clock-widget p { width: max-content; max-width: 100%; margin: 4px auto 0; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.clock-widget small { display: block; margin-top: 8px; color: var(--muted); }
.follow-widget > a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border-radius: 11px; background: var(--surface-2); box-shadow: var(--shadow); }
.follow-widget span { display: grid; }
.follow-widget strong { font-size: 13px; }
.follow-widget small { color: var(--muted); font-size: 11px; }
.follow-widget b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: #1877f2; color: #fff; font-size: 25px; }
.popular-widget ol { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; counter-reset: popular; }
.popular-widget li { counter-increment: popular; }
.popular-widget a { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.popular-widget a::before { content: counter(popular); display: none; }
.popular-widget img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.tags-widget ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tags-widget a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; }
.tags-widget a:hover { background: var(--surface-2); }
.tags-widget small { color: var(--muted); }
.blogroll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.blogroll a { position: relative; overflow: hidden; padding: 9px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.blogroll a:hover { transform: scale(1.03); }
.ad-sticky { position: sticky; top: calc(var(--header-height) + 18px); }

/* Ads */
.ad-slot { display: grid; place-items: center; min-height: 120px; margin: 0 0 28px; padding: 10px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface-2); }
.ad-slot::before { content: "Advertisement"; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ad-slot .adsbygoogle { width: 100%; min-width: 250px; }

/* Archive */
.archive-header { max-width: 920px; margin: 0 auto 30px; padding: 30px; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.archive-header h1 { font-size: clamp(32px, 6vw, 58px); }
.archive-header > p:last-child { color: var(--muted); }
.author-header { display: flex; align-items: center; gap: 20px; }
.author-header img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }

/* Article and imported Blogger content */
.post-layout { grid-template-columns: minmax(0, 1fr) 280px; }
.article { min-width: 0; max-width: 860px; margin: 0 auto; }
.page-article { max-width: 900px; }
.article-header { margin-bottom: 26px; }
.article-header h1 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.035em; }
.article-excerpt { color: var(--muted); font-size: 19px; }
.article-image { margin: 28px 0; }
.article-image img { width: 100%; max-height: 620px; border-radius: var(--radius); object-fit: cover; }
.article-image figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.article-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.article-tools > * { min-height: 36px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 12px; }
.article-tools > *:hover { border-color: var(--accent); color: var(--accent); }
.gh-content { color: var(--text); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.gh-content > * { max-width: 780px; margin-right: auto; margin-left: auto; }
.gh-content > iframe, .gh-content > figure, .gh-content > .kg-width-wide { max-width: 980px; }
.gh-content > .kg-width-full { width: min(100vw, 1280px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content h2 { margin-top: 2em; font-size: 1.65em; }
.gh-content h3 { margin-top: 1.7em; font-size: 1.35em; }
.gh-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gh-content blockquote { margin: 1.7em auto; padding: 5px 0 5px 22px; border-left: 4px solid var(--accent); color: var(--muted); font-size: 1.08em; }
.gh-content pre { overflow: auto; padding: 18px; border-radius: 10px; background: #11131a; color: #e8e9ef; font-size: 14px; line-height: 1.55; }
.gh-content code { padding: .12em .35em; border-radius: 5px; background: var(--surface-2); font-family: "Google Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.gh-content pre code { padding: 0; background: transparent; }
.gh-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; }
.gh-content th, .gh-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.gh-content img { height: auto; border-radius: 8px; }
.gh-content .separator, .gh-content .tr-caption-container { max-width: 100% !important; margin: 1.5em auto !important; text-align: center; }
.gh-content iframe { max-width: 100%; border: 0; }
.gh-content input:not([type="checkbox"]):not([type="radio"]), .gh-content textarea, .gh-content select { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.gh-content button, .gh-content .button { padding: 9px 13px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; }
.article-footer { margin: 34px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.native-comments, .related { margin-top: 42px; }
.native-comments > h2 { font-size: 24px; }
.legacy-comments { max-width: 780px; margin: 45px auto 0; padding-top: 25px; border-top: 1px solid var(--border); }
.legacy-comments > h2 { font-size: 22px; }
.legacy-comments ol { display: grid; gap: 12px; padding: 0; list-style: none; }
.legacy-comment { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.legacy-comment > p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.legacy-comment > div > :last-child { margin-bottom: 0; }

/* Table of contents */
.toc-widget { position: sticky; top: calc(var(--header-height) + 18px); max-height: calc(100vh - var(--header-height) - 36px); overflow: auto; }
.toc-widget nav { display: grid; gap: 4px; }
.toc-widget a { padding: 5px 7px; border-left: 2px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.35; }
.toc-widget a[data-level="3"] { padding-left: 18px; }
.toc-widget a:hover, .toc-widget a.is-active { border-color: var(--accent); color: var(--accent); }

/* Pagination */
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 25px; color: var(--muted); font-size: 13px; }
.pagination a { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; }
.pagination .older-posts { justify-self: end; }

/* Footer */
.site-footer { position: relative; margin-left: var(--nav-width); background: var(--surface-2); }
.footer-wave { height: 44px; background: linear-gradient(175deg, transparent 0 48%, color-mix(in srgb, var(--accent) 18%, var(--surface-2)) 49% 60%, var(--surface-2) 61%); }
.footer-inner { display: grid; justify-items: center; gap: 15px; max-width: var(--content-width); margin: auto; padding: 30px 20px 90px; text-align: center; }
.footer-inner nav, .footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 12px; }

/* Drawers, cookie, notifications */
.drawer { position: fixed; top: 0; right: 0; z-index: 300; width: min(390px, calc(100% - 32px)); height: 100dvh; padding: 22px; transform: translateX(105%); background: var(--surface); box-shadow: -20px 0 55px rgba(0,0,0,.18); transition: transform .25s; }
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); font-size: 25px; cursor: pointer; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 290; visibility: hidden; border: 0; opacity: 0; background: rgba(4,6,14,.5); transition: opacity .25s, visibility .25s; }
body.drawer-open .drawer-backdrop { visibility: visible; opacity: 1; }
.bookmark-list { display: grid; gap: 8px; margin: 20px 0; }
.bookmark-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; }
.bookmark-item button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.cookie-banner { position: fixed; right: 20px; bottom: 20px; z-index: 400; width: min(390px, calc(100% - 40px)); padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.cookie-banner p { color: var(--muted); font-size: 13px; }
.cookie-banner > div { display: flex; align-items: center; gap: 14px; }
.cookie-banner a { color: var(--accent); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 450; visibility: hidden; padding: 10px 15px; transform: translate(-50%, 20px); border-radius: 999px; opacity: 0; background: var(--text); color: var(--bg); font-size: 13px; transition: .2s; }
.toast.is-visible { visibility: visible; transform: translate(-50%, 0); opacity: 1; }

/* Mobile dock */
.mobile-dock { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 170; display: none; grid-template-columns: repeat(5, 1fr); min-height: 58px; padding: 4px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.mobile-dock > * { display: grid; place-items: center; align-content: center; gap: 1px; border: 0; border-radius: 11px; background: transparent; color: var(--text); cursor: pointer; font-size: 19px; }
.mobile-dock small { color: var(--muted); font-size: 9px; }

/* 404 */
.error-page { display: grid; justify-items: center; max-width: 650px; margin: 8vh auto; text-align: center; }
.error-page strong { color: var(--accent); font-size: clamp(100px, 24vw, 220px); line-height: .9; letter-spacing: -.09em; }
.error-page h1 { margin-top: 25px; font-size: 38px; }
.error-page p { color: var(--muted); }

@media (max-width: 1100px) {
    .site-shell { grid-template-columns: 1fr; }
    .side-nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 250; width: min(290px, calc(100% - 52px)); height: 100dvh; padding-top: 78px; transform: translateX(-105%); box-shadow: var(--shadow); transition: transform .25s; }
    body.nav-open .side-nav { transform: translateX(0); }
    .nav-backdrop { position: fixed; inset: 0; z-index: 240; visibility: hidden; display: block; border: 0; opacity: 0; background: rgba(4,6,14,.5); transition: opacity .25s, visibility .25s; }
    body.nav-open .nav-backdrop { visibility: visible; opacity: 1; }
    .site-footer { margin-left: 0; }
}

@media (max-width: 900px) {
    .content-wrap, .post-layout { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-sidebar > .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toc-widget { position: static; max-height: none; }
}

@media (max-width: 680px) {
    body { padding-bottom: 78px; }
    .site-main { padding: 22px 15px 45px; }
    .header-inner { padding: 0 12px; }
    .profile-button { display: none; }
    .pinned-card { grid-template-columns: 1fr; gap: 18px; }
    .pinned-image, .pinned-image img { min-height: 190px; }
    .post-card { grid-template-columns: 115px minmax(0, 1fr); gap: 13px; padding: 10px; }
    .post-card-image, .post-card-image img { min-height: 115px; }
    .post-card h2 { font-size: 17px; }
    .post-card p { display: none; }
    .post-card-meta span:last-child, .post-card-meta span:nth-last-child(2) { display: none; }
    .category-grid, .sidebar, .article-sidebar > .sidebar { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 34px; }
    .gh-content { font-size: 16px; }
    .mobile-dock { display: grid; }
    .cookie-banner { bottom: 84px; }
    .footer-inner { padding-bottom: 35px; }
}

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

/* Pixel-aligned Plus UI homepage port. Values mirror the active Blogger layout. */
@font-face {
    font-family: "Google Sans Text";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://fonts.gstatic.com/s/googlesanstext/v16/5aUu9-KzpRiLCAt4Unrc-xIKmCU5qEp2iw.woff2") format("woff2");
}
@font-face {
    font-family: "Google Sans Text";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("https://fonts.gstatic.com/s/googlesanstext/v16/5aUp9-KzpRiLCAt4Unrc-xIKmCU5oPFTnmhjtg.woff2") format("woff2");
}

:root {
    --surface: #fffdfc;
    --surface-2: #f6f6f6;
    --text: #08102b;
    --muted: #656b7a;
    --border: #eceff1;
    --shadow: 0 5px 35px rgba(0, 0, 0, .07);
    --radius: 10px;
}

body { font-size: 14px; line-height: 1.6; }
.site-header { height: 60px; border-bottom: 0; background: var(--surface); box-shadow: 0 0 15px rgba(0, 0, 0, .07); backdrop-filter: none; }
.header-inner { width: 100%; max-width: none; padding: 0 25px 0 20px; }
.header-left { display: flex; align-items: center; width: 195px; flex: 0 0 195px; }
.site-brand { font-size: 18px; font-weight: 400; letter-spacing: 0; }
.site-brand img { max-width: 160px; max-height: 45px; }
.menu-button { width: 30px; height: 30px; margin: 0 13px 0 0; }
.header-search { position: relative; display: flex; align-items: center; width: 346px; height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: rgba(0, 0, 0, .03); color: #48525c; cursor: text; }
.header-search:hover { background: rgba(0, 0, 0, .05); }
.header-search svg { width: 18px; height: 18px; margin-right: 10px; fill: none; stroke: #48525c; stroke-width: 1.75; }
.header-search span { font-size: 13px; opacity: .72; }
.header-actions { gap: 2px; }
.icon-button { width: 32px; height: 32px; }
.icon-button:hover { background: rgba(0, 0, 0, .05); }
.icon-button svg { width: 20px; height: 20px; stroke-width: 1.65; }
.mobile-search-button { display: none; }
.header-actions [data-drawer-open="bookmarks"] { display: none; }

.site-shell { width: 100%; max-width: none; }
.site-main { padding: 30px 25px 70px; }
.content-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 25px; max-width: none; }
.side-nav { padding: 20px; border: 0; background: var(--surface); box-shadow: 0 0 15px rgba(0, 0, 0, .07); }
.nav-item, .nav-group summary { min-height: 40px; padding: 10px 5px; border-radius: 8px; }
.nav-group > div { padding: 0 0 0 35px; }
.nav-group > div a { padding: 8px 10px; }
.nav-divider { margin: 12px 5px; }
.nav-socials { margin: 20px 5px; }

.ad-slot { min-height: 120px; margin: 0 0 40px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.ad-slot::before { display: none; }
.ad-slot .adsbygoogle { min-width: 270px; min-height: 120px; }
.ad-sticky { min-height: 70px; margin-top: 40px; }

.source-section-title { position: relative; display: flex; align-items: center; min-height: 20px; margin: 0 0 25px; font-size: 15px; font-weight: 400; line-height: 20px; }
.source-section-title::after { content: ""; width: 25px; margin-left: 10px; border-bottom: 1px solid #eee; opacity: .75; }
.source-section-title::before { content: ""; position: absolute; top: 0; right: 0; width: 20px; height: 20px; opacity: .3; background-image: radial-gradient(circle, #989b9f 2px, transparent 2.3px); background-size: 7px 7px; }
.feed-section, .category-section, .pinned-section { margin-bottom: 40px; }

.pinned-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; width: 100%; gap: 0; padding: 10px; overflow: hidden; border: 0; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.pinned-card::after { content: ""; position: absolute; top: 0; right: 0; width: 40px; height: 15px; border-radius: 0 0 0 20px; background: var(--accent); opacity: .2; }
.pinned-image { position: relative; flex: 0 0 310px; width: 310px; min-height: 0; aspect-ratio: 1.91 / 1; margin: 0 10px 0 0; overflow: hidden; border-radius: 5px; background: rgba(0, 0, 0, .05); }
.pinned-image img { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; transform: translate(-50%, -50%); transition: transform .4s; }
.pinned-image:hover img { transform: translate(-50%, -50%) scale(1.03); }
.pinned-content { flex: 1 0 calc(100% - 350px); width: calc(100% - 350px); min-width: 0; margin: 0 0 0 10px; }
.pinned-labels, .post-labels { margin-bottom: 8px; overflow: hidden; color: inherit; font-size: 13px; line-height: 18px; opacity: .8; text-overflow: ellipsis; white-space: nowrap; }
.pinned-card h3 { margin: 0; font-size: 17.6px; line-height: 1.5; }
.pinned-card h3 a { display: -webkit-box; overflow: hidden; color: inherit; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.pinned-card p { display: -webkit-box; overflow: hidden; margin: 12px 0 0; color: inherit; font-size: 14px; line-height: 1.5; opacity: .8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pinned-card time { display: block; margin-top: 15px; font-size: 13px; opacity: .8; }

.post-list { position: relative; display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; align-items: stretch; }
.post-card { display: block; width: 100%; min-width: 0; margin: 0 0 20px; padding: 10px 10px 45px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.post-card:hover { transform: none; border-color: transparent; box-shadow: var(--shadow); }
.post-card-image { position: relative; display: block; min-height: 0; margin-bottom: 20px; padding-top: 52.335%; overflow: hidden; border-radius: 5px; background: rgba(0, 0, 0, .05); }
.post-card-image img { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; min-height: 0; max-width: none; object-fit: cover; transform: translate(-50%, -50%); transition: transform .4s; }
.post-card:hover .post-card-image img { transform: translate(-50%, -50%) scale(1.03); }
.post-card-content { padding: 0 5px; }
.post-card h2 { margin: 0; font-size: 16px; line-height: 1.5; }
.post-card h2 a { display: -webkit-box; overflow: hidden; color: inherit; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { display: -webkit-box; overflow: hidden; margin: 12px 0 0; color: inherit; font-size: 14px; line-height: 1.5; opacity: .8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tag-chips a.is-guest { display: none; }
.tag-chips a:not(.is-guest) ~ a:not(.is-guest)::before { content: " / "; color: inherit; }
.post-card-meta { position: absolute; right: 15px; bottom: 15px; left: 15px; display: flex; align-items: baseline; justify-content: space-between; color: inherit; font-size: 13px; opacity: .8; }
.post-card-meta a { color: var(--accent); opacity: 0; transition: opacity .2s; }
.post-card:hover .post-card-meta a { opacity: 1; }
.category-grid { margin-bottom: 0; }
.category-more { display: flex; justify-content: center; margin-top: 5px; }
.category-more a, .pagination a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 16px; border: 0; border-radius: 20px; background: var(--accent); color: #fff; font-size: 12px; }
.pagination { margin-top: 5px; }

.sidebar { display: block; min-width: 0; }
.sidebar .widget { overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; }
.sidebar .widget:not(:first-child) { margin-top: 40px; }
.home-template .contributor-widget { display: none; }
.widget > h2 { position: relative; display: flex; align-items: center; margin: 0 0 25px; font-size: 15px; font-weight: 400; }
.widget > h2::after { content: ""; width: 25px; margin-left: 10px; border-bottom: 1px solid #eee; opacity: .75; }
.clock-widget { padding-top: 0 !important; text-align: center; }
.clock-widget time { font-size: 30px; font-weight: 400; line-height: 1.2; letter-spacing: .14em; }
.clock-widget p { padding-bottom: 6px; }
.clock-widget small { display: none; }
.follow-widget > a { padding: 13px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.popular-widget, .tags-widget { padding: 20px 20px 30px !important; border-radius: 10px !important; background: var(--surface) !important; box-shadow: var(--shadow); }
.tags-widget { padding-bottom: 20px !important; }
.popular-widget ol { gap: 0; }
.popular-widget li:not(:last-child) { margin-bottom: 25px; }
.popular-widget a { grid-template-columns: 25px 1fr; gap: 0; font-size: 15px; line-height: 1.5; }
.popular-widget a::before { display: block; width: 25px; color: var(--text); font-size: 12px; font-weight: 400; opacity: .6; }
.popular-widget img { display: none; }
.tags-widget ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.tags-widget a { padding: 8px 10px; border-radius: 4px; line-height: 20px; }
.tags-widget a span { overflow: hidden; opacity: .7; text-overflow: ellipsis; white-space: nowrap; }
.blogroll { gap: 8px; }
.blogroll a { border-radius: 4px; background: var(--surface); box-shadow: var(--shadow); }

.site-footer { background: transparent; }
.footer-wave { height: 100px; }
.footer-inner { margin: 0 25px 0 0; padding: 20px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.footer-inner > .site-brand, .footer-inner > p { display: none; }

html[data-theme="dark"] .header-search { background: var(--surface-2); }
html[data-theme="dark"] .pinned-card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .follow-widget > a,
html[data-theme="dark"] .popular-widget,
html[data-theme="dark"] .tags-widget,
html[data-theme="dark"] .blogroll a,
html[data-theme="dark"] .footer-inner { background: var(--surface) !important; }

@media (max-width: 1100px) and (min-width: 897px) {
    .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pinned-image { flex-basis: calc(50% - 20px); width: calc(50% - 20px); }
    .pinned-content { flex-basis: calc(50% - 20px); width: calc(50% - 20px); }
    .pinned-card p { display: none; }
}

@media (max-width: 896px) {
    .site-header { position: relative; height: 75px; padding: 15px 15px 0; box-shadow: none; background: transparent; }
    .site-header.is-stuck { box-shadow: none; }
    .header-inner { height: 60px; padding: 0 20px 0 15px; border-radius: 30px; background: var(--surface); box-shadow: 0 5px 15px rgba(0, 0, 0, .07); }
    .header-left { width: auto; flex: 1 1 auto; }
    .header-search { display: none; }
    .mobile-search-button { display: grid; }
    .profile-button { display: grid; }
    .site-shell { min-height: calc(100vh - 75px); }
    .side-nav { top: 15px; bottom: 15px; width: min(80%, 480px); height: calc(100dvh - 30px); padding-top: 60px; border-radius: 20px; }
    .site-main { padding: 20px 20px 60px; }
    .content-wrap, .post-layout { grid-template-columns: 1fr; }
    .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sidebar, .article-sidebar > .sidebar { display: block; max-width: 500px; margin: 50px auto 0; }
    .site-footer { margin-left: 0; }
    .footer-inner { margin-left: 20px; }
}

@media (max-width: 768px) {
    .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
    body { padding-bottom: 70px; }
    .header-actions .profile-button { display: none; }
    .site-main { padding-right: 20px; padding-left: 20px; }
    .post-list { grid-template-columns: 1fr; }
    .pinned-card { left: -10px; display: flex; width: calc(100% + 20px); padding: 0 0 80px; overflow: visible; background: transparent; box-shadow: none; }
    .pinned-card::after { display: none; }
    .pinned-image { flex: 0 0 calc(100% - 20px); width: calc(100% - 20px); margin: 0 10px; }
    .pinned-content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; flex: 0 0 calc(100% - 42px); width: calc(100% - 42px); margin: 0 auto; padding: 13px; border-radius: 10px; background: rgba(255, 253, 252, .92); box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .1); backdrop-filter: saturate(180%) blur(10px); }
    .pinned-card h3 { font-size: 16px; }
    .pinned-card p { font-size: 13px; }
    .pinned-labels { display: none; }
    html[data-theme="dark"] .pinned-content { background: rgba(32, 33, 38, .92); }
    .post-card { padding: 10px 10px 45px; }
    .post-card h2 { font-size: 16px; font-weight: 700; }
    .post-card p { display: -webkit-box; }
    .post-card-meta { display: flex; }
    .post-card-meta a { display: inline-flex; }
    .mobile-dock { right: 0; bottom: 0; left: 0; min-height: 55px; padding: 0 20px; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 33px 33px 0 0; background: var(--surface-2); }
    .mobile-dock > * { font-size: 18px; }
    .mobile-dock small { display: none; }
    .cookie-banner { bottom: 70px; }
}

/* Single post blocks follow the Blogger article hierarchy. */
.post-template .article { max-width: 780px; }
.article-header { margin-bottom: 40px; }
.article-greeting { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 18px; padding: 8px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; }
.article-greeting:first-letter { color: var(--accent); }
.article-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.article-breadcrumbs a:hover { color: var(--accent); }
.article-header h1 { margin: 0 0 8px; font-size: 36px; line-height: 1.3; letter-spacing: 0; }
.article-excerpt { margin-bottom: 25px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.source-meta-box { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 15px 18px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: 13px; }
.meta-reading::before { content: " · "; }
.source-meta-box button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; }
.source-meta-box button:hover { background: var(--surface-2); }
.source-meta-box svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.post-template .gh-content { font-size: 16px; line-height: 1.8; }
.gh-content .tr-caption-container td { border: 0; }
.gh-content .tr-caption { color: var(--muted); font-size: 13px; }
.source-toc, .sidebar .contributor-widget { display: none !important; }
.sidebar .clock-widget { margin-top: 0 !important; }

/* Popular Posts: lead image followed by the numbered compact list. */
.popular-widget ol { counter-reset: popular; }
.popular-widget li { position: relative; counter-increment: popular; }
.popular-widget a { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 0; align-items: start; font-size: 13px; font-weight: 400; }
.popular-widget a::before { content: "0" counter(popular); display: block; grid-column: 1; color: var(--muted); font-size: 12px; line-height: 1.8; }
.popular-widget img { display: none; }
.popular-widget li:first-child img { display: block; width: 100%; height: 135px; grid-column: 1 / -1; margin-bottom: 18px; border-radius: 5px; object-fit: cover; }
.popular-widget li:first-child img { grid-row: 1; }
.popular-widget li:first-child a::before, .popular-widget li:first-child .popular-copy { grid-row: 2; }
.popular-copy { display: grid; grid-column: 2; min-width: 0; }
.popular-copy small { margin-bottom: 8px; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.popular-copy small i { margin: 0 5px; color: var(--border); font-style: normal; }
.popular-copy strong { color: var(--text); font-size: 15px; line-height: 1.5; }
.popular-copy em { display: -webkit-box; overflow: hidden; margin-top: 12px; color: var(--muted); font-size: 13px; font-style: normal; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

@media (max-width: 500px) {
    .post-template .article { max-width: 100%; }
    .article-header { margin-bottom: 40px; }
    .article-greeting { margin-bottom: 18px; }
    .article-header h1 { font-size: 28px; line-height: 1.3; }
    .article-excerpt { font-size: 14px; }
    .source-meta-box { align-items: center; }
    .meta-updated, .meta-reading { display: block; }
    .meta-reading::before { content: ""; }
    .post-template .gh-content { font-size: 15px; }
    .post-template .gh-content h2 { font-size: 28px; line-height: 1.5; }
}

/* Source-faithful header, navigation, mobile dock, footer and dark mode. */
html.drK,
html[data-theme="dark"] {
    --accent: #41b375;
    --bg: #1e1e1e;
    --surface: #2d2d30;
    --surface-2: #252526;
    --text: #f1f1f1;
    --muted: #b7b7ba;
    --border: rgba(255, 255, 255, .15);
    --accent-soft: #302d4f;
    --shadow: 0 10px 40px rgba(0, 0, 0, .2);
    color-scheme: dark;
}

svg.line { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
svg.line .svgC { opacity: .45; }
svg.line .fill { fill: currentColor; stroke: currentColor; }

/* Header icons and the original :after hover halo. */
.site-header.stick { box-shadow: 0 5px 20px rgba(0, 0, 0, .1); }
.tIc { position: relative; isolation: isolate; }
.tIc::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    visibility: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, .05);
    content: "";
    opacity: 0;
    transform: scale(1);
    transition: transform .1s ease, opacity .1s ease, visibility .1s ease;
}
.tIc:hover { background: transparent; }
.tIc:hover::after { visibility: visible; opacity: 1; transform: scale(1.3); }
html.drK .tIc::after { background: rgba(0, 0, 0, .15); }
.theme-toggle .d2,
.mobile-dock [data-theme-toggle] .d2 { display: none; }
html.drK .theme-toggle .d1,
html.drK .mobile-dock [data-theme-toggle] .d1 { display: none; }
html.drK .theme-toggle .d2,
html.drK .mobile-dock [data-theme-toggle] .d2 { display: block; }
.theme-toggle .d2 .f,
.mobile-dock [data-theme-toggle] .d2 .f { fill: currentColor; stroke: none; opacity: .2; }

/* Navbar SVG sizing, separators and the submenu tree made by ::before. */
.primary-nav svg { width: 20px; height: 20px; flex: 0 0 20px; opacity: .8; }
.primary-nav svg.d { width: 14px; height: 14px; }
.nav-item,
.nav-group summary { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; }
.nav-item:hover svg.line:not(.d),
.nav-group summary:hover svg.line:not(.d) { stroke: var(--accent); }
.nav-group-bordered::after,
.nav-item-bordered::after {
    display: block;
    grid-column: 1 / -1;
    margin: 12px 5px 0;
    border-bottom: 1px solid var(--border);
    content: "";
}
.nav-group > div { position: relative; padding-left: 40px; }
.nav-group > div::before {
    position: absolute;
    top: 0;
    bottom: 18px;
    left: 15px;
    width: 1px;
    border-left: 1px solid currentColor;
    content: "";
    opacity: .2;
}
.nav-group > div a { position: relative; overflow: visible; }
.nav-group > div a::before {
    position: absolute;
    top: 17.5px;
    left: -15px;
    width: 13px;
    height: 1px;
    border-bottom: 1px solid currentColor;
    content: "";
    opacity: .2;
}
.nav-en { position: relative; }
.nav-en sup { position: absolute; top: -6px; margin-left: 3px; color: brown; font-size: 12px; }
.nav-socials svg { width: 20px; height: 20px; fill: currentColor; }

/* Footer link popup and exact animated wave from the Blogger template. */
.site-footer { position: relative; isolation: isolate; min-height: 180px; padding: 40px 0 20px; overflow: hidden; background: transparent; }
.footer-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 67px;
    margin: 0 25px 0 0;
    padding: 20px;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 5px 35px rgba(0, 0, 0, .1);
    text-align: left;
}
.footer-credit { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.footer-credit a { opacity: .8; }
.footer-navigation { position: relative; margin-left: auto; }
.footer-menu-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.footer-menu { display: flex; align-items: baseline; margin: 0; padding: 0; list-style: none; color: var(--text); font-size: 14px; }
.footer-menu > :not(:last-child)::after { margin: 0 10px; content: "\00B7"; opacity: .7; }
.footer-menu a { opacity: .8; }
.footer-menu a:hover { color: var(--accent); }
.footer-menu-toggle,
.footer-menu-backdrop { display: none; }
.footer-social { display: flex; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-social a { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-wave { position: absolute; right: 0; bottom: 0; left: 0; z-index: 0; height: 160px; background: none; pointer-events: none; }
.wave-shape { position: relative; height: 100px; }
.wave-shape .waves { position: absolute; bottom: 0; width: 100%; height: 60px; min-height: 100px; max-height: 150px; }
.wave-height { position: relative; height: 60px; background: #f5f6f8; }
.plx > use { fill: #f5f6f8; animation: waveMove 25s cubic-bezier(.55, .5, .45, .5) infinite; }
.plx > use:nth-child(1) { opacity: .7; animation-delay: -2s; animation-duration: 7s; }
.plx > use:nth-child(2) { opacity: .5; animation-delay: -3s; animation-duration: 10s; }
.plx > use:nth-child(3) { opacity: .3; animation-delay: -4s; animation-duration: 13s; }
.plx > use:nth-child(4) { opacity: 1; animation-delay: -5s; animation-duration: 20s; }
html.drK .wave-height { background: #343435; }
html.drK .plx > use { fill: #343435; }
@keyframes waveMove {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* Style 3 mobile dock: SVG state and the original :after indicator dot. */
.mobile-dock > * { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 35px; height: 35px; padding: 0 8px; color: inherit; transition: .1s ease; }
.mobile-dock svg { width: 20px; height: 20px; margin: 0 3px; flex-shrink: 0; opacity: .8; }
.mobile-dock > *::after { position: absolute; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; content: ""; opacity: 0; }
.mobile-dock > *:hover { background: transparent; }
.mobile-dock > *:hover::after { background: var(--accent); opacity: .7; }
.mobile-dock > *:hover svg.line { fill: var(--accent); stroke: var(--accent); opacity: .7; }
.MN-4 .mobile-dock { transition: bottom 1.2s ease; }
.MN-4 .mobile-dock.slide { bottom: -150px; transition-duration: 1.5s; }

@media (max-width: 896px) {
    .site-header.stick { box-shadow: none; }
    .primary-nav { gap: 5px; }
    .side-nav { box-shadow: 0 5px 35px rgba(0, 0, 0, .1); }
    .nav-backdrop { background: rgba(4, 6, 14, .35); backdrop-filter: blur(3px); }
    .site-footer { padding-bottom: 20px; }
    .footer-inner { margin-left: 20px; }
    .mobile-dock { display: flex; align-items: center; justify-content: center; }
    .mobile-dock > * { flex: 1 0 20%; }
}

@media (max-width: 640px) {
    .site-footer { min-height: 215px; }
    .footer-inner { min-height: 67px; }
    .footer-credit { flex: 1 1 auto; }
    .footer-menu-toggle { display: flex; align-items: center; justify-content: flex-end; width: 36px; cursor: pointer; }
    .footer-menu-toggle svg { width: 20px; height: 20px; }
    .footer-menu-toggle svg.u { width: 14px; height: 14px; }
    .footer-menu {
        position: absolute;
        right: 4px;
        bottom: 32px;
        z-index: 12;
        visibility: hidden;
        display: block;
        width: 180px;
        overflow: hidden;
        border-radius: 16px 16px 5px;
        opacity: 0;
        background: var(--surface);
        box-shadow: 0 5px 25px -3px rgba(0, 0, 0, .1);
        transition: opacity .1s ease, visibility .1s ease;
    }
    .footer-menu > :not(:last-child)::after { display: none; }
    .footer-menu a { display: block; padding: 8px 15px; overflow: hidden; line-height: normal; text-overflow: ellipsis; }
    .footer-menu li:first-child a { padding-top: 15px; }
    .footer-menu li:last-child a { padding-bottom: 15px; }
    .footer-menu-backdrop { position: fixed; inset: 0; z-index: 11; visibility: hidden; display: block; opacity: 0; }
    .footer-menu-input:checked ~ .footer-menu,
    .footer-menu-input:checked ~ .footer-menu-backdrop { visibility: visible; opacity: 1; }
    .footer-social { flex-shrink: 0; }
    .wave-shape .waves { height: 40px; min-height: 50px; }
    .wave-height { height: 100px; }
}

/* Production parity pass: collapsible Plus UI navigation. */
.site-shell,
.header-left,
.site-footer { transition: width .1s ease, margin .1s ease, grid-template-columns .1s ease; }
.side-nav {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding: 20px;
    transition: width .1s ease, transform .2s ease;
}
.primary-nav { flex: 0 0 auto; }
.nav-bottom { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border); text-align: center; }
.nav-bottom-links { margin-bottom: 5px; white-space: nowrap; }
.nav-bottom-links > * { font-size: 13px; opacity: .8; }
.nav-bottom-links > :not(:last-child)::after { margin: 0 3px; content: "\00B7"; opacity: .7; }
.nav-socials { justify-content: center; margin: 5px 0 0; }
.nav-socials a { position: relative; width: 30px; height: 30px; border: 0; }
.nav-socials svg { position: relative; z-index: 1; }

@media (min-width: 897px) {
    .site-shell { grid-template-columns: var(--nav-width) minmax(0, 1fr); }
    .site-main { grid-column: 2; }
    .side-nav {
        position: fixed;
        top: var(--header-height);
        bottom: 0;
        left: 0;
        z-index: 110;
        width: var(--nav-width);
        height: calc(100vh - var(--header-height));
        padding-top: 20px;
        transform: none;
        border-radius: 0;
    }
    .nav-backdrop { display: none; }
    body.nav-collapsed .site-shell { grid-template-columns: 75px minmax(0, 1fr); }
    body.nav-collapsed .side-nav { width: 75px; padding-right: 15px; padding-left: 15px; overflow: visible; }
    body.nav-collapsed .header-left { width: 55px; flex-basis: 55px; }
    body.nav-collapsed .site-brand { display: none; }
    body.nav-collapsed .menu-button { margin-right: 0; }
    body.nav-collapsed .site-footer { margin-left: 75px; }
    body.nav-collapsed .primary-nav { justify-items: center; }
    body.nav-collapsed .nav-item,
    body.nav-collapsed .nav-group summary { width: 40px; grid-template-columns: 20px; gap: 0; padding: 10px; border-radius: 15px; }
    body.nav-collapsed .nav-item > span,
    body.nav-collapsed .nav-group summary > span,
    body.nav-collapsed .nav-group summary .chevron,
    body.nav-collapsed .nav-bottom { display: none; }
    body.nav-collapsed .nav-group { position: relative; }
    body.nav-collapsed .nav-group::after,
    body.nav-collapsed .nav-item::after { max-width: 20px; }
    body.nav-collapsed .nav-group > div {
        position: absolute;
        top: 3px;
        left: 45px;
        z-index: 5;
        visibility: hidden;
        display: grid !important;
        width: 170px;
        padding: 5px;
        overflow: hidden;
        border-radius: 5px 16px 16px;
        opacity: 0;
        background: var(--surface);
        box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
        transition: opacity .1s ease, visibility .1s ease;
    }
    body.nav-collapsed .nav-group:hover > div { visibility: visible; opacity: 1; }
    body.nav-collapsed .nav-group > div::before,
    body.nav-collapsed .nav-group > div a::before { display: none; }
    body.nav-collapsed .nav-group > div a { padding: 10px; border-radius: 0; }
    body.nav-collapsed .nav-item { position: relative; overflow: visible; }
    body.nav-collapsed .nav-item > span {
        position: absolute;
        top: 3px;
        left: 35px;
        z-index: 5;
        visibility: hidden;
        display: block;
        max-width: 180px;
        padding: 8px 10px;
        overflow: hidden;
        border-radius: 5px 16px 16px;
        opacity: 0;
        background: var(--surface);
        box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
        color: var(--text);
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: opacity .1s ease, visibility .1s ease;
    }
    body.nav-collapsed .nav-item:hover > span { visibility: visible; opacity: 1; }
}

/* The original Change Mode popup: Light, Dark, and System Default. */
.theme-switcher { position: relative; }
.theme-mode-menu {
    position: absolute;
    top: 38px;
    right: 0;
    z-index: 180;
    visibility: hidden;
    width: 150px;
    padding: 10px 0;
    overflow: hidden;
    border-radius: 10px 5px 10px 10px;
    opacity: 0;
    background: var(--surface);
    box-shadow: 0 0 15px rgba(0, 0, 0, .07);
    font-size: 13px;
    transition: opacity .2s ease, visibility .2s ease;
}
.theme-mode-menu::before { display: block; width: 100%; padding: 0 15px 10px; content: attr(data-text); font-size: 11px; opacity: .7; }
.theme-mode-menu > button { display: block; width: 100%; padding: 9px 15px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.theme-mode-menu > button:hover { background: rgba(0, 0, 0, .05); }
.theme-mode-menu > button[aria-checked="true"] { background: rgba(0, 0, 0, .1); }
body.theme-menu-open .theme-mode-menu { visibility: visible; opacity: 1; }
html.drK .theme-mode-menu { background: var(--surface-2); }
html.drK .theme-mode-menu > button:hover,
html.drK .theme-mode-menu > button[aria-checked="true"] { background: rgba(0, 0, 0, .18); }

/* Source widget titles, triangular dot ornament, labels, friend links, and Follow card. */
.sidebar .widget-title {
    position: relative;
    min-height: 20px;
    margin: 0 0 25px;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}
.sidebar .widget-title::after { display: inline-block; width: 25px; margin: 0 10px; border-bottom: 1px solid #eee; content: ""; vertical-align: middle; opacity: .5; }
.sidebar .widget-title.with-dots::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    content: "";
    opacity: .3;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 276.167 276.167' fill='%23989b9f'%3E%3Cpath d='M33.144 2.471C15.336 2.471.85 16.958.85 34.765s14.48 32.293 32.294 32.293 32.294-14.486 32.294-32.293S50.951 2.471 33.144 2.471zM137.663 2.471c-17.807 0-32.294 14.487-32.294 32.294s14.487 32.293 32.294 32.293 32.297-14.486 32.297-32.293-14.483-32.294-32.297-32.294zM243.873 67.059c17.804 0 32.294-14.486 32.294-32.293S261.689 2.471 243.873 2.471s-32.294 14.487-32.294 32.294 14.489 32.294 32.294 32.294zM243.038 170.539c17.811 0 32.294-14.483 32.294-32.293s-14.483-32.297-32.294-32.297-32.306 14.486-32.306 32.297 14.49 32.293 32.306 32.293zM136.819 170.539c17.804 0 32.294-14.483 32.294-32.293s-14.478-32.297-32.294-32.297-32.294 14.486-32.294 32.297 14.487 32.293 32.294 32.293zM243.771 209.108c-17.804 0-32.294 14.483-32.294 32.294s14.49 32.293 32.294 32.293 32.294-14.482 32.294-32.293-14.49-32.294-32.294-32.294z'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.follow-widget { overflow: visible; }
.follow-widget > .facebook-follow-card { min-height: 0; margin-top: 15px; padding: 12px 15px; overflow: visible; border: 0; border-radius: 10px; background: #fefefe; box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, .1); color: #161617; }
.facebook-follow-card > span:first-child { width: calc(100% - 50px); padding: 0 15px 0 0; }
.facebook-follow-card strong { display: block; font-size: 14px; font-weight: 550; line-height: 1.25; }
.facebook-follow-card small { display: block; margin-top: 2px; color: #505050; font-size: 11px; }
.facebook-follow-icon { display: flex !important; align-items: center; justify-content: center; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 8px; background: #ebeced; }
.facebook-follow-icon svg { width: 28px; height: 28px; fill: #1e90ff; }
.facebook-follow-card::after { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-end; width: 70px; height: 22px; padding-right: 10px; border-radius: 80px 0 0; background: #1e90ff; color: #fff; content: "Follow"; font-size: 10px; font-weight: 700; }

.tags-widget { padding: 20px !important; }
.tags-widget > ul { position: relative; left: 0; width: 100%; gap: 10px; }
.tags-widget li:nth-child(n+7) { display: none; }
.tags-widget.is-expanded li:nth-child(n+7) { display: block; }
.tags-widget a { align-items: baseline; background: #f6f6f6; color: var(--text); }
.tags-widget .tag-name { overflow: hidden; opacity: .7; text-overflow: ellipsis; white-space: nowrap; }
.tags-widget .tag-meta { display: inline-flex; align-items: center; flex-shrink: 0; }
.tags-widget .tag-meta small { margin: 0 5px; color: inherit; font-size: 12px; opacity: .7; }
.tags-widget .tag-meta svg { width: 18px; height: 18px; opacity: .8; }
.tags-widget a:hover .tag-meta { color: var(--accent); }
.tags-more { margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; line-height: 20px; cursor: pointer; }

.blogroll { gap: 0; margin: 0 -4px; }
.blogroll a { margin: 0 4px 8px; padding: 9px 9px 9px 12px; border-radius: 4px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(9, 32, 76, .08); font-size: 13px; font-weight: 600; transition: transform .1s ease; }
.blogroll a::before { position: absolute; top: -14px; right: 0; display: block; width: 14px; height: 28px; border-radius: 14px 0 0 14px; background: rgba(127, 127, 127, .1); content: ""; }
.blogroll a:hover { z-index: 1; transform: scale(1.1); }
html.drK .tags-widget a { background: rgba(0, 0, 0, .15); }
html.drK .blogroll a { background: rgba(127, 127, 127, .2) !important; }
html.drK .blogroll a::before { background: rgba(255, 255, 255, .025); }

/* Circular scroll progress button from the Blogger theme. */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 165;
    visibility: hidden;
    width: 45px;
    height: 45px;
    padding: 0;
    transform: scale(0);
    border: 0;
    border-radius: 50%;
    opacity: 0;
    background: transparent;
    cursor: pointer;
    transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
}
.back-to-top.is-visible { visibility: visible; transform: scale(1); opacity: 1; }
.back-to-top:hover { opacity: .8; }
.back-to-top svg { width: 100%; height: 100%; transform: rotate(-90deg); stroke-width: 1.5; }
.back-top-bg { fill: #fff; stroke: #e6e6e6; opacity: .9; }
.back-top-progress { fill: none; stroke: var(--accent); stroke-dasharray: 100 100; stroke-dashoffset: var(--scroll-progress, 100); stroke-linecap: round; }
.back-top-arrow { fill: none; stroke: var(--text); stroke-linecap: round; stroke-linejoin: round; }
html.drK .back-top-bg { fill: var(--surface); stroke: #404045; }

/* Footer geometry and wave colors copied from the live Blogger layout. */
.site-footer { margin-left: var(--nav-width); }
.content-wrap { width: 100%; max-width: var(--content-width); }
.footer-inner { width: calc(100% - 50px); max-width: var(--content-width); margin-right: auto; margin-left: auto; }
.footer-credit { display: none; }
.footer-navigation { margin-left: 0; }
.wave-height { background: #c6dafc; }
.plx > use { fill: #c6dafc; }

@media (max-width: 896px) {
    .site-shell { grid-template-columns: 1fr; }
    .side-nav {
        position: fixed;
        top: 15px;
        bottom: 15px;
        left: 0;
        z-index: 250;
        width: min(80%, 480px);
        height: calc(100dvh - 30px);
        padding-top: 60px;
        transform: translateX(-105%);
        border-radius: 20px;
    }
    body.nav-open .side-nav { transform: translateX(0); }
    .nav-backdrop { position: fixed; inset: 0; z-index: 240; visibility: hidden; display: block; border: 0; opacity: 0; background: rgba(4, 6, 14, .35); backdrop-filter: blur(3px); transition: opacity .25s, visibility .25s; }
    body.nav-open .nav-backdrop { visibility: visible; opacity: 1; }
    .site-footer { margin-left: 0; }
    .footer-inner { width: calc(100% - 40px); margin-right: 20px; margin-left: 20px; }
    .back-to-top { bottom: 70px; }
}

@media (max-width: 500px) {
    .theme-mode-menu { position: fixed; top: 70px; right: 20px; }
    .back-to-top { right: 15px; bottom: 70px; }
}

/* Language-specific inline labels inside Ghost loops, where partial params are out of scope */
html[lang="en"] .l-vi,
html:not([lang="en"]) .l-en { display: none; }
