/*
Theme Name: Purrgramming
Template: twentytwelve
Version: 1.0.0
Description: A readable, responsive home for Purrgramming's study notes.
*/
:root { --ink:#25332e; --muted:#5c6962; --accent:#315b47; --cambridge:#85b09a; --line:#d3e2d9; --paper:#fff; --wash:#f1f6f3; }
body { background:var(--wash); color:var(--ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:17px; line-height:1.75; text-rendering:optimizeLegibility; }
body .site { box-sizing:border-box; max-width:1200px; width:calc(100% - 64px); margin:32px auto; padding:36px 48px; border:1px solid var(--line); border-radius:16px; background:var(--paper); box-shadow:none; }
a { color:var(--accent); text-underline-offset:3px; }
a:hover { color:#153d2e; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:3px solid #a86b13; outline-offset:4px; }
.site-header { padding:0; margin:0; }
.site-header .site-title { text-align:left; font-size:32px; line-height:1.3; font-weight:750; letter-spacing:-.8px; }
.site-header .site-title a { color:var(--ink); }
.site-header .site-description { text-align:left; color:var(--muted); font-size:15px; line-height:1.6; margin:8px 0 24px; }
.main-navigation { margin:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.main-navigation ul.nav-menu { display:flex!important; flex-wrap:wrap; gap:0 24px; width:100%; border:0; text-align:left; }
.main-navigation li { margin:0; }
.main-navigation li a { display:inline-flex; align-items:center; min-height:48px; font-size:14px; font-weight:600; text-transform:none; line-height:1.4; color:var(--muted); }
.main-navigation .current-menu-item>a,.main-navigation .current_page_item>a { color:var(--accent); font-weight:750; }
#main.wrapper { display:grid; grid-template-columns:minmax(0,1fr) 224px; gap:48px; padding-top:36px; }
#main.wrapper:before,#main.wrapper:after { display:none; }
.site-content,#secondary.widget-area { float:none; width:auto; min-width:0; margin:0; }
body.full-width #main.wrapper,body.template-front-page #main.wrapper { grid-template-columns:minmax(0,1fr) 224px; }
body .site-content article { margin-bottom:32px; padding-bottom:24px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.entry-header .entry-title { font-size:30px; font-weight:700; line-height:1.3; margin:0 0 24px; color:var(--ink); letter-spacing:-.5px; }
.entry-content,.entry-summary,.mu_register { font-size:17px; line-height:1.8; }
.entry-content p { margin:0 0 1.2em; }
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4 { color:var(--ink); line-height:1.35; scroll-margin-top:24px; }
.entry-content h1 { font-size:30px; }
.entry-content h2 { font-size:25px; margin:1.8em 0 .65em; }
.entry-content h3 { font-size:21px; margin:1.6em 0 .6em; }
.entry-content h4 { font-size:18px; }
.entry-content ul,.entry-content ol { padding-left:1.4em; margin:0 0 1.3em; }
.entry-content li { margin:.45em 0; }
.entry-content img,.entry-content iframe { max-width:100%; }
.entry-content img { height:auto; border-radius:6px; box-shadow:none; }
.entry-content .wp-smiley,.entry-content img.emoji { display:inline!important; width:1em!important; height:1em!important; vertical-align:-.1em; margin:0 .05em; padding:0; border:0; box-shadow:none; }
.entry-content figure { margin:24px 0; }
.entry-content figcaption,.wp-caption .wp-caption-text { color:var(--muted); font-size:14px; line-height:1.6; text-align:left; }
.entry-content pre { max-width:100%; overflow:auto; padding:18px; border:1px solid var(--line); border-radius:8px; background:#f3f7f5; font-size:14px; line-height:1.65; white-space:pre; }
.entry-content code { font-size:.88em; overflow-wrap:anywhere; }
.entry-content table { display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; font-size:15px; }
.entry-content th,.entry-content td { padding:10px 12px; border:1px solid var(--line); vertical-align:top; }
.entry-content th { background:var(--wash); font-weight:650; }
.entry-content blockquote { border-left:3px solid var(--cambridge); margin:24px 0; padding:4px 20px; color:var(--muted); font-style:normal; }
#ez-toc-container { box-sizing:border-box; max-width:100%; width:100%; padding:18px 20px; border:1px solid var(--line); border-radius:8px; background:var(--wash); box-shadow:none; }
#ez-toc-container a { font-size:15px; }
#ez-toc-container .ez-toc-title { font-weight:650; }
.notes-sidebar section { margin:0 0 28px; }
.notes-sidebar h2,.notes-search label { display:block; font-size:13px; font-weight:750; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0 0 12px; }
.notes-sidebar ul { list-style:none; padding:0; margin:0; }
.notes-sidebar li { margin:0; }
.notes-sidebar a { display:block; padding:7px 0; font-size:15px; line-height:1.5; }
.notes-sidebar p { font-size:14px; line-height:1.7; color:var(--muted); }
.notes-search .search-row { display:flex; gap:6px; }
.notes-search input[type=search] { box-sizing:border-box; width:100%; min-width:0; min-height:44px; padding:9px; border:1px solid #acbdb1; border-radius:6px; font:inherit; font-size:14px; }
.notes-search button,.menu-toggle { min-height:44px; padding:8px 12px; background:var(--accent); color:#fff; border:1px solid var(--accent); border-radius:6px; box-shadow:none; font-size:14px; text-shadow:none; }
.notes-search button:hover { background:#153d2e; }
.notes-hero { position:relative; padding:4px 112px 0 0; }
.notes-hero .eyebrow,.notes-feature .eyebrow { color:var(--accent); font-size:12px; font-weight:750; text-transform:uppercase; letter-spacing:.08em; margin:0 0 10px; }
.notes-hero h2 { font-size:32px; margin:0 0 16px; letter-spacing:-.6px; }
.notes-hero p { color:var(--muted); }
.notes-hero .notes-cat { position:absolute; right:0; top:10px; width:84px; height:84px; }
.notes-feature { margin:28px 0; padding:24px; border:1px solid var(--line); border-radius:10px; background:var(--wash); }
.notes-feature h3 { margin:0 0 10px; font-size:22px; }
.notes-feature p:last-child { margin-bottom:0; }
.notes-topics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:20px 0 30px; }
.notes-topic { display:block; padding:18px; border:1px solid var(--line); border-radius:10px; text-decoration:none; }
.notes-topic:hover { background:var(--wash); }
.notes-topic strong { display:block; font-size:18px; margin-bottom:4px; }
.notes-topic span { color:var(--muted); font-size:14px; line-height:1.5; }
.notes-index section { margin:30px 0; }
.notes-index ul { list-style:none; padding:0; }
.notes-index li { padding:10px 0; margin:0; border-bottom:1px solid #edf1ee; }
.notes-index a { line-height:1.6; }
.site-content footer.entry-meta { color:var(--muted); font-size:13px; line-height:1.6; }
footer[role=contentinfo] { margin-top:36px; padding-top:22px; border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
@media(min-width:601px) { .main-navigation .menu-toggle { display:none; } }
@media(max-width:900px) { body .site { padding:28px; width:calc(100% - 32px); } #main.wrapper,body.full-width #main.wrapper,body.template-front-page #main.wrapper { gap:28px; grid-template-columns:minmax(0,1fr) 190px; } }
@media(max-width:700px) { #main.wrapper,body.full-width #main.wrapper,body.template-front-page #main.wrapper { display:block; } #secondary.widget-area { padding-top:24px; border-top:1px solid var(--line); margin-top:32px; } .notes-sidebar { display:grid; grid-template-columns:1fr 1fr; gap:20px; } .notes-sidebar section:first-child { grid-column:1/-1; } }
@media(max-width:600px) { body .site { width:100%; padding:24px 20px; margin:0; border:0; border-radius:0; } .site-header .site-title { font-size:28px; } .site-header .site-description { font-size:14px; } .main-navigation { padding:12px 0; text-align:left; } .main-navigation ul.nav-menu { display:none!important; } .main-navigation ul.nav-menu.toggled-on,.main-navigation .toggled-on>ul { display:flex!important; flex-direction:column; gap:0; margin-top:8px; } .main-navigation li a { min-height:44px; } #main.wrapper { padding-top:28px; } .entry-header .entry-title,.notes-hero h2 { font-size:27px; } .entry-content { font-size:16px; line-height:1.8; } .notes-hero { padding-right:0; } .notes-hero .notes-cat { position:static; width:64px; height:64px; margin:0 0 16px; } .notes-topics { grid-template-columns:1fr; } .notes-sidebar { display:block; } .notes-feature { padding:20px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }

.home.page .entry-header { display:none; }
.entry-content .wp-block-latest-posts li { padding:8px 0; }

footer#colophon { box-sizing:border-box; width:100%; margin:32px 0 0; padding:20px 0 0; }
@media(min-width:701px) { .single .entry-content { max-width:72ch; font-size:18px; } }
/* Keep wide equations scrollable within the reading column. */
.entry-content mjx-container[display="true"], .entry-content .MathJax_Display, .entry-content .MathJax_SVG_Display, .entry-content .katex-display { max-width:100%; overflow-x:auto; overflow-y:hidden; padding-block:.25em; }

/* Cambridge Blue accents stay separate from darker, readable link text. */
.site-header .site-title::after { content:""; display:block; width:64px; height:5px; margin-top:16px; background:var(--cambridge); border-radius:3px; }
.main-navigation .current-menu-item>a,.main-navigation .current_page_item>a { box-shadow:inset 0 -3px var(--cambridge); }

.entry-content pre code { overflow-wrap:normal; white-space:pre; }
