/* Shared presentation for the White Glove client and staff workspaces. */
body[data-wg-page] {
  --ink: #142139;
  --muted: #4c5c73;
  --paper: #f2f6fb;
  --line: #d8e1ed;
  --copper: #104e9a;
  --blue: #104e9a;
  --soft: #eaf2fc;
  --page: var(--paper);
  --raised: var(--soft);
  --navy: #091d38;
  --navy2: #143458;
  --gold2: var(--blue);
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--v2-font, system-ui, sans-serif);
}

.wg-header {
  display: block;
  padding: 0;
  color: #fff;
  background: linear-gradient(110deg, #071c36, #123d6c);
  border-bottom: 3px solid #77a6da;
}

.wg-header-inner {
  width: min(100% - 44px, 1156px);
  margin-inline: auto;
  min-height: 74px;
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
}

.wg-header .wg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  line-height: 1.25;
}

.wg-brand img { flex: none; }
.wg-brand-name, .wg-brand-context { display: block; }
.wg-brand-name { font-size: 1.125rem; font-weight: 800; letter-spacing: -.025em; }
.wg-brand-context { margin-top: 2px; color: #c5daf1; font-size: .875rem; font-weight: 650; }
.wg-header nav { gap: 4px 7px; margin: 0; max-width: none; }

.wg-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #e4effb;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.wg-header nav a:hover,
.wg-header nav a[aria-current="page"] {
  color: #fff;
  background: #ffffff19;
  border-color: #ffffff3d;
}

.wg-header a:focus-visible { outline-color: #cde5ff; }

.wg-preview-notice {
  padding: 10px 22px;
  background: #e8f1fd;
  border-bottom: 1px solid #ccdef3;
  color: #28456a;
  font-size: .875rem;
  text-align: center;
}

body[data-wg-page] :is(main, .wrap) {
  padding-block: clamp(20px, 4vw, 44px) clamp(32px, 5vw, 64px);
}

body:is([data-wg-page="request"], [data-wg-page="deals"], [data-wg-page="listing"]) > .wrap { max-width: 860px; }
body[data-wg-page="request"] .wrap main { padding: 0; }
body[data-wg-page="request"] .hero { margin: 0 0 18px; }
body[data-wg-page="request"] .hero .v2-banner { min-height: 0; }
body[data-wg-page="request"] .intro { max-width: none; }
body[data-wg-page="request"] .intro .eyebrow { display: none; }

body[data-wg-page] :is(h1, h2, h3) {
  font-family: inherit;
  color: var(--ink);
  letter-spacing: -.028em;
}

body[data-wg-page] h1 {
  margin-block: 0 12px;
  font-size: clamp(1.95rem, 4vw, 2.65rem);
  line-height: 1.12;
  font-weight: 800;
}

body[data-wg-page] h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 800; }
body[data-wg-page] :is(p.intro, p.muted) { color: var(--muted); }
body[data-wg-page] .eyebrow { margin-bottom: 7px; color: var(--blue); }

body[data-wg-page] .card {
  min-width: 0;
  padding: clamp(16px, 2.65vw, 28px);
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 15px #15365e0a;
}

body[data-wg-page] .card-head h2 { font: 800 1.3rem/1.25 var(--v2-font, system-ui, sans-serif); }
body[data-wg-page] .note { background: var(--soft); color: #183b62; border-left-color: #2d71b7; }
body[data-wg-page] :is(.repeat-card, .app-row) { background: #f5f8fd; }
body[data-wg-page] .pill:not(.success, .warning, .error) { background: #e8f1fc; color: #224870; }
body[data-wg-page] .pill { white-space: normal; }

body[data-wg-page] :is(button, input, select, textarea, summary, .wg-header a):focus-visible {
  outline: 3px solid #2d71b7;
  outline-offset: 3px;
}

body[data-wg-page] :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select) { min-height: 44px; }
body[data-wg-page] button:not(.quiet) { min-height: 42px; }
body[data-wg-page] .doc-row button { min-height: 40px; font-size: .875rem; }

.wg-doc-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
}

body[data-wg-page="client"] .doc-row .wg-doc-help-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: 32px;
  min-height: 32px;
  padding: 0;
  background: #eaf2fc;
  border: 1px solid #a9c5e4;
  border-radius: 50%;
  color: #104e9a;
  font-weight: 800;
}

body[data-wg-page="client"] .doc-row .wg-doc-help-toggle:is(:hover, [aria-expanded="true"]) {
  color: white;
  background: #104e9a;
  border-color: #104e9a;
}

.wg-doc-help {
  margin: 6px 0 12px;
  padding: 12px 14px;
  border: 1px solid #cddff2;
  border-radius: 10px;
  background: #f2f7fd;
  color: #19365a;
  font-size: .875rem;
}

.wg-doc-help p { margin: 0 0 8px; }
.wg-doc-help p:last-child { margin-bottom: 0; }
.wg-doc-help img { display: block; width: min(100%, 230px); height: auto; margin: 10px 0; border-radius: 6px; }
.wg-doc-help a { overflow-wrap: anywhere; font-weight: 700; }

body[data-wg-page="intake"] .app-context {
  grid-template-columns: minmax(12rem, 1fr) repeat(3, auto);
  margin-block: 20px 10px;
  padding: clamp(14px, 2vw, 19px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

body[data-wg-page="intake"] #save-example {
  background: #fff;
  color: var(--blue);
}

body[data-wg-page="intake"] .step-nav {
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

body[data-wg-page="intake"] .step-nav button { min-height: 40px; padding: 8px 11px; line-height: 1.35; }
body[data-wg-page="intake"] .step-nav button[aria-current="step"] { background: #124476; }
body[data-wg-page="intake"] .step-nav button:not([aria-current]):hover { background: var(--soft); }
body[data-wg-page="intake"] .question-section :is(h2, #section-intro) { margin-bottom: 14px; }

.wg-search-row { display: flex; gap: 10px; align-items: stretch; margin-top: 6px; }
.wg-search-row input { min-width: 0; }
#wg-preview-search label { font-size: .875rem; font-weight: 700; }
.wg-cases { margin-top: 20px; }

.wg-case {
  background: #f7faff;
  border: 1px solid #dbe6f3;
  border-radius: 10px;
}

.wg-case summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.wg-case summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border: solid #245885;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}

.wg-case[open] summary::before { transform: rotate(45deg); }
.wg-case summary span:first-of-type { flex: 1; }
.wg-case summary small { display: block; margin-top: 2px; color: #4c5c73; font-size: .8125rem; }
.wg-case dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 15px; padding: 10px 14px 12px 33px; margin: 0; border-top: 1px solid #dbe6f3; }
.wg-case dt { font-weight: 700; }
.wg-case dd { margin: 0; }
.wg-related { font-weight: 700; }

@media (max-width: 1000px) {
  body[data-wg-page="intake"] .app-context { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-wg-page="intake"] .app-context .field { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .wg-header-inner { width: calc(100% - 28px); flex-wrap: wrap; }
  .wg-header nav { justify-content: flex-start; }
  .wg-header nav a { min-height: 38px; padding-inline: 8px; }
  .wg-preview-notice { padding-inline: 14px; text-align: start; }
}

@media (max-width: 440px) {
  body[data-wg-page="intake"] .app-context { grid-template-columns: minmax(0, 1fr); }
  .wg-case summary { gap: 8px; }
  .wg-case dl { padding-left: 14px; gap: 5px 10px; font-size: .875rem; }
}

@media print {
  .wg-header, .wg-preview-notice { display: none; }
  body[data-wg-page] { background: #fff; }
  body[data-wg-page] :is(main, .wrap) { padding: 0; }
}
