/* Makehouse "Sunny" (dark) theme layer for Tailor. Loaded last on every page. */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@600&family=Source+Sans+3:ital,wght@0,400;0,700;1,400&display=swap");

:root, :root[data-theme="light"], :root[data-theme="dark"], :root:not([data-theme="light"]) {
  --bg: #1F2937 !important; --surface: #2A3646 !important; --ink: #FFFFFF !important; --muted: #c9d1db !important;
  --line: rgba(255,255,255,0.25) !important;
  --accent: #FF7A45 !important; --accent-soft: rgba(255,255,255,0.12) !important;
  --brand: #FF7A45 !important; --brand-soft: rgba(255,122,69,0.16) !important;
  --pl: #3a4757 !important; --pl-ink: #e5e9ef !important; --pl-hover: #46566a !important; --good: #6FCF97 !important;
  --ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  --mono: "Source Sans 3", system-ui, sans-serif !important;
  --serif: "Source Serif 4", Georgia, serif;
  --r: 4px !important; --rc: 6px !important;
  --pl-on: #4a5869 !important; --pl-on-sub: #e5e9ef !important; --pl-btn: #3a4757 !important;
  --field: #1F2937 !important; --field-line: rgba(255,255,255,0.35) !important; --sl-line: #5b6878 !important;
  --bad: #FF8A80 !important; --warn: #FFB37A !important; --warn-soft: rgba(255,179,122,0.14) !important;
  --mk-sh: #FF7A45; --mk-in: #1F2937;
  color-scheme: dark !important;
}
body { background: #1F2937; color: #FFFFFF; }

/* Type: serif headlines, sans body. */
/* Previews of the customer's own work keep their own look: restore Tailor's original values inside them. */
:is(.spec, .specs, .pv, .mc, .sheet, .web, .phone, .email, .cardp, .rp, .vp, .pd) {
  --bg: #eceff0 !important; --surface: #fbfcfc !important; --ink: #141b1f !important; --muted: #5a666d !important; --line: #d3d9dc !important;
  --accent: #1d5c86 !important; --accent-soft: #dde9f1 !important; --brand: #214A3B !important; --brand-soft: #dbe7e1 !important;
  --pl: #d5dcdf !important; --pl-ink: #46535a !important; --pl-hover: #c8d1d5 !important; --good: #2f7a4d !important;
  --ui: "Instrument Sans", system-ui, sans-serif !important; --mono: "IBM Plex Mono", ui-monospace, monospace !important; color-scheme: light !important;
}
:where(.spec, .specs, .pv, .mc, .sheet, .web, .phone, .email, .cardp, .rp, .vp, .pd) { color: #141b1f; }
:is(h1, h2, h3, .word):not(:is(.spec, .specs, .pv, .mc, .sheet, .web, .phone, .email, .cardp, .rp, .vp, .pd, [contenteditable]) *):not(.hl):not([style*="font-family"]) {
  font-family: var(--serif) !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.word b { font-weight: 600 !important; color: #FF7A45 !important; }
header.nav .logo .word, header.nav .logo .word b { color: #FFFFFF !important; }
b, strong { font-weight: 700; }
[style*="var(--mono)"], .mono { font-variant-numeric: tabular-nums; }

/* Marks: orange shield, dark symbol, everywhere. */
.mark, svg .mark, header.nav .logo .mark, .doc .from .mark { --mk-sh: #FF7A45 !important; --mk-in: #1F2937 !important; }

/* Buttons: orange with dark text; secondary slate with white text. */
.btn { font-weight: 700 !important; }
.btn.gray { color: #FFFFFF !important; font-weight: 400 !important; }
.btn.quiet { color: #FFFFFF !important; background: transparent !important; border-color: transparent !important; }

/* Top bar. */
header.nav { background: #1F2937 !important; border-bottom: 1px solid rgba(255,255,255,0.25) !important; }
header.nav .logo .word { color: #FFFFFF !important; }
header.nav .links a { color: #c9d1db !important; border-radius: 4px !important; }
header.nav .links a:hover { color: #FFFFFF !important; background: rgba(255,255,255,0.08) !important; }
header.nav .links a[aria-current="page"] { color: #FFFFFF !important; background: rgba(255,255,255,0.12) !important; }
header.nav .links .count { background: #FF7A45 !important; color: #1F2937 !important; border-radius: 4px !important; }
header.nav .who .btn { background: #FF7A45 !important; border-color: #FF7A45 !important; color: #1F2937 !important; }
header.nav .avatar { background: rgba(255,255,255,0.16) !important; color: #FFFFFF !important; }
.nav a:focus-visible { outline-color: #FF7A45 !important; }

/* No drop shadows; pills become squared. */

[style*="border-radius: 99px"], [style*="border-radius:99px"] { border-radius: 4px !important; }

/* Borderless filled cards. */
.app, .flow, .file, .shot, .out, .wcard, .wcard2 { border-color: transparent !important; }
.app .n { background: #1F2937 !important; }

/* Hero preview cards: dark, like the Makehouse storefront previews. */
.doc { background: #2A3646 !important; color: #FFFFFF !important; border: 1px solid rgba(255,255,255,0.12); }
.doc .k, .doc .dim, .doc .from { color: #c9d1db !important; }
.doc .t { font-family: var(--serif) !important; font-weight: 600 !important; }
.doc .bar, .doc .dim span { background: #3a4757 !important; }
.doc .dim span::after { background: #FF7A45 !important; }
.doc .q { border-left-color: #FF7A45 !important; }
.doc .from .mark .sh { fill: #FF7A45 !important; stroke: #FF7A45 !important; }
.doc .from .mark .ln { stroke: #1F2937 !important; } .doc .from .mark .in { fill: #1F2937 !important; stroke: #1F2937 !important; }

/* Diagram: orange boxes take dark text. */
.flow .tw { fill: #1F2937 !important; } .flow .sw { fill: #1F2937 !important; opacity: .8 !important; }

/* "Next in the order" panel and other old-green panels. */
.next { background: #2A3646 !important; color: #FFFFFF !important; border-radius: 6px !important; }
.next .btn { background: #FF7A45 !important; border-color: #FF7A45 !important; color: #1F2937 !important; }
.btn.danger { background: #F87171 !important; border-color: #F87171 !important; color: #1F2937 !important; }
.bt[aria-current="true"] { background: #3a4757 !important; color: #FFFFFF !important; }
.shot .opt .ch { color: #1F2937 !important; }

/* Form fields in the tools (not in previews). */
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea):not(:is(.spec, .specs, .pv, .mc, .sheet, .web, .phone, .email, .cardp, .rp, .vp, .pd) *) {
  background: #1F2937 !important; color: #FFFFFF !important; border: 1px solid rgba(255,255,255,0.35) !important; border-radius: 4px !important; }
::placeholder { color: #c9d1db !important; opacity: 1 !important; }
input[type=range], input[type=checkbox], input[type=radio] { accent-color: #FF7A45; }
button.btn#reset, .qfoot .btn, .btn[disabled] { background: #3a4757 !important; border-color: #3a4757 !important; color: #FFFFFF !important; }
.side .ctl, .panel.side .ctl { background: #2A3646 !important; color: #FFFFFF !important; }

/* Small accent labels: sky blue reads on the dark cards. */
.fit, .chip:not(#steps .chip), .rec .rn i { color: #8CCBFA !important; }
.chip:not(#steps .chip) { background: rgba(59,167,245,0.12) !important; border-radius: 4px !important; }

/* Tools panel on the home page: no step numbers; question sits close to its text, further from the logo. */
.app { padding-top: 24px !important; }
.app .q { margin-top: 8px; }
.app .q + .d { margin-top: -8px; }
.apps { padding-top: 0 !important; }
@media (max-width: 760px) { .apps { gap: 24px !important; } }
#tools .app { background: #1F2937 !important; }

/* Your brands: the three tile states. Current = filled orange. Finished = filled slate. Not started = dashed outline. */
.yb-step.s-next, .yb-step.s-prog:not(.later) { background: #FF7A45 !important; border: 0 !important; }
.yb-step.s-next :is(.word, .word b, .what, .yb-state, .yb-state small),
.yb-step.s-prog:not(.later) :is(.word, .word b, .what, .yb-state, .yb-state small) { color: #1F2937 !important; }
.yb-step.s-next .mark, .yb-step.s-prog:not(.later) .mark { --mk-sh: #1F2937 !important; --mk-in: #FF7A45 !important; }
.yb-step.s-next .btn, .yb-step.s-prog:not(.later) .btn { background: #1F2937 !important; border-color: #1F2937 !important; color: #FFFFFF !important; }
.yb-step.s-prog:not(.later) .yb-bar { background: rgba(31,41,55,0.25) !important; } .yb-step.s-prog:not(.later) .yb-bar i { background: #1F2937 !important; }
.yb-step.s-done { background: #2A3646 !important; border: 0 !important; }
.yb-step.s-done .yb-state { color: #6FCF97 !important; } .yb-step.s-done .yb-state small { color: #c9d1db !important; }
.yb-step.s-done .btn.gray { background: #3a4757 !important; border-color: #3a4757 !important; color: #FFFFFF !important; }
.yb-step.s-prog.later { background: #2A3646 !important; border: 0 !important; }
.yb-step.s-prog.later .yb-state { color: #FFFFFF !important; }
.yb-bar { background: rgba(255,255,255,0.18) !important; } .s-prog.later .yb-bar i { background: #c9d1db !important; }
.yb-step.s-todo { background: transparent !important; border: 1.5px dashed rgba(255,255,255,0.35) !important; }
#curBox .swb { margin-left: 12px; font-size: 13px; color: #3BA7F5; text-decoration: underline; cursor: pointer; }
#curBox .swb:hover { color: #FFFFFF; }
/* StrongSuit Products: the question repeats the headline, so it is kept only for screen readers. */
#prodLabel { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* No heavy rule under page titles: space does the job. */
.head, #vProducts > .head, #vSave > .head, .bhead, .rail .brand, .wrap > header .lead { border-bottom: 0 !important; }
/* StrongSuit Products: one spacing step (20px) between intro, list, divider and button. */
#vProducts > .head { padding-bottom: 0 !important; margin-bottom: 0 !important; }
#vProducts .side { row-gap: 32px !important; }
#vProducts { row-gap: 32px !important; }
#vProducts .q { row-gap: 8px !important; } #vProducts #prods { row-gap: 8px !important; }
#vProducts .side > .side-sec { padding-top: 32px !important; }
#vProducts .side > .side-sec { padding-left: 0 !important; }
/* DressCode start: the two places to start sit side by side, as equal choices. */
.hub { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; align-items: stretch; }
.hub > .hub-h, .hub > .hub-sub, .hub > .hub-go { grid-column: 1 / -1; }
.hub > .hub-sub { margin: -4px 0 8px !important; }
.hub-row { flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 16px !important; padding: 18px !important; margin: 0 !important; border-top: 0 !important; background: #2A3646; border-radius: 6px; }
.hub-row > span { flex: 1 1 auto; }
.hub-go { margin-top: 8px !important; }
@media (max-width: 560px) { .hub { grid-template-columns: minmax(0, 1fr); } }

/* Step bars (StrongSuit, DressCode, Fitting Room): plain text steps; the current one is a light slate pill. */
#steps .chip { background: none !important; border: 0 !important; color: #c9d1db !important; border-radius: 4px !important; }
#steps .chip:not([disabled]):hover { color: #FFFFFF !important; }
#steps .chip i { border-color: rgba(255,255,255,0.35) !important; color: inherit !important; background: none !important; }
#steps .chip.on, #steps .chip[aria-current="step"] { background: rgba(255,255,255,0.12) !important; color: #FFFFFF !important; }
#steps .chip.on i, #steps .chip[aria-current="step"] i { border-color: #FFFFFF !important; }
#steps .chip.done i { background: #6FCF97 !important; border-color: #6FCF97 !important; color: #1F2937 !important; }
.fr-word { font-family: var(--serif) !important; font-weight: 600 !important; letter-spacing: 0 !important; } .fr-word b { font-weight: 600 !important; color: #FF7A45 !important; }
/* DressCode inside Tailor: show its own mark and the brand name in its bar, like Fitting Room and StrongSuit. */
html.emb.pnly body .bar #homeBtn { display: inline-flex !important; }
html.emb.pnly body .bar #brandSmall { display: inline !important; }
/* DressCode and Fitting Room bars: name on the first line; the steps and the buttons that move between them share the second line. */
/* DressCode: everything on one line. Fitting Room (ten steps): name and brand on the first line, steps and buttons on the second. */
header.bar { display: grid !important; align-items: center; column-gap: 14px !important; row-gap: 8px !important; }
header.bar #steps { margin: 0 !important; flex-wrap: nowrap !important; gap: 0 !important; column-gap: 0 !important; overflow-x: auto; scrollbar-width: none; }
header.bar #steps::-webkit-scrollbar { display: none; }
header.bar #steps li { margin: 0 !important; }
header.bar #steps .chip { white-space: nowrap; }
header.bar #brandSmall { white-space: nowrap; justify-self: start; }
header.bar #acts { flex-wrap: nowrap; margin: 0 !important; order: 0 !important; }
html.pnly header.bar { grid-template-columns: auto auto minmax(0, 1fr) auto; }
html.pnly header.bar #steps { grid-column: 3; grid-row: 1; border-left: 1px solid rgba(255,255,255,0.25); padding-left: 8px !important; }
html.pnly header.bar #acts { grid-column: 4; grid-row: 1; }
html:not(.pnly) header.bar { grid-template-columns: auto minmax(0, 1fr) auto; }
html:not(.pnly) header.bar #homeBtn { grid-column: 1; grid-row: 1; }
html:not(.pnly) header.bar #brandSmall { grid-column: 2; grid-row: 1; max-width: none; }
html:not(.pnly) header.bar #steps { grid-column: 1 / 3; grid-row: 2; }
html:not(.pnly) header.bar #acts { grid-column: 3; grid-row: 2; }
header.bar #steps .chip { padding: 5px 7px 5px 5px !important; gap: 5px !important; }
/* StrongSuit: no heavy rule under the page introduction; the first block sits right under it */
#qs > .panel:first-child, #fmts > .panel:first-child, #coList > .panel:first-child, #vPillars .solo > .col > .panel:first-child { border-top: 0 !important; padding-top: 8px !important; }
/* StrongSuit finish: secondary button readable on the slate saved panel */
#tSaved .btn:not(.primary):not(.quiet) { background: #1F2937 !important; border-color: #1F2937 !important; color: #FFFFFF !important; }
.seg[hidden] { display: none !important; }
#pilNextRow[hidden] { display: none !important; }
