/*
Theme Name: Pillskill Library
Author: Pillskill
Description: Accessible editorial theme for a sourced medication-risk library.
Version: 1.3.2
License: GNU General Public License v2 or later
Text Domain: pillskill-library
*/
:root{--ink:#142f39;--muted:#52656c;--teal:#12695f;--paper:#f6f4ee;--line:#d6dfdb;--rust:#963d2d}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;color:var(--ink);background:var(--paper);font-family:Arial,Helvetica,sans-serif;font-size:17px;line-height:1.65}a{color:var(--teal);text-underline-offset:4px}a:hover{color:#092e2b}button,input,select{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b76d39;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:normal;line-height:1.08;letter-spacing:-.035em}h1{font-size:clamp(42px,5.6vw,76px)}h2{font-size:clamp(32px,3.4vw,48px)}h3{font-size:21px;line-height:1.35;letter-spacing:-.02em}p{margin-bottom:1.3em}.site-header{max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:27px 48px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:var(--ink);font-family:Georgia,serif;font-size:32px;line-height:1.1}.brand-mark{border:1px solid var(--teal);width:43px;height:49px;display:grid;place-items:center;position:relative;border-radius:8px 8px 19px 19px;color:var(--teal);font-size:31px}.brand-mark span{font:18px Arial;position:absolute;right:2px;top:2px}.brand-sub{display:block;font:9px Arial,sans-serif;letter-spacing:1.8px;margin-top:7px}.site-header nav{display:flex;gap:28px;flex-wrap:wrap;font-size:14px}.site-header nav a{color:var(--ink);text-decoration:none}main{max-width:1280px;margin:auto}.hero{padding:78px 48px 64px;display:grid;grid-template-columns:1.5fr 1fr;gap:70px;align-items:center}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;line-height:1.6;color:var(--teal);margin-bottom:21px}.hero h1 em{font-weight:normal;color:var(--teal)}.hero-lead{font-size:19px;max-width:640px;color:var(--muted)}.button{background:var(--teal);border:1px solid var(--teal);color:#fff;display:inline-flex;gap:35px;align-items:center;padding:15px 24px;text-decoration:none;border-radius:5px;font-weight:bold;font-size:15px}.button:hover{background:#0a4841;color:#fff}.small{font-size:12px;color:var(--muted);margin-top:17px}.hero-note{background:#e4ece6;padding:33px;border-radius:100px 8px 8px 8px;border:1px solid #cfdbd1}.note-number{font:100px Georgia,serif;color:var(--teal);display:block;text-align:right;line-height:1;margin-bottom:20px}.hero-note h2{font-size:30px;margin-bottom:18px}.hero-note p{font-size:15px}.source-stamp{border-top:1px solid #baccc0;padding-top:20px;display:grid;gap:7px;font-size:11px;color:var(--muted)}.source-stamp strong{font-size:16px;color:var(--ink)}.safety-strip{margin:0 48px;padding:22px 28px;display:grid;grid-template-columns:240px 1fr;gap:26px;border-left:4px solid #b56b37;background:#eee7db;font-size:15px}.safety-strip p{margin:0}.intro-section,.library,.context-section{padding:76px 48px}.three-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin-top:40px}.three-grid article{border-top:1px solid var(--line);padding-top:24px}.three-grid p{color:var(--muted);font-size:16px}.three-grid a{font-size:14px}.section-num{color:var(--teal);font-size:12px;letter-spacing:2px;display:block;margin-bottom:14px}.library{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);scroll-margin-top:20px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:28px}.section-heading h2{margin-bottom:0}.section-heading>p{color:var(--muted);font-size:14px;margin-bottom:0}.filter-bar{display:grid;grid-template-columns:1.4fr 1fr auto;gap:18px;align-items:end;padding:22px;background:#f0f4f1;border:1px solid var(--line);border-radius:6px}label{font-size:12px;display:block;font-weight:bold;margin-bottom:8px}input,select{width:100%;min-height:49px;background:#fff;border:1px solid #a7bab1;border-radius:3px;padding:10px;color:var(--ink);font-size:15px}.clear-button{border:1px solid #a7bab1;color:var(--ink);background:white;min-height:49px;border-radius:3px;padding:10px 16px;cursor:pointer;font-size:14px}.result-count{font-size:12px;color:var(--muted);margin:22px 0}.medicine-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.medicine-card{padding:24px;border:1px solid var(--line);border-radius:5px;display:flex;flex-direction:column;min-width:0}.medicine-card:hover{border-color:var(--teal);background:#fafcfb}.card-category{font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:bold;color:var(--teal);margin-bottom:16px}.medicine-card h3{font:26px Georgia,serif;line-height:1.2;overflow-wrap:anywhere}.medicine-card h3 a{color:var(--ink);text-decoration:none}.medicine-card>p:not(.card-category){font-size:14px;color:var(--muted)}.read-link{margin-top:auto;font-size:13px;font-weight:bold;text-decoration:none}.library-footnote{font-size:12px;color:var(--muted);margin:30px 0 0}.context-section{background:#e9efea}.urgent{margin:55px 48px 75px;border-top:3px solid var(--rust);padding:30px 0;max-width:850px}.urgent .eyebrow{color:var(--rust)}.urgent h2{font-size:34px}.urgent p{font-size:16px}.urgent a{font-size:13px}.site-footer{max-width:1280px;margin:auto;background:var(--ink);color:#dbe6e4;padding:48px;display:grid;grid-template-columns:1fr 1fr;gap:28px}.footer-brand{font:34px Georgia,serif;color:#fff;text-decoration:none}.site-footer p{font-size:14px;margin-top:14px}.site-footer>div:nth-child(2){display:grid;align-content:start;gap:12px;justify-content:end}.site-footer a{color:#dbe6e4}.site-footer .footer-note{grid-column:1/-1;border-top:1px solid #476069;padding-top:22px;font-size:12px;max-width:100%;margin-bottom:0}.reading-wrap{max-width:850px;padding:60px 36px 90px}.reading-wrap h1{font-size:clamp(40px,5vw,62px);margin-bottom:15px;overflow-wrap:anywhere}.reading-meta{font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:25px}.back-link{font-size:13px;display:inline-block;margin-bottom:30px}.article-content h2{font-size:30px;margin-top:38px;margin-bottom:17px}.article-content h3{margin-top:28px}.article-content p,.article-content li{font-size:17px}.article-content .profile-use{font-size:21px;line-height:1.55}.profile-warning{background:#f1e8df;border-left:4px solid #b56b37;padding:20px}.profile-warning p:last-child{margin-bottom:0}.sources-list{font-size:14px}.sources-list a{overflow-wrap:anywhere}.scope-note{font-size:13px!important;color:var(--muted)}[hidden]{display:none!important}.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;background:white;padding:12px;z-index:9999}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}@media(max-width:850px){.site-header{padding:22px 26px}.site-header nav{gap:15px}.hero{padding:50px 26px;gap:32px}.hero-note{padding:25px}.note-number{font-size:80px}.safety-strip{margin:0 26px;grid-template-columns:1fr;gap:8px}.intro-section,.library,.context-section{padding:50px 26px}.three-grid{gap:24px}.medicine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-bar{grid-template-columns:1fr 1fr}.clear-button{grid-column:1/-1;justify-self:start}.urgent{margin:40px 26px}.site-footer{padding:35px 26px}}@media(max-width:600px){.site-header{display:block}.site-header nav{margin-top:24px;font-size:12px;gap:16px}.hero{display:block;padding-top:42px}.hero h1{font-size:46px}.hero-note{margin-top:36px;border-radius:55px 5px 5px 5px}.hero-note h2{font-size:28px}.note-number{font-size:75px;float:right}.hero-lead{font-size:18px}.three-grid,.medicine-grid,.filter-bar{grid-template-columns:1fr}.three-grid{margin-top:28px}.section-heading{display:block}.section-heading>p{margin-top:20px}.medicine-card{padding:23px}.site-footer{grid-template-columns:1fr}.site-footer>div:nth-child(2){justify-content:start}.reading-wrap{padding:36px 23px 65px}.article-content p,.article-content li{font-size:16px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}@media print{.site-header nav,.filter-bar,.site-footer,.back-link,.button,.hero-note{display:none}body{background:white;color:#000}.reading-wrap{max-width:100%;padding:0}.profile-warning{background:white}a{color:#000}h1,h2,h3{break-after:avoid}article{break-inside:avoid}}

/* Pillskill: cobalt, navy and signal red */
:root{--ink:#10264d;--muted:#4b5c76;--teal:#174fc4;--paper:#f7faff;--line:#d6e1f2;--rust:#bd263c}
a:hover{color:#b62038}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline-color:#d62d46}
.site-header{background:#10264d;border-bottom:5px solid #e3374e;max-width:1280px}
.brand,.site-header nav a{color:#fff}
.brand:hover,.site-header nav a:hover{color:#bcd5ff}
.brand-mark{background:#2359cb;border-color:#789ff0;color:#fff}
.hero{background:radial-gradient(ellipse at 95% 5%,#d9e7ff 0%,transparent 56%),linear-gradient(125deg,#fff 15%,#edf4ff 100%)}
.hero h1{color:#153d89}.hero h1 em{color:#bd263c}
.hero .eyebrow{color:#174fc4}
.button{background:#c5223d;border-color:#c5223d;border-radius:7px;box-shadow:0 8px 20px #b4223526}
.button:hover{background:#9e182f;color:#fff;border-color:#9e182f}
.hero-note{background:linear-gradient(145deg,#1c50b5,#10264d);color:#fff;border:0;border-top:6px solid #e3374e;border-radius:38px 8px 38px 8px;box-shadow:0 18px 36px #10264d26}
.note-number{color:#fff}.hero-note h2{color:#fff}.source-stamp{border-color:#7796c7;color:#d9e7ff}.source-stamp strong{color:#fff}
.safety-strip{background:#fff0f2;border-left-color:#ce2943;color:#682137}
.intro-section{background:#fff}.section-num{color:#bf263e;font-weight:700}
.three-grid article{border-top:3px solid #9cbaef}
.library{background:#f0f5ff;border-color:#d6e1f2}
.filter-bar{background:#e2ecff;border-color:#c0d2f3;box-shadow:0 7px 18px #10264d08}
input,select,.clear-button{border-color:#9bb1d5}.clear-button:hover{background:#10264d;color:#fff}
.medicine-card{background:#fff;border-color:#d3dff1;border-top:4px solid #2359cb;border-radius:8px;box-shadow:0 4px 12px #10264d07}
.medicine-card:hover{background:#fff;border-color:#174fc4;box-shadow:0 8px 22px #174fc41c}
.medicine-card:nth-child(3n+2){border-top-color:#c82d44}.medicine-card:nth-child(3n){border-top-color:#10264d}
.card-category{color:#174fc4}.read-link{color:#174fc4}
.context-section{background:#e7efff}.context-section .three-grid article{border-color:#2359cb}
.urgent{border-top-color:#c5223d}.urgent .eyebrow{color:#b51e36}
.site-footer{background:#10264d;color:#dbe7ff;border-top:5px solid #e3374e}.site-footer a{color:#e6eeff}.site-footer .footer-note{border-color:#405a84}
.profile-warning{background:#fff0f2;border-left-color:#c5223d}.reading-meta{border-color:#d6e1f2}
@media print{.hero,.library,.intro-section,.context-section{background:#fff}.hero h1,.hero h1 em,.note-number{color:#000}.medicine-card{box-shadow:none}.profile-warning{background:#fff}}

.filter-bar{grid-template-columns:1.3fr 1fr .55fr auto}.medicine-pages{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:26px}.medicine-pages span{font-size:13px}.medicine-pages button:disabled{opacity:.45;cursor:default}.note-number{font-size:clamp(60px,7vw,100px)}@media(max-width:850px){.filter-bar{grid-template-columns:1fr 1fr}.clear-button{grid-column:auto}}@media(max-width:600px){.filter-bar{grid-template-columns:1fr}.medicine-pages{flex-wrap:wrap}.medicine-pages button{font-size:12px}.note-number{font-size:65px}}
