/* Herbie Hub's own pages only. No external fonts or image assets. */
.hub-page {
  --hub-paper: #faf7f1;
  --hub-white: #fffefa;
  --hub-ink: #23343b;
  --hub-muted: #616b6b;
  --hub-line: #dddcd2;
  --hub-navy: #172c3a;
  --hub-navy-soft: #263f4e;
  --hub-sage: #e8ede3;
  --hub-leaf: #315749;
  --hub-focus: #967023;
  margin: 0;
  background: var(--hub-paper);
  color: var(--hub-ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
.hub-page *, .hub-page *::before, .hub-page *::after { box-sizing: border-box; }
.hub-page [hidden] { display: none !important; }
.hub-page a { color: inherit; }
.hub-page button, .hub-page input { font: inherit; }
.hub-page button { cursor: pointer; }
.hub-page a, .hub-page button, .hub-page input { -webkit-tap-highlight-color: transparent; }
.hub-page :is(a, button, input, [tabindex]):focus-visible { outline: 3px solid var(--hub-focus); outline-offset: 4px; }
.hub-page p, .hub-page h1, .hub-page h2, .hub-page h3 { margin: 0; }
.hub-page h1, .hub-page h2, .hub-page h3 { line-height: 1.2; }
.hub-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hub-skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; background: var(--hub-white); border: 1px solid var(--hub-ink); border-radius: 4px; transform: translateY(-160%); }
.hub-skip:focus { transform: translateY(0); }
.hub-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.hub-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; padding: 35px 22px 22px; color: #eef1ed; background: var(--hub-navy); }
.hub-brand { display: block; width: fit-content; color: #f8f7f1 !important; text-decoration: none; font-size: 36px; line-height: 1; font-weight: 650; letter-spacing: -1.5px; }
.hub-brand span { display: block; margin-top: 12px; color: #c1cec9; font-size: 10px; font-weight: 500; line-height: 1.5; text-transform: uppercase; letter-spacing: 2.2px; }
.hub-page .hub-sidebar-label { margin-top: 32px; margin-bottom: 16px; color: #b1c2c8; font-size: 11px; }
.hub-nav { display: grid; gap: 16px; }
.hub-nav-group { display: grid; gap: 2px; }
.hub-page .hub-nav-label { padding: 0 12px 6px; color: #a8bec6; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.6px; }
.hub-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 8px 12px; color: #d6e0e1; font-size: 13px; text-decoration: none; border-radius: 5px; border: 1px solid transparent; }
.hub-nav a:hover { color: white; background: #203a49; }
.hub-nav a[aria-current="page"] { color: #fff; background: var(--hub-navy-soft); border-color: #446071; }
.hub-nav a:focus-visible, .hub-sidebar .hub-brand:focus-visible, .hub-logout:focus-visible { outline-color: #dec58d; }
.hub-home-link span { color: #c2d6de; font-size: 19px; }
.hub-account { margin-top: auto; padding: 28px 12px 0; overflow-wrap: anywhere; }
.hub-account::before { content: ""; display: block; width: 100%; border-top: 1px solid #3a505b; margin-bottom: 16px; }
.hub-account-label { display: block; color: #b1c2c8; font-size: 11px; }
.hub-account strong { display: block; font-size: 13px; font-weight: 600; }
.hub-logout { display: flex; gap: 24px; align-items: center; min-height: 44px; border: 0; padding: 8px 0; background: transparent; color: #d6e0e1; font-size: 12px !important; }
.hub-logout:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hub-workspace { min-width: 0; }
.hub-topbar { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--hub-line); font-size: 12px; }
.hub-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hub-breadcrumb a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.hub-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hub-breadcrumb > span:first-of-type { color: #8a928d; }
.hub-topbar-note { color: var(--hub-muted); }
.hub-main { padding: 44px clamp(24px, 4vw, 64px) 26px; max-width: 1432px; margin-inline: auto; outline: none; }
.hub-page-heading { max-width: 790px; margin-bottom: 40px; }
.hub-page .hub-eyebrow { font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 2px; color: var(--hub-leaf); margin-bottom: 12px; }
.hub-page-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 52px); font-weight: 400; letter-spacing: -1.5px; }
.hub-page .hub-lede { max-width: 590px; margin-top: 15px; color: var(--hub-muted); font-size: 15px; line-height: 1.7; }
.hub-section { margin-bottom: 32px; scroll-margin-top: 22px; }
.hub-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.hub-section-heading h2 { font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.hub-section-heading p { color: var(--hub-muted); font-size: 11px; }
.hub-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hub-tool-card { display: flex; flex-direction: column; padding: 23px 25px; border: 1px solid #d6dbd1; border-radius: 8px; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease; }
.hub-tool-card-inspiration { background: var(--hub-sage); }
.hub-tool-card-library { background: #ebeff0; border-color: #d6dfe2; }
.hub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.hub-card-kind { display: block; color: #5b6b63; font-size: 9px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; }
.hub-tool-card-library .hub-card-kind { color: #546874; }
.hub-arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; font-size: 22px; line-height: 1; color: #466459; }
.hub-tool-card h3 { margin-bottom: 10px; font-size: 24px; font-weight: 550; letter-spacing: -.7px; }
.hub-tool-card p { max-width: 440px; font-size: 13px; line-height: 1.7; color: #4e6059; margin-bottom: 21px; }
.hub-tool-card-library p { color: #52636b; }
.hub-card-action { display: flex; gap: 14px; align-items: center; margin-top: auto; font-size: 11px; font-weight: 650; color: var(--hub-leaf); }
.hub-tool-card-library .hub-card-action { color: #365463; }
.hub-tool-card:hover { border-color: #81958c; box-shadow: 0 4px 15px #1c2f3710; }
.hub-doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--hub-line); border-radius: 8px; background: var(--hub-white); }
.hub-doc-card { display: flex; flex-direction: column; padding: 24px 22px; text-decoration: none; }
.hub-doc-card + .hub-doc-card { border-left: 1px solid var(--hub-line); }
.hub-doc-card h3 { margin-top: 17px; margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; letter-spacing: -.5px; }
.hub-doc-card p { font-size: 12px; line-height: 1.75; color: var(--hub-muted); margin-bottom: 24px; }
.hub-doc-card:hover { background: #f2f3eb; }
.hub-doc-card:first-child { border-radius: 7px 0 0 7px; }
.hub-doc-card:last-child { border-radius: 0 7px 7px 0; }
.hub-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.hub-report-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 0 8px; border-top: 1px solid #cdd3cb; text-decoration: none; }
.hub-report-card h3 { font-size: 16px; font-weight: 600; margin: 9px 0; }
.hub-report-card p { font-size: 12px; color: var(--hub-muted); line-height: 1.75; max-width: 440px; }
.hub-report-card .hub-arrow { padding-top: 6px; }
.hub-report-card:hover h3, .hub-record-link:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.hub-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 23px; margin-top: 38px; border-top: 1px solid var(--hub-line); font-size: 10px; color: var(--hub-muted); }
.hub-footer > span { white-space: nowrap; font-weight: 600; }
.hub-footer p { max-width: 460px; text-align: right; }
.hub-reading-note { display: grid; grid-template-columns: minmax(140px, .6fr) minmax(0, 1.6fr); gap: 20px; border-block: 1px solid var(--hub-line); padding: 22px 0; margin-bottom: 36px; font-size: 13px; }
.hub-reading-note strong { font-weight: 600; }
.hub-reading-note p { color: var(--hub-muted); }
.hub-reading-note a { color: var(--hub-leaf); text-underline-offset: 4px; }
.hub-record-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--hub-line); border-radius: 8px; background: var(--hub-white); }
.hub-record-list li + li { border-top: 1px solid var(--hub-line); }
.hub-record-link { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px; text-decoration: none; overflow-wrap: anywhere; }
.hub-record-link h3 { margin-bottom: 9px; font-size: 17px; font-weight: 550; }
.hub-record-link p { color: var(--hub-muted); font-size: 13px; max-width: 690px; }
.hub-record-link:hover { background: #f1f3eb; }
.hub-record-open { flex-shrink: 0; display: flex; align-items: center; gap: 20px; color: var(--hub-leaf); font-size: 12px; font-weight: 600; }
.hub-empty { padding: 30px; border: 1px dashed #b7bfb2; border-radius: 8px; }
.hub-empty h3 { font-size: 19px; font-weight: 500; margin-bottom: 12px; }
.hub-empty p { max-width: 600px; color: var(--hub-muted); font-size: 14px; }
.hub-inline-link { display: inline-flex; align-items: center; min-height: 44px; gap: 18px; color: var(--hub-leaf) !important; font-size: 13px; text-underline-offset: 4px; margin-top: 15px; }
/* A calm, independent sign-in surface, including the account landing. */
.hub-login-shell { display: grid; grid-template-columns: minmax(320px, 43%) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.hub-login-intro { padding: 48px clamp(28px, 5vw, 84px); background: var(--hub-navy); color: #f6f4ec; display: flex; flex-direction: column; }
.hub-login-story { margin-block: auto; padding-block: 90px; max-width: 410px; }
.hub-page .hub-login-story .hub-eyebrow { color: #b4cac4; }
.hub-login-story h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4.7vw, 65px); letter-spacing: -1.8px; font-weight: 400; line-height: 1.14; }
.hub-login-story > p:last-child { margin-top: 27px; max-width: 330px; font-size: 14px; line-height: 1.85; color: #c1cdd0; }
.hub-login-footnote { color: #b1c2c8; font-size: 11px; border-top: 1px solid #3a505b; padding-top: 20px; }
.hub-login-main { display: flex; align-items: center; justify-content: center; padding: 50px 36px; outline: none; }
.hub-login-card { width: 100%; max-width: 382px; }
.hub-login-card h2 { font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 400; letter-spacing: -1.1px; }
.hub-page .hub-login-description { color: var(--hub-muted); font-size: 14px; margin-block: 12px 30px; overflow-wrap: anywhere; }
.hub-login-form { display: grid; gap: 20px; }
.hub-field { display: grid; gap: 8px; }
.hub-field > label { font-size: 13px; font-weight: 600; }
.hub-field input { width: 100%; min-width: 0; height: 48px; border: 1px solid #bfc6be; border-radius: 5px; background: var(--hub-white); color: var(--hub-ink); padding: 10px 13px; font-size: 16px; }
.hub-password-wrap { position: relative; }
.hub-password-wrap:has(.hub-password-toggle:not([hidden])) input { padding-right: 72px; }
.hub-password-toggle { position: absolute; right: 2px; top: 2px; height: 44px; min-width: 64px; border: 0; background: transparent; color: var(--hub-leaf); font-size: 12px !important; font-weight: 600 !important; border-radius: 4px; }
.hub-password-toggle:hover { background: #edf1e8; }
.hub-password-toggle:focus-visible { outline-offset: 0 !important; }
.hub-remember { display: flex; align-items: flex-start; gap: 11px; min-height: 44px; padding: 4px 0; font-size: 12px; cursor: pointer; }
.hub-remember input { width: 18px; height: 18px; accent-color: var(--hub-leaf); margin: 2px 0 0; flex-shrink: 0; }
.hub-remember small { display: block; color: var(--hub-muted); font-size: 11px; margin-top: 2px; }
.hub-button { min-height: 48px; width: 100%; display: flex; justify-content: center; align-items: center; gap: 24px; border: 1px solid transparent; border-radius: 5px; padding: 11px 18px; text-decoration: none; font-size: 13px !important; font-weight: 600 !important; }
.hub-button-primary { color: #fff !important; background: var(--hub-navy); border-color: var(--hub-navy); }
.hub-button-primary:hover { background: #2b4656; }
.hub-button-secondary { color: var(--hub-navy); background: transparent; border-color: #b5bfb9; }
.hub-button-secondary:hover { background: #eef0e8; }
.hub-manage-form { margin-top: 12px; }
.hub-page .hub-login-help { font-size: 11px; line-height: 1.8; color: var(--hub-muted); margin-top: 24px; }
.hub-page .hub-login-signature { font-size: 10px; color: var(--hub-muted); margin-top: 42px; border-top: 1px solid var(--hub-line); padding-top: 20px; }
.hub-form-error { padding: 16px; margin-bottom: 24px; border: 1px solid #d6b3a8; border-radius: 5px; background: #f8ece6; color: #873e30; overflow-wrap: anywhere; }
.hub-form-error h3 { font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.hub-form-error p { font-size: 12px; }
@media (min-width: 761px) and (max-height: 820px) {
  .hub-sidebar { padding-top: 26px; }
  .hub-page .hub-sidebar-label { margin-top: 22px; margin-bottom: 12px; }
  .hub-nav { gap: 12px; }
  .hub-account { padding-top: 20px; }
}
@media (max-width: 1100px) {
  .hub-shell { grid-template-columns: 214px minmax(0, 1fr); }
  .hub-sidebar { padding-inline: 16px; }
  .hub-topbar-note { display: none; }
  .hub-tool-card { padding: 22px; }
  .hub-doc-card { padding: 22px 16px; }
  .hub-doc-card h3 { font-size: 20px; }
  .hub-section-heading p { max-width: 170px; text-align: right; }
  .hub-footer { flex-direction: column; gap: 8px; }
  .hub-footer p { text-align: left; }
}
@media (max-width: 760px) {
  .hub-shell { display: block; }
  .hub-sidebar { position: static; height: auto; padding: 22px 22px 16px; overflow: visible; }
  .hub-brand { font-size: 30px; }
  .hub-brand span { font-size: 9px; margin-top: 8px; }
  .hub-page .hub-sidebar-label { display: none; }
  .hub-nav { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
  .hub-nav-group { display: contents; }
  .hub-page .hub-nav-label { display: none; }
  .hub-nav a { font-size: 11px; min-height: 44px; padding: 8px 10px; background: #213a48; }
  .hub-home-link span { display: none; }
  .hub-account { display: flex; align-items: center; gap: 8px; padding: 14px 0 0; margin-top: 16px; border-top: 1px solid #3a505b; font-size: 11px; }
  .hub-account::before { display: none; }
  .hub-account strong { font-size: 11px; }
  .hub-account form { margin-left: auto; flex-shrink: 0; }
  .hub-logout { font-size: 11px !important; gap: 10px; }
  .hub-topbar { min-height: 64px; padding: 6px 22px; }
  .hub-main { padding: 30px 22px 24px; }
  .hub-page-heading { margin-bottom: 32px; }
  .hub-page-heading h1 { font-size: 38px; }
  .hub-section-heading p { max-width: none; }
  .hub-doc-card { padding: 22px 18px; }
  .hub-login-shell { display: block; }
  .hub-login-intro { padding: 24px; }
  .hub-login-story { padding: 30px 0 4px; }
  .hub-login-story h1 { font-size: 34px; letter-spacing: -.8px; }
  .hub-login-story h1 br { display: none; }
  .hub-login-story > p:last-child, .hub-login-footnote { display: none; }
  .hub-page .hub-login-story .hub-eyebrow { font-size: 9px; margin-bottom: 9px; }
  .hub-login-main { padding: 36px 24px; }
  .hub-login-card { max-width: 430px; }
}
@media (max-width: 580px) {
  .hub-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 14px; }
  .hub-section-heading p { text-align: left; }
  .hub-tool-grid, .hub-report-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hub-card-top { margin-bottom: 22px; }
  .hub-doc-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-doc-card { padding: 24px; }
  .hub-doc-card + .hub-doc-card { border-left: 0; border-top: 1px solid var(--hub-line); }
  .hub-doc-card:first-child { border-radius: 7px 7px 0 0; }
  .hub-doc-card:last-child { border-radius: 0 0 7px 7px; }
  .hub-doc-card h3 { margin-top: 12px; font-size: 23px; }
  .hub-doc-card p { margin-bottom: 18px; }
  .hub-reading-note { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hub-record-link { padding: 22px 18px; gap: 16px; flex-direction: column; align-items: flex-start; }
  .hub-record-open { min-height: 24px; }
  .hub-empty { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-page *, .hub-page *::before, .hub-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .hub-sidebar, .hub-topbar, .hub-skip { display: none; }
  .hub-shell { display: block; }
  .hub-page { background: #fff; color: #000; }
  .hub-main { padding: 0; }
  .hub-tool-card, .hub-doc-card, .hub-record-link { break-inside: avoid; }
}
