/*
Theme Name: TechWise Reader
Description: Lightweight editorial theme for TechWise Zone troubleshooting guides.
Version: 1.1.6
Requires at least: 6.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
*/
:root{--ink:#172a39;--link:#075e79;--line:#ccdce0;--pale:#edf6f5;color:var(--ink);font:100%/1.55 system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:white}a{color:var(--link);text-underline-offset:.18em}a:hover{text-decoration:underline;color:#003f54}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #bb501d;outline-offset:3px}
.wrap{max-width:1160px;margin:auto;padding-inline:clamp(18px,4vw,48px)}.mast{border-top:4px solid #13756e;border-bottom:1px solid var(--line)}.top,.meta,.finder,.foot nav,.foot ul{display:flex;align-items:center;gap:12px}.top{justify-content:space-between;padding-block:18px}.identity a{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:1.55rem;font-weight:800;letter-spacing:-.05em;text-decoration:none}.mark{display:grid;place-items:center;background:#105b59;color:white;border-radius:9px;width:36px;height:36px}.custom-logo{max-width:215px;max-height:56px;width:auto;height:auto}.finder{gap:0}.finder input,.finder button{font:inherit;padding:8px 12px;border:1px solid var(--line)}.finder input{min-width:0;width:100%;border-radius:6px 0 0 6px}.finder button{background:#124f53;color:white;border-color:#124f53;border-radius:0 6px 6px 0;cursor:pointer}
.topics ul,.foot ul{list-style:none;margin:0;padding:0}.topics>ul,.topics ul ul{display:flex;flex-wrap:wrap;gap:4px 17px}.topics li{display:inline-block}.topics a{display:inline-block;padding:7px 0;color:var(--ink);font-weight:650;font-size:.91rem;text-decoration:none}.topics a:hover,.topics .current-menu-item>a{text-decoration:underline}.topics li:has(>ul){display:flex;flex-wrap:wrap;gap:0 17px}
h1,h2,h3,h4{line-height:1.2;letter-spacing:-.03em;text-wrap:pretty}.intro{margin:32px 0 24px;border-left:5px solid #11736e;padding:8px 20px}.intro h1,.reader h1{font-size:clamp(1.65rem,3.4vw,2.5rem);margin:0}.intro p{max-width:68ch;margin:.55em 0 0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{border:1px solid var(--line);border-radius:10px;overflow:hidden}.card img{width:100%;height:auto;aspect-ratio:1.75;object-fit:cover;display:block}.cardbody{padding:18px}.card h2{font-size:1.22rem;margin:8px 0}.card h2 a{color:var(--ink);text-decoration:none}.card h2 a:hover{text-decoration:underline}.category,.crumb,.meta,small{font-size:.86rem}.category a{font-weight:700}.card p{margin:.65em 0}.pagination{margin:28px 0}.page-numbers{display:inline-block;padding:5px}
.reader{width:min(100% - 36px,720px);margin:28px auto 48px}.crumb{margin-bottom:12px}.meta{flex-wrap:wrap;gap:4px 14px;color:#48616c;margin:12px 0 22px}.prose{font-size:clamp(1.05rem,1.4vw,1.16rem);line-height:1.7;overflow-wrap:anywhere}.prose h2{font-size:1.48em;margin:1.75em 0 .5em}.prose h3{font-size:1.17em}.prose p{margin:.85em 0}.prose li+li{margin-top:.4em}.prose img,.prose video{max-width:100%;height:auto}.prose iframe,.prose figure{max-width:100%}.prose figure{margin-inline:0}.prose pre,.prose table{display:block;max-width:100%;overflow-x:auto}.prose pre{background:#152c37;color:#f3faf9;padding:16px;border-radius:7px;white-space:pre}.prose table{border-collapse:collapse;font-size:.94em}.prose td,.prose th{border:1px solid #a6bdc2;padding:7px 12px;text-align:start}.prose th,.related{background:var(--pale)}.related{border-radius:8px;padding:16px 22px;margin:32px 0}.related h2{margin:0;font-size:1.25rem}.related ul{padding-left:1.15em}.related li+li{margin-top:8px}.related a{font-weight:650}.comments textarea,.comments input{max-width:100%;font:inherit}.foot{margin-top:40px;border-top:1px solid var(--line);padding:25px 0}.foot nav,.foot ul{flex-wrap:wrap;margin:8px 0;font-size:.9rem}.skip,.screen-reader-text{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.skip:focus{clip-path:none;width:auto;height:auto;background:white;padding:10px;z-index:10}
@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.cards{grid-template-columns:1fr}.top{align-items:stretch;flex-direction:column;gap:10px;padding-block:12px}.topics>ul{gap:0 12px}.topics a{font-size:.85rem}.reader{margin-top:18px}.intro{margin:20px 0}.prose ul,.prose ol{padding-inline-start:1.45em}}

.single-post .reader { width: min(100% - 36px, 810px); }
.single-post .reader h1 { font-size: clamp(1.5rem, 2.35vw, 2rem); line-height: 1.22; }
.topic-toggle { display: none; }
@media (max-width: 767px) {
    .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
    .top .custom-logo { max-width: min(215px, 100%); }
    .top .identity { min-width: 0; overflow-wrap: anywhere; }
    .top .finder { grid-column: 1 / -1; }
    .topic-toggle { display: block; justify-self: end; }
    .topic-toggle button:not([hidden]) { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 650; background: var(--pale); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer; }
    .menu-icon { width: 18px; height: 14px; border-block: 2px solid currentColor; display: grid; align-items: center; }
    .menu-icon::after { content: ""; border-top: 2px solid currentColor; }
    /* Apply the collapsed mobile state before deferred navigation.js runs.
       With JS disabled, topic links remain visible as before. */
    .twr-js .topics:not(.menu-open), .topics.menu-closed { display: none; }
    /* Avoid logo/search reflow when the Menu button becomes interactive. */
    .twr-js .topic-toggle { min-width: 96px; min-height: 44px; }
    .topics ul, .topics ul ul, .topics li, .topics li:has(>ul) { display: block; }
    .topics ul ul { padding-left: 18px; }
    .topics a { display: block; padding: 11px 0; border-top: 1px solid var(--line); }
}
