/* Monitech Homepage Portal [monitech_portal_home]
 * Layout: a full-width shell breaks out of narrow theme columns; columns use auto-fill
 * grids and container queries, so they follow the real available width, not the screen. */

/* Let the page that holds the portal use the full width of the Monitech shell. */
body.mph-portal-wide :is(.monitech-content-main,.monitech-page-layout-narrow .monitech-content-main,.monitech-post-layout-editorial .monitech-content-main){max-width:1320px!important;width:auto!important;box-sizing:border-box!important;margin-left:auto!important;margin-right:auto!important}
body.mph-portal-page :is(.entry-content,.monitech-entry-content,.monitech-page-content){overflow:visible}
/* Readability limits (85ch / 77ch on page text) must not squeeze the portal: every wrapper
 * that contains the portal gets its full width back. Specificity beats body.ajzjp-v315 rules. */
html body.mph-portal-page :is(.monitech-entry-content,.entry-content,.monitech-page-content,.monitech-post-entry,.monitech-content-main,.site-main,.content-area,article,main):has(.mph-shell){max-width:none!important;width:auto!important;margin-left:0!important;margin-right:0!important}
html body.mph-portal-page.mph-portal-wide :is(.monitech-content-main,.monitech-site-content>div):has(.mph-shell){max-width:1320px!important;margin-left:auto!important;margin-right:auto!important}
html body.mph-portal-page .mph-shell{line-height:1.55}

.mph-shell{container-type:inline-size;container-name:mph;box-sizing:border-box}
.mph-shell{width:100%;max-width:var(--mph-max,1280px);margin-left:auto;margin-right:auto}
/* Words never cut: long titles wrap instead of overflowing their card. */
.mph-shell,.mph-shell *{overflow-wrap:break-word;word-break:normal;hyphens:manual}

.mph{--mph-brand:#0a6a4e;--mph-gold:#d99a00;--mph-hot:#c4352b;--mph-blue:#1c5ea6;--mph-ink:#132019;--mph-muted:#5b6b63;--mph-line:#e3e9e5;--mph-soft:#f4f7f5;--mph-surface:#fff;--mph-r:14px;--mph-shadow:0 1px 2px rgba(16,40,28,.05),0 6px 18px rgba(16,40,28,.06);
  display:grid;grid-template-columns:minmax(0,1fr);gap:28px;color:var(--mph-ink);font-size:15px;line-height:1.55;margin:8px 0 40px;box-sizing:border-box;-webkit-font-smoothing:antialiased}
.mph *,.mph *::before,.mph *::after{box-sizing:border-box}
.mph>*{min-width:0}
.mph a{color:inherit;text-decoration:none}
.mph a:hover{color:var(--mph-brand)}
.mph a:focus-visible,.mph button:focus-visible,.mph input:focus-visible,.mph select:focus-visible{outline:3px solid color-mix(in srgb,var(--mph-gold) 70%,#fff);outline-offset:2px}
.mph h1,.mph h2,.mph h3{margin:0;line-height:1.2;color:var(--mph-ink);text-wrap:wrap;letter-spacing:-.01em}
.mph ul{list-style:none;margin:0;padding:0}
.mph p{margin:0}
.mph .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mph-head h1{font-size:clamp(24px,3.2vw,34px);font-weight:800}
.mph-head p{margin-top:6px;color:var(--mph-muted)}

/* Notice */
.mph-notice{display:flex;gap:8px;align-items:center;justify-content:center;background:color-mix(in srgb,var(--mph-hot) 8%,#fff);color:color-mix(in srgb,var(--mph-hot) 85%,#000);border:1px solid color-mix(in srgb,var(--mph-hot) 22%,#fff);border-radius:10px;padding:10px 16px;font-weight:700;font-size:14px;text-align:center}

/* Hero with search */
.mph-hero{position:relative;overflow:visible;z-index:2;border-radius:20px;padding:clamp(22px,4cqi,44px);color:#fff;
  background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--mph-gold) 38%,transparent) 0%,transparent 45%),linear-gradient(135deg,var(--mph-brand),color-mix(in srgb,var(--mph-brand) 70%,#000));display:grid;gap:16px}
.mph-hero h1{color:#fff;font-size:clamp(24px,4.2cqi,40px);font-weight:800;max-width:22ch}
.mph-hero-intro{color:rgba(255,255,255,.88);font-size:clamp(14px,1.8cqi,17px);max-width:62ch}
.mph-search-form{display:flex;gap:8px;margin:4px 0 0;background:#fff;padding:6px;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.18);max-width:760px}
.mph-search-form input{flex:1;min-width:0;padding:13px 14px;border:0;border-radius:10px;font:inherit;font-size:16px;background:transparent;color:var(--mph-ink);margin:0;outline:none}
.mph-search-form button{padding:0 26px;border:0;border-radius:10px;background:var(--mph-gold);color:#1a1200;font-weight:800;font-size:15px;cursor:pointer;white-space:nowrap}
.mph-search-form button:hover{filter:brightness(1.05)}
.mph-chips{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;align-items:center}
.mph-chips span{color:rgba(255,255,255,.8);font-weight:700}
.mph-chips a{padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);color:#fff!important;font-weight:700}
.mph-chips a:hover{background:rgba(255,255,255,.26)}

/* Follow buttons */
.mph-follow{display:flex;flex-wrap:wrap;gap:12px}
.mph-fbtn{flex:1 1 230px;max-width:340px;display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:var(--mph-r);color:#fff!important;font-weight:800;line-height:1.25;box-shadow:var(--mph-shadow);transition:transform .15s}
.mph-fbtn:hover{transform:translateY(-2px)}
.mph-fbtn small{display:block;font-weight:600;opacity:.9;font-size:12.5px;margin-top:2px}
.mph-ic{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center;flex:none;font-size:16px}
.mph-f-whatsapp{background:#1f9d55}.mph-f-telegram{background:#2481cc}.mph-f-google{background:#1a73e8}.mph-f-app{background:#24292f}

/* Regions */
.mph-regions{position:relative}
.mph-regions ul{display:flex;flex-wrap:wrap;gap:8px;padding:2px;margin:0;list-style:none} /* 3.33.0: every region visible (was a hidden sideways scroll) */
.mph-regions ul::-webkit-scrollbar{display:none}
.mph-regions a{display:block;padding:8px 14px;font-size:13.5px;font-weight:700;white-space:nowrap;border-radius:999px;background:var(--mph-surface);border:1px solid var(--mph-line)}
.mph-regions a:hover{border-color:var(--mph-brand);background:color-mix(in srgb,var(--mph-brand) 6%,#fff)}

/* Tiles */
.mph-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.mph-tile{background:var(--mph-surface);border:1px solid var(--mph-line);border-radius:var(--mph-r);padding:16px 10px 14px;text-align:center;display:grid;gap:4px;justify-items:center;line-height:1.3;transition:transform .15s,box-shadow .15s,border-color .15s}
.mph-tile:hover{transform:translateY(-2px);box-shadow:var(--mph-shadow);border-color:color-mix(in srgb,var(--mph-brand) 40%,#fff)}
.mph-tile i{font-style:normal;min-width:48px;height:44px;padding:0 8px;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:11.5px;letter-spacing:.03em;margin-bottom:4px}
.mph-tile b{font-size:14.5px}
.mph-tile small{color:var(--mph-muted);font-size:12px;font-weight:600}
.mph-t-brand i{background:color-mix(in srgb,var(--mph-brand) 12%,#fff);color:var(--mph-brand)}
.mph-t-gold i{background:color-mix(in srgb,var(--mph-gold) 16%,#fff);color:color-mix(in srgb,var(--mph-gold) 70%,#000)}
.mph-t-hot i{background:color-mix(in srgb,var(--mph-hot) 11%,#fff);color:var(--mph-hot)}
.mph-t-blue i{background:color-mix(in srgb,var(--mph-blue) 12%,#fff);color:var(--mph-blue)}

/* Section headings */
.mph-sec{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.mph-sec>*{min-width:0}
.mph-sec-h{display:grid;gap:4px;padding-left:14px;border-left:4px solid var(--mph-gold)}
.mph-sec-h h2{font-size:clamp(20px,2.6cqi,26px);font-weight:800}
.mph-sec-h p{color:var(--mph-muted);font-size:14.5px}

/* Grids */
.mph-duo-single{grid-template-columns:minmax(0,1fr)!important}
.mph-duo{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:18px;align-items:start}
.mph-grid3{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:18px;align-items:start}

/* Cards */
.mph-card{background:var(--mph-surface);border:1px solid var(--mph-line);border-radius:var(--mph-r);min-width:0;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--mph-shadow)}
.mph-card-h{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--mph-line);background:linear-gradient(180deg,color-mix(in srgb,var(--mph-brand) 7%,#fff),#fff)}
.mph-card-h::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--mph-brand);flex:none}
.mph-card-h h3{font-size:17px;font-weight:800}
.mph-c-gold .mph-card-h{background:linear-gradient(180deg,color-mix(in srgb,var(--mph-gold) 10%,#fff),#fff)}.mph-c-gold .mph-card-h::before{background:var(--mph-gold)}
.mph-c-hot .mph-card-h{background:linear-gradient(180deg,color-mix(in srgb,var(--mph-hot) 7%,#fff),#fff)}.mph-c-hot .mph-card-h::before{background:var(--mph-hot)}
.mph-c-blue .mph-card-h{background:linear-gradient(180deg,color-mix(in srgb,var(--mph-blue) 7%,#fff),#fff)}.mph-c-blue .mph-card-h::before{background:var(--mph-blue)}
.mph-more{margin-left:auto;font-size:13px;font-weight:800;color:var(--mph-brand)!important;white-space:nowrap}
.mph-live{font-size:10.5px;font-weight:800;letter-spacing:.06em;background:var(--mph-hot);color:#fff;padding:3px 8px;border-radius:999px;animation:mph-blink 1.6s infinite}
@keyframes mph-blink{50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.mph-live{animation:none}.mph-tile,.mph-fbtn{transition:none}}

/* Rows */
.mph-rows{padding:4px 0!important;flex:1}
.mph-item{display:flex;gap:14px;align-items:flex-start;padding:13px 18px;border-bottom:1px solid var(--mph-line);margin:0;transition:background .12s}
.mph-item:hover{background:var(--mph-soft)}
.mph-item:last-child{border-bottom:0}
.mph-body{min-width:0;flex:1}
.mph-title{font-weight:700;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.mph-meta{display:block;font-size:12.5px;color:var(--mph-muted);font-weight:600;margin-top:4px}
.mph-date{flex:none;width:52px;text-align:center;border-radius:10px;overflow:hidden;line-height:1.1;background:var(--mph-soft);border:1px solid var(--mph-line)}
.mph-date b{display:block;font-size:19px;font-weight:800;padding:6px 0 3px;color:var(--mph-ink)}
.mph-date span{display:block;font-size:9.5px;font-weight:800;background:var(--mph-brand);color:#fff;padding:3px 0;letter-spacing:.04em}
.mph-pill{flex:none;font-size:10.5px;font-weight:800;letter-spacing:.03em;padding:5px 8px;border-radius:999px;min-width:92px;text-align:center;margin-top:1px}
.mph-p-today{background:var(--mph-hot);color:#fff}
.mph-p-soon{background:color-mix(in srgb,var(--mph-hot) 12%,#fff);color:var(--mph-hot)}
.mph-p-week{background:color-mix(in srgb,var(--mph-gold) 18%,#fff);color:color-mix(in srgb,var(--mph-gold) 65%,#000)}
.mph-badge{display:inline-block;font-size:10px;font-weight:800;padding:2px 7px;border-radius:999px;margin-left:6px;vertical-align:2px;text-transform:uppercase;letter-spacing:.04em}
.mph-b-new{background:var(--mph-gold);color:#1a1200}
.mph-b-featured{background:var(--mph-hot);color:#fff}
.mph-b-promoted{background:var(--mph-blue);color:#fff}
.mph-foot{padding:12px 18px 16px}
.mph-vbtn{display:block;text-align:center;padding:10px;border-radius:10px;background:color-mix(in srgb,var(--mph-brand) 9%,#fff);color:var(--mph-brand)!important;font-weight:800;font-size:14px;border:1px solid color-mix(in srgb,var(--mph-brand) 22%,#fff)}
.mph-vbtn:hover{background:var(--mph-brand);color:#fff!important}

/* Exams */
.mph-exams{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mph-exam{background:var(--mph-surface);border:1px solid var(--mph-line);border-radius:var(--mph-r);padding:16px 18px;display:grid;gap:4px;min-width:0;box-shadow:var(--mph-shadow);transition:transform .15s,border-color .15s}
.mph-exam:hover{transform:translateY(-2px);border-color:var(--mph-brand)}
.mph-exam b{font-size:22px;font-weight:800;color:var(--mph-brand)}
.mph-exam span{font-size:13.5px;color:var(--mph-muted);font-weight:600}
.mph-exam em{font-style:normal;justify-self:start;font-size:11px;font-weight:800;padding:3px 10px;border-radius:999px;margin-top:6px;background:color-mix(in srgb,var(--mph-gold) 18%,#fff);color:color-mix(in srgb,var(--mph-gold) 60%,#000)}

/* Link groups */
.mph-list{padding:6px 0!important}
.mph-list li{padding:10px 18px;border-bottom:1px solid var(--mph-line);font-size:14.5px;font-weight:600;line-height:1.4;margin:0;display:flex;gap:8px}
.mph-list li:last-child{border-bottom:0}
.mph-list li::before{content:"›";color:var(--mph-brand);font-weight:800}
.mph-taglist{display:flex;flex-wrap:wrap;gap:8px;padding:16px 18px}
.mph-taglist a{padding:7px 12px;border-radius:999px;background:var(--mph-soft);border:1px solid var(--mph-line);font-weight:700;font-size:13.5px}
.mph-taglist a:hover{border-color:var(--mph-brand);background:color-mix(in srgb,var(--mph-brand) 7%,#fff)}

/* Alert band */
.mph-alert{border-radius:20px;padding:clamp(20px,3.5cqi,36px);display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:#fff;
  background:linear-gradient(120deg,color-mix(in srgb,var(--mph-brand) 85%,#000),var(--mph-brand) 60%,color-mix(in srgb,var(--mph-brand) 70%,var(--mph-gold)))}
.mph-alert h2{font-size:clamp(20px,2.8cqi,28px);color:#fff}
.mph-alert p{margin-top:6px;opacity:.92;font-size:15px;max-width:60ch}
.mph-abtns{display:flex;gap:10px;flex-wrap:wrap}
.mph-abtn{padding:12px 20px;border-radius:12px;background:var(--mph-gold);color:#1a1200!important;font-weight:800;font-size:14.5px}
.mph-abtn-wa{background:#1f9d55;color:#fff!important}
.mph-abtn-ghost{background:transparent;border:1.5px solid rgba(255,255,255,.7);color:#fff!important}

/* Tools */
.mph-tool{padding:18px;display:grid;gap:12px}
.mph-tool label{font-size:12.5px;font-weight:800;color:var(--mph-muted);display:grid;gap:5px}
.mph-tool input,.mph-tool select{padding:10px 12px;border:1.5px solid var(--mph-line);border-radius:10px;font:inherit;background:var(--mph-soft);color:var(--mph-ink);min-width:0;width:100%;margin:0}
.mph-subj{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px}
.mph-subj select{padding:8px 2px;text-align:center}
.mph-result{background:color-mix(in srgb,var(--mph-brand) 9%,#fff);border-radius:10px;padding:12px 14px;font-weight:700;font-size:14px}
.mph-result b{font-size:20px;color:var(--mph-brand)}
.mph-hint{font-size:12.5px;color:var(--mph-muted)}
.mph-toollinks{display:grid;gap:8px}
.mph-toollinks a{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--mph-line);border-radius:10px;font-weight:700;font-size:14.5px;background:var(--mph-soft)}
.mph-toollinks a:hover{border-color:var(--mph-blue)}
.mph-toollinks i{font-style:normal;font-size:10.5px;font-weight:800;min-width:38px;height:32px;padding:0 4px;border-radius:8px;display:grid;place-items:center;background:color-mix(in srgb,var(--mph-blue) 12%,#fff);color:var(--mph-blue);flex:none}

/* Quiz + calendar */
.mph-quiz{padding:18px;display:grid;gap:12px}
.mph-q{font-weight:800;font-size:16px}
.mph-opts{display:grid;gap:8px}
.mph-opts button{text-align:left;padding:11px 14px;border:1.5px solid var(--mph-line);border-radius:10px;background:var(--mph-soft);color:var(--mph-ink);font:inherit;font-weight:700;cursor:pointer}
.mph-opts button:hover{border-color:color-mix(in srgb,var(--mph-brand) 40%,#fff)}
.mph-opts button.is-right{border-color:var(--mph-brand);background:color-mix(in srgb,var(--mph-brand) 10%,#fff)}
.mph-opts button.is-wrong{border-color:var(--mph-hot);background:color-mix(in srgb,var(--mph-hot) 9%,#fff)}
.mph-qfb{font-size:14px;font-weight:700;min-height:1.4em}
.mph-cal{overflow-x:auto}
.mph-cal table{width:100%;border-collapse:collapse;font-size:14.5px;margin:0;border:0}
.mph-cal td{padding:12px 18px;border:0;border-bottom:1px solid var(--mph-line);text-align:left;vertical-align:top}
.mph-cal tr:last-child td{border-bottom:0}
.mph-cal td:first-child{font-weight:800;white-space:nowrap;color:var(--mph-brand)}

@container mph (max-width:960px){.mph-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Narrow containers (phones, or a narrow theme column) */
@container mph (max-width:640px){
  .mph{gap:22px}
  .mph-hero{border-radius:16px}
  .mph-search-form{flex-direction:column;padding:8px}
  .mph-search-form button{padding:12px}
  .mph-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-8px;padding-bottom:2px}
  .mph-chips a,.mph-chips span{white-space:nowrap}
  .mph-follow{gap:10px}
  .mph-fbtn{flex:1 1 calc(50% - 5px);max-width:none}
  .mph-notice{font-size:13px;text-align:left;justify-content:flex-start;padding:10px 12px}
  .mph-fbtn{padding:12px;gap:10px;font-size:13.5px}
  .mph-fbtn small{display:none}
  .mph-ic{width:30px;height:30px}
  .mph-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .mph-tile{padding:12px 6px 10px;border-radius:12px}
  .mph-tile i{min-width:40px;height:36px;font-size:10px}
  .mph-tile b{font-size:13px}
  .mph-tile small{display:none}
  .mph-exams{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mph-exam{padding:13px 14px}
  .mph-exam b{font-size:19px}
  .mph-item{padding:12px 14px;gap:12px}
  .mph-card-h{padding:13px 14px}
  .mph-date{width:46px}
  .mph-date b{font-size:17px}
  .mph-pill{min-width:0;font-size:10px;padding:4px 8px}
  .mph-item:has(.mph-pill){flex-direction:column;gap:6px}
  .mph-foot{padding:10px 14px 14px}
  .mph-alert{flex-direction:column;align-items:flex-start}
  .mph-abtns{width:100%}
  .mph-abtn{flex:1;text-align:center}
}
@container mph (max-width:360px){
  .mph-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mph-fbtn{flex-basis:100%}
}

/* Search suggestions (built from links already on the page: no server request). */
.mph-search-wrap{position:relative;max-width:760px}
.mph-suggest{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:#fff;border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.2);padding:6px;display:grid;gap:2px}
.mph-suggest a{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:8px;font-weight:700;font-size:14.5px}
.mph-suggest a:hover,.mph-suggest a.is-active{background:var(--mph-soft)}
.mph-suggest small{color:var(--mph-muted);font-weight:600;font-size:12px;white-space:nowrap}
.mph-suggest[hidden]{display:none!important}
.mph-search-note{font-size:12.5px;color:rgba(255,255,255,.78)}

/* Theme-proof colors. Some themes and the site-wide "blue links" rule force every link
 * to one color with !important and -webkit-text-fill-color; the portal sets its own. */
#monitech-portal-home a[href],#monitech-portal-home a[href] *{-webkit-text-fill-color:currentColor!important;text-decoration:none!important}
#monitech-portal-home a[href] *{color:inherit!important}
#monitech-portal-home a.mph-title,#monitech-portal-home .mph-list a,#monitech-portal-home .mph-suggest a{color:#1265a8!important}
#monitech-portal-home a.mph-title:hover,#monitech-portal-home .mph-list a:hover{color:var(--mph-brand)!important}
#monitech-portal-home .mph-chips a{color:#fff!important}
#monitech-portal-home a.mph-fbtn{color:#fff!important}
#monitech-portal-home a.mph-tile,#monitech-portal-home a.mph-tile b{color:var(--mph-ink)!important}
#monitech-portal-home a.mph-tile small{color:var(--mph-muted)!important}
#monitech-portal-home a.mph-exam{color:var(--mph-ink)!important}
#monitech-portal-home a.mph-exam b{color:var(--mph-brand)!important}
#monitech-portal-home a.mph-exam span{color:var(--mph-muted)!important}
#monitech-portal-home .mph-regions a,#monitech-portal-home .mph-taglist a,#monitech-portal-home .mph-toollinks a{color:var(--mph-ink)!important}
#monitech-portal-home a.mph-vbtn,#monitech-portal-home a.mph-more{color:var(--mph-brand)!important}
#monitech-portal-home a.mph-vbtn:hover{color:#fff!important}
#monitech-portal-home a.mph-abtn{color:#1a1200!important}
#monitech-portal-home a.mph-abtn-wa,#monitech-portal-home a.mph-abtn-ghost{color:#fff!important}
#monitech-portal-home .mph-hero h1,#monitech-portal-home .mph-alert h2{color:#fff!important;-webkit-text-fill-color:#fff!important}
#monitech-portal-home .mph-hero-intro,#monitech-portal-home .mph-alert p{color:rgba(255,255,255,.9)!important}
#monitech-portal-home .mph-chips span{color:rgba(255,255,255,.85)!important}
#monitech-portal-home .mph-search-form input{color:var(--mph-ink)!important;background:transparent!important;border:0!important;box-shadow:none!important;height:auto!important}
#monitech-portal-home .mph-search-form button{background:var(--mph-gold)!important;color:#1a1200!important;border:0!important;text-transform:none!important}
#monitech-portal-home .mph-card-h h3,#monitech-portal-home .mph-sec-h h2{color:var(--mph-ink)!important}
#monitech-portal-home .mph-suggest small{color:var(--mph-muted)!important}

/* ===== Fill layout =====
 * --per = items per row chosen in the admin; --cap = most that fit this width.
 * Items in a last row that is not full grow to share it, so no empty cell is left. */
.mph-grid3,.mph-duo,.mph-tiles,.mph-exams{display:flex!important;flex-wrap:wrap;align-items:stretch;--gap:18px;--cap:99;gap:var(--gap)}
.mph-tiles,.mph-exams{--gap:12px}
.mph-grid3>*,.mph-duo>*,.mph-tiles>*,.mph-exams>*{--n:min(var(--per),var(--cap));flex:1 1 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n));min-width:0;max-width:100%}
.mph-grid3{--per:3}.mph-duo{--per:2}.mph-duo-single{--per:1}.mph-tiles{--per:6}.mph-exams{--per:4}
.mph-cols-1{--per:1}.mph-cols-2{--per:2}.mph-cols-3{--per:3}.mph-cols-4{--per:4}.mph-cols-5{--per:5}.mph-cols-6{--per:6}.mph-cols-7{--per:7}.mph-cols-8{--per:8}
.mph-grid3>.mph-card,.mph-duo>.mph-card{align-self:stretch}
@container mph (max-width:1080px){.mph-grid3{--cap:3}.mph-tiles{--cap:6}}
@container mph (max-width:960px){.mph-grid3{--cap:2}.mph-tiles{--cap:4}.mph-exams{--cap:3}}
@container mph (max-width:720px){.mph-duo{--cap:1}.mph-exams{--cap:2}}
@container mph (max-width:640px){.mph-grid3{--cap:1}.mph-tiles{--cap:3;--gap:8px}.mph-exams{--gap:10px}}
@container mph (max-width:360px){.mph-tiles{--cap:2}}

/* Search bar look (setting: Search box > Look). */
.mph-searchbar{display:grid;gap:12px;background:var(--mph-surface);border:1px solid var(--mph-line);border-radius:16px;padding:16px;box-shadow:var(--mph-shadow)}
.mph-searchbar .mph-search-wrap{max-width:none}
.mph-searchbar .mph-search-form{max-width:none;box-shadow:none;padding:0;gap:10px;background:transparent}
#monitech-portal-home .mph-searchbar .mph-search-form input{border:1.5px solid var(--mph-line)!important;background:var(--mph-surface)!important;border-radius:12px;padding:13px 16px;font-size:15.5px}
#monitech-portal-home .mph-searchbar .mph-search-form input:focus{border-color:var(--mph-brand)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--mph-brand) 18%,transparent)!important}
#monitech-portal-home .mph-searchbar .mph-search-form button{background:var(--mph-brand)!important;color:#fff!important;border-radius:12px;padding:0 28px;min-height:48px}
.mph-searchbar .mph-search-note{color:var(--mph-muted)}
#monitech-portal-home .mph-searchbar .mph-chips span{color:var(--mph-muted)!important}
#monitech-portal-home .mph-searchbar .mph-chips a{background:color-mix(in srgb,var(--mph-brand) 8%,#fff);border-color:var(--mph-line);color:var(--mph-ink)!important}
@container mph (max-width:640px){.mph-searchbar{padding:12px}.mph-searchbar .mph-search-form{flex-direction:column}#monitech-portal-home .mph-searchbar .mph-search-form button{min-height:46px}}

/* Results page of the everywhere search. */
.mph-results-page .mph-sec-h h1{font-size:clamp(22px,3cqi,30px);font-weight:800;margin:0}

/* Breathing room between sections (setting: Space between sections). */
.mph.mph-space-compact{gap:20px}
.mph.mph-space-comfortable{gap:40px}
.mph.mph-space-spacious{gap:56px}
.mph-sec{gap:20px}
@container mph (max-width:640px){.mph.mph-space-comfortable{gap:28px}.mph.mph-space-spacious{gap:36px}.mph.mph-space-compact{gap:16px}}

/* Custom sections from the builder. */
.mph-custom-card{padding:22px 24px;display:grid;gap:12px}
.mph-custom-content{font-size:15.5px;line-height:1.7}
.mph-custom-content>:first-child{margin-top:0}.mph-custom-content>:last-child{margin-bottom:0}
.mph-custom-content a{color:#1265a8!important;-webkit-text-fill-color:currentColor!important;text-decoration:underline!important}
.mph-custom-btn{margin:4px 0 0}
.mph-custom-band .mph-custom-band-body{color:#fff}
.mph-custom-band .mph-custom-content a{color:#fff!important}

/* AdSense Auto ads ("Discover more") placed inside the portal take a full row of their own
 * instead of squeezing cards or the alert band. */
#monitech-portal-home :is(ins.adsbygoogle,.google-auto-placed,.adsbygoogle){flex:1 1 100%!important;width:100%!important;max-width:100%!important;grid-column:1/-1!important;margin:4px 0!important}

/* Page title above the portal (setting: Page title). Only the visible heading of the page
 * that holds the portal; the document title and SEO title are unchanged. */
body.mph-hide-title :is(.monitech-entry-head,.monitech-page-head,.monitech-page-title,.entry-header,.page-header,.wp-block-post-title,h1.entry-title,h1.page-title):not(.mph *){display:none!important}
body.mph-hide-title .monitech-post-entry:has(.mph-shell){padding-top:0!important}

/* Clean list style: a colored bullet in the card's color instead of the date box. */
.mph-card{--cc:var(--mph-brand)}
.mph-c-gold{--cc:var(--mph-gold)}.mph-c-hot{--cc:var(--mph-hot)}.mph-c-blue{--cc:var(--mph-blue)}
.mph-bullet{flex:none;width:9px;height:9px;border-radius:50%;background:var(--cc);box-shadow:0 0 0 4px color-mix(in srgb,var(--cc) 16%,transparent);margin:7px 4px 0 3px}
.mph-item:hover .mph-bullet{box-shadow:0 0 0 5px color-mix(in srgb,var(--cc) 24%,transparent)}
.mph-item:has(.mph-bullet){gap:12px;padding-top:12px;padding-bottom:12px}

/* Account and posting (Monitech Jobs & Tenders). Both views are in the cached HTML; the
 * body class that WordPress adds for signed-in visitors picks one. No JavaScript. */
.mph-acc{display:grid}
body.logged-in .mph-acc-guest,body:not(.logged-in) .mph-acc-member{display:none}
.mph-acc-view{display:grid;gap:16px;padding:22px 24px;border-radius:20px;border:1px solid color-mix(in srgb,var(--mph-brand) 22%,#fff);border-top:4px solid var(--mph-brand);background:linear-gradient(160deg,color-mix(in srgb,var(--mph-brand) 8%,#fff),#fff 65%);box-shadow:var(--mph-shadow)}
.mph-acc-h h2{font-size:clamp(19px,2.4cqi,25px);font-weight:800}
.mph-acc-h p{margin:4px 0 0;color:var(--mph-muted);font-size:14.5px;max-width:70ch}
.mph-acc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}
.mph-acc-tile{min-width:0;display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff;border:1px solid var(--mph-line);border-radius:14px;text-decoration:none!important;transition:transform .15s,box-shadow .15s,border-color .15s}
.mph-acc-tile:hover{transform:translateY(-2px);box-shadow:var(--mph-shadow);border-color:color-mix(in srgb,var(--mph-brand) 40%,#fff)}
.mph-acc-tile i{font-style:normal;flex:none;min-width:46px;height:42px;padding:0 6px;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:11px;letter-spacing:.03em}
.mph-acc-tile b{display:block;font-size:15px;color:var(--mph-ink);line-height:1.3}
.mph-acc-tile small{display:block;font-size:12.5px;color:var(--mph-muted);font-weight:600;margin-top:2px}

/* Latest Announcements: one wide card; columns from the setting (--per), one column on phones.
 * Lines are drawn with inset shadows, so any column count gets clean dividers. */
.mph-ann-rows{display:grid;grid-template-columns:repeat(var(--per,2),minmax(0,1fr));gap:0;overflow:hidden}
.mph-ann-rows>.mph-item{border-bottom:0;box-shadow:inset -1px 0 0 var(--mph-line),inset 0 -1px 0 var(--mph-line)}
.mph-ann-card{overflow:hidden}
.mph-ann-rows{margin-right:-1px;margin-bottom:-1px}
@container mph (max-width:700px){.mph-ann-rows{grid-template-columns:minmax(0,1fr)}}

/* Connect With Us. */
.mph-social{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;padding:22px 24px;border-radius:20px;background:var(--mph-surface);border:1px solid var(--mph-line);box-shadow:var(--mph-shadow)}
.mph-social-h h2{font-size:clamp(19px,2.4cqi,24px);font-weight:800}
.mph-social-h p{margin:4px 0 0;color:var(--mph-muted);font-size:14.5px}
.mph-social-list{display:flex;flex-wrap:wrap;gap:10px}
.mph .mph-soc{--sc:var(--mph-brand);display:inline-flex;align-items:center;gap:10px;padding:8px 16px 8px 8px;border-radius:999px;border:1.5px solid color-mix(in srgb,var(--sc) 30%,#fff);background:color-mix(in srgb,var(--sc) 6%,#fff);color:var(--mph-ink)!important;-webkit-text-fill-color:currentColor!important;font-weight:800;font-size:14.5px;text-decoration:none!important;transition:background .15s,color .15s,border-color .15s}
.mph-soc-mark{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--sc);font-size:13px;font-weight:800;line-height:1;flex:none}
.mph .mph-soc:hover{background:var(--sc);border-color:var(--sc);color:#fff!important}
#monitech-portal-home .mph-soc .mph-soc-mark{color:#fff!important;-webkit-text-fill-color:#fff!important}
#monitech-portal-home .mph-soc:hover .mph-soc-mark{background:#fff;color:var(--sc)!important;-webkit-text-fill-color:var(--sc)!important}
#monitech-portal-home .mph-soc:hover,#monitech-portal-home .mph-soc:hover .mph-soc-name{color:#fff!important}
@container mph (max-width:640px){.mph-social{padding:18px 16px}.mph-social-list{width:100%}.mph .mph-soc{flex:1 1 140px;justify-content:flex-start}.mph-acc-view{padding:18px 14px}.mph-acc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mph-acc-tile{padding:12px;gap:10px}.mph-acc-tile i{min-width:40px;height:38px}}
@container mph (max-width:340px){.mph-acc-grid{grid-template-columns:minmax(0,1fr)}}

/* Look: a thin color line on every card, a softer lift on hover, and a section heading
 * accent in two colors. Uses your own four colors only. */
.mph-card{border-top:3px solid var(--cc);transition:box-shadow .18s,transform .18s}
.mph-card:hover{box-shadow:0 2px 4px rgba(16,40,28,.05),0 14px 30px rgba(16,40,28,.09)}
.mph-card-h{background:linear-gradient(180deg,color-mix(in srgb,var(--cc) 8%,#fff),#fff)!important}
.mph-card-h::before{background:var(--cc)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--cc) 15%,transparent)}
.mph-sec-h{border-left:0;padding-left:16px;position:relative}
.mph-sec-h::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:5px;border-radius:999px;background:linear-gradient(180deg,var(--mph-gold),var(--mph-brand))}
.mph-tile{position:relative;overflow:hidden}
.mph-tile::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--tc,var(--mph-brand));transform:scaleX(0);transition:transform .2s}
.mph-tile:hover::after{transform:scaleX(1)}
.mph-t-gold{--tc:var(--mph-gold)}.mph-t-hot{--tc:var(--mph-hot)}.mph-t-blue{--tc:var(--mph-blue)}
.mph-exam{border-top:3px solid color-mix(in srgb,var(--mph-brand) 55%,#fff)}
@media (prefers-reduced-motion:reduce){.mph-card,.mph-acc-tile,.mph-tile::after{transition:none}.mph-acc-tile:hover{transform:none}}
/* Icon squares keep their own color (the theme-proof link rule above sets every link child to inherit). */
#monitech-portal-home :is(.mph-tile,.mph-acc-tile).mph-t-brand i{color:var(--mph-brand)!important}
#monitech-portal-home :is(.mph-tile,.mph-acc-tile).mph-t-gold i{color:color-mix(in srgb,var(--mph-gold) 70%,#000)!important}
#monitech-portal-home :is(.mph-tile,.mph-acc-tile).mph-t-hot i{color:var(--mph-hot)!important}
#monitech-portal-home :is(.mph-tile,.mph-acc-tile).mph-t-blue i{color:var(--mph-blue)!important}
#monitech-portal-home a.mph-acc-tile b{color:var(--mph-ink)!important}
#monitech-portal-home a.mph-acc-tile small{color:var(--mph-muted)!important}
#monitech-portal-home a.mph-soc,#monitech-portal-home a.mph-soc .mph-soc-name{color:var(--mph-ink)!important}
#monitech-portal-home a.mph-soc:hover,#monitech-portal-home a.mph-soc:hover .mph-soc-name{color:#fff!important}
/* Phones: icon above the text, and a lone last tile takes the full row (no empty cell). */
@container mph (max-width:640px){.mph-acc-tile{flex-direction:column;align-items:flex-start;gap:8px}.mph-acc-tile b{font-size:14.5px}.mph-acc-grid>.mph-acc-tile:last-child:nth-child(odd){grid-column:1/-1;flex-direction:row;align-items:center}}

/* Items per row chosen in the admin (Account tiles, social and follow buttons): rows fill,
 * so a short last row widens its items instead of leaving an empty space. */
.mph-fill{display:flex!important;flex-wrap:wrap;--gap:12px;--cap:99;gap:var(--gap)}
.mph-fill>*{--n:min(var(--per),var(--cap));flex:1 1 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n))!important;min-width:0;max-width:100%!important;box-sizing:border-box}
.mph-social-list.mph-fill{flex:1 1 100%}
.mph-follow.mph-fill>.mph-fbtn{max-width:none!important}
@container mph (max-width:960px){.mph-fill{--cap:4}}
@container mph (max-width:640px){.mph-fill{--cap:2;--gap:10px}}
@container mph (max-width:340px){.mph-fill{--cap:1}}

/* Search suggestions always on top; popular searches step aside while suggestions are open. */
.mph-search-wrap{position:relative;z-index:60}
.mph-search-wrap .mph-suggest{z-index:61}
.mph-hero:has(.mph-suggest:not([hidden])) .mph-chips,.mph-searchbar:has(.mph-suggest:not([hidden])) .mph-chips,.mph-hero:has(.mph-search-form input:focus:not(:placeholder-shown)) .mph-chips,.mph-searchbar:has(.mph-search-form input:focus:not(:placeholder-shown)) .mph-chips{visibility:hidden;opacity:0;pointer-events:none}
.mph-chips{transition:opacity .15s}

/* 3.33.0: the heading also with the compact search bar */
#monitech-portal-home .mph-searchbar .mph-bar-h1{font-size:clamp(20px,3.2cqi,30px);font-weight:800;line-height:1.2;margin:0 0 12px;color:var(--mph-ink,#0f172a)}
/* 4.64.0: few boxes per row – at most 3 tiles / 3 exam boxes, each wide enough for its words */
.mph-tiles,.mph-exams{--cap:3!important;--gap:16px!important}
@container mph (max-width:900px){.mph-tiles,.mph-exams{--cap:2!important}}
@container mph (max-width:520px){.mph-tiles,.mph-exams{--cap:1!important;--gap:10px!important}}
#monitech-portal-home .mph-tile{display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:16px;row-gap:2px;align-items:center;justify-items:start;text-align:left!important;padding:18px 20px!important}
#monitech-portal-home .mph-tile i{grid-row:1 / span 2;min-width:64px;height:48px}
#monitech-portal-home .mph-tile b{font-size:16px!important;line-height:1.3;align-self:end}
#monitech-portal-home .mph-tile small{display:block!important;font-size:14px!important;line-height:1.45;font-weight:500!important;align-self:start;white-space:normal}
#monitech-portal-home .mph-exams>*{padding:18px 20px}
.mph-exams{--cap:2!important}
@container mph (max-width:520px){.mph-exams{--cap:1!important}}
/* 4.64.0: small screens – one box per row */
@container mph (max-width:640px){.mph-tiles,.mph-exams,.mph-grid3,.mph-duo{--cap:1!important}}
@media (max-width:640px){.mph-tiles,.mph-exams,.mph-grid3,.mph-duo{--cap:1!important}#monitech-portal-home .mph-tile small{display:block!important}}
#monitech-portal-home .mph-tile i{width:82px;min-width:82px!important;padding:0 6px}
/* 4.64.1: headed boxes – each list is a box with a solid coloured title bar, clear blue links and a "View All" button */
#monitech-portal-home .mph-card{--cc:var(--mph-brand);padding:0!important;border:1.5px solid color-mix(in srgb,var(--cc) 55%,#fff)!important;border-radius:10px!important;overflow:hidden;box-shadow:0 2px 10px rgba(15,32,25,.06)!important;background:#fff!important}
#monitech-portal-home .mph-c-gold{--cc:var(--mph-gold)}#monitech-portal-home .mph-c-hot{--cc:var(--mph-hot)}#monitech-portal-home .mph-c-blue{--cc:var(--mph-blue)}#monitech-portal-home .mph-c-brand{--cc:var(--mph-brand)}
#monitech-portal-home .mph-card-h{background:var(--cc)!important;margin:0!important;padding:12px 18px!important;border:0!important;display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px}
#monitech-portal-home .mph-card-h::before{display:none!important}
#monitech-portal-home .mph-card-h h2,#monitech-portal-home .mph-card-h h3{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:20px!important;font-weight:800!important;margin:0!important;line-height:1.25;text-align:center;letter-spacing:.01em}
#monitech-portal-home .mph-card-h a{color:#fff!important}
#monitech-portal-home .mph-card-h .mph-live{background:#fff!important;color:var(--cc)!important}
#monitech-portal-home .mph-rows,#monitech-portal-home .mph-list{padding:6px 16px!important;margin:0!important}
#monitech-portal-home .mph-rows>li,#monitech-portal-home .mph-list>li{position:relative;padding:10px 0 10px 18px!important;border-bottom:1px dashed #d8dfe6!important;margin:0!important;list-style:none}
#monitech-portal-home .mph-rows>li:last-child,#monitech-portal-home .mph-list>li:last-child{border-bottom:0!important}
#monitech-portal-home .mph-rows>li::before,#monitech-portal-home .mph-list>li::before{content:"▸";position:absolute;left:0;top:10px;color:var(--cc);font-size:14px;line-height:1.45}
#monitech-portal-home .mph-rows a,#monitech-portal-home .mph-list a{color:#1546a0!important;-webkit-text-fill-color:#1546a0!important;font-weight:600!important;font-size:15.5px!important;line-height:1.45!important;text-decoration:none!important}
#monitech-portal-home .mph-rows a:hover,#monitech-portal-home .mph-list a:hover{text-decoration:underline!important;color:#0b2f73!important}
#monitech-portal-home .mph-meta,#monitech-portal-home .mph-date{font-size:13px!important;color:#5b6472!important}
/* job cards inside a box read as plain links: title, then company · date */
#monitech-portal-home .mph-rows .mt4-card{display:block!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important;min-height:0!important}
#monitech-portal-home .mph-rows .mt4-logo,#monitech-portal-home .mph-rows .mt4-cta,#monitech-portal-home .mph-rows .mt4-foot{display:none!important}
#monitech-portal-home .mph-rows .mt4-title{font-size:15.5px!important;margin:0!important;line-height:1.45!important}
#monitech-portal-home .mph-rows .mt4-co,#monitech-portal-home .mph-rows .mt4-meta{display:inline!important;margin:0!important;font-size:13px!important}
#monitech-portal-home .mph-rows .mt4-co a{color:#5b6472!important;-webkit-text-fill-color:#5b6472!important;font-weight:500!important;font-size:13px!important}
#monitech-portal-home .mph-rows .mt4-co::after{content:" · ";color:#8a93a1}
#monitech-portal-home .mph-rows .mt4-meta .mt4-m{font-size:13px!important;color:#5b6472!important}
#monitech-portal-home .mph-foot{padding:10px 16px 16px!important;text-align:center!important;border:0!important;background:none!important;display:flex;justify-content:center}
#monitech-portal-home .mph-vbtn{display:inline-block!important;background:var(--cc)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;border-radius:999px!important;padding:9px 26px!important;font-weight:800!important;font-size:14px!important;text-decoration:none!important}
#monitech-portal-home .mph-vbtn:hover{filter:brightness(.92)}
/* section titles above groups */
#monitech-portal-home .mph-sec-h h2,#monitech-portal-home .mph-sec-h h3{font-size:24px!important;font-weight:800!important}
@media (max-width:640px){#monitech-portal-home .mph-card-h h2,#monitech-portal-home .mph-card-h h3{font-size:18px!important}#monitech-portal-home .mph-rows a,#monitech-portal-home .mph-list a{font-size:15px!important}}
html body #monitech-portal-home .mph-foot a.mph-vbtn,html body #monitech-portal-home .mph-foot a.mph-vbtn:visited{background:var(--cc)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:var(--cc)!important}
html body #monitech-portal-home .mph-rows article.mt4-card.mt4-card{padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;min-height:0!important;display:block!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-body{padding:0!important;display:block!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-title{display:block!important;margin:0 0 2px!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-title a{color:#1546a0!important;-webkit-text-fill-color:#1546a0!important;font-weight:700!important;font-size:15.5px!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-meta{display:inline-flex!important;gap:0!important;margin:0!important;padding:0!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-meta>*:not(.mt4-posted){display:none!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-meta .mt4-posted{display:inline!important;background:none!important;padding:0!important;border:0!important;font-size:13px!important;color:#5b6472!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-co{display:inline!important;padding:0!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-chips,html body #monitech-portal-home .mph-rows article.mt4-card .mt4-foot,html body #monitech-portal-home .mph-rows article.mt4-card .mt4-logo,html body #monitech-portal-home .mph-rows article.mt4-card .mt4-cta{display:none!important}
html body #monitech-portal-home .mph-rows>li.mph-item--v4{padding:11px 0 11px 18px!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-title{min-height:0!important;height:auto!important}
html body #monitech-portal-home .mph-rows article.mt4-card .mt4-co{margin:0!important}
html body #monitech-portal-home .mph-rows>li.mph-item,html body #monitech-portal-home .mph-rows>li.mph-item--v4{margin:0!important;border-bottom:1px dashed #d8dfe6!important;position:relative!important}
html body #monitech-portal-home .mph-rows>li.mph-item:last-child{border-bottom:0!important}
html body #monitech-portal-home .mph-rows>li.mph-item::before{content:"▸"!important;display:block!important;position:absolute!important;left:0!important;top:11px!important;color:var(--cc)!important;font-size:14px!important;line-height:1.45!important}
/* 4.64.3: everywhere – 2 boxes per row on a computer, 1 on small screens, words never cut */
.mph-tiles,.mph-exams,.mph-grid3{--cap:2!important}
@container mph (max-width:640px){.mph-tiles,.mph-exams,.mph-grid3,.mph-duo{--cap:1!important}}
@media (max-width:640px){.mph-tiles,.mph-exams,.mph-grid3,.mph-duo{--cap:1!important}}
#monitech-portal-home .mph-acc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#monitech-portal-home .mph-social-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media (max-width:640px){#monitech-portal-home .mph-acc-grid,#monitech-portal-home .mph-social-list{grid-template-columns:1fr!important}}
#monitech-portal-home .mph-tile b,#monitech-portal-home .mph-tile small,#monitech-portal-home .mph-card-h h2,#monitech-portal-home .mph-card-h h3,#monitech-portal-home .mph-rows a{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
/* 4.64.4: tile titles are links – the same blue as every other link */
html body #monitech-portal-home a.mph-tile b,html body #monitech-portal-home a.mph-tile:visited b{color:#1546a0!important;-webkit-text-fill-color:#1546a0!important}
html body #monitech-portal-home a.mph-tile:hover b{color:#0b2f73!important;-webkit-text-fill-color:#0b2f73!important;text-decoration:underline}

/* 4.64.9: short items are not stretched – tiles 3, sectors 4, account buttons 4 per row on a computer;
 * long headed lists stay 2; tablet 2; phone 1. Text always wraps, never cut. */
.mph-tiles{--cap:3!important}
.mph-exams{--cap:4!important}
#monitech-portal-home .mph-acc-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
@container mph (max-width:1000px){.mph-exams{--cap:2!important}#monitech-portal-home .mph-acc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@container mph (max-width:900px){.mph-tiles{--cap:2!important}}
@container mph (max-width:640px){.mph-tiles,.mph-exams{--cap:1!important}#monitech-portal-home .mph-acc-grid{grid-template-columns:minmax(0,1fr)!important}}
@media (max-width:1000px){.mph-exams{--cap:2!important}#monitech-portal-home .mph-acc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:900px){.mph-tiles{--cap:2!important}}
@media (max-width:640px){.mph-tiles,.mph-exams{--cap:1!important}#monitech-portal-home .mph-acc-grid{grid-template-columns:minmax(0,1fr)!important}}
#monitech-portal-home :is(.mph-tiles,.mph-exams,.mph-acc-grid) :is(a,b,strong,span,small,h3,h4,p){white-space:normal!important;text-overflow:clip!important;overflow:visible!important;overflow-wrap:anywhere}

/* alert buttons: on a phone one button per row, full width – words are never broken */
@media (max-width:640px){#monitech-portal-home .mph-abtns{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;width:100%!important}#monitech-portal-home .mph-abtns>.mph-abtn{width:100%!important;max-width:none!important;flex:0 0 auto!important;text-align:center;justify-content:center;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;white-space:normal}}
@container mph (max-width:640px){#monitech-portal-home .mph-abtns{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important}#monitech-portal-home .mph-abtns>.mph-abtn{width:100%!important;max-width:none!important;word-break:normal!important;overflow-wrap:normal!important}}
