/* The client guide uses one spacing rhythm; account pages keep their own layout. */
body.designer-guide {
  --section-space: clamp(2rem, 4.6vw, 4rem);
  padding-inline: clamp(.75rem, 2vw, 2rem);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
header, main, footer { max-width: 1280px; }
header { padding: 28px 8px; gap: 24px; }
header .wordmark { width: 210px; }
nav { gap: 28px; }
nav a { font-size: .9375rem; }
main { gap: 28px; }
.panel { padding: var(--section-space); border-radius: 22px; }
.panel, .section-top > *, .estimate-layout > *, .project-layout > * { min-width: 0; }
.eyebrow { font-size: .75rem; line-height: 1.5; margin-bottom: 18px; }
h2 { font-size: clamp(2.25rem, 3.7vw, 3.25rem); line-height: 1.1; }
h3 { line-height: 1.25; }
h1, h2, h3 { text-wrap: balance; }
.section-top { align-items: end; gap: 40px; margin-bottom: 36px; }
.section-top > p { max-width: 35ch; font-size: 1rem; line-height: 1.6; }
.small { font-size: .875rem; line-height: 1.6; }
.button, .secondary-button { min-height: 52px; padding: 14px 22px; border-radius: 12px; transition: background .18s ease, border-color .18s ease; }
.button { line-height: 1.4; }
.text-link { line-height: 1.5; text-align: left; min-height: 44px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
summary { min-height: 44px; }
summary .plus { line-height: 1; transition: transform .2s ease; }
.service-menu .plus, .questions summary > span:last-child, .project-extras .plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: #56183109;
}
input[type=checkbox] { width: 22px; height: 22px; }
input, select, textarea { scroll-margin-block: 100px; }
input:focus, select:focus, textarea:focus { border-color: var(--wine); }
textarea { line-height: 1.6; }
button:disabled { cursor: not-allowed; }

.intro { grid-template-columns: 1.06fr 1fr; padding: 0; min-height: 440px; }
.intro-copy-block { padding: var(--section-space); align-self: center; }
.intro h1 { font-size: clamp(2.5rem, 4.8vw, 4.1rem); line-height: 1.07; }
.intro-copy { font-size: 1.125rem; line-height: 1.6; margin: 26px 0 32px; max-width: 32ch; }
.brand-art img { aspect-ratio: 1.25; }
.brand-art figcaption { font-size: .9375rem; padding: 0 24px 28px; }
.values { padding: 10px; gap: 10px; }
.values article { padding: 28px 30px; min-height: 200px; border-radius: 14px; }
.values h2 { font-size: 2.25rem; text-wrap: nowrap; }
.values p:last-child { font-size: 1rem; line-height: 1.55; margin-top: 14px; }
.values .eyebrow { margin-bottom: 14px; }
.handoff-picker { gap: 10px; }
.handoff-button { display: flex; align-items: center; gap: 14px; padding: 20px; font-size: 1.0625rem; min-height: 66px; border-radius: 12px; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.handoff-button span { font-size: .75rem; margin: 0; opacity: .75; }
.handoff-button[aria-pressed=true] { background: var(--green); border-color: var(--green); }
.handoff-button[aria-pressed=true] span { opacity: 1; color: #e8dbc9; }
.handoff-roles { gap: 40px; margin-top: 32px; min-height: 184px; }
.handoff-roles p { font-size: 1rem; line-height: 1.65; max-width: 52ch; }
.handoff-roles h3 { margin-bottom: 12px; font-size: 1rem; letter-spacing: 0; }
.process-help { margin: -12px 0 20px; font-size: 1rem; line-height: 1.6; }
.handoff-roles > div + div { padding: 22px 24px; background: #e7ebe2; border: 0; border-radius: 14px; }
.receiving-promise { margin-top: 28px; padding-top: 24px; }
.receiving-promise p { font-size: .9375rem; max-width: 60ch; }

.services { grid-template-columns: .7fr 1.3fr; gap: 64px; }
.service-intro .share { margin-top: 28px; }
.service-menu details { padding: 24px 0; }
.service-menu details:not(.fees) > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center; gap: 20px;
}
.service-name { min-width: 0; font-size: 1.375rem; line-height: 1.3; }
.service-name small { font-size: .9375rem; margin-top: 8px; line-height: 1.5; }
.service-rate { font-size: .9375rem; }
.detail-copy { padding-top: 20px; font-size: 1rem; line-height: 1.65; }
.detail-copy p { max-width: 66ch; }

.estimator { overflow: visible; }
.estimator .section-top { padding-bottom: 32px; margin-bottom: 32px; }
.planning-modes { gap: 16px; margin-bottom: 24px; }
.planning-modes button { padding: 24px; gap: 8px 16px; border-radius: 14px; min-height: 112px; background: #FCF8F040; border-color: #56183135; }
.planning-modes button[aria-pressed=true] { background: var(--cream); color: var(--wine); border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.planning-modes .choice-number { display: flex; align-items: center; justify-content: center; width: 32px; min-width: 32px; height: 32px; padding: 0; border: 1px solid #56183140; border-radius: 50%; }
.planning-modes button[aria-pressed=true] .choice-number { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.planning-modes button:hover, .service-picker label:hover { transform: none; }
.planning-modes strong { font-size: 1.375rem; }
.planning-modes small { font-size: 1rem; line-height: 1.5; }
.service-picker { gap: 16px; margin-bottom: 36px; }
.service-picker label { padding: 22px; gap: 12px; border-color: #56183135; background: #FCF8F040; border-radius: 12px; }
.service-picker label:has(input:checked) { background: var(--green); border-color: var(--green); color: var(--cream); box-shadow: none; }
.service-picker label:has(input:focus-visible) { outline: 3px solid #EF7556; outline-offset: 4px; }
.service-picker label span { font-size: 1.1875rem; }
.service-picker label small { font-size: 1rem; line-height: 1.5; margin-top: 6px; }
.estimate-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.estimate-controls > div { padding-bottom: 28px; margin-bottom: 28px; }
.estimate-controls:not(:has(>div:not([hidden])))::before {
  content: 'Choose the services for your project.';
  font-size: 1.375rem; max-width: 30ch; padding: 4px 0 32px;
}
.control-heading { margin-bottom: 20px; }
.control-heading h3 { font-size: 1.5rem; }
.input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.input-grid label, .form-grid label { font-size: 1rem; line-height: 1.5; }
.input-grid input, .input-grid select, .form-grid input, .form-grid select, .form-grid textarea {
  font-size: 1rem; line-height: 1.45; padding: 13px 14px; margin-top: 9px;
  min-height: 52px; border-radius: 9px;
}
.estimate-result { padding: 32px; top: 24px; border-radius: 18px; border-top-width: 5px; box-shadow: 0 8px 24px #56183108; }
.estimate-result .eyebrow { margin-bottom: 22px; }
.estimate-value { font-size: clamp(3rem, 5vw, 4rem); }
.estimate-value, .estimate-result dd { font-variant-numeric: tabular-nums; }
.estimate-value.is-empty { font-size: 2rem; max-width: 12ch; }
.estimate-result dl:empty { display: none; }
.estimate-assumptions { margin-top: 22px; }
.estimate-result dt small, .privacy-note { font-size: .875rem; line-height: 1.55; }
.estimate-actions { align-items: center; }
.estimate-help { margin-bottom: 16px; padding-bottom: 16px; }
.estimate-help summary, .calculator-options > summary, .item-planner summary, .footprint-helper summary { line-height: 1.5; }
.estimate-help p { line-height: 1.6; }
.estimate-actions .text-link { font-size: 1rem; }
.estimate-next-help { margin-top: 12px; }
.estimate-controls .small, .estimate-result .small,
.estimate-assumptions summary, .footprint-helper summary,
.footprint-helper button { font-size: 1rem; }
.item-planner, .footprint-helper { padding-top: 16px; }
.assisted-panel { padding: 28px; }
.assisted-panel p { font-size: 1.0625rem; max-width: 60ch; }
.is-assisted .estimate-controls::before { content: none; }
.planner-assistance { margin-top: 18px; }

.project-layout {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: 'intro form' 'coverage form';
  grid-template-rows: auto 1fr;
  gap: 28px 56px; align-items: start;
}
.project-intro { grid-area: intro; }
.project-intro .intro-support { margin-top: 22px; max-width: 29ch; font-size: 1.0625rem; line-height: 1.6; }
.project-contact { margin-top: 32px; font-size: .9375rem; line-height: 1.6; }
.project-contact .contact-label { font: .75rem/1.5 monospace; letter-spacing: .05em; margin-bottom: 10px; }
.project-contact a { display: inline-block; margin-top: 5px; text-underline-offset: 4px; }
#project-form { grid-area: form; background: var(--light); border: 1px solid #56183118; border-radius: 18px; padding: 36px; min-width: 0; }
.request-mode { flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 0 0 24px; padding: 0 0 18px; font-size: 1rem; }
.request-mode .text-link { flex-shrink: 1; font-size: 1rem; padding: 0; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.form-grid input, .form-grid select, .form-grid textarea { background: #FFFDF8; border-color: #56183145; }
.project-extras { border-bottom: 0; padding: 20px 0 0; margin-top: 2px; }
.project-extras summary { gap: 16px; align-items: center; min-height: 52px; padding-block: 4px; }
.optional-summary { min-width: 0; }
.optional-summary strong { display: block; font-weight: 400; font-size: 1rem; line-height: 1.5; }
.optional-summary small { display: block; font-size: 1rem; line-height: 1.5; margin-top: 5px; color: #745667; }
.project-extras > .form-grid { margin-top: 26px; }
.project-extras .attachment-help { margin-top: -10px; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.form-bottom { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 28px; }
.form-bottom .button { width: 100%; }
.form-bottom p { font-size: .875rem; line-height: 1.6; max-width: none; }
.coverage-note { grid-area: coverage; display: block; padding: 22px 0 0; margin: 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.coverage-note h3 { font-size: 1rem; margin-bottom: 10px; }
.coverage-note p { font-size: .875rem; line-height: 1.6; max-width: 44ch; }
.coverage-note > a { display: inline-block; font-size: .875rem; margin-top: 12px; text-underline-offset: 4px; }
.request-steps { margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--line); gap: 32px; }
.request-steps li { border: 0; padding: 0; display: grid; grid-template-columns: 32px 1fr; align-content: start; gap: 6px 14px; }
.request-steps li::before { grid-row: 1/3; margin: 0; font-size: .75rem; line-height: 1.5; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid #56183130; border-radius: 50%; }
.request-steps strong { font-size: 1rem; line-height: 1.5; margin: 0; }
.request-steps span { font-size: .875rem; line-height: 1.55; grid-column: 2; }
.questions { padding-block: 36px; }
.questions > h2 { margin: 16px 0 20px; }
.questions details { padding: 16px 0; }
.questions summary { font-size: 1.0625rem; line-height: 1.5; }
.questions details > p { line-height: 1.65; }
details > summary { -webkit-user-select: none; user-select: none; }
details[open] > summary { margin-bottom: 4px; }
footer { padding: 32px 8px; }

@media (hover: hover) and (pointer: fine) {
  .handoff-button:not([aria-pressed=true]):hover { background: #e8dbc9; border-color: #56183180; }
  .planning-modes button:not([aria-pressed=true]):hover { background: #FCF8F075; border-color: var(--wine); }
  .service-picker label:not(:has(input:checked)):hover { background: #FCF8F080; border-color: var(--wine); }
  .secondary-button:hover { background: #56183108; }
  nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 6px; }
  .nav-cta:hover { background: #FCF8F012; border-color: var(--cream); }
}

@media (max-width: 960px) {
  .services { grid-template-columns: .65fr 1.35fr; gap: 32px; }
  .service-menu details:not(.fees) > summary { gap: 14px; }
  .service-name { font-size: 1.1875rem; }
  .service-rate { font-size: .875rem; }
  .values article { padding: 24px; }
  .values h2 { font-size: clamp(1.75rem, 3.6vw, 2rem); }
  .handoff-button { padding: 16px 12px; gap: 8px; font-size: .9375rem; }
  .project-layout { column-gap: 32px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  #project-form { padding: 24px; }
  #project-form > .form-grid { grid-template-columns: 1fr; }
  .project-intro h2 { font-size: 2.5rem; }
  .estimate-layout { gap: 28px; }
  .estimate-controls .input-grid { grid-template-columns: 1fr; }
  .estimate-result { padding: 24px; }
}

@media (max-width: 700px) {
  body.designer-guide { --section-space: 28px; }
  header { padding: 22px 4px; gap: 12px; }
  header .wordmark { width: 160px; }
  nav .nav-cta { font-size: .875rem; padding: 10px 12px; }
  main { gap: 18px; }
  .panel { border-radius: 16px; }
  .intro { grid-template-columns: 1fr; padding: 0; min-height: 0; }
  .intro-copy-block { padding: 34px 28px 36px; }
  .intro h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .intro .eyebrow { font-size: .75rem; margin-bottom: 18px; }
  .intro-copy { margin: 20px 0 26px; font-size: 1.0625rem; max-width: 32ch; }
  .brand-art img { height: 228px; aspect-ratio: auto; object-fit: cover; }
  .brand-art figcaption { font-size: .875rem; padding-bottom: 22px; }
  .values { padding: 8px; gap: 8px; }
  .values article { padding: 20px; min-height: 116px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); grid-template-rows: auto auto; gap: 6px 18px; border-radius: 10px; align-content: center; container: value-card / inline-size; }
  .values .eyebrow { font-size: .6875rem; margin: 0; grid-column: 1; align-self: end; }
  .values h2 { font-size: 1.625rem; grid-column: 1; grid-row: 2; align-self: start; }
  .values p:last-child { font-size: .9375rem; margin: 0; grid-column: 2; grid-row: 1/3; }
  .section-top { display: block; margin-bottom: 28px; }
  .section-top > p { margin-top: 18px; max-width: 38ch; }
  .process .section-top > p { max-width: 38ch; }
  .handoff-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .handoff-button { padding: 14px 10px; font-size: .9375rem; min-height: 54px; gap: 8px; border-radius: 10px; }
  .handoff-button span { font-size: .6875rem; }
  .handoff-roles { grid-template-columns: 1fr; gap: 18px; min-height: 0; margin-top: 22px; }
  .handoff-roles > div:first-child { padding-top: 6px; }
  .handoff-roles > div + div { padding: 20px; }
  .receiving-promise { margin-top: 24px; gap: 8px; }
  .services { grid-template-columns: 1fr; gap: 30px; }
  .service-intro .eyebrow { margin-bottom: 18px; }
  .service-intro h2 { font-size: 2.5rem; }
  .service-menu details:not(.fees) > summary { grid-template-columns: minmax(0, 1fr) 30px; gap: 10px 18px; }
  .service-name { font-size: 1.3125rem; }
  .service-rate { grid-row: 2; grid-column: 1; font-size: .9375rem; order: initial; width: auto; }
  .service-menu .plus { grid-row: 1/3; grid-column: 2; margin: 0; }
  .service-menu .fees .plus { margin-left: auto; }
  .estimator .section-top { padding-bottom: 24px; margin-bottom: 24px; }
  .planning-modes { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
  .planning-modes button { padding: 18px; min-height: 0; gap: 6px 12px; }
  .planning-modes strong { font-size: 1.25rem; }
  .choice-number { min-width: 20px; }
  .service-picker { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
  .service-picker label { padding: 16px 18px; align-items: center; }
  .service-picker input { margin: 0; }
  .estimate-layout { grid-template-columns: 1fr; gap: 28px; }
  .estimate-controls:not(:has(>div:not([hidden])))::before { font-size: 1.125rem; padding: 0 0 24px; }
  .estimate-controls .input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .estimate-controls .item-row .input-grid { grid-template-columns: 1fr; }
  .estimate-result { position: static; padding: 24px; }
  .estimate-value { font-size: 3.25rem; }
  .assisted-panel { padding: 24px; }
  .assisted-panel h3 { font-size: 1.75rem; }
  .assisted-panel p { font-size: 1rem; }
  .project-layout { grid-template-columns: 1fr; grid-template-areas: 'intro' 'form' 'coverage'; gap: 28px; }
  .project-intro h2 { font-size: 2.5rem; }
  .project .eyebrow { font-size: .75rem; letter-spacing: .1em; }
  .project-intro .intro-support { margin-top: 18px; max-width: 34ch; }
  .project-contact { margin-top: 24px; }
  #project-form { padding: 24px; margin-inline: -12px; }
  .request-mode { flex-direction: row; gap: 8px 16px; margin-bottom: 22px; }
  .form-grid, .project-extras > .form-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-extras > .form-grid > label { grid-column: 1; }
  .optional-summary small { max-width: 24ch; }
  .coverage-note p { max-width: none; }
  .request-steps { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; padding-top: 28px; }
  .request-steps strong { display: block; }
  .request-steps span { margin: 0; }
  .questions { padding-block: 28px; }
  .questions summary { font-size: 1rem; }
  footer { align-items: start; gap: 24px; padding: 28px 8px; }
}
@media (max-width: 380px) {
  body.designer-guide { --section-space: 24px; }
  header .wordmark { width: 142px; }
  nav .nav-cta { padding-inline: 10px; }
  .intro-copy-block { padding-inline: 24px; }
  .values article { padding-inline: 16px; gap: 6px 14px; }
  .values h2 { font-size: 1.5rem; }
  .values p:last-child { margin: 0; }
  .planning-modes button { padding: 16px; }
  .planning-modes strong { font-size: 1.125rem; }
  .estimate-controls .input-grid { grid-template-columns: 1fr; }
  #project-form { padding: 20px; }
}
@media (max-width: 350px) {
  header .wordmark { width: 124px; }
  nav .nav-cta { font-size: .8125rem; padding-inline: 8px; }
  .intro .eyebrow { font-size: .6875rem; }
  .handoff-button { display: block; padding: 12px 10px; }
  .handoff-button span { margin-bottom: 6px; }
  .values article { grid-template-columns: 1fr; min-height: 0; padding: 18px; }
  .values p:last-child { grid-column: 1; grid-row: 3; margin-top: 4px; }
  .planning-modes button { column-gap: 10px; }
}
@media print {
  body.designer-guide { padding: 0; }
  .estimate-layout { display: block; }
  .estimate-result { position: static; border: 0; box-shadow: none; }
}
/* Enlarged text can stack the value cards without colliding with the second column. */
@container value-card (max-width: 15rem) {
  .values .eyebrow { grid-column: 1 / -1; }
  .values h2 { grid-column: 1 / -1; grid-row: 2; text-wrap: wrap; }
  .values p:last-child { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
}
