/* Shared screen components. Document pages and exported files keep their layout. */
@media screen {
  :root { --ui-ink: #183c34; --ui-paper: #f7f5ef; --ui-surface: #fffefb; --ui-line: #d8d8cb; --ui-muted: #59645c; --ui-gold: #846443; }
  .button, .document-tool-button, .line-card .line-booking { border-radius: 3px; font-weight: 600; }
  .button:focus-visible, .line-card .line-booking:focus-visible, .document-tool-page button:focus-visible { outline: 3px solid #846443; outline-offset: 4px; }
  .brand__text strong, .law-site-brand strong { font-size: 20px; font-weight: 600; letter-spacing: .015em; }
  .brand__text small, .law-site-brand small { font-size: 9px; font-weight: 500; letter-spacing: .16em; line-height: 2; }
  .contact--consultation { display: grid; grid-template-columns: 1fr 1.1fr; width: 100%; margin: 0; padding: 96px max(48px,calc((100vw - 1240px)/2)); border: 0; border-radius: 0; background: var(--ui-ink); color: #eef0e7; box-shadow: none; }
  .contact--consultation h2 { color: #fffdf4; font-size: clamp(30px,4vw,48px); line-height: 1.5; }
  .contact--consultation .section-kicker { color: #d2bd98; }
  .contact--consultation .contact__cards > a { border: 0; border-bottom: 1px solid #ffffff30; border-radius: 0; background: transparent; color: #fffdf4; box-shadow: none; }
  .contact--consultation .contact-line { border-bottom-color: #ffffff30; color: #d6dfd4; }
  .contact--consultation .contact-line span { color: #d6dfd4; }
  .contact--consultation .map-link { border: 0; background: #ffffff0b; color: #e6d3b4; }
  body.profile-page .hero { padding-block: 72px; gap: 64px; align-items: center; background: var(--ui-paper); }
  body.profile-page .hero h1 { font-size: clamp(40px,4.6vw,64px); font-weight: 500; line-height: 1.35; letter-spacing: -.035em; }
  body.profile-page .hero__visual { height: 520px; max-height: none; border: 0; border-radius: 160px 160px 0 0; background: #e7e9df; overflow: hidden; }
  body.profile-page .hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
  .profile-page .section:not(.contact) { padding-block: 72px; border-bottom: 1px solid var(--ui-line); }
  .profile-page .section--intro { display: block; }
  .profile-page .section--intro > p { max-width: 70ch; font-size: 16px; line-height: 2; }
  .profile-page .service-grid { gap: 0 32px; }
  .profile-page .service-grid article { padding: 26px 0; border: 0; border-bottom: 1px solid var(--ui-line); background: transparent; box-shadow: none; }
  .profile-page .service-grid h3 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
  .profile-page .service-grid p { color: var(--ui-muted); font-size: 15px; line-height: 1.9; }
  .home-page .document-tool-grid { gap: 24px; }
  .home-page .document-tool-grid > article { min-width: 0; padding: 28px; border: 1px solid var(--ui-line); border-radius: 4px; background: var(--ui-surface); }
  .home-page .document-tool-grid h3 { margin-top: 0; font-size: 25px; }
  .home-page .document-tool-button { min-height: 52px; justify-content: space-between; }
  .home-page .generator-disclosure { border: 1px solid var(--ui-line); border-radius: 4px; background: var(--ui-surface); }
  .home-page .generator-disclosure > summary { padding: 22px 28px; color: var(--ui-ink); font-size: 16px; font-weight: 600; }
  .home-page .generator-disclosure[open] > summary { border-bottom: 1px solid var(--ui-line); }
  .home-page .generator-disclosure .generator__layout { padding: 28px; }
  .home-page .tool-panel input, .home-page .tool-panel select, .home-page .tool-panel textarea { min-height: 50px; border: 1px solid #b0bcb0; border-radius: 3px; background: var(--ui-surface); font-size: 16px; }
  .home-page .template-option { border: 1px solid var(--ui-line); border-radius: 3px; background: var(--ui-paper); }
  .document-tool-page { background: var(--ui-paper); color: var(--ui-ink); }
  .document-tool-page .law-site-nav { position: sticky; top: 0; z-index: 40; min-height: 100px; align-items: center; padding: 16px max(32px,calc((100vw - 1280px)/2)); gap: 24px; background: #f7f5eff2; border-bottom: 1px solid var(--ui-line); backdrop-filter: blur(16px); }
  .document-tool-page .law-site-brand { min-width: 0; gap: 12px; color: var(--ui-ink); }
  .document-tool-page .law-site-brand img { width: 49px; height: 49px; padding: 0; border: 0; border-radius: 0; }
  .document-tool-page .law-site-brand small { color: var(--ui-gold); }
  .document-tool-page .law-site-links { flex-wrap: nowrap; gap: 24px; }
  .document-tool-page .law-site-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--ui-ink); }
  .document-tool-page .law-site-links .consult-link { padding: 10px 18px; border: 1px solid var(--ui-ink); border-radius: 3px; }
  .document-tool-page .law-site-links a:hover { color: var(--ui-gold); }
  .document-tool-page .menu-toggle { display: none; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ui-line); border-radius: 0; background: transparent; color: var(--ui-ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
  .document-tool-page .tool-intro { padding: 48px max(32px,calc((100vw - 1280px)/2)); background: var(--ui-paper); gap: 48px; }
  .document-tool-page .tool-intro h1 { font-size: clamp(32px,3.4vw,48px); font-weight: 500; line-height: 1.4; letter-spacing: -.03em; }
  .document-tool-page .eyebrow { margin-bottom: 14px; color: var(--ui-gold); font-weight: 500; }
  .document-tool-page .privacy-note { max-width: 340px; padding: 16px 18px; border: 0; border-left: 2px solid #b49b77; background: #eeece4; font-size: 13px; line-height: 1.9; }
  .document-tool-page .app-shell { padding: 32px max(24px,calc((100vw - 1360px)/2)); }
  .document-tool-page .book { grid-template-columns: 4px minmax(0,1fr); min-height: 0; border: 1px solid var(--ui-line); border-radius: 4px; background: var(--ui-surface); box-shadow: none; overflow: hidden; }
  .document-tool-page .book, .document-tool-page .document-side { scroll-margin-top: 116px; }
  .document-tool-page .book-spine { background: var(--ui-ink); border-radius: 0; }
  .document-tool-page .book-page { min-height: 0; padding: 40px; border: 0; background: var(--ui-surface); }
  .document-tool-page .book-page h2 { font-size: clamp(26px,3vw,36px); font-weight: 500; line-height: 1.5; }
  .document-tool-page .page-kicker { color: var(--ui-gold); font-size: 12px; font-weight: 500; }
  .document-tool-page .page-number { margin-bottom: 22px; color: var(--ui-muted); font-size: 12px; }
  .document-tool-page .page-question { color: var(--ui-ink); font-size: 20px; font-weight: 600; line-height: 1.65; }
  .document-tool-page .group-field { gap: 8px; color: var(--ui-ink); font-size: 15px; font-weight: 600; }
  .document-tool-page .group-field input, .document-tool-page .group-field select, .document-tool-page .group-field textarea { min-height: 50px; border: 1px solid #b0bcb0; border-radius: 3px; background: var(--ui-surface); color: var(--ui-ink); font-size: 16px; font-weight: 400; }
  .document-tool-page .group-heading, .document-tool-page .group-subheading { color: var(--ui-ink); font-size: 18px; font-weight: 600; }
  .document-tool-page .group-subheading.real-estate-part, .document-tool-page .group-subheading.building-part { border-color: var(--ui-line); border-radius: 3px; background: #eeece4; color: var(--ui-ink); }
  .document-tool-page .group-subheading.real-estate-part::before { background: var(--ui-ink); }
  .document-tool-page .group-field.real-estate-field, .document-tool-page .group-field.building-field, .document-tool-page .period-option, .document-tool-page .week-card, .document-tool-page .range-control { border-color: var(--ui-line); border-radius: 3px; background: var(--ui-surface); box-shadow: none; }
  .document-tool-page .completion-card { padding: 24px; border: 1px solid var(--ui-line); border-radius: 3px; background: #eeece4; box-shadow: none; }
  .document-tool-page .page-actions button, .document-tool-page .interview-actions button, .document-tool-page .actions button { min-height: 50px; padding: 12px 20px; border-radius: 3px; font-size: 15px; font-weight: 600; }
  .document-tool-page #pageNext, .document-tool-page #generateDraft, .document-tool-page .interview-next, .document-tool-page #downloadPdf { border-color: var(--ui-ink); background: var(--ui-ink); color: #fffdf4; }
  .document-tool-page .export-files a { border-radius: 3px; background: var(--ui-paper); }
  .document-tool-page .tool-footer { padding: 40px max(32px,calc((100vw - 1280px)/2)); background: var(--ui-ink); font-size: 13px; }
  .document-tool-page .tool-footer a { font-weight: 500; }
  @media (max-width: 1100px) { .contact--consultation { padding-inline: 24px; } }
  @media (max-width: 900px) {
    .contact--consultation { grid-template-columns: 1fr; }
    .document-tool-page .law-site-nav { min-height: 80px; padding: 16px 24px; }
    .document-tool-page .book, .document-tool-page .document-side { scroll-margin-top: 96px; }
    .document-tool-page .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
    .document-tool-page .law-site-brand strong { font-size: 18px; }
    .document-tool-page .law-site-brand img { width: 38px; height: 38px; }
    .document-tool-page .law-site-links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px; border-bottom: 1px solid var(--ui-line); background: var(--ui-paper); }
    .document-tool-page .law-site-links.is-open { display: flex; }
    .document-tool-page .law-site-links a:not(.consult-link) { display: flex; }
    .document-tool-page .law-site-links .consult-link { margin-block: 8px; justify-content: center; }
    .document-tool-page .tool-intro { align-items: start; flex-direction: column; padding: 32px 24px; gap: 20px; }
    .document-tool-page .privacy-note { max-width: none; margin: 0; }
  }
  @media (max-width: 600px) {
    .brand__text strong, .document-tool-page .law-site-brand strong { font-size: 17px; }
    .brand__text small, .document-tool-page .law-site-brand small { font-size: 8px; }
    .contact--consultation { padding: 60px 20px; }
    body.profile-page .hero { padding-block: 40px; gap: 32px; }
    body.profile-page .hero h1 { font-size: 36px; line-height: 1.35; }
    body.profile-page .hero__visual { height: 360px; max-width: 340px; margin: 0 auto; border-radius: 140px 140px 0 0; }
    .profile-page .section:not(.contact) { padding-block: 48px; }
    .home-page .document-tool-grid > article { padding: 22px; }
    .home-page .generator-disclosure > summary { padding: 18px; }
    .home-page .generator-disclosure .generator__layout { padding: 18px; }
    .document-tool-page .law-site-nav { padding: 16px 20px; gap: 12px; }
    .document-tool-page .law-site-brand { gap: 8px; }
    .document-tool-page .tool-intro { padding: 28px 20px; }
    .document-tool-page .app-shell { padding: 20px 16px; }
    .document-tool-page .book-page { padding: 24px 20px; }
    .document-tool-page .book-page h2 { font-size: 25px; }
    .document-tool-page .tool-footer { padding: 30px 20px; }
  }
  @media (max-width: 360px) { .brand__text strong, .document-tool-page .law-site-brand strong { font-size: 15px; } .brand__text small, .document-tool-page .law-site-brand small { font-size: 7px; } .document-tool-page .law-site-nav { padding-inline: 16px; } .document-tool-page .menu-toggle { padding-inline: 10px; } }
}
