/* v684 — unified premium SaaS presentation for 18 hubs + calculator catalog.
   Content, URLs, SEO, ad ids and tool engines remain unchanged. */
:root{
  --hub684-bg:#f4f7f5;
  --hub684-surface:#fff;
  --hub684-surface-soft:#f8faf9;
  --hub684-text:#173629;
  --hub684-muted:#64786e;
  --hub684-line:#dfe8e3;
  --hub684-green:#286947;
  --hub684-blue:#326797;
  --hub684-orange:#ef7d2b;
  --hub684-radius:22px;
  --hub684-shadow:0 16px 44px rgba(29,61,45,.07);
}
body.portal-hub-ux-v684{background:var(--hub684-bg);color:var(--hub684-text);}
body.portal-hub-ux-v684 main{background:transparent;}

/* One visual language for every existing hero family. Existing imagery/layout is preserved. */
body.portal-hub-ux-v684 main > .portal-hub-hero-v684{
  position:relative;
  min-height:330px;
  border-bottom:1px solid rgba(31,76,53,.09);
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.7);
  overflow:hidden;
  isolation:isolate;
}
body.portal-hub-ux-v684 main > .portal-hub-hero-v684 > .wrap,
body.portal-hub-ux-v684 main > .portal-hub-hero-v684 > [class*="wrap"]{
  position:relative;z-index:1;
  width:min(1280px,calc(100% - 40px));
  margin-left:auto;margin-right:auto;
}
body.portal-hub-ux-v684 .portal-hub-hero-v684 :is(h1){
  max-width:900px;
  margin-top:10px;
  margin-bottom:14px;
  color:#112d21;
  font-size:clamp(40px,4vw,60px);
  line-height:1.04;
  letter-spacing:-.045em;
  text-wrap:balance;
}
body.portal-hub-ux-v684 .portal-hub-hero-v684 :is(.portal-hub-lead-v656,.id-hero-lead,.catalog-hero-copy>p,.material-hero p,.guide-hero p,.compare-guide-hero p,.example-hero-v167 p,.ks2-hero p,.ks3-hero p){
  max-width:760px;
  color:#51685d;
  font-size:clamp(15px,1.3vw,18px);
  line-height:1.62;
}
body.portal-hub-ux-v684 .portal-hub-hero-v684 :is(.portal-breadcrumbs-v656,.id-breadcrumbs,.breadcrumbs){
  display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  width:max-content;max-width:100%;
  padding:6px 9px;border:1px solid rgba(40,105,71,.10);border-radius:999px;
  background:rgba(255,255,255,.62);backdrop-filter:blur(7px);
  font-size:12px;
}
body.portal-hub-ux-v684 .portal-hub-hero-v684 :is(.portal-btn-v656,.id-btn,.btn,.catalog-search-shell button){
  min-height:46px;border-radius:13px;font-weight:800;
}
body.portal-hub-ux-v684 .portal-hub-hero-v684 :is(.portal-badges-v656,.id-badge-row,.ks2-badge-row,.ks3-badge-row,.catalog-hero-kpis){gap:8px;}
body.portal-hub-ux-v684 .portal-hub-hero-v684 :is(.portal-badges-v656,.id-badge-row,.ks2-badge-row,.ks3-badge-row) span{
  border:1px solid rgba(40,105,71,.10);background:rgba(255,255,255,.68);border-radius:999px;
}

/* Compact page-role strip instead of a second hero. */
body.portal-hub-ux-v684 .portal-hub-role-v684{padding:18px 0 8px!important;background:transparent!important;}
body.portal-hub-ux-v684 .portal-hub-role-v684 .portal-role-card-v657{
  border:1px solid var(--hub684-line);border-radius:18px;background:rgba(255,255,255,.78);
  box-shadow:none;padding:16px 18px;
}
body.portal-hub-ux-v684 .portal-hub-role-v684 .portal-role-copy-v657 p{color:var(--hub684-muted);}

/* The first actionable content is a product surface, not a text article. */
body.portal-hub-ux-v684 .portal-hub-primary-v684{background:transparent!important;padding-top:22px!important;padding-bottom:28px!important;}
body.portal-hub-ux-v684 .portal-hub-primary-v684 > .wrap,
body.portal-hub-ux-v684 section.portal-hub-primary-v684.wrap,
body.portal-hub-ux-v684 .portal-hub-primary-v684 > .catalog-wrap{
  box-sizing:border-box;
  width:min(1180px,calc(100% - 32px));
  margin-left:auto!important;margin-right:auto!important;
  padding:clamp(20px,2.1vw,30px)!important;
  border:1px solid var(--hub684-line);
  border-radius:var(--hub684-radius);
  background:var(--hub684-surface);
  box-shadow:var(--hub684-shadow);
}
body.portal-hub-ux-v684 .portal-hub-primary-v684 + .portal-hub-primary-v684{padding-top:0!important;}
body.portal-hub-ux-v684 .portal-hub-primary-v684 :is(h2){
  margin-top:0;color:#153829;font-size:clamp(27px,2.4vw,36px);line-height:1.12;letter-spacing:-.025em;text-wrap:balance;
}
body.portal-hub-ux-v684 .portal-hub-primary-v684 :is(.portal-kicker-v656,.id-kicker,.ks2-kicker,.ks3-kicker,.guide-eyebrow){
  color:var(--hub684-green);font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
body.portal-hub-ux-v684 :is(.portal-hub-tasknav-v669,.id-resource-quick-v675,.ks2-article-nav,.ks3-article-nav,.catalog-category-tabs){gap:8px;}
body.portal-hub-ux-v684 :is(.portal-hub-tasknav-v669,.id-resource-quick-v675,.ks2-article-nav,.ks3-article-nav) a{
  min-height:38px;display:inline-flex;align-items:center;padding:8px 13px;border:1px solid #dce7e1;border-radius:999px;
  background:#f8fbf9;color:#2a6046;font-weight:800;text-decoration:none;transition:.16s ease;
}
body.portal-hub-ux-v684 :is(.portal-hub-tasknav-v669,.id-resource-quick-v675,.ks2-article-nav,.ks3-article-nav) a:hover{
  transform:translateY(-1px);background:#fff;border-color:#b9d1c3;box-shadow:0 8px 18px rgba(29,61,45,.07);
}

/* Normalize the card system used by the four historical hub families. */
body.portal-hub-ux-v684 :is(
  .portal-tool-card-v656,.catalog-card,.editor-card,.category-card,.task-card,.new-card,
  .material-card,.guide-card,.compare-guide-card,.example-card-v167,.info-card,.ks2-card,.ks3-card
){
  box-sizing:border-box;
  border:1px solid var(--hub684-line)!important;
  border-radius:18px!important;
  background:var(--hub684-surface)!important;
  box-shadow:0 8px 26px rgba(29,61,45,.045)!important;
  overflow:hidden;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body.portal-hub-ux-v684 :is(
  .portal-tool-card-v656,.catalog-card,.editor-card,.category-card,.task-card,.new-card,
  .material-card,.guide-card,.compare-guide-card,.example-card-v167,.info-card,.ks2-card,.ks3-card
):hover{
  transform:translateY(-3px);
  border-color:#bdd2c6!important;
  box-shadow:0 15px 34px rgba(29,61,45,.085)!important;
}
body.portal-hub-ux-v684 :is(.portal-tool-card-v656,.catalog-card,.material-card,.guide-card,.compare-guide-card,.example-card-v167) :is(h3,b){color:#163727;}
body.portal-hub-ux-v684 :is(.portal-tool-card-v656,.catalog-card,.material-card,.guide-card,.compare-guide-card,.example-card-v167) p{color:#687a71;line-height:1.55;}
body.portal-hub-ux-v684 a:focus-visible,body.portal-hub-ux-v684 button:focus-visible,body.portal-hub-ux-v684 input:focus-visible,body.portal-hub-ux-v684 select:focus-visible{
  outline:3px solid rgba(50,103,151,.28)!important;outline-offset:3px!important;
}

/* Common content rhythm in the right-hand column next to v683 ad rail. */
body.portal-hub-ux-v684 .portal-hub-section-v684{background:transparent;}
body.portal-hub-ux-v684 .portal-hub-section-v684 > .wrap,
body.portal-hub-ux-v684 section.portal-hub-section-v684.wrap,
body.portal-hub-ux-v684 .portal-hub-section-v684 > .catalog-wrap{
  width:min(1180px,calc(100% - 32px));margin-left:auto!important;margin-right:auto!important;
}
body.portal-hub-ux-v684 .portal-hub-section-v684 :is(h2){
  color:#173629;font-size:clamp(27px,2.35vw,36px);line-height:1.15;letter-spacing:-.025em;text-wrap:balance;
}
body.portal-hub-ux-v684 .portal-hub-section-v684 :is(p,li){color:#5f7268;line-height:1.66;}
body.portal-hub-ux-v684 .portal-seo-v682 .portal-seo-v682__shell{
  border:1px solid var(--hub684-line);border-radius:22px;background:#f8fbf9;box-shadow:none;
}

/* Catalog filters look like an application control panel. */
body.portal-hub-ux-v684 .catalog-control-wrap.portal-hub-primary-v684 .catalog-controls,
body.portal-hub-ux-v684 .catalog-control-wrap.portal-hub-primary-v684 .catalog-feature-row{border-radius:16px;}
body.portal-hub-ux-v684 .catalog-grid{gap:16px;}

@media(min-width:1200px){
  body.portal-hub-ux-v684.portal-section-two-column-v683 main > :not(.portal-hub-hero-v684):not(.portal-hub-directory-v658){padding-right:clamp(12px,1.3vw,24px);}
  body.portal-hub-ux-v684 .portal-section-after-hero-v683,
  body.portal-hub-ux-v684 .portal-section-content-ad-v683{width:min(1180px,calc(100% - 44px))!important;}
}
@media(max-width:900px){
  body.portal-hub-ux-v684 main > .portal-hub-hero-v684{min-height:0;}
  body.portal-hub-ux-v684 .portal-hub-hero-v684 :is(h1){font-size:clamp(34px,7vw,48px);}
  body.portal-hub-ux-v684 .portal-hub-primary-v684 > .wrap,
  body.portal-hub-ux-v684 section.portal-hub-primary-v684.wrap,
  body.portal-hub-ux-v684 .portal-hub-primary-v684 > .catalog-wrap{width:calc(100% - 24px);padding:20px!important;border-radius:18px;}
  body.portal-hub-ux-v684 .portal-hub-section-v684 > .wrap,
  body.portal-hub-ux-v684 section.portal-hub-section-v684.wrap,
  body.portal-hub-ux-v684 .portal-hub-section-v684 > .catalog-wrap{width:calc(100% - 24px);}
}
@media(max-width:560px){
  body.portal-hub-ux-v684 .portal-hub-hero-v684 > .wrap,
  body.portal-hub-ux-v684 .portal-hub-hero-v684 > [class*="wrap"]{width:calc(100% - 24px);}
  body.portal-hub-ux-v684 .portal-hub-hero-v684 :is(h1){font-size:32px;line-height:1.08;letter-spacing:-.035em;}
  body.portal-hub-ux-v684 .portal-hub-primary-v684{padding-top:16px!important;padding-bottom:20px!important;}
}
@media(prefers-reduced-motion:reduce){
  body.portal-hub-ux-v684 *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;}
}
