/*
Theme Name: GuidaLibri
Version: 1.5.0
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: guidalibri
*/
:root{--ink:#192b4b;--accent:#c84448;--text:#26334a;--muted:#68717b;--line:#e4e5e7;--wash:#f6f7f8}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--text);font:16px/1.7 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-underline-offset:.2em}a:hover{color:var(--accent)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}img{display:block;max-width:100%;height:auto}.wrap{width:min(1480px,calc(100% - 48px));margin-inline:auto}.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:16px;padding:10px;background:#fff;z-index:10}h1,h2,h3{color:var(--ink);font-family:Georgia,serif;line-height:1.2}p{margin:0 0 1.1em}
.sitehead{border-bottom:1px solid var(--line)}.mast{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:42px;min-height:110px;position:relative;padding-bottom:18px}.brand{display:inline-flex;align-items:center;gap:9px;color:var(--ink);font:700 27px/1 system-ui,sans-serif;letter-spacing:-.055em;text-decoration:none;white-space:nowrap}.brand:hover{color:var(--ink)}.brand-mark{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:var(--accent)}.brand-mark img{width:26px;height:26px;filter:brightness(0) invert(1)}.brand-name>span{display:inline-block;margin-left:6px;padding:8px 10px 9px;border-radius:11px;background:var(--ink);color:#fff;letter-spacing:-.04em}.tagline{position:absolute;bottom:16px;left:54px;color:var(--muted);font-size:10px;letter-spacing:.16em;margin:0}.custom-logo{width:auto;max-width:min(250px,70vw);max-height:64px;object-fit:contain}.mast nav{justify-self:end}.navline{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px 22px;list-style:none;padding:0;margin:0}.navline a{color:var(--ink);font-size:14px;font-weight:700;text-decoration:none}
.kicker{color:var(--accent);font:750 11px/1.5 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase}.hero{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:26px;padding:75px 0 65px;min-height:525px}.hero h1{font-size:clamp(46px,4.5vw,62px);font-weight:400;letter-spacing:-.045em;margin:24px 0 24px}.hero h1 em{color:var(--accent);font-weight:400}.hero p:not(.kicker){max-width:505px;color:var(--muted);font-size:18px;line-height:1.75}.hero>img{width:100%;max-width:610px;max-height:390px;object-fit:contain;justify-self:center}.hero-search{margin-top:27px}.searchform{display:flex;gap:8px;max-width:450px}input[type=search]{min-width:0;width:100%;padding:14px 12px;border:1px solid #d4d6d8;border-radius:10px;font:inherit;font-size:15px}button,input[type=submit],.btn{padding:12px 20px;border:0;border-radius:10px;background:var(--ink);color:#fff;font:inherit;cursor:pointer}button:hover,input[type=submit]:hover,.btn:hover{background:var(--accent);color:#fff}
.topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:67px}.topic{position:relative;min-width:0;padding:25px 26px 24px;border:1px solid var(--line);border-radius:19px;transition:border-color .2s,transform .2s}.topic:hover{border-color:#c9cbd0;transform:translateY(-2px)}.topic .num{display:block;color:var(--accent);font:italic 20px Georgia,serif}.topic .arrow{position:absolute;right:25px;top:24px;color:var(--accent)}.topic h2{font:700 18px/1.35 system-ui,sans-serif;margin:12px 0 6px}.topic h2 a{text-decoration:none}.topic h2 a:after{content:"";position:absolute;inset:0}.topic p{color:var(--muted);font-size:14px;margin:0}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);margin-bottom:24px}.section-heading h2{font-size:32px;font-weight:400;margin:0 0 18px}.section-heading a{font-size:14px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px 28px;margin-bottom:60px}.card{min-width:0}.card img{width:100%;aspect-ratio:1.6;object-fit:cover;border-radius:13px;background:var(--wash)}.cardbody{padding:20px 3px 0}.card h2{font-size:24px;font-weight:400;line-height:1.35;margin:11px 0}.card h2 a{text-decoration:none}.card p{color:var(--muted);font-size:15px;line-height:1.75}.closing{display:flex;align-items:center;justify-content:space-between;gap:50px;padding:45px 55px;margin:60px 0 72px;background:var(--wash);border-radius:20px}.closing h2{font-size:36px;font-weight:400;margin:0}.closing p{max-width:600px;color:var(--muted);font-size:17px;margin:0}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:48px;align-items:start;margin-block:46px 70px}.article{min-width:0;overflow-wrap:break-word}.breadcrumbs{color:var(--muted);font-size:13px;margin-bottom:15px}.breadcrumbs a{text-decoration:underline}.article h1{font-size:clamp(37px,4vw,52px);font-weight:400;letter-spacing:-.035em;margin:12px 0 18px}.meta{color:var(--muted);font-size:13px}.featured{margin:30px 0 33px}.featured img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:15px}.featured figcaption{margin-top:6px}.bodycopy{font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.85;overflow-wrap:anywhere}.bodycopy p{margin:0 0 1.2em}.bodycopy h2{margin:1.7em 0 .55em;padding-top:.55em;border-top:1px solid var(--line);font-size:31px;font-weight:400}.bodycopy h3{margin:1.35em 0 .5em;font-size:23px;font-weight:400}.bodycopy ul,.bodycopy ol{padding-left:1.5em}.bodycopy li{margin-bottom:.45em}.bodycopy table,.bodycopy .wp-block-table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:15px;line-height:1.5;margin:24px 0 32px}.bodycopy td,.bodycopy th{padding:11px 13px;border:1px solid var(--line);text-align:left;vertical-align:top;min-width:105px}.bodycopy th{background:var(--wash)}.bodycopy blockquote{margin:24px 0;padding:18px 22px;border-left:3px solid var(--accent);background:var(--wash)}.bodycopy img{max-width:100%;height:auto;border-radius:12px}
.side{min-width:0;position:static;max-height:none;overflow:visible;padding-right:0}.side-section{padding:22px 19px;border:1px solid var(--line);border-radius:18px;margin-bottom:22px}.side h2{font:700 18px/1.35 system-ui,sans-serif;margin:0 0 16px}.side .kicker{margin-bottom:5px}.side .article-index{list-style:decimal-leading-zero;padding-left:27px;margin:0}.side .article-index li{padding-left:3px}.side .article-index li::marker{color:var(--accent);font-size:12px}.side .article-index a,.side .related-list a,.side .category-more{text-decoration:none}.side .article-index a:hover,.side .related-list a:hover,.side .category-more:hover{text-decoration:underline}.side .category-more{display:inline-block;margin-top:8px;color:var(--accent);font-size:14px;font-weight:650}.side .searchform{max-width:none}.side .searchform input{padding:11px;font-size:14px}.side .searchform button{padding:11px 14px}.side ul{margin:0;padding-left:19px}.side li{margin-bottom:11px;font-size:14px;line-height:1.55}.side li:last-child{margin-bottom:0}.archivehead{padding:34px 0 18px;border-bottom:1px solid var(--line);margin:28px 0}.archivehead h1{font-size:clamp(34px,4vw,48px);font-weight:400;margin:5px 0 12px}.foot{border-top:1px solid var(--line);padding:35px 0;color:var(--muted);font-size:14px}.foot-grid{display:grid;grid-template-columns:1fr auto auto;gap:45px}.foot strong{color:var(--ink);font-size:21px}.foot p{margin:5px 0}.foot a{color:var(--ink)}.empty{padding:22px;border:1px solid var(--line);border-radius:12px}.pagination{margin:28px 0}.pagination a,.pagination span{padding:8px}
@media(max-width:1050px){.mast{grid-template-columns:1fr;gap:20px;padding:20px 0 15px}.mast nav{justify-self:start}.tagline{position:static;grid-row:2;margin-top:-16px;margin-left:54px}.navline{justify-content:flex-start}.hero{padding:48px 0}.layout{gap:28px}}
@media(max-width:1100px){.layout{grid-template-columns:minmax(0,1fr)}.side{position:static;max-height:none;overflow:visible;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.side-section{margin:0}.hero{min-height:0}.hero>img{max-height:340px}}
@media(max-width:650px){.wrap{width:calc(100% - 32px)}.mast{gap:17px}.navline{gap:10px 16px}.navline a{font-size:13px}.hero{grid-template-columns:1fr;gap:10px;padding:35px 0 34px}.hero h1{font-size:46px;margin:15px 0}.hero>img{width:min(100%,420px);max-height:260px}.topics{grid-template-columns:1fr;gap:12px;margin-bottom:45px}.topic{padding:18px 20px}.topic .arrow{right:20px;top:18px}.grid{grid-template-columns:1fr;gap:32px}.section-heading h2{font-size:27px}.section-heading a{font-size:13px}.card h2{font-size:23px}.closing{display:block;padding:28px;margin:45px 0}.closing h2{font-size:30px;margin-bottom:17px}.article h1{font-size:37px}.bodycopy{font-size:19px}.bodycopy h2{font-size:27px}.bodycopy h3{font-size:21px}.side{grid-template-columns:1fr}.foot-grid{grid-template-columns:1fr;gap:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.topic{transition:none}}
.gl-book-box{margin:36px 0;padding:25px 28px;border:1px solid #d9dfe5;border-left:4px solid var(--accent);border-radius:14px;background:#f8f9fa;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}.gl-book-box__heading{display:flex;flex-direction:column;gap:2px}.gl-book-box__eyebrow{color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.14em}.gl-book-box__heading strong{color:var(--ink);font-size:21px}.gl-book-box__heading>span:last-child{color:var(--muted);font-size:14px}.gl-book-box__links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:19px 0 14px}.gl-book-box__links a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-radius:8px;background:var(--ink);color:#fff;font-size:14px;font-weight:700;text-decoration:none}.gl-book-box__links a:nth-child(2){background:#fff;color:var(--ink);border:1px solid #c5cbd2}.gl-book-box__links a:hover,.gl-book-box__links a:nth-child(2):hover{background:var(--accent);border-color:var(--accent);color:#fff}.gl-book-box .gl-book-box__note{margin:0;color:#5d6670;font-size:12px;line-height:1.55}@media(max-width:650px){.gl-book-box{padding:20px}.gl-book-box__links{grid-template-columns:1fr}}
.affiliate-footer{max-width:380px;margin:10px 0 0;font-size:11px;line-height:1.4}
