/* Scoped companion to the existing worksite theme; no global restyling. */
.hub-page { --hub-blue: #005eb8; }
.hub-page nav, .hub-page .wrap { max-width: 1120px; }
.hub-page a { color: var(--hub-blue); text-underline-offset: .2em; }
.hub-page nav a, .hub-page .brand { color: var(--ink); }
.hub-page footer a { color: var(--blue-glow); }
.hub-page .btn { background: var(--hub-blue); color: white; }
.hub-page .btn.ghost { background: white; color: var(--ink); }
.hub-page :focus-visible { outline: 3px solid var(--hub-blue); outline-offset: 5px; }
.hub-page [id] { scroll-margin-top: 24px; }
.hub-page .skip-link { position: absolute; left: 12px; top: -100px; z-index: 10; background: white; padding: 12px; }
.hub-page .skip-link:focus { top: 12px; }
.hub-page .hub-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 44px 0 30px; }
.hub-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.07; letter-spacing: -.04em; margin-bottom: 22px; }
.hub-hero h1 span { color: var(--hub-blue); }
.hub-hero .lead { font-size: 1.15rem; margin-bottom: 22px; }
.hub-hero figure { transform: rotate(1deg); background: white; border: 3px solid var(--pi-ink); border-radius: 16px; overflow: hidden; box-shadow: 6px 6px 0 var(--pi-ink); }
.hub-hero img { width: 100%; height: auto; display: block; }
.hub-hero figcaption { padding: 12px 16px; font-weight: 700; font-size: .85rem; }
.hub-strip { background: var(--navy); color: white; border-radius: 10px; padding: 14px 22px; font-weight: 700; text-align: center; }
.hub-page h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 14px; }
.hub-page h4 { font-size: 1rem; margin: 18px 0 6px; }
.hub-page p + p { margin-top: 12px; }
.hub-page ul, .hub-page ol { padding-left: 24px; margin: 12px 0 20px; }
.hub-page li + li { margin-top: 8px; }
.hub-page .hub-intro { max-width: 740px; margin-bottom: 24px; }
.hub-eyebrow { color: #534078; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.hub-pathways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
/* Fixed column proportions centre short rows without stretching the last card. */
.hub-product-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.hub-product-grid > .card { flex: 0 1 calc((100% - 44px) / 3); min-width: 0; }
.hub-pathway { display: flex; flex-direction: column; border-top: 7px solid var(--hub-blue); }
.hub-pathway:nth-child(2) { border-top-color: #7652af; }
.hub-pathway:nth-child(3) { border-top-color: var(--ginger); }
.hub-pathway a { margin-top: auto; font-weight: 700; }
.hub-page .hub-builder { background: #e6f3ff; padding: 28px; border: 2px solid var(--pi-ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--pi-ink); }
.hub-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.hub-fields label { display: block; font-weight: 700; margin-bottom: 8px; }
.hub-fields select { width: 100%; min-height: 48px; padding: 10px; font: inherit; border: 2px solid var(--navy); border-radius: 8px; color: var(--ink); background: white; }
.hub-page button:disabled { background: #586275; cursor: not-allowed; transform: none; }
.hub-status { margin-top: 18px; font-size: .9rem; }
.hub-page .hub-result { margin-top: 26px; padding: 26px; background: white; border: 3px solid var(--hub-blue); border-radius: 12px; }
.hub-result > h3 { font-size: 1.8rem; }
.hub-result .hub-product-grid { margin-top: 18px; }
.hub-result .hub-product-grid > .card { flex-basis: calc((100% - 22px) / 2); }
.hub-selected-inputs { margin: 12px 0 20px; }
.hub-selected-inputs dt { font-weight: 700; }
.hub-selected-inputs dd { margin: 0 0 10px; }
.hub-print-button { margin-top: 20px; }
.hub-plan-release, .hub-release { font-size: .8rem; overflow-wrap: anywhere; }
.hub-plan-release { margin-top: 22px; color: var(--muted); }
.hub-print-empty { display: none; }
.hub-product { box-shadow: 3px 3px 0 var(--pi-ink); font-size: .93rem; }
.hub-product a { display: inline-block; margin-top: 16px; font-weight: 700; }
.hub-disclosure { background: #fff3cb; border-left: 4px solid #91610b; padding: 14px 18px; border-radius: 6px; font-size: .9rem; }
.hub-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hub-page details { background: white; border: 2px solid var(--pi-ink); border-radius: 10px; margin-bottom: 12px; padding: 16px 20px; }
.hub-page summary { cursor: pointer; font-weight: 700; }
.hub-page details p { margin-top: 12px; }
.hub-page .hub-cta { background: var(--navy); color: white; padding: 30px; border-radius: 14px; }
.hub-cta a:not(.btn) { color: #91d4ff; }
.hub-cta .btn { margin-top: 18px; }
.hub-guide { max-width: 800px; }
.hub-guide article { margin: 28px 0; }
.hub-guide header { padding: 32px 0 0; }
.hub-guide h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 12px 0 20px; }
.hub-page .hub-table-wrap { overflow-x: auto; background: white; border: 2px solid var(--pi-ink); border-radius: 12px; }
.hub-page table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hub-page th, .hub-page td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hub-page th { background: #e6f3ff; }
@media (max-width: 850px) {
  .hub-page .hub-hero { grid-template-columns: 1fr; }
  .hub-hero figure { max-width: 560px; }
  .hub-pathways { grid-template-columns: 1fr; }
  .hub-product-grid > .card { flex-basis: calc((100% - 22px) / 2); }
  .hub-fields { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hub-page .wrap { padding: 0 18px; }
  .hub-page nav { gap: 10px; }
  .hub-page nav .brand { flex-basis: 100%; }
  .hub-page .hub-builder, .hub-page .hub-result { padding: 20px; }
  .hub-guides { grid-template-columns: 1fr; }
  .hub-product-grid > .card, .hub-result .hub-product-grid > .card { flex-basis: 100%; }
  .hub-page .btn-row .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-page *, .hub-page *::before, .hub-page *::after { animation: none !important; transition: none !important; transform: none !important; }
}
@media print {
  @page { margin: 18mm; }
  .hub-page { background: white; color: black; font-size: 11pt; }
  .hub-page nav, .hub-page footer, .hub-page form, .hub-page button,
  .hub-page .skip-link, .hub-hero figure { display: none !important; }
  .hub-page .wrap { max-width: none; padding: 0; }
  .hub-page .card, .hub-page .hub-result { box-shadow: none; }
  .hub-planner-page main > :not(#builder) { display: none !important; }
  .hub-planner-page #builder { padding: 0; }
  .hub-planner-page .hub-builder { border: 0; padding: 0; background: white; box-shadow: none; }
  .hub-planner-page .hub-builder > :not(#hub-result):not(.hub-print-empty) { display: none !important; }
  .hub-planner-page .hub-result { border: 0; margin: 0; padding: 0; }
  .hub-planner-page .hub-plan-options { display: none !important; }
  .hub-planner-page:not(.hub-has-plan) #hub-result { display: none !important; }
  .hub-planner-page:not(.hub-has-plan) .hub-print-empty { display: block; }
  .hub-page h3, .hub-page h4, .hub-selected-inputs dt { break-after: avoid; }
  .hub-page li, .hub-selected-inputs dd { break-inside: avoid; }
  .hub-page a { color: black; }
}
