@charset "UTF-8";
/* ========================================================================== Theme: clean technical-blog look (light + dark), emerald accent, Inter. Self-contained — does not depend on the minima theme. ========================================================================== */
/* ---- Design tokens ------------------------------------------------------- */
:root { --bg:          #ffffff; --bg-alt:      #f6f8fa; --bg-code:     #f6f8fa; --text:        #1f2328; --text-muted:  #656d76; --border:      #d0d7de; --accent:      #059669; --accent-hover:#047857; --accent-soft: rgba(5, 150, 105, 0.10); --shadow:      0 1px 3px rgba(27, 31, 36, 0.08), 0 1px 2px rgba(27, 31, 36, 0.06); --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; --content-width: 1040px; --sidebar-width: 220px; }

[data-theme="dark"]:root { --bg:          #0d1117; --bg-alt:      #161b22; --bg-code:     #161b22; --text:        #e6edf3; --text-muted:  #9198a1; --border:      #30363d; --accent:      #34d399; --accent-hover:#6ee7b7; --accent-soft: rgba(52, 211, 153, 0.12); --shadow:      0 1px 3px rgba(1, 4, 9, 0.5); }

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv02", "cv03", "cv04", "cv11"; transition: background-color 0.2s ease, color 0.2s ease; }

img { max-width: 100%; height: auto; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; margin: 2rem 0 1rem; scroll-margin-top: 5rem; }

h1 { font-size: 2rem; letter-spacing: -0.02em; }

h2 { font-size: 1.5rem; letter-spacing: -0.01em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border); }

h3 { font-size: 1.25rem; }

h4 { font-size: 1.05rem; }

h5, h6 { font-size: 1rem; color: var(--text-muted); }

p, ul, ol { margin: 0 0 1.1rem; }

li { margin: 0.25rem 0; }

ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }

strong, b { font-weight: 700; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }

a:hover { color: var(--accent-hover); text-decoration: underline; }

blockquote { margin: 1.5rem 0; padding: 0.4rem 1.1rem; color: var(--text-muted); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; }

blockquote > :last-child { margin-bottom: 0; }

/* ---- Code --------------------------------------------------------------- */
code, pre, kbd { font-family: var(--font-mono); font-size: 0.88em; }

code { background: var(--bg-code); padding: 0.15em 0.4em; border-radius: 5px; border: 1px solid var(--border); }

pre { background: var(--bg-code); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.1rem; overflow-x: auto; line-height: 1.5; }

pre code { background: none; border: 0; padding: 0; font-size: 0.85rem; }

.highlight { background: transparent; }

/* ---- Tables ------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; border-radius: 8px; border: 1px solid var(--border); }

th, td { padding: 0.5rem 0.75rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }

thead th { background: var(--bg-alt); font-weight: 600; }

tbody tr:nth-child(even) { background: var(--bg-alt); }

/* ---- Sortable tables (jquery.tablesorter) ------------------------------- */
th.tablesorter-header { cursor: pointer; padding-right: 1.5rem; position: relative; white-space: nowrap; -webkit-user-select: none; user-select: none; }

th.tablesorter-header::after { position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%); font-size: 0.7em; line-height: 1; }

/* Unsorted: faint up/down hint. Active direction: accent-colored arrow. */
th.tablesorter-headerUnsorted::after { content: "\2195"; color: var(--text-muted); opacity: 0.45; }

th.tablesorter-headerAsc::after { content: "\25B2"; color: var(--accent); }

th.tablesorter-headerDesc::after { content: "\25BC"; color: var(--accent); }

th.tablesorter-header:hover { color: var(--accent); }

/* ---- Layout ------------------------------------------------------------- */
.wrapper { max-width: var(--content-width); margin: 0 auto; padding: 0 1.25rem; }

.page-content { padding: 2.5rem 0 3rem; }

/* Content + sidebar grid */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width); gap: 3rem; align-items: start; }

.page-main { min-width: 0; }

.sidebar { position: sticky; top: 4.5rem; }

.sidebar__widget { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); padding: 1rem 1.1rem 1.2rem; }

.sidebar__title { margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: none; padding-bottom: 0; }

.sidebar .tag-cloud { margin: 0; flex-direction: column; align-items: flex-start; gap: 0.4rem; }

@media (max-width: 860px) { .page-grid { grid-template-columns: 1fr; gap: 2rem; } .sidebar { position: static; order: -1; } .page-main { order: 0; } .sidebar .tag-cloud { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; } }

/* ---- Site header -------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(8px); -webkit-backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }

.site-header__inner { max-width: var(--content-width); margin: 0 auto; padding: 0.6rem 1.25rem; display: flex; align-items: center; gap: 1rem; }

.site-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; color: var(--text); }

.site-brand:hover { color: var(--text); text-decoration: none; }

.site-brand__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }

.site-brand__avatar--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }

.site-nav a { color: var(--text-muted); padding: 0.35rem 0.6rem; border-radius: 6px; font-size: 0.95rem; font-weight: 500; }

.site-nav a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }

/* Neutralize Materialize CSS — it's loaded on pages with sortable tables (e.g. anime-notes) and its default `nav { background:#ee6e73 }` + white links paint the header red. These header-scoped selectors out-specify the bare `nav` rules, keeping the themed look uniform across every page. */
.site-header .site-nav, .site-header .site-nav a { height: auto; line-height: 1.65; background: transparent; box-shadow: none; }

/* Materialize's `nav { width:100% }` defeats the nav's margin-left:auto right-alignment — restore auto width so it floats to the right. */
.site-header .site-nav { width: auto; }

.site-header .site-nav a { color: var(--text-muted); }

.site-header .site-nav a:hover { color: var(--accent); background: var(--accent-soft); }

.lang-switch { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; padding-left: 0.75rem; border-left: 1px solid var(--border); font-size: 0.85rem; }

.lang-switch a { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }

.lang-switch a:hover { color: var(--accent); text-decoration: none; }

.lang-switch a.is-active { color: var(--accent); font-weight: 700; }

/* ---- Theme toggle ------------------------------------------------------- */
.theme-toggle { margin-left: 0.5rem; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-alt); color: var(--text-muted); cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease; }

.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Materialize (loaded on table pages) inherits nav line-height/metrics onto the toggle's icon, pushing the glyph up. Make the <i> a centering flex box so the FontAwesome ::before glyph sits dead-center regardless of inherited metrics. */
.site-header .theme-toggle i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; line-height: 1; font-size: 1rem; }

/* ---- Home / page heading ------------------------------------------------ */
.page-heading { margin-top: 0; }

/* ---- Posts -------------------------------------------------------------- */
.post-list { list-style: none; padding: 0; }

.post-list > li { margin-bottom: 1.5rem; }

.post-meta { color: var(--text-muted); font-size: 0.85rem; }

.post-link { font-size: 1.2rem; font-weight: 600; }

/* ---- Tags --------------------------------------------------------------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 2rem; }

.tag-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; font-size: 0.85rem; font-weight: 500; color: var(--accent); background: var(--accent-soft); border: 1px solid transparent; border-radius: 999px; line-height: 1.4; }

.tag-chip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-hover); }

.tag-chip__count { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); background: var(--bg); border-radius: 999px; padding: 0 0.4rem; }

.tag-section { border-bottom: none; padding-bottom: 0; margin-bottom: 0.5rem; color: var(--accent); }

.tag-list { list-style: none; padding: 0; margin: 0 0 2rem; }

.tag-list > li { margin: 0.2rem 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2rem 0; color: var(--text-muted); font-size: 0.9rem; }

.site-footer__inner { max-width: var(--content-width); margin: 0 auto; padding: 0 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.site-footer__inner .spacer { margin-left: auto; }

.footer__link { color: var(--text-muted); }

.footer__link:hover { color: var(--accent); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 600px) { body { font-size: 16px; } h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } .site-brand span { display: none; } .site-nav a { padding: 0.35rem 0.45rem; } }

/* ---- Syntax highlighting (Rouge) — light -------------------------------- */
.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs { color: #6e7781; font-style: italic; }

.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt { color: #cf222e; }

.highlight .o, .highlight .ow { color: #0550ae; }

.highlight .p { color: var(--text); }

.highlight .s, .highlight .s1, .highlight .s2, .highlight .se, .highlight .sb, .highlight .sd { color: #0a3069; }

.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo, .highlight .il { color: #0550ae; }

.highlight .na, .highlight .nv, .highlight .vg, .highlight .vi { color: #0550ae; }

.highlight .nb, .highlight .bp { color: #6639ba; }

.highlight .nf, .highlight .fm { color: #8250df; }

.highlight .nc, .highlight .nn, .highlight .no { color: #953800; }

.highlight .nt { color: #116329; }

.highlight .gd { color: #82071e; background: #ffebe9; }

.highlight .gi { color: #116329; background: #dafbe1; }

.highlight .err { color: #f6f8fa; background: #82071e; }

/* ---- Syntax highlighting (Rouge) — dark --------------------------------- */
[data-theme="dark"]:root .highlight .c, [data-theme="dark"]:root .highlight .cm, [data-theme="dark"]:root .highlight .c1, [data-theme="dark"]:root .highlight .cs { color: #8b949e; }

[data-theme="dark"]:root .highlight .k, [data-theme="dark"]:root .highlight .kd, [data-theme="dark"]:root .highlight .kn, [data-theme="dark"]:root .highlight .kp, [data-theme="dark"]:root .highlight .kr, [data-theme="dark"]:root .highlight .kt { color: #ff7b72; }

[data-theme="dark"]:root .highlight .o, [data-theme="dark"]:root .highlight .ow { color: #79c0ff; }

[data-theme="dark"]:root .highlight .s, [data-theme="dark"]:root .highlight .s1, [data-theme="dark"]:root .highlight .s2, [data-theme="dark"]:root .highlight .se, [data-theme="dark"]:root .highlight .sb, [data-theme="dark"]:root .highlight .sd { color: #a5d6ff; }

[data-theme="dark"]:root .highlight .m, [data-theme="dark"]:root .highlight .mi, [data-theme="dark"]:root .highlight .mf, [data-theme="dark"]:root .highlight .mh, [data-theme="dark"]:root .highlight .mo, [data-theme="dark"]:root .highlight .il { color: #79c0ff; }

[data-theme="dark"]:root .highlight .na, [data-theme="dark"]:root .highlight .nv, [data-theme="dark"]:root .highlight .vg, [data-theme="dark"]:root .highlight .vi { color: #79c0ff; }

[data-theme="dark"]:root .highlight .nb, [data-theme="dark"]:root .highlight .bp { color: #ffa657; }

[data-theme="dark"]:root .highlight .nf, [data-theme="dark"]:root .highlight .fm { color: #d2a8ff; }

[data-theme="dark"]:root .highlight .nc, [data-theme="dark"]:root .highlight .nn, [data-theme="dark"]:root .highlight .no { color: #ffa657; }

[data-theme="dark"]:root .highlight .nt { color: #7ee787; }

[data-theme="dark"]:root .highlight .gd { color: #ffdcd7; background: #67060c; }

[data-theme="dark"]:root .highlight .gi { color: #aff5b4; background: #033a16; }

[data-theme="dark"]:root .highlight .err { color: #f0f6fc; background: #8e1519; }

span.count { color: #e5484d; font-weight: 700; }

span.path { color: var(--accent); font-weight: 700; }

.title { font-size: 1.25em; font-weight: 700; color: var(--text); }

.l1 { color: #9aa0a6; }

.l1:after { font-size: 0.7em; content: '1'; }

.l2 { color: #2da44e; }

.l2:after { font-size: 0.7em; content: '2'; }

.l3 { color: #2563eb; }

.l3:after { font-size: 0.7em; content: '3'; }

.l4 { color: #e8870b; }

.l4:after { font-size: 0.7em; content: '4'; }

.l5 { color: #e5484d; }

.l5:after { font-size: 0.7em; content: '5'; }

.ll1 { color: #9aa0a6; }

.ll2 { color: #2da44e; }

.ll3 { color: #2563eb; }

.ll4 { color: #e8870b; }

.ll5 { color: #e5484d; }

/*# sourceMappingURL=style.css.map */