/*
Theme Name: e-testy Grid
Theme URI: https://e-testy.edu.pl/
Author: e-testy
Description: Lekki motyw redakcyjny dla e-testy.edu.pl. Duża trójka materiałów, responsywna siatka wpisów, serwisy e-testy Tools i Testy, wbudowane logo oraz ikona. Bez bibliotek i zewnętrznych fontów.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: etesty-grid
Tags: grid-layout, custom-logo, custom-menu, featured-images, translation-ready, blog, education
*/

:root{--ink:#151925;--muted:#616878;--blue:#304bff;--blue-dark:#2137ce;--lime:#daff73;--paper:#f7f8fa;--line:#e1e4ec;--white:#fff;--radius:22px;--wrap:1320px;--font:Inter,"Segoe UI",Arial,sans-serif;color-scheme:light}
*,:before,:after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:30px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
body,input,button,textarea,select{font-family:var(--font)}
a{color:inherit;text-decoration:none}
a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
img,svg,video{max-width:100%}
img{height:auto;vertical-align:middle}
figure{margin:0}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3,h4{line-height:1.13;letter-spacing:-.04em}
ul,ol{padding-left:1.3em}
button svg,a svg{pointer-events:none}
.wrap{width:min(var(--wrap),calc(100% - 80px));margin-inline:auto}
.etg-icon{width:24px;height:24px;flex-shrink:0;vertical-align:middle}
.screen-reader-text,.skip-link:not(:focus){position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;z-index:1000;top:8px;left:8px;padding:12px 18px;background:var(--ink);color:#fff}
[hidden]{display:none!important}
.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:46px;padding:12px 19px;border:0;border-radius:10px;font-size:14px;font-weight:700;line-height:1.3;transition:transform .2s,background .2s}
.button:hover{transform:translateY(-2px)}
.button-ink{background:var(--ink);color:#fff}
.button-ink:hover{background:var(--blue)}
.button-blue{background:var(--blue);color:#fff}
.button-blue:hover{background:var(--blue-dark)}
.button-lime{background:var(--lime);color:var(--ink)}
.button .etg-icon{width:19px;height:19px}
.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--ink)}
.icon-button:hover{background:#edf0f6}
.eyebrow{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.16em;line-height:1.5}
.status-dot{width:7px;height:7px;background:var(--blue);border-radius:50%;display:inline-block;box-shadow:0 0 0 4px #304bff10}
.text-link{display:inline-flex;align-items:center;gap:12px;font-size:14px;font-weight:700}
.text-link .etg-icon{width:20px;height:20px;transition:transform .2s}
.text-link:hover .etg-icon{transform:translateX(4px)}
.text-link:hover{color:var(--blue)}
.muted{color:var(--muted)}

/* Header. The default logo and icon are shipped with the theme. */
.site-header{position:relative;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.header-row{min-height:94px;display:flex;align-items:center;gap:32px}
.brand{display:block;flex-shrink:0}
.brand img{width:194px;height:auto;display:block}
.custom-logo-link{display:block;flex-shrink:0}
.custom-logo{width:auto;max-width:220px;max-height:54px}
.site-navigation{margin-left:auto}
.primary-menu{list-style:none;display:flex;align-items:center;gap:25px;margin:0;padding:0}
.primary-menu>li{position:relative}
.primary-menu a{font-size:13px;font-weight:650;display:block;padding:13px 0;white-space:nowrap}
.primary-menu a:hover,.primary-menu .current-menu-item>a{color:var(--blue)}
.primary-menu .sub-menu{position:absolute;top:100%;left:-18px;min-width:240px;max-width:300px;padding:12px 20px;margin:0;list-style:none;background:#fff;box-shadow:0 10px 35px #15192518;border:1px solid var(--line);border-radius:12px;display:none}
.primary-menu .sub-menu a{white-space:normal}
.primary-menu li:hover>.sub-menu,.primary-menu li:focus-within>.sub-menu{display:block}
.primary-menu .sub-menu .sub-menu{position:static;box-shadow:none;border:0;border-left:2px solid var(--line);padding:0 0 0 14px}
.header-actions{display:flex;align-items:center;gap:12px}
.menu-toggle{display:none}
.search-toggle{display:none}
.js .search-toggle{display:inline-flex}
.header-search{padding:18px 0;border-top:1px solid var(--line)}
.js .header-search{display:none}
.js .header-search.is-open{display:block}
.search-form{display:flex;gap:12px;max-width:800px}
.search-form input{width:100%;min-width:0;border:1px solid #c9cfdd;border-radius:10px;padding:13px 16px;background:#fff;color:var(--ink)}
.search-form .button{flex-shrink:0}

/* Opening statement and asymmetric three-story grid. */
.home-intro{padding:47px 0 34px;display:grid;grid-template-columns:1.5fr 1fr;gap:90px;align-items:end}
.home-intro h1{max-width:780px;font-size:clamp(35px,3.4vw,52px);font-weight:800;line-height:1.08;margin-top:13px;letter-spacing:-.057em;text-wrap:balance}
.home-intro-right{max-width:365px;justify-self:end;padding-bottom:3px}
.home-intro-right>p{font-size:15px;line-height:1.65;color:var(--muted);margin-bottom:15px}
.home-intro-right .text-link{font-size:13px}
.lead-grid{display:grid;grid-template-columns:1.48fr 1fr;grid-template-rows:repeat(2,minmax(226px,auto));gap:18px;margin-bottom:64px}
.lead-grid>.post-card:first-child{grid-row:span 2}
.post-card{position:relative;isolation:isolate;min-width:0;border-radius:var(--radius);background:#fff;overflow:hidden}
.card-visual{position:relative;overflow:hidden;aspect-ratio:1.68;background:var(--blue)}
.card-visual>img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.post-card:hover .card-visual>img{transform:scale(1.035)}
.card-content{padding:25px 25px 23px}
.category-label{position:relative;z-index:3;display:inline-flex;align-items:center;font-size:10px;letter-spacing:.035em;font-weight:750;line-height:1.35;color:var(--blue);background:#edf0ff;border-radius:6px;padding:6px 8px;margin-bottom:13px}
.category-label:hover{text-decoration:underline;text-underline-offset:3px}
.post-card h2{font-size:23px;line-height:1.18;font-weight:780;letter-spacing:-.035em;overflow-wrap:break-word}
.card-main-link:after{position:absolute;inset:0;content:"";z-index:2}
.card-main-link:focus-visible{outline:0}
.post-card:has(.card-main-link:focus-visible){outline:3px solid var(--blue);outline-offset:5px}
.card-excerpt{font-size:13px;line-height:1.65;color:var(--muted);margin-top:12px}
.card-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:10px;color:var(--muted);margin-top:20px;padding-right:24px}
.meta-dot{display:inline-block;width:3px;height:3px;border-radius:50%;background:currentColor}
.card-arrow{position:absolute;right:22px;bottom:23px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#f1f3f8;z-index:1}
.card-arrow .etg-icon{width:17px;height:17px}
.card-number{display:none}
.post-card--lead{color:#fff;background:#182c74;min-height:226px}
.post-card--lead .card-visual{position:absolute;inset:0;aspect-ratio:auto;z-index:-2;background:transparent}
.post-card--lead .card-visual:after{position:absolute;inset:0;content:"";background:linear-gradient(180deg,rgba(12,20,43,.04) 0%,rgba(12,20,43,.19) 20%,rgba(12,20,43,.78) 68%,rgba(12,20,43,.94) 100%)}
.post-card--lead.has-art .card-visual:after{background:linear-gradient(90deg,rgba(8,16,53,.65) 0%,rgba(8,16,53,.20) 100%),linear-gradient(180deg,transparent 10%,rgba(8,16,53,.65) 100%)}
.post-card--lead .card-visual>img{object-position:center}
.post-card--lead .card-content{display:flex;align-items:flex-start;flex-direction:column;justify-content:flex-end;min-height:100%;padding:26px 28px;position:static}
.post-card--lead h2{font-size:25px;max-width:95%;line-height:1.12}
.post-card--lead .category-label{color:#fff;background:#ffffff1f;border:1px solid #ffffff45;backdrop-filter:blur(8px);font-size:9px;max-width:90%;margin-bottom:13px}
.post-card--lead .card-meta{color:#ffffffb8;margin-top:16px}
.post-card--lead .card-excerpt{color:#edf0ff;font-size:14px;max-width:95%;line-height:1.5}
.post-card--lead .card-arrow{bottom:25px;right:25px;color:#fff;background:#ffffff1a;border:1px solid #ffffff30}
.post-card--lead .card-number{display:block;position:absolute;right:23px;top:17px;font-size:10px;letter-spacing:.05em;color:#ffffffb3}
.lead-grid>.post-card:first-child .card-content{padding:35px}
.lead-grid>.post-card:first-child h2{font-size:clamp(30px,3.1vw,45px);letter-spacing:-.045em;max-width:94%;line-height:1.05}
.lead-grid>.post-card:first-child .category-label{margin-bottom:18px}
.lead-grid>.post-card:first-child .card-arrow{width:43px;height:43px;right:32px;bottom:31px}
.lead-grid>.post-card:first-child .card-arrow .etg-icon{width:23px;height:23px}
.lead-grid>.post-card:first-child .card-meta{padding-right:55px}
.lead-grid>.post-card:first-child .card-number{top:27px;right:32px;font-size:12px}
.lead-grid>.post-card:only-child{min-height:460px;grid-column:1/-1}
.tone-coral .category-label{color:#94351f;background:#fff0e8}
.tone-violet .category-label{color:#6840ba;background:#f2ecff}
.tone-teal .category-label{color:#246457;background:#e8f7f1}
.tone-amber .category-label{color:#785719;background:#fff5db}

/* Tools are links to the real shortcode pages, with no homepage JS payload. */
.services-section{background:var(--ink);border-radius:28px;padding:38px;margin-bottom:64px;color:#fff;position:relative;overflow:hidden;scroll-margin-top:25px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:28px}
.section-heading h2{font-size:36px;font-weight:790;letter-spacing:-.045em;line-height:1.09}
.section-heading .eyebrow{margin-bottom:12px;color:var(--muted)}
.services-section .section-heading h2{font-size:34px}
.services-section .section-heading h2 span{color:#a8b2c8}
.services-section .eyebrow{color:#c7cee0;font-size:9px}
.services-section .status-dot{background:var(--lime);box-shadow:0 0 0 4px #daff7315}
.services-section .section-heading>p{font-size:13px;color:#adb5c6;line-height:1.7;max-width:280px}
.services-featured{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.service-card{min-width:0;border-radius:15px;padding:23px 20px;display:flex;flex-direction:column;transition:transform .2s;color:var(--ink)}
.service-card:hover{transform:translateY(-4px)}
.service-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
.service-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:#1519250e;border:1px solid #15192517}
.service-icon .etg-icon{width:23px;height:23px}
.service-arrow{opacity:.65}
.service-arrow .etg-icon{width:19px;height:19px}
.service-card h3{font-size:22px;letter-spacing:-.04em;line-height:1.12;margin-bottom:11px}
.service-card p{font-size:12px;line-height:1.65;color:#354346;margin-bottom:20px}
.service-action{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:11px;border-top:1px solid #15192525;padding-top:14px;margin-top:auto}
.service-action .etg-icon{width:16px;height:16px}
.service-lime{background:linear-gradient(140deg,#e5ff91,#c9f25e)}
.service-blue{background:linear-gradient(135deg,#405cff,#2336d4);color:#fff}
.service-blue p{color:#e1e6ff}
.service-blue .service-icon{background:#ffffff12;border-color:#ffffff26}
.service-blue .service-action{border-color:#ffffff30}
.service-mint{background:linear-gradient(135deg,#d9f7ea,#bfe6df)}
.service-peach{background:linear-gradient(135deg,#ffe8d6,#ffcbb1)}
.services-compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 24px;margin-top:21px}
.services-compact>a{display:flex;align-items:center;gap:11px;min-height:63px;border-bottom:1px solid #ffffff17;font-size:11px;font-weight:550;color:#e7eaf2;transition:color .2s}
.services-compact>a>.etg-icon{width:20px;height:20px;color:#a1aec9}
.services-compact .compact-arrow{width:14px;height:14px;margin-left:auto;opacity:.6}
.services-compact>a:hover{color:var(--lime)}
.services-compact>a:hover>.etg-icon{color:var(--lime)}

/* Article feed and topic navigation. */
.latest-section{padding-bottom:62px;scroll-margin-top:28px}
.section-caption{font-size:12px;color:var(--muted)}
.topic-pills{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:3px 3px 7px;margin:0 -3px 24px;scrollbar-width:thin}
.topic-pills a{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:7px;padding:9px 13px;font-size:11px;font-weight:600;line-height:1.4;flex-shrink:0}
.topic-pills a:hover{border-color:var(--blue);color:var(--blue)}
.topic-pills a.is-current{background:var(--ink);border-color:var(--ink);color:#fff}
.topic-pills .etg-icon{width:12px;height:12px}
.posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.posts-grid .post-card{border:1px solid var(--line);display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.posts-grid .post-card:hover{box-shadow:0 12px 35px #14233c0b;transform:translateY(-3px)}
.posts-grid .card-content{display:flex;flex-direction:column;flex:1;align-items:flex-start}
.posts-grid .card-meta{margin-top:auto;padding-top:22px}
.posts-grid .card-visual{width:100%;flex-shrink:0}
.pagination{padding:40px 0 0}
.pagination ul{display:flex;justify-content:center;align-items:center;list-style:none;gap:8px;margin:0;padding:0;flex-wrap:wrap}
.pagination .page-numbers:not(ul){display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 13px;border:1px solid var(--line);border-radius:9px;font-size:12px;font-weight:650;background:#fff}
.pagination .current.page-numbers{background:var(--ink);border-color:var(--ink);color:#fff}
.pagination a:hover{color:var(--blue);border-color:var(--blue)}
.category-strip{display:grid;grid-template-columns:.8fr 1.2fr;gap:35px;align-items:center;border:1px solid #ccd3ed;border-radius:var(--radius);background:linear-gradient(110deg,#e8edff,#f5f7ff);padding:32px 36px;margin-bottom:48px}
.category-strip .eyebrow{font-size:9px;color:#435176;margin-bottom:10px}
.category-strip h2{font-size:28px;max-width:290px;letter-spacing:-.04em}
.license-links{display:flex;flex-wrap:wrap;gap:8px}
.license-links a{display:flex;align-items:center;justify-content:center;min-width:43px;min-height:40px;padding:7px 13px;border:1px solid #d0d7ed;border-radius:7px;background:#ffffffa6;font-size:12px;font-weight:750}
.license-links a:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.license-links a.license-highlight{background:var(--blue);color:#fff;border-color:var(--blue)}
.home-about{display:grid;grid-template-columns:1fr 1.2fr;gap:90px;border-top:1px solid var(--line);padding:36px 0 54px}
.home-about h2{font-size:28px;font-weight:750;line-height:1.2}
.home-about p{font-size:13px;line-height:1.85;color:var(--muted)}
.front-extra{max-width:880px;margin:0 auto 60px}

/* Footer. */
.site-footer{background:#111623;color:#fff;padding:45px 0 24px}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:55px;padding-bottom:40px}
.footer-brand>p{color:#a2acbf;font-size:13px;line-height:1.7;margin-top:21px}
.footer-links h2{font-size:12px;font-weight:700;letter-spacing:0;margin:5px 0 17px}
.footer-links>a{display:block;color:#a8b3c5;font-size:12px;padding:5px 0;width:fit-content}
.footer-links>a:hover{color:var(--lime)}
.footer-top-link{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #ffffff24;border-radius:50%;color:#fff}
.footer-top-link .etg-icon{transform:rotate(-90deg);width:19px;height:19px}
.footer-top-link:hover{background:var(--blue)}
.footer-bottom{display:flex;align-items:center;flex-wrap:wrap;gap:25px;padding-top:23px;border-top:1px solid #ffffff1a;font-size:10px;color:#9aa6bc}
.footer-bottom nav,.footer-bottom nav ul{display:flex;gap:17px;list-style:none;padding:0;margin:0;flex-wrap:wrap}
.footer-bottom a:hover{color:#fff}
.footer-signoff{margin-left:auto}

/* Reading layouts. */
.archive-main,.singular-main{padding-top:30px;padding-bottom:65px}
.breadcrumbs{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-bottom:28px}
.breadcrumbs a:hover{color:var(--blue)}
.archive-header{margin:25px 0 36px;max-width:960px}
.archive-header .eyebrow{margin-bottom:12px}
.archive-header h1{font-size:clamp(34px,4.2vw,56px);line-height:1.06;letter-spacing:-.055em}
.archive-description{font-size:16px;max-width:790px;margin-top:20px;color:var(--muted)}
.article-header{max-width:1030px;margin-bottom:36px}
.article-header h1{font-size:clamp(34px,4.1vw,57px);letter-spacing:-.05em;line-height:1.1;font-weight:800;text-wrap:balance}
.article-header>.eyebrow{margin-bottom:17px;color:var(--blue)}
.article-header>.category-label{margin-bottom:17px}
.article-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px;font-size:12px;color:var(--muted)}
.updated-date{display:block;flex-basis:100%;font-size:11px}
.article-cover{margin:0 0 38px}
.article-cover img{border-radius:20px;width:100%;max-height:660px;object-fit:cover}
.article-cover figcaption{font-size:12px;color:var(--muted);padding:8px 3px}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:64px;align-items:start}
.article-body{min-width:0}
.entry-content{font-size:18px;line-height:1.8;color:#313849;overflow-wrap:anywhere}
.entry-content>*{margin-block:0 1.3em}
.entry-content h2{font-size:32px;line-height:1.2;letter-spacing:-.035em;color:var(--ink);margin:1.65em 0 .6em;scroll-margin-top:30px}
.entry-content h3{font-size:25px;line-height:1.3;color:var(--ink);margin:1.4em 0 .6em}
.entry-content h4{font-size:21px;line-height:1.4;margin:1.3em 0 .6em}
.entry-content a{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.entry-content a:hover{color:var(--blue-dark)}
.entry-content a.button,.entry-content .wp-block-button__link{text-decoration:none}
.entry-content li{margin-bottom:.5em}
.entry-content ul,.entry-content ol{padding-left:1.35em}
.entry-content blockquote{border-left:4px solid var(--blue);background:#eef1ff;border-radius:0 14px 14px 0;padding:23px 27px;margin:28px 0;font-size:20px;color:#283456}
.entry-content blockquote p{margin:0 0 .6em}
.entry-content blockquote p:last-child{margin-bottom:0}
.entry-content blockquote cite{display:block;font-size:13px;color:var(--muted);margin-top:12px}
.entry-content table{width:100%;border-collapse:collapse;font-size:15px;background:#fff;line-height:1.6}
.entry-content>table,.entry-content .wp-block-table{display:block;overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}
.entry-content th,.entry-content td{padding:13px 16px;border:1px solid var(--line);text-align:left;vertical-align:top}
.entry-content th{background:#eef1fa;font-weight:700;color:var(--ink)}
.entry-content tbody tr:nth-child(even){background:#f8f9fc}
.entry-content img{border-radius:12px}
.entry-content figure{max-width:100%}
.entry-content figcaption,.wp-caption-text{color:var(--muted);font-size:12px;line-height:1.6;margin-top:8px}
.entry-content iframe,.entry-content video{max-width:100%}
.entry-content pre{white-space:pre-wrap;overflow-x:auto;background:#151925;color:#e8edff;border-radius:12px;padding:22px;font-size:14px}
.entry-content hr{border:0;border-top:1px solid var(--line);margin:40px 0}
.entry-content>p:first-child{font-size:20px;color:#27304b}
.entry-content .aligncenter{margin-inline:auto;display:block}
.entry-content .alignleft{float:left;margin:0 22px 18px 0;max-width:50%}
.entry-content .alignright{float:right;margin:0 0 18px 22px;max-width:50%}
.entry-content:after{content:"";display:table;clear:both}
.entry-content .wp-block-button__link{border-radius:10px;background:var(--blue);color:#fff}
.entry-content input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]),.entry-content textarea,.entry-content select{max-width:100%}
.page-article{max-width:930px;margin-inline:auto}
.page-main>.breadcrumbs{max-width:930px;margin-inline:auto}
.has-etesty-service .page-article{max-width:1020px}
.page-article>.entry-content{max-width:900px;margin-inline:auto}
.has-etesty-service .page-article>.entry-content{max-width:none}
.article-sidebar{min-width:0}
.sidebar-inner{position:sticky;top:30px}
.article-toc{border:1px solid var(--line);background:#fff;border-radius:16px;padding:22px;margin-bottom:22px}
.article-toc h2{font-size:15px;letter-spacing:-.01em;margin-bottom:14px}
.article-toc ol{padding-left:17px;margin:0;font-size:12px;color:var(--muted);line-height:1.5}
.article-toc li{padding:5px 0}
.article-toc a:hover{color:var(--blue)}
.sidebar-practice{background:linear-gradient(130deg,#354fff,#2435bc);color:#fff;padding:27px;border-radius:17px}
.sidebar-practice .eyebrow{font-size:8px;color:#d6dfff}
.sidebar-practice h2{font-size:30px;line-height:1.06;letter-spacing:-.045em;margin:18px 0 13px}
.sidebar-practice p{font-size:12px;color:#d5ddff;line-height:1.7;margin-bottom:22px}
.sidebar-practice .button{width:100%;font-size:12px}
.sidebar-tools{margin-top:16px}
.sidebar-tools>a{display:flex;align-items:center;gap:10px;font-size:12px;padding:14px 4px;border-bottom:1px solid var(--line)}
.sidebar-tools .etg-icon{width:18px;height:18px;color:var(--blue)}
.sidebar-tools .etg-icon:last-child{margin-left:auto;width:15px;height:15px}
.post-tags{border-top:1px solid var(--line);padding-top:22px;display:flex;gap:9px;flex-wrap:wrap;align-items:center;font-size:12px;margin:35px 0}
.post-tags a{border:1px solid var(--line);padding:5px 10px;background:#fff;border-radius:5px;color:var(--blue)}
.post-navigation{margin:40px 0;padding-block:24px;border-block:1px solid var(--line)}
.post-navigation .nav-links{display:grid;grid-template-columns:1fr 1fr;gap:25px;font-size:15px;font-weight:650;line-height:1.5}
.post-navigation .nav-links span{display:block;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-size:9px;font-weight:500;margin-bottom:8px}
.post-navigation .nav-next{text-align:right}
.related-section{margin-top:70px}
.page-links{display:flex;gap:10px;flex-wrap:wrap;font-size:14px}
.empty-state{padding:40px;background:#fff;border:1px solid var(--line);border-radius:20px}
.empty-state h2,.empty-state h3{font-size:28px;margin-bottom:12px}
.empty-state p{color:var(--muted);margin-bottom:22px}
.not-found{text-align:center;max-width:820px;padding-block:60px 100px}
.not-found h1{font-size:48px;line-height:1.1;margin-bottom:22px}
.not-found>p{color:var(--muted);margin-bottom:25px}
.not-found .search-form{margin-block:25px}
.error-code{font-size:110px;letter-spacing:-.07em;line-height:1;font-weight:850;color:var(--blue);display:block;margin-bottom:20px}
.comments-area{margin-top:45px}
.comments-area h2,.comments-area h3{font-size:25px;margin-bottom:20px}
.comment-list{padding:0;list-style:none}
.comment-list .children{list-style:none}
.comment-body{background:#fff;border:1px solid var(--line);padding:20px;border-radius:12px;margin-bottom:16px;font-size:14px}
.comment-author img{border-radius:50%;margin-right:10px}
.comment-metadata{font-size:11px;color:var(--muted);margin:8px 0}
.comment-form p{margin-bottom:15px;font-size:14px}
.comment-form label{display:block;font-size:13px;margin-bottom:7px}
.comment-form input:not([type=checkbox]),.comment-form textarea{border:1px solid #c7cedb;border-radius:8px;padding:10px 14px;max-width:100%;background:#fff}
.comment-form textarea{width:100%}
.comment-form input[type=submit]{background:var(--blue);color:#fff;border-color:var(--blue);cursor:pointer}
.comment-form-cookies-consent label{display:inline;margin-left:7px}
.bypostauthor>.comment-body{border-color:#9dacff}
.wp-caption,.gallery-caption{max-width:100%}

/* Scoped integration keeps the original plugin UI and data intact. */
body.etg-site .etesty-tool{--et-bg:#fff;--et-bg-soft:#f2f5fc;--et-bg-sunken:#eef1f8;--et-border:#dbe1ed;--et-border-strong:#b8c3db;--et-text:#1c263b;--et-text-soft:#556078;--et-accent:#304bff;--et-accent-soft:#edf0ff;--et-accent-text:#fff;--et-ok:#176e3d;--et-ok-soft:#e3f5ea;--et-warn:#885900;--et-warn-soft:#fff3d9;--et-bad:#ad2825;--et-bad-soft:#fdeceb;--et-radius:18px;--et-shadow:0 6px 22px #18294506}
body.etg-site .etesty-test{--ett-bg:#fff;--ett-bg-soft:#f2f5fc;--ett-border:#dbe1ed;--ett-text:#1c263b;--ett-text-soft:#556078;--ett-accent:#304bff;--ett-accent-soft:#edf0ff;--ett-accent-text:#fff;--ett-ok:#176e3d;--ett-ok-soft:#e3f5ea;--ett-bad:#ad2825;--ett-bad-soft:#fdeceb;--ett-warn:#885900;--ett-warn-soft:#fff3d9;--ett-radius:18px}
.entry-content :where(.etesty-tool,.etesty-test) h2{margin-top:0;letter-spacing:-.025em}
.entry-content :where(.etesty-tool,.etesty-test) p{font-size:inherit}
.entry-content :where(.etesty-tool,.etesty-test) a{color:var(--blue)}
.entry-content :where(.etesty-tool,.etesty-test) table{font-size:inherit}
.entry-content :where(.etesty-tool,.etesty-test) li{margin-bottom:.35em}
.entry-content :where(.etesty-tool,.etesty-test) button{letter-spacing:0}

@media(min-width:1550px){.home-intro{gap:130px}.lead-grid{grid-template-rows:repeat(2,minmax(250px,auto))}}
@media(max-width:1200px){.wrap{width:calc(100% - 56px)}.header-row{gap:23px}.primary-menu{gap:17px}.primary-menu a{font-size:12px}.brand img{width:173px}.header-cta{padding:11px 14px;font-size:12px;gap:9px}.header-actions{gap:8px}.home-intro{gap:45px}.lead-grid{grid-template-columns:1.35fr 1fr}.post-card--lead h2{font-size:24px}.services-section{padding:29px}.service-card{padding:21px 17px}.service-card h3{font-size:20px}.services-compact{gap:0 17px}.services-compact>a{font-size:10px;gap:8px}.posts-grid{gap:20px}.card-content{padding:22px}.post-card h2{font-size:22px}.article-layout{grid-template-columns:minmax(0,1fr) 260px;gap:40px}.footer-top{gap:35px}}
@media(max-width:1000px){.header-row{min-height:80px;flex-wrap:wrap;gap:0}.header-actions{margin-left:auto}.site-navigation{order:3;width:100%;margin:0}.primary-menu{justify-content:center;gap:28px}.primary-menu a{font-size:13px}.js .site-navigation{display:none}.js .site-navigation.is-open{display:block}.js .menu-toggle{display:inline-flex}.js .primary-menu{padding:15px 0 20px;display:block;max-height:65vh;overflow:auto}.primary-menu .sub-menu{position:static;border:0;border-left:2px solid var(--line);box-shadow:none;border-radius:0;padding:0 0 0 20px;max-width:none;margin:0 0 0 10px;display:block;min-width:0}.primary-menu .sub-menu a{font-size:12px}.home-intro{grid-template-columns:1.4fr 1fr;gap:30px;padding-top:36px}.home-intro h1{font-size:39px}.home-intro-right>p{font-size:13px}.home-intro-right .text-link{font-size:11px}.lead-grid{grid-template-rows:repeat(2,minmax(215px,auto));gap:14px}.lead-grid>.post-card:first-child .card-content{padding:26px}.lead-grid>.post-card:first-child h2{font-size:35px}.post-card--lead .card-content{padding:23px}.post-card--lead h2{font-size:22px}.post-card--lead .card-excerpt{font-size:12px}.post-card--lead .card-meta{font-size:9px}.services-featured{grid-template-columns:repeat(2,minmax(0,1fr))}.service-card-top{margin-bottom:24px}.services-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.services-compact>a{font-size:12px}.posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading h2{font-size:32px}.category-strip{grid-template-columns:1fr;gap:20px}.home-about{gap:40px}.article-layout{grid-template-columns:minmax(0,1fr) 240px;gap:30px}.entry-content{font-size:17px}.entry-content h2{font-size:28px}.sidebar-practice{padding:22px}.article-toc{padding:19px}.related-section .posts-grid>.post-card:last-child{display:none}.footer-top{grid-template-columns:1fr 1fr 1fr;gap:25px}.footer-top-link{display:none}.footer-signoff{display:none}}
@media(max-width:760px){.wrap{width:calc(100% - 36px)}.header-row{min-height:75px}.brand img{width:163px}.header-cta{display:none}.icon-button{width:40px;height:40px}.header-actions{gap:7px}.home-intro{grid-template-columns:1fr;padding:28px 0 24px;gap:16px;align-items:start}.home-intro h1{font-size:38px;max-width:620px;letter-spacing:-.055em}.home-intro .eyebrow{font-size:9px}.home-intro-right{justify-self:start;max-width:470px}.home-intro-right>p{font-size:13px;line-height:1.65;margin-bottom:10px}.home-intro-right .text-link{font-size:12px}.lead-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:12px;margin-bottom:38px}.lead-grid>.post-card:first-child{grid-column:1/-1;grid-row:auto;min-height:390px}.lead-grid>.post-card:first-child h2{font-size:35px;max-width:95%}.lead-grid>.post-card:first-child .card-content{padding:26px}.post-card--lead{min-height:250px;border-radius:17px}.post-card--lead .card-content{padding:20px 17px}.post-card--lead h2{font-size:21px;max-width:100%}.post-card--lead .category-label{font-size:8px;padding:5px 6px;margin-bottom:11px;max-width:100%}.post-card--lead .card-meta{gap:5px;font-size:8px;padding-right:0;margin-top:13px}.post-card--lead:not(:first-child) .card-meta>span:last-child,.post-card--lead:not(:first-child) .meta-dot{display:none}.post-card--lead:not(:first-child) .card-arrow{right:16px;bottom:18px;width:23px;height:23px}.post-card--lead .card-number{font-size:9px;right:16px;top:13px}.lead-grid>.post-card:first-child .card-arrow{right:24px;bottom:23px}.services-section{border-radius:21px;padding:25px 20px;margin-bottom:38px}.services-section .section-heading{align-items:start;gap:15px}.services-section .section-heading h2{font-size:30px}.services-section .section-heading>p{font-size:11px;max-width:170px}.services-section .eyebrow{font-size:8px}.service-card{padding:20px 17px}.service-card-top{margin-bottom:25px}.service-card h3{font-size:23px}.service-card p{font-size:12px}.service-action{font-size:10px;gap:8px}.services-compact{gap:0 15px}.services-compact>a{font-size:11px;line-height:1.4;gap:8px}.services-compact>a>.etg-icon{width:17px;height:17px}.services-compact .compact-arrow{display:none}.section-heading{margin-bottom:20px}.section-heading h2{font-size:31px}.section-caption{font-size:11px;max-width:155px;text-align:right}.section-heading .eyebrow{font-size:8px}.posts-grid{gap:16px}.post-card h2{font-size:21px}.card-content{padding:21px 19px}.card-excerpt{font-size:12px}.card-meta{font-size:9px;gap:6px}.card-arrow{right:17px;bottom:20px;width:24px;height:24px}.topic-pills{margin-bottom:18px}.latest-section{padding-bottom:40px}.category-strip{padding:26px 24px;margin-bottom:30px}.category-strip h2{font-size:27px;max-width:none}.license-links{gap:7px}.license-links a{font-size:11px;min-width:40px;padding:7px 10px}.home-about{grid-template-columns:1fr;gap:18px;padding:28px 0 38px}.home-about h2{font-size:27px}.home-about p{font-size:13px}.footer-top{grid-template-columns:1fr 1fr;gap:30px;padding-bottom:30px}.footer-brand{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:22px}.footer-brand>p{margin:0;font-size:11px}.footer-bottom{gap:15px;font-size:9px}.footer-links h2{font-size:11px}.footer-links>a{font-size:11px}.site-footer{padding-top:32px}.article-layout{grid-template-columns:1fr;gap:35px}.article-header h1{font-size:38px}.article-sidebar .article-toc{display:none}.sidebar-inner{position:static;display:grid;grid-template-columns:1fr 1fr;gap:20px}.sidebar-tools{margin:0}.article-header{margin-bottom:26px}.article-meta{font-size:11px;gap:7px}.breadcrumbs{font-size:10px;margin-bottom:22px}.archive-main,.singular-main{padding-top:23px;padding-bottom:40px}.entry-content h2{font-size:28px}.entry-content h3{font-size:23px}.entry-content>p:first-child{font-size:18px}.related-section{margin-top:44px}.related-section .section-heading{display:block}.related-section .text-link{margin-top:16px}.article-cover{margin-bottom:27px}.not-found h1{font-size:35px}.not-found{padding-block:40px 60px}.not-found .search-form{flex-direction:column}.empty-state{padding:27px}}
@media(max-width:520px){.home-intro h1{font-size:35px}.home-intro-right>p{font-size:12px}.lead-grid{gap:10px}.lead-grid>.post-card:first-child{min-height:365px}.lead-grid>.post-card:first-child h2{font-size:32px}.lead-grid>.post-card:first-child .card-content{padding:24px}.lead-grid>.post-card:first-child .card-excerpt{font-size:12px;max-width:95%}.post-card--lead:not(:first-child){min-height:248px}.post-card--lead:not(:first-child) .card-content{padding:18px 15px}.post-card--lead:not(:first-child) h2{font-size:20px}.post-card--lead:not(:first-child) .category-label{font-size:7px}.post-card--lead:not(:first-child) .card-meta{font-size:8px}.services-section{padding:24px 17px}.services-section .section-heading{display:block}.services-section .section-heading>p{margin-top:14px;max-width:none;font-size:11px}.services-section .section-heading>p br{display:none}.services-section .section-heading h2{font-size:29px}.services-featured{gap:9px}.service-card{padding:17px 14px;border-radius:12px}.service-card h3{font-size:21px}.service-card p{font-size:10px;line-height:1.7}.service-card-top{margin-bottom:24px}.service-icon{width:34px;height:34px;border-radius:10px}.service-icon .etg-icon{width:20px;height:20px}.service-arrow .etg-icon{width:15px;height:15px}.service-action{font-size:9px;line-height:1.5}.service-action .etg-icon{width:13px;height:13px}.services-compact>a{font-size:10px;min-height:59px}.services-compact>a>.etg-icon{width:17px;height:17px}.posts-grid{grid-template-columns:1fr;gap:22px}.post-card--normal{border-radius:18px}.post-card--normal .card-visual{aspect-ratio:1.9}.post-card--normal .card-content{padding:24px}.post-card--normal h2{font-size:25px}.post-card--normal .card-excerpt{font-size:13px}.post-card--normal .card-meta{font-size:10px;padding-top:22px}.post-card--normal .card-arrow{right:22px;bottom:22px}.section-heading h2{font-size:29px}.section-caption{font-size:9px;max-width:118px}.topic-pills a{font-size:10px;padding:8px 11px}.article-header h1{font-size:33px}.entry-content{font-size:16px;line-height:1.85}.entry-content>p:first-child{font-size:17px}.entry-content h2{font-size:26px}.entry-content h3{font-size:22px}.entry-content blockquote{font-size:17px;padding:18px 20px}.entry-content th,.entry-content td{padding:10px 12px;min-width:120px;font-size:13px}.entry-content .alignleft,.entry-content .alignright{float:none;max-width:100%;margin-inline:0}.sidebar-inner{grid-template-columns:1fr}.sidebar-practice{padding:26px}.sidebar-practice h2 br{display:none}.post-navigation .nav-links{font-size:12px;gap:15px}.footer-brand{display:block}.footer-brand>p{margin-top:18px}.footer-brand>p br{display:none}.footer-brand .brand img{width:176px}.footer-bottom{align-items:start;flex-direction:column}.pagination .page-numbers:not(ul){min-width:38px;min-height:40px;font-size:11px;padding:8px 10px}.search-form{gap:8px}.search-form .button{padding:12px}.search-form .button .etg-icon{display:none}.search-form input{font-size:14px;padding:12px}.etg-site .etesty-tool,.etg-site .etesty-test{padding:18px 14px}.etg-site .etesty-grid{grid-template-columns:1fr}.etg-site .etesty-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}.button:hover,.post-card:hover,.service-card:hover,.posts-grid .post-card:hover{transform:none}}
@media print{.site-header,.site-footer,.article-sidebar,.related-section,.post-navigation,.comments-area,.header-search,.post-tags{display:none!important}body{background:#fff;color:#111}.wrap{width:100%}.article-layout{display:block}.entry-content{font-size:11pt;line-height:1.5}.article-header h1{font-size:24pt}.article-cover img{max-height:300px}.entry-content h2{break-after:avoid;font-size:18pt}.entry-content a{color:inherit}.page-main,.singular-main{padding:0}}

/* 1.1: available service cards fill the row. */
@media (min-width: 1024px) { .services-featured { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
