/* ═══════════════════════════════════════════════════
   HOOBER BRAND THEMES (Hoober Dark is the default)
   Same layout as css/studio.css, restyled to match hoobermortgage.com:
   charcoal + gold, cream, Playfair Display / Instrument Sans / Plus Jakarta Sans.
   <html data-theme="hoober-light"> or "hoober-dark".
═══════════════════════════════════════════════════ */

:root[data-theme="hoober-light"]{
  /* Hoober Light (portal default, 2026-11-29): warm off-white, white panels, Hoober green buttons, deep gold touches */
  --bg:#F5F3EC; --panel-top:#FFFFFF; --panel-bot:#FFFFFF; --field:#FFFFFF;
  --line:rgba(28,28,26,.10); --line-strong:rgba(28,28,26,.22);
  --neon:#8F7019; --neon-glow:rgba(35,68,48,.15);
  --text:#1D1D1B; --text-dim:#3E3E3A; --muted:rgba(29,29,27,.55); --amber:#B4442F;
  --accent:#234430; --accent-d:#8F7019; --accent-tint:rgba(35,68,48,.07);
  --surface:#FFFFFF; --surface-2:#FAF8F3; --viewer-bg:#EBE7DC;
  --shadow:0 1px 2px rgba(28,28,26,.04), 0 8px 24px rgba(28,28,26,.07);
  --page-shadow:0 1px 3px rgba(28,28,26,.08), 0 14px 34px rgba(28,28,26,.12);
  --ghost-border:rgba(29,29,27,.35); --thumb:rgba(28,28,26,.18);
  --gold:#8F7019; --green:#234430;
  color-scheme:light;
}
:root[data-theme="hoober-dark"]{
  /* Black + Hoober green lead; champagne gold for small touches; cream text */
  --bg:#0B0B0B; --panel-top:#161616; --panel-bot:#161616; --field:#1F1F1F;
  --line:rgba(255,255,255,.08); --line-strong:rgba(255,255,255,.20);
  --neon:#D4AF37; --neon-glow:rgba(63,122,85,.25);
  --text:#D4D4CF; --text-dim:#D4D4CF; --muted:rgba(212,212,207,.6); --amber:#E8735A;
  --accent:#3F7A55; --accent-d:#8CC4A0; --accent-tint:rgba(255,255,255,.07);
  --surface:#161616; --surface-2:#1C1C1C; --viewer-bg:#080808;
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --page-shadow:0 14px 40px rgba(0,0,0,.6);
  --ghost-border:rgba(212,212,207,.55); --thumb:rgba(255,255,255,.14);
  --gold:#D4AF37; --green:#234430;
  color-scheme:dark;
}

/* ── Shared brand styling for both themes ── */
:root[data-theme^="hoober"]{
  --ui:'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --serif:'Playfair Display',Georgia,serif;
  --head:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --gold-btn:linear-gradient(180deg,#B48F55,#94733F);
}
[data-theme^="hoober"] body{background:var(--bg);font-family:var(--ui);}
[data-theme^="hoober"] .studio{background:var(--bg);}

/* Panels: clean cards, thin warm lines, soft shadow, no glow */
[data-theme^="hoober"] .panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);}
[data-theme^="hoober"] .panel::after{display:none;}
[data-theme^="hoober"] .panel-head h2{font-family:var(--serif);font-weight:500;font-size:19px;letter-spacing:-.01em;color:var(--text);}
[data-theme^="hoober"] .panel-icon{color:var(--accent-d);filter:none;}

/* Header: Hoober logo | DocFlow (Playfair), like the website header */
[data-theme^="hoober"] .brand-mark{display:none;}
[data-theme^="hoober"] .brand-logo{display:block;height:34px;width:auto;}
[data-theme^="hoober"] .brand-divider{display:block;width:1px;height:30px;background:var(--line-strong);}
[data-theme^="hoober"] .brand{gap:16px;}
[data-theme^="hoober"] .brand-name{font-family:var(--serif);font-style:normal;font-weight:500;font-size:28px;letter-spacing:-.01em;
  background:none;-webkit-text-fill-color:var(--text);color:var(--text);}
[data-theme^="hoober"] .brand-tm{-webkit-text-fill-color:var(--accent-d);color:var(--accent-d);font-family:var(--ui);}
/* Logo: dark version (green h mark, white lettering) is the page default; light theme swaps in the original */
[data-theme="hoober-light"] .brand-logo{content:url("../assets/brand-hoober.png");}
:root[data-theme="hoober-light"]{--gold-btn:#234430;}
[data-theme^="hoober"] .round-btn{background:var(--surface);border:1px solid var(--line);color:var(--text);box-shadow:var(--shadow);}
[data-theme^="hoober"] .round-btn:hover{border-color:var(--accent);color:var(--accent-d);}


/* Form Library */
[data-theme^="hoober"] .search{background:var(--field);border:1px solid var(--line);color:var(--text-dim);}
[data-theme^="hoober"] .search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint);}
[data-theme^="hoober"] .lib-row{color:var(--text);}
[data-theme^="hoober"] .lib-row:hover{background:var(--surface-2);}
[data-theme^="hoober"] .lib-group.open > .lib-row,[data-theme^="hoober"] .lib-group.has-active > .lib-row{
  border-color:var(--line-strong);background:var(--accent-tint);box-shadow:none;}
[data-theme^="hoober"] .lib-group.open > .lib-row i:first-child{color:var(--accent-d);}
[data-theme^="hoober"] .lib-item{color:var(--text-dim);border-left-color:var(--line);}
[data-theme^="hoober"] .lib-item:hover{color:var(--text);background:var(--surface-2);}
[data-theme^="hoober"] .lib-item.active{color:var(--accent-d);background:var(--accent-tint);border-left-color:var(--accent);}
[data-theme^="hoober"] .lib-star:hover{color:var(--text);background:var(--surface-2);}
[data-theme^="hoober"] .lib-star.on{color:var(--accent);filter:none;}
[data-theme^="hoober"] .lib-favs{border-bottom-color:var(--line);}
[data-theme^="hoober"] .lib-favs-head{color:var(--accent-d);font-family:var(--head);letter-spacing:.18em;}
[data-theme^="hoober"] .lib-favs-head svg{filter:none;}
[data-theme^="hoober"] .lib-started{color:var(--amber);}
[data-theme^="hoober"] .lib-dot{background:var(--amber);box-shadow:none;}
[data-theme^="hoober"] .library .panel{background:var(--surface);}

/* Document viewer */
[data-theme^="hoober"] .viewer{border-color:var(--line);box-shadow:var(--shadow);}
[data-theme^="hoober"] .viewer-head{border-bottom-color:var(--line);}
[data-theme^="hoober"] .viewer-title{font-family:var(--ui);}
[data-theme^="hoober"] .viewer-body{background:var(--viewer-bg);}
[data-theme^="hoober"] #docMount .pd-page,[data-theme^="hoober"] #previewMount .pd-page{box-shadow:var(--page-shadow);}
[data-theme^="hoober"] .studio .zoom select{background-color:var(--field);border-color:var(--line);color:var(--text);}
[data-theme^="hoober"] .icon-btn:hover{color:var(--accent-d);background:var(--surface-2);}
[data-theme^="hoober"] .seg{background:var(--surface-2);border-color:var(--line);}
[data-theme^="hoober"] .seg button{color:var(--text-dim);font-family:var(--head);}
[data-theme^="hoober"] .seg button.on{color:#fff;background:var(--gold-btn);box-shadow:none;}
[data-theme^="hoober"] .preview-bar{background:var(--surface);border-color:var(--line);color:var(--text-dim);}
[data-theme^="hoober"] .preview-bar .tag{color:#fff;background:#94733F;}
[data-theme^="hoober"] .preview-bar.edited{border-color:var(--line-strong);color:var(--text);}
[data-theme^="hoober"] .preview-bar button{border-color:var(--line);color:var(--text);}

/* Landing */
/* Home screen: the Hoober "h" mark (left end of the logo image) in place of the document icon */
[data-theme^="hoober"] .landing-mark{width:104px;height:104px;border:0;border-radius:50%;box-shadow:none;
  background:url("../assets/hoober-mark.png") center / cover no-repeat;}   /* 512px mark from the website, clipped to its circle */
[data-theme^="hoober"] .landing-mark i{display:none;}
[data-theme^="hoober"] .landing h1{font-family:var(--serif);font-weight:500;font-size:30px;letter-spacing:-.01em;}
[data-theme^="hoober"] .quick-btn{background:var(--surface);border-color:var(--line);color:var(--text);}
[data-theme^="hoober"] .quick-btn i{color:var(--accent-d);}
[data-theme^="hoober"] .quick-btn:hover{border-color:var(--accent);background:var(--accent-tint);box-shadow:none;}

/* Borrower Info */
[data-theme^="hoober"] .bp-section-label{color:var(--accent-d);font-family:var(--head);letter-spacing:.18em;}
[data-theme^="hoober"] .bp-field > span{color:var(--text-dim);font-family:var(--head);}
[data-theme^="hoober"] .studio .bp-input{background:var(--field);border-color:var(--line);color:var(--text);}
[data-theme^="hoober"] .studio .bp-input:focus{border-color:var(--accent);background:var(--field);box-shadow:0 0 0 3px var(--accent-tint);}
[data-theme^="hoober"] .person{background:var(--surface-2);border-color:var(--line);}
[data-theme^="hoober"] .person.is-b,[data-theme^="hoober"] .person.is-c{border-color:var(--line-strong);box-shadow:none;}
[data-theme^="hoober"] .role-chips{background:var(--field);border-color:var(--line);}
[data-theme^="hoober"] .chip{font-family:var(--head);}
[data-theme^="hoober"] .chip.on{color:#fff;background:var(--gold-btn);box-shadow:none;}
[data-theme^="hoober"] .bp-add{border-color:var(--line);color:var(--text-dim);}
[data-theme^="hoober"] .bp-add:hover{border-color:var(--accent);color:var(--accent-d);}
[data-theme^="hoober"] .person-x{border-color:var(--line);}
[data-theme^="hoober"] .clear-all{border-color:var(--line);color:var(--text-dim);font-family:var(--head);}
[data-theme^="hoober"] .saved{color:#4C8A61;}

/* Started Forms */
[data-theme^="hoober"] .started-head{color:var(--accent-d);font-family:var(--head);letter-spacing:.18em;}
[data-theme^="hoober"] .started-item:hover{background:var(--surface-2);}
[data-theme^="hoober"] .started-item.active{color:var(--accent-d);background:var(--accent-tint);border-color:var(--line-strong);}
[data-theme^="hoober"] .started-num{color:#fff;background:var(--gold-btn);}
[data-theme^="hoober"] .started-list::-webkit-scrollbar-thumb{background:var(--thumb);}

/* Export: website button styles (gold primary, outlined secondary) */
[data-theme^="hoober"] .export-all{background:transparent;border:1.5px solid var(--ghost-border);color:var(--text);border-radius:8px;
  font:700 11.5px/1 var(--head);letter-spacing:.06em;text-transform:uppercase;}
[data-theme^="hoober"] .export-all i{color:inherit;}
[data-theme^="hoober"] .export-all:hover:not(:disabled){border-color:var(--accent);color:var(--accent-d);background:transparent;}
[data-theme^="hoober"] .export-btn{background:var(--gold-btn);border:1.5px solid #94733F;color:#fff;border-radius:10px;
  font:700 16px/1 var(--head);letter-spacing:.06em;text-transform:uppercase;box-shadow:0 6px 18px rgba(148,115,63,.25);}
[data-theme^="hoober"] .export-btn:disabled{filter:grayscale(.45) opacity(.55);box-shadow:none;}

/* Question box */
[data-theme^="hoober"] .ask{background:var(--surface);border-color:var(--line);}
[data-theme^="hoober"] .ask h3{font-family:var(--serif);font-weight:500;font-size:19px;}
[data-theme^="hoober"] .ask-ok{color:#fff;background:var(--gold-btn);font-family:var(--head);}
[data-theme^="hoober"] .ask-ok.danger{background:#a8322a;}
[data-theme^="hoober"] .ask-cancel{font-family:var(--head);}

/* Toast and scrollbars */
[data-theme^="hoober"] .toast{background:#1C1D1B;color:#F4F1EA;border:1px solid #30312D;box-shadow:0 10px 30px rgba(0,0,0,.25);}
[data-theme^="hoober"] .lib-list::-webkit-scrollbar-thumb,
[data-theme^="hoober"] .viewer-body::-webkit-scrollbar-thumb,
[data-theme^="hoober"] .tools .borrower-panel::-webkit-scrollbar-thumb{background:var(--thumb);}

/* ── Hoober Dark: green buttons, champagne details, cream pages ── */
:root[data-theme="hoober-dark"]{--gold-btn:#234430;}
[data-theme="hoober-dark"] .seg button.on,[data-theme="hoober-dark"] .chip.on,
[data-theme="hoober-dark"] .started-num,[data-theme="hoober-dark"] .ask-ok{color:var(--text);box-shadow:inset 0 0 0 1px var(--accent);}
[data-theme="hoober-dark"] .ask-ok.danger{box-shadow:none;}
[data-theme="hoober-dark"] .preview-bar .tag{color:var(--text);background:var(--green);}
[data-theme="hoober-dark"] .export-btn{color:var(--text);border-color:var(--gold);box-shadow:none;}
[data-theme="hoober-dark"] .export-btn:hover:not(:disabled){background:#2B5239;}
[data-theme="hoober-dark"] .brand-tm,[data-theme="hoober-dark"] .lib-favs-head,
[data-theme="hoober-dark"] .bp-section-label,[data-theme="hoober-dark"] .started-head{color:var(--gold);-webkit-text-fill-color:var(--gold);}
[data-theme="hoober-dark"] .brand-divider{background:rgba(212,175,55,.45);}
[data-theme="hoober-dark"] .lib-star.on{color:var(--gold);}
[data-theme="hoober-dark"] .toast{background:#161616;color:var(--text);border-color:#2A2A2A;}
/* On screen the letter page is a light cream; exported PDFs stay white for printing */
[data-theme="hoober-dark"] #docMount .pd-page,[data-theme="hoober-dark"] #previewMount .pd-page{background-color:#FBF8F1;}
/* Panel header icons (Form Library, Borrower Info), home-screen form buttons and open folders: white icons */
[data-theme="hoober-dark"] .panel-icon,[data-theme="hoober-dark"] .quick-btn i,
[data-theme="hoober-dark"] .lib-group.open > .lib-row i:first-child{color:var(--text);}
/* White: the TM, Form Library text and icons, Started Forms icons */
[data-theme="hoober-dark"] .brand-tm{color:var(--text);-webkit-text-fill-color:var(--text);}
[data-theme="hoober-dark"] .library .lib-row,[data-theme="hoober-dark"] .library .lib-row i,
[data-theme="hoober-dark"] .library .lib-item,[data-theme="hoober-dark"] .library .lib-item.active,
[data-theme="hoober-dark"] .library .lib-favs-head,[data-theme="hoober-dark"] .library .search,
[data-theme="hoober-dark"] .library .search input{color:var(--text);-webkit-text-fill-color:var(--text);}
[data-theme="hoober-dark"] .library .search input::placeholder{color:rgba(212,212,207,.5);-webkit-text-fill-color:rgba(212,212,207,.5);}
[data-theme="hoober-dark"] .started-item,[data-theme="hoober-dark"] .started-item.active{color:var(--text);}
/* All text white (the section headings and the favorite star stay champagne gold) */
[data-theme="hoober-dark"] .chip,
[data-theme="hoober-dark"] .landing h1,[data-theme="hoober-dark"] .quick-btn{color:var(--text);-webkit-text-fill-color:var(--text);}
/* Favorites heading and its star: gold, like the other section headings */
[data-theme="hoober-dark"] .library .lib-favs-head,[data-theme="hoober-dark"] .library .lib-favs-head *{color:var(--gold);-webkit-text-fill-color:var(--gold);}
/* Labels a step softer than what you type, so the values stand out */
[data-theme="hoober-dark"] .bp-field > span{color:rgba(212,212,207,.7);-webkit-text-fill-color:rgba(212,212,207,.7);}

/* ── Hoober Light (portal default, 2026-11-29): green buttons with a gold edge, like the dark look ── */
[data-theme="hoober-light"] .export-btn{border-color:#d4af37;box-shadow:0 6px 18px rgba(35,68,48,.18);}
[data-theme="hoober-light"] .export-btn:hover:not(:disabled){background:#2B5239;}
[data-theme="hoober-light"] .brand-divider{background:rgba(143,112,25,.45);}
[data-theme="hoober-light"] .panel-icon,[data-theme="hoober-light"] .quick-btn i{color:var(--accent);}
[data-theme="hoober-light"] .lib-group.open > .lib-row i:first-child{color:var(--accent);}
[data-theme="hoober-light"] .lib-star.on{color:#b8921f;}
[data-theme="hoober-light"] .preview-bar .tag{color:#fff;background:var(--green);}
