/* =========================================================
   PII Modern UI layer 0.19.0
   Loads AFTER main.css and only overrides it. Remove the
   'pii-modern-ui' enqueue in functions.php to go back to
   the previous look.
   Signature element: the guilloche rosette (the engraved
   security pattern printed on policies and certificates).
   ========================================================= */

/* ---------- tokens ---------- */
body.pii-modern{
  --m-ink:#0b2d42; --m-text:#2a4352; --m-muted:#66808e; --m-line:#dfe9ef;
  --m-paper:#f4f8fb; --m-card:#fff; --m-sky:#e7f3fa;
  --m-blue:#0a7db7; --m-blue-d:#075a85; --m-navy:#0b2d42; --m-navy-2:#071f2f;
  --m-amber:#f6a21a; --m-amber-d:#b86f00;
  --m-shadow:0 1px 2px rgba(11,45,66,.06),0 14px 30px -14px rgba(11,45,66,.20);
  --m-shadow-up:0 2px 4px rgba(11,45,66,.06),0 28px 48px -18px rgba(11,45,66,.32);
  --m-r-xl:30px; --m-r-lg:22px; --m-r-md:14px; --m-r-sm:10px;
  --m-rosette-light:url("../images/guilloche-light.svg");
  --m-rosette-blue:url("../images/guilloche-blue.svg");
}
html[data-pii-theme="dark"] body.pii-modern{
  --m-ink:#eaf3f8; --m-text:#c6d7e0; --m-muted:#8fa7b3; --m-line:#223b49;
  --m-paper:#071720; --m-card:#0e2430; --m-sky:#103345;
  --m-blue:#3aa6d8; --m-blue-d:#8fd0ee; --m-amber-d:#f6b24a;
  --m-shadow:0 1px 2px rgba(0,0,0,.3),0 14px 30px -14px rgba(0,0,0,.55);
  --m-shadow-up:0 2px 4px rgba(0,0,0,.3),0 28px 48px -18px rgba(0,0,0,.7);
}
html{scroll-padding-top:150px}
html[data-pii-theme] body.pii-modern a:focus-visible,html[data-pii-theme] body.pii-modern button:focus-visible{outline:3px solid var(--m-amber);outline-offset:3px;border-radius:10px}

/* ---------- header ---------- */
html[data-pii-theme] body.pii-modern .pii-header{background:color-mix(in srgb,var(--m-card) 86%,transparent);-webkit-backdrop-filter:saturate(170%) blur(16px);backdrop-filter:saturate(170%) blur(16px);border-bottom:1px solid var(--m-line)}
html[data-pii-theme] body.pii-modern .pii-header__main,html[data-pii-theme] body.pii-modern .pii-navbar{background:transparent}
html[data-pii-theme] body.pii-modern .pii-navbar{border-top:1px solid var(--m-line)}
html[data-pii-theme] body.pii-modern .pii-menu>li>a{border-radius:999px;font-weight:700}
html[data-pii-theme] body.pii-modern .pii-menu>li>a:hover,html[data-pii-theme] body.pii-modern .pii-menu>.current-menu-item>a,html[data-pii-theme] body.pii-modern .pii-menu>.current-menu-ancestor>a{background:var(--m-sky);color:var(--m-blue-d)}
html[data-pii-theme] body.pii-modern .pii-icon-btn{border-radius:999px;background:var(--m-sky);color:var(--m-blue-d)}
html[data-pii-theme] body.pii-modern .pii-account-btn{border-radius:999px;background:var(--m-navy);color:#fff;box-shadow:none;transition:background .2s,transform .2s}
html[data-pii-theme] body.pii-modern .pii-account-btn:hover{background:var(--m-blue)}
html[data-pii-theme="dark"] body.pii-modern .pii-account-btn{background:var(--m-amber);color:#2b1a00}
html[data-pii-theme] body.pii-modern .pii-cart-btn{border-radius:999px}
html[data-pii-theme] body.pii-modern .pii-menu .sub-menu{border-radius:var(--m-r-md);box-shadow:var(--m-shadow-up)}

/* ---------- notice strip ---------- */
html[data-pii-theme] body.pii-modern .pii-alert-strip{background:var(--m-card);border-bottom:1px solid var(--m-line)}
html[data-pii-theme] body.pii-modern .pii-alert-strip__badge{background:var(--m-amber);color:#2b1a00;border:0;font-weight:800}
html[data-pii-theme] body.pii-modern .pii-alert-strip__inner>a:not(.pii-alert-strip__more){color:var(--m-text)}

/* ---------- hero: slider (data-driven) ---------- */
html[data-pii-theme] body.pii-modern .pii-course-showcase{background:
  radial-gradient(70% 90% at 88% 0%,rgba(10,125,183,.55),transparent 62%),
  linear-gradient(160deg,#071f2f 0%,#0b2d42 55%,#0a4a6b 100%);border-bottom:0}
html[data-pii-theme] body.pii-modern .pii-course-showcase:after{display:none}
html[data-pii-theme] body.pii-modern .pii-course-showcase__shell{padding-bottom:140px}
html[data-pii-theme] body.pii-modern .pii-showcase-orb--one{display:block;width:760px;height:760px;left:-260px;top:-230px;right:auto;border-radius:0;filter:none;border:0;
  background:var(--m-rosette-light) center/contain no-repeat;opacity:.26}
html[data-pii-theme] body.pii-modern .pii-showcase-orb--two,html[data-pii-theme] body.pii-modern .pii-showcase-arc{display:none}
html[data-pii-theme] body.pii-modern .pii-showcase-grid{opacity:.05}
html[data-pii-theme] body.pii-modern .pii-course-slide__title{font-weight:900;line-height:1.4;letter-spacing:0}
html[data-pii-theme] body.pii-modern .pii-course-slide__image{border-radius:var(--m-r-xl);border:1px solid rgba(255,255,255,.2);box-shadow:0 40px 80px -30px rgba(0,0,0,.65)}
html[data-pii-theme] body.pii-modern .pii-course-slide__image img{border-radius:inherit}
html[data-pii-theme] body.pii-modern .pii-course-slide__primary{border-radius:999px;background:var(--m-amber);color:#2b1a00;font-weight:800;box-shadow:none}
html[data-pii-theme] body.pii-modern .pii-course-slide__details{border-radius:999px;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff}
html[data-pii-theme] body.pii-modern .pii-course-slide__status{border-radius:999px;background:var(--m-amber);color:#2b1a00;font-weight:800}
html[data-pii-theme] body.pii-modern .pii-course-slide__meta-item{border-radius:var(--m-r-md);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14)}
html[data-pii-theme] body.pii-modern .pii-slider-arrow{border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);color:#fff}
html[data-pii-theme] body.pii-modern .pii-slider-arrow:hover{background:var(--m-amber);color:#2b1a00;border-color:var(--m-amber)}

/* ---------- hero: fallback when there are no slides ---------- */
html[data-pii-theme] body.pii-modern .pii-welcome{position:relative;overflow:hidden;color:#fff;background:
  radial-gradient(70% 90% at 90% 0%,rgba(10,125,183,.55),transparent 62%),
  linear-gradient(160deg,#071f2f 0%,#0b2d42 55%,#0a4a6b 100%)}
html[data-pii-theme] body.pii-modern .pii-welcome__inner{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;gap:56px;min-height:540px;padding-block:72px 128px}
html[data-pii-theme] body.pii-modern .pii-welcome h1{margin:0 0 18px;font-size:clamp(30px,4.2vw,54px);line-height:1.4;font-weight:900;max-width:17em;color:#fff}
html[data-pii-theme] body.pii-modern .pii-welcome p{margin:0 0 32px;max-width:36em;font-size:17px;line-height:2;color:#c6dcea}
html[data-pii-theme] body.pii-modern .pii-welcome__actions{display:flex;flex-wrap:wrap;gap:12px}
html[data-pii-theme] body.pii-modern .pii-welcome .pii-btn{min-height:50px;padding:0 26px;font-weight:800;display:inline-flex;align-items:center;gap:10px}
html[data-pii-theme] body.pii-modern .pii-welcome .pii-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
html[data-pii-theme] body.pii-modern .pii-welcome .pii-btn--ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4)}
html[data-pii-theme] body.pii-modern .pii-welcome .pii-btn--ghost:hover{background:rgba(255,255,255,.1)}
html[data-pii-theme] body.pii-modern .pii-welcome__visual{position:relative;width:min(100%,460px);aspect-ratio:1;justify-self:center}
html[data-pii-theme] body.pii-modern .pii-welcome__rosette{position:absolute;inset:-6%;background:var(--m-rosette-light) center/contain no-repeat;opacity:.9;animation:pii-spin 160s linear infinite}
html[data-pii-theme] body.pii-modern .pii-welcome__seal{position:absolute;inset:27%;border-radius:50%;background:#fff;display:grid;place-content:center;justify-items:center;gap:6px;padding:8%;text-align:center;box-shadow:0 30px 70px -20px rgba(0,0,0,.6),0 0 0 10px rgba(255,255,255,.08)}
html[data-pii-theme] body.pii-modern .pii-welcome__seal img{width:92%;max-height:72%;object-fit:contain}
html[data-pii-theme] body.pii-modern .pii-welcome__seal small{font-size:8.5px;line-height:1.4;font-weight:700;color:#4d6a7a;letter-spacing:.2px;direction:ltr}
@keyframes pii-spin{to{transform:rotate(360deg)}}

/* ---------- services bento ---------- */
html[data-pii-theme] body.pii-modern .pii-quick-section{margin-top:-64px;position:relative;z-index:4}
html[data-pii-theme] body.pii-modern .pii-quick-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:16px}
html[data-pii-theme] body.pii-modern .pii-quick-card{position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:1fr auto;grid-template-areas:"icon arrow" "text text";align-content:space-between;gap:22px;min-height:156px;padding:22px;border-radius:var(--m-r-lg);background:var(--m-card);border:1px solid var(--m-line);box-shadow:var(--m-shadow);color:var(--m-ink);transition:transform .25s,box-shadow .25s,border-color .25s}
html[data-pii-theme] body.pii-modern .pii-quick-card__icon{grid-area:icon;width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:var(--m-sky);color:var(--m-blue-d);transition:background .25s,color .25s}
html[data-pii-theme] body.pii-modern .pii-quick-card__icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7}
html[data-pii-theme] body.pii-modern .pii-quick-card>svg{grid-area:arrow;width:22px;height:22px;fill:none;stroke:var(--m-muted);stroke-width:2;transition:transform .25s,stroke .25s}
html[data-pii-theme] body.pii-modern .pii-quick-card>span:nth-child(2){grid-area:text;display:block}
html[data-pii-theme] body.pii-modern .pii-quick-card strong{display:block;font-size:17px;font-weight:800;line-height:1.6;color:inherit}
html[data-pii-theme] body.pii-modern .pii-quick-card small{display:block;margin-top:2px;font-size:12.5px;line-height:1.8;color:var(--m-muted)}
html[data-pii-theme] body.pii-modern .pii-quick-card:hover{transform:translateY(-4px);box-shadow:var(--m-shadow-up);border-color:var(--m-blue)}
html[data-pii-theme] body.pii-modern .pii-quick-card:hover>svg{transform:translateX(-5px);stroke:var(--m-blue)}
html[data-pii-theme] body.pii-modern .pii-quick-card:hover .pii-quick-card__icon{background:var(--m-blue);color:#fff}
html[data-pii-theme] body.pii-modern .pii-quick-card--lead{grid-row:span 2;min-height:300px;padding:28px;color:#fff;border:0;background:linear-gradient(155deg,#0a5f8c 0%,#0b2d42 100%)}
html[data-pii-theme] body.pii-modern .pii-quick-card:not(.pii-quick-card--lead):before,html[data-pii-theme] body.pii-modern .pii-quick-card:after{display:none}
html[data-pii-theme] body.pii-modern .pii-quick-card--lead:before{content:"";position:absolute;z-index:-1;right:auto;top:auto;border-radius:0;width:520px;height:520px;left:-210px;bottom:-250px;background:var(--m-rosette-light) center/contain no-repeat;opacity:.3}
html[data-pii-theme] body.pii-modern .pii-quick-card--lead .pii-quick-card__icon{width:60px;height:60px;border-radius:18px;background:var(--m-amber);color:#2b1a00}
html[data-pii-theme] body.pii-modern .pii-quick-card--lead strong{font-size:27px;line-height:1.5}
html[data-pii-theme] body.pii-modern .pii-quick-card--lead small{font-size:14px;color:#b9d6e6;max-width:20em}
html[data-pii-theme] body.pii-modern .pii-quick-card--lead>svg{stroke:#fff}
html[data-pii-theme] body.pii-modern .pii-quick-card--lead:hover{border-color:transparent}
html[data-pii-theme] body.pii-modern .pii-quick-card--lead:hover .pii-quick-card__icon{background:#ffb94d;color:#2b1a00}
html[data-pii-theme] body.pii-modern .pii-quick-card--lead:hover>svg{stroke:var(--m-amber)}
html[data-pii-theme] body.pii-modern .pii-quick-card--wide{grid-column:span 2;grid-template-columns:auto 1fr auto;grid-template-areas:"icon text arrow";align-items:center;align-content:center;gap:18px;min-height:0}

/* ---------- flatten legacy section panels ---------- */
html[data-pii-theme] body.pii-modern .pii-news-section,html[data-pii-theme] body.pii-modern .pii-courses-section,html[data-pii-theme] body.pii-modern .pii-notices{background:none;border:0;box-shadow:none;border-radius:0;padding:0!important;overflow:visible}
html[data-pii-theme] body.pii-modern .pii-courses-section,html[data-pii-theme] body.pii-modern .pii-notices{border-radius:0!important}
html[data-pii-theme] body.pii-modern .pii-notice-list{background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
html[data-pii-theme] body.pii-modern .pii-news-section:before,html[data-pii-theme] body.pii-modern .pii-courses-section:after{display:none}
html[data-pii-theme] body.pii-modern .pii-home-content>.pii-section:not(.pii-about-strip):before{display:none}
html[data-pii-theme] body.pii-modern .pii-home-layout.pii-home-layout--no-right.pii-home-layout--no-left{grid-template-columns:minmax(0,1fr);max-width:var(--pii-container)}

/* ---------- section heads ---------- */
html[data-pii-theme] body.pii-modern .pii-section{margin-bottom:96px}
html[data-pii-theme] body.pii-modern .pii-home-layout{padding-top:84px}
html[data-pii-theme] body.pii-modern .pii-section-head{align-items:center;margin-bottom:32px}
html[data-pii-theme] body.pii-modern .pii-section-head>div>span{display:none}
html[data-pii-theme] body.pii-modern .pii-section-head h2{position:relative;padding-inline-start:18px;font-size:clamp(23px,2.5vw,32px);font-weight:900;line-height:1.5;color:var(--m-ink)}
html[data-pii-theme] body.pii-modern .pii-section-head h2:before{content:"";position:absolute;inset-inline-start:0;top:.35em;bottom:.35em;width:5px;border-radius:5px;background:var(--m-amber)}
html[data-pii-theme] body.pii-modern .pii-section-head>a{display:inline-flex;align-items:center;gap:7px;padding:8px 16px;border-radius:999px;border:1px solid var(--m-line);background:var(--m-card);color:var(--m-blue-d);font-size:13px;font-weight:700;transition:background .2s,color .2s,border-color .2s}
html[data-pii-theme] body.pii-modern .pii-section-head>a svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
html[data-pii-theme] body.pii-modern .pii-section-head>a:hover{background:var(--m-blue);border-color:var(--m-blue);color:#fff}

/* ---------- news ---------- */
html[data-pii-theme] body.pii-modern .pii-news-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:stretch}
html[data-pii-theme] body.pii-modern .pii-news-featured{position:relative;display:block;isolation:isolate;overflow:hidden;min-height:460px;border:0;border-radius:var(--m-r-xl);background:var(--m-navy);box-shadow:var(--m-shadow)}
html[data-pii-theme] body.pii-modern .pii-news-featured__media{position:absolute;inset:0;z-index:-2;display:block;width:auto;height:auto;aspect-ratio:auto}
html[data-pii-theme] body.pii-modern .pii-news-featured__media img{width:100%;height:100%;object-fit:cover;transition:transform .8s}
html[data-pii-theme] body.pii-modern .pii-news-featured:hover .pii-news-featured__media img{transform:scale(1.04)}
html[data-pii-theme] body.pii-modern .pii-news-featured:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(7,31,47,.94) 6%,rgba(7,31,47,.45) 52%,rgba(7,31,47,.05))}
html[data-pii-theme] body.pii-modern .pii-news-featured__body{position:absolute;inset:auto 0 0;padding:30px;background:none;color:#fff}
html[data-pii-theme] body.pii-modern .pii-news-featured__body h3{margin:6px 0 10px;font-size:clamp(20px,2vw,27px);font-weight:800;line-height:1.65}
html[data-pii-theme] body.pii-modern .pii-news-featured__body h3 a{color:#fff}
html[data-pii-theme] body.pii-modern .pii-news-featured__body p{color:#cfe1ec;margin:0 0 14px;font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html[data-pii-theme] body.pii-modern .pii-news-featured .pii-meta{color:rgba(255,255,255,.78)}
html[data-pii-theme] body.pii-modern .pii-news-featured .pii-text-link{color:var(--m-amber);font-weight:800}
html[data-pii-theme] body.pii-modern .pii-news-list{display:grid;gap:14px;align-content:start}
html[data-pii-theme] body.pii-modern .pii-news-item{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;align-items:center;padding:12px;border-radius:var(--m-r-md);background:var(--m-card);border:1px solid var(--m-line);box-shadow:none;transition:border-color .2s,transform .2s}
html[data-pii-theme] body.pii-modern .pii-news-item:hover{border-color:var(--m-blue);transform:translateX(-3px)}
html[data-pii-theme] body.pii-modern .pii-news-item__thumb{display:block;width:112px;height:88px;border-radius:var(--m-r-sm);overflow:hidden}
html[data-pii-theme] body.pii-modern .pii-news-item__thumb img{width:100%;height:100%;object-fit:cover}
html[data-pii-theme] body.pii-modern .pii-news-item h3{margin:2px 0 0;font-size:14.5px;font-weight:700;line-height:1.8}
html[data-pii-theme] body.pii-modern .pii-news-item h3 a{color:var(--m-ink)}
html[data-pii-theme] body.pii-modern .pii-meta{color:var(--m-muted);font-size:12px}

/* ---------- courses ---------- */
html[data-pii-theme] body.pii-modern .pii-course-grid,html[data-pii-theme] body.pii-modern .pii-article-grid{gap:22px}
html[data-pii-theme] body.pii-modern .pii-course-card{display:flex;flex-direction:column;overflow:hidden;border-radius:var(--m-r-lg);background:var(--m-card);border:1px solid var(--m-line);box-shadow:var(--m-shadow);transition:transform .25s,box-shadow .25s}
html[data-pii-theme] body.pii-modern .pii-course-card:hover{transform:translateY(-6px);box-shadow:var(--m-shadow-up)}
html[data-pii-theme] body.pii-modern .pii-course-card__media{display:block;width:100%;height:auto;aspect-ratio:16/10;overflow:hidden;background:var(--m-sky)}
html[data-pii-theme] body.pii-modern .pii-course-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
html[data-pii-theme] body.pii-modern .pii-course-card:hover .pii-course-card__media img{transform:scale(1.05)}
html[data-pii-theme] body.pii-modern .pii-course-card__body{display:flex;flex-direction:column;flex:1;padding:20px 22px 22px}
html[data-pii-theme] body.pii-modern .pii-pill{align-self:flex-start;border-radius:999px;background:var(--m-sky);color:var(--m-blue-d);font-weight:700;font-size:12px;padding:3px 12px}
html[data-pii-theme] body.pii-modern .pii-course-card h3{margin:12px 0;font-size:17px;font-weight:800;line-height:1.75}
html[data-pii-theme] body.pii-modern .pii-course-card h3 a{color:var(--m-ink)}
html[data-pii-theme] body.pii-modern .pii-course-card__meta{display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--m-muted);font-size:12.5px}
html[data-pii-theme] body.pii-modern .pii-course-card__footer{margin-top:auto;padding-top:16px;border-top:1px dashed var(--m-line);display:flex;align-items:center;justify-content:space-between;gap:12px}
html[data-pii-theme] body.pii-modern .pii-course-card__body .pii-course-card__meta{margin-bottom:16px}
html[data-pii-theme] body.pii-modern .pii-price{color:var(--m-blue-d);font-weight:900;font-size:16px}
html[data-pii-theme] body.pii-modern .pii-course-card__footer>a{display:inline-flex;align-items:center;gap:6px;padding:7px 15px;border-radius:999px;background:var(--m-navy);color:#fff;font-size:12.5px;font-weight:700;transition:background .2s}
html[data-pii-theme] body.pii-modern .pii-course-card__footer>a:hover{background:var(--m-blue)}
html[data-pii-theme="dark"] body.pii-modern .pii-course-card__footer>a{background:var(--m-amber);color:#2b1a00}
html[data-pii-theme] body.pii-modern .pii-course-card__footer>a svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}

/* ---------- about + stats ---------- */
html[data-pii-theme] body.pii-modern .pii-about-strip{position:relative;overflow:hidden;isolation:isolate;border-radius:var(--m-r-xl);padding:clamp(28px,4.5vw,56px);background:linear-gradient(135deg,#0b2d42 0%,#0a5a82 100%);box-shadow:var(--m-shadow)}
html[data-pii-theme] body.pii-modern .pii-about-strip:before{content:"";position:absolute;z-index:-1;left:-140px;bottom:-280px;width:640px;height:640px;font-size:0;color:transparent;background:var(--m-rosette-light) center/contain no-repeat;opacity:.22}
html[data-pii-theme] body.pii-modern .pii-about-strip:after{display:none}
html[data-pii-theme] body.pii-modern .pii-about-strip__content>span{display:none}
html[data-pii-theme] body.pii-modern .pii-about-strip h2{font-size:clamp(24px,2.8vw,36px);font-weight:900;line-height:1.5;color:#fff}
html[data-pii-theme] body.pii-modern .pii-about-strip p{color:#c3dae8;font-size:15px;line-height:2}
html[data-pii-theme] body.pii-modern .pii-stats{gap:14px}
html[data-pii-theme] body.pii-modern .pii-stats>div{padding:22px 20px;border-radius:var(--m-r-md);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:start}
html[data-pii-theme] body.pii-modern .pii-stats strong{display:block;font-size:clamp(30px,3.4vw,44px);font-weight:900;line-height:1.2;color:#fff;font-variant-numeric:tabular-nums}
html[data-pii-theme] body.pii-modern .pii-stats span{display:block;margin-top:6px;font-size:13px;color:#b9d3e2}

/* ---------- articles (editorial: no card chrome) ---------- */
html[data-pii-theme] body.pii-modern .pii-article-card{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible;transform:none}
html[data-pii-theme] body.pii-modern .pii-article-card__media{display:block;width:100%;height:auto;aspect-ratio:3/2;overflow:hidden;border-radius:var(--m-r-lg);background:var(--m-sky)}
html[data-pii-theme] body.pii-modern .pii-article-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
html[data-pii-theme] body.pii-modern .pii-article-card:hover .pii-article-card__media img{transform:scale(1.05)}
html[data-pii-theme] body.pii-modern .pii-article-card__body{padding:16px 4px 0}
html[data-pii-theme] body.pii-modern .pii-article-card h3{margin:6px 0 8px;font-size:18px;font-weight:800;line-height:1.75}
html[data-pii-theme] body.pii-modern .pii-article-card h3 a{color:var(--m-ink);background:linear-gradient(var(--m-amber),var(--m-amber)) 100% 100%/0 2px no-repeat;transition:background-size .3s}
html[data-pii-theme] body.pii-modern .pii-article-card:hover h3 a{background-size:100% 2px}
html[data-pii-theme] body.pii-modern .pii-article-card p{margin:0;color:var(--m-muted);font-size:13.5px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- notices ---------- */
html[data-pii-theme] body.pii-modern .pii-notice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html[data-pii-theme] body.pii-modern .pii-notice-list>article{display:grid;grid-template-columns:68px minmax(0,1fr);gap:16px;align-items:start;padding:16px;border-radius:var(--m-r-md);background:var(--m-card);border:1px solid var(--m-line);box-shadow:none}
html[data-pii-theme] body.pii-modern .pii-notice-list>article>span{display:grid;place-content:center;width:68px;height:68px;border-radius:var(--m-r-md);background:var(--m-sky);color:var(--m-blue-d);font-size:24px;font-weight:900;line-height:1.1;text-align:center}
html[data-pii-theme] body.pii-modern .pii-notice-list>article>span small{display:block;font-size:11px;font-weight:700;color:var(--m-muted)}
html[data-pii-theme] body.pii-modern .pii-notice-list h3{margin:0 0 4px;font-size:15px;font-weight:800;line-height:1.8;color:var(--m-ink)}
html[data-pii-theme] body.pii-modern .pii-notice-list p{margin:0;font-size:13px;line-height:1.9;color:var(--m-muted)}

/* ---------- membership CTA ---------- */
html[data-pii-theme] body.pii-modern .pii-membership-cta{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:32px;padding:clamp(28px,4.5vw,56px);border:0;border-radius:var(--m-r-xl);background:linear-gradient(120deg,#f6a21a 0%,#ffbd55 100%);color:#2b1a00;box-shadow:var(--m-shadow)}
html[data-pii-theme] body.pii-modern .pii-membership-cta__rosette{position:absolute;z-index:-1;inset-inline-end:-150px;top:-200px;width:560px;height:560px;background:var(--m-rosette-light) center/contain no-repeat;opacity:.6;pointer-events:none}
html[data-pii-theme] body.pii-modern .pii-membership-cta>div>span{display:none}
html[data-pii-theme] body.pii-modern .pii-membership-cta h2{margin:0 0 8px;font-size:clamp(23px,2.6vw,34px);font-weight:900;line-height:1.5;color:#2b1a00}
html[data-pii-theme] body.pii-modern .pii-membership-cta p{margin:0;max-width:40em;color:#5a3b05;line-height:2}
html[data-pii-theme] body.pii-modern .pii-membership-cta .pii-btn{flex:none;min-height:52px;padding:0 28px;border-radius:999px;background:var(--m-navy);color:#fff;font-weight:800;display:inline-flex;align-items:center;gap:10px;transition:background .2s}
html[data-pii-theme] body.pii-modern .pii-membership-cta .pii-btn:hover{background:#000}
html[data-pii-theme] body.pii-modern .pii-membership-cta .pii-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
html[data-pii-theme="dark"] body.pii-modern .pii-membership-cta{background:linear-gradient(120deg,#12364a 0%,#0b2433 100%);color:#fff}
html[data-pii-theme="dark"] body.pii-modern .pii-membership-cta h2{color:#fff}
html[data-pii-theme="dark"] body.pii-modern .pii-membership-cta p{color:#b9d3e2}
html[data-pii-theme="dark"] body.pii-modern .pii-membership-cta .pii-btn{background:var(--m-amber);color:#2b1a00}
html[data-pii-theme="dark"] body.pii-modern .pii-membership-cta__rosette{opacity:.22}

/* ---------- shared buttons / cards on inner pages ---------- */
html[data-pii-theme] body.pii-modern .pii-btn{border-radius:999px}
html[data-pii-theme] body.pii-modern .pii-sidebar-card,html[data-pii-theme] body.pii-modern .pii-entry-content,html[data-pii-theme] body.pii-modern .pii-archive-card,html[data-pii-theme] body.pii-modern .pii-related-card,html[data-pii-theme] body.pii-modern .pii-post-nav-card{border-radius:var(--m-r-lg);box-shadow:var(--m-shadow)}
html[data-pii-theme] body.pii-modern .pii-archive-card,html[data-pii-theme] body.pii-modern .pii-related-card{transition:transform .25s,box-shadow .25s}
html[data-pii-theme] body.pii-modern .pii-archive-card:hover,html[data-pii-theme] body.pii-modern .pii-related-card:hover{transform:translateY(-5px);box-shadow:var(--m-shadow-up)}
html[data-pii-theme] body.pii-modern .pii-archive-hero{border-bottom:0}
html[data-pii-theme] body.pii-modern .pii-archive-hero:after{content:"";position:absolute;pointer-events:none;width:560px;height:560px;left:-150px;top:-200px;background:var(--m-rosette-light) center/contain no-repeat;opacity:.2}
html[data-pii-theme] body.pii-modern .pii-archive-hero__orb{display:none}
html[data-pii-theme] body.pii-modern .pii-page-head h1,html[data-pii-theme] body.pii-modern .pii-archive-hero h1{font-weight:900}
html[data-pii-theme] body.pii-modern .pii-breadcrumb{font-size:12.5px}
html[data-pii-theme] body.pii-modern .pii-pagination .page-numbers{border-radius:999px}
html[data-pii-theme] body.pii-modern .woocommerce ul.products li.product{border-radius:var(--m-r-lg);box-shadow:var(--m-shadow);transition:transform .25s,box-shadow .25s}
html[data-pii-theme] body.pii-modern .woocommerce ul.products li.product:hover{transform:translateY(-5px);box-shadow:var(--m-shadow-up)}
html[data-pii-theme] body.pii-modern .woocommerce a.button,html[data-pii-theme] body.pii-modern .woocommerce button.button,html[data-pii-theme] body.pii-modern .woocommerce input.button{border-radius:999px!important}

/* ---------- footer ---------- */
html[data-pii-theme] body.pii-modern .pii-footer{position:relative;overflow:hidden;isolation:isolate;margin-top:48px;border-radius:var(--m-r-xl) var(--m-r-xl) 0 0;background:var(--m-navy-2)}
html[data-pii-theme] body.pii-modern .pii-footer:before{content:"";position:absolute;z-index:-1;width:720px;height:720px;right:-260px;top:-300px;background:var(--m-rosette-light) center/contain no-repeat;opacity:.1;pointer-events:none}
html[data-pii-theme] body.pii-modern .pii-footer-menu a:hover,html[data-pii-theme] body.pii-modern .pii-footer a:hover{color:var(--m-amber)}


/* ---------- dark mode reconciliation ----------
   main.css dark rules use !important on card surfaces, so the
   redesigned components restate their surfaces the same way. */
html[data-pii-theme="dark"] body.pii-modern .pii-header{background:rgba(7,23,32,.82)!important;-webkit-backdrop-filter:saturate(170%) blur(16px);backdrop-filter:saturate(170%) blur(16px)}
html[data-pii-theme="dark"] body.pii-modern .pii-header__main,html[data-pii-theme="dark"] body.pii-modern .pii-navbar{background:transparent!important}
@media(min-width:1181px){html[data-pii-theme="dark"] body.pii-modern .pii-nav{background:transparent!important}}
html[data-pii-theme="dark"] body.pii-modern .pii-news-section,html[data-pii-theme="dark"] body.pii-modern .pii-courses-section,html[data-pii-theme="dark"] body.pii-modern .pii-notices{background:none!important;border-color:transparent!important;box-shadow:none!important}
html[data-pii-theme="dark"] body.pii-modern .pii-quick-card--lead{background:linear-gradient(155deg,#0a5f8c 0%,#0b2d42 100%)!important;border-color:transparent!important;color:#fff!important}
html[data-pii-theme="dark"] body.pii-modern .pii-quick-card--lead strong{color:#fff!important}
html[data-pii-theme="dark"] body.pii-modern .pii-news-featured{border-color:transparent!important}
html[data-pii-theme="dark"] body.pii-modern .pii-news-featured p{color:#cfe1ec!important}
html[data-pii-theme="dark"] body.pii-modern .pii-article-card{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-pii-theme="dark"] body.pii-modern .pii-membership-cta{background:linear-gradient(120deg,#12364a 0%,#0b2433 100%)!important;border-color:transparent!important;color:#fff!important}

/* ---------- responsive ---------- */
@media(max-width:1100px){
  html[data-pii-theme] body.pii-modern .pii-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-pii-theme] body.pii-modern .pii-quick-card--lead{grid-row:auto;grid-column:span 2;min-height:210px}
  html[data-pii-theme] body.pii-modern .pii-quick-card--wide{grid-column:span 2;grid-template-columns:auto 1fr auto;grid-template-areas:"icon text arrow";align-items:center;align-content:center;gap:18px;min-height:0}
}
@media(max-width:900px){
  html[data-pii-theme] body.pii-modern .pii-welcome__inner{grid-template-columns:1fr;gap:20px;padding-block:48px 112px;min-height:0}
  html[data-pii-theme] body.pii-modern .pii-welcome__visual{width:min(54%,230px);order:-1}
  html[data-pii-theme] body.pii-modern .pii-news-grid{grid-template-columns:1fr}
  html[data-pii-theme] body.pii-modern .pii-news-featured{min-height:380px}
  html[data-pii-theme] body.pii-modern .pii-notice-list{grid-template-columns:1fr}
  html[data-pii-theme] body.pii-modern .pii-membership-cta{flex-direction:column;align-items:flex-start}
  html[data-pii-theme] body.pii-modern .pii-section{margin-bottom:72px}
}
@media(max-width:620px){
  html[data-pii-theme] body.pii-modern .pii-quick-section{margin-top:-52px}
  html[data-pii-theme] body.pii-modern .pii-quick-grid{grid-template-columns:1fr}
  html[data-pii-theme] body.pii-modern .pii-quick-card--lead,html[data-pii-theme] body.pii-modern .pii-quick-card--wide{grid-column:auto}
  html[data-pii-theme] body.pii-modern .pii-quick-card--lead{min-height:190px}
  html[data-pii-theme] body.pii-modern .pii-news-item{grid-template-columns:92px minmax(0,1fr)}
  html[data-pii-theme] body.pii-modern .pii-news-item__thumb{width:92px;height:76px}
  html[data-pii-theme] body.pii-modern .pii-section-head{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
  html[data-pii-theme] body.pii-modern .pii-welcome__rosette{animation:none}
  html[data-pii-theme] body.pii-modern .pii-quick-card,html[data-pii-theme] body.pii-modern .pii-course-card,html[data-pii-theme] body.pii-modern .pii-news-item,html[data-pii-theme] body.pii-modern .pii-archive-card,html[data-pii-theme] body.pii-modern .pii-related-card,html[data-pii-theme] body.pii-modern .pii-article-card h3 a{transition:none}
  html[data-pii-theme] body.pii-modern .pii-quick-card:hover,html[data-pii-theme] body.pii-modern .pii-course-card:hover,html[data-pii-theme] body.pii-modern .pii-news-item:hover{transform:none}
}
