/* Shared additions to the approved workshop system. No new visual theme. */
#navigation { gap: clamp(17px, 2vw, 30px); }
#navigation [aria-current="page"]:not(.nav-contact) { color: var(--blue); }
.footer-links-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; margin: 30px 0 12px; padding-top: 24px; border-top: 1px solid #798b7845; }
.footer-links-grid nav { display: grid; grid-template-columns: repeat(3, max-content); gap: 9px 36px; align-content: start; font-size: 13px; }
.footer-links-grid a { min-height: 38px; display: flex; align-items: center; }
.footer-links-grid a:hover { color: #aabaff; }
.footer-links-grid > div { display: grid; gap: 3px; font-size: 14px; }
.footer-links-grid > div > span { color: #b3beb4; font-size: 11px; margin-bottom: 6px; }
.site-footer { padding-bottom: 90px; }
.remove-area { display: block; font-size: 11px; color: var(--muted); margin: 8px 0 0 auto; padding: 7px 0; min-height: 36px; text-decoration: underline; text-underline-offset: 4px; }
.remove-area:hover { color: var(--blue); }
#project-form .field-error { color: #8b321e; font-size: 12px; line-height: 1.7; margin-top: 7px; }
#project-form [aria-invalid="true"] { border-color: #a54229; background: #fff6f1; }
#selected-chat-text { overflow-wrap: anywhere; }
.selected-example button { min-width: 44px; min-height: 44px; }

.selected-example {
  display: flex; align-items: flex-start; gap: 15px;
  border: 1px solid #bdc9ed; border-left: 3px solid var(--blue);
  background: #ecf0fc; padding: 14px 13px 14px 16px; margin-top: 20px;
}
.selected-example > div { flex: 1; min-width: 0; }
.selected-example .eyebrow { font-size: 9px; letter-spacing: .07em; color: #495e95; margin-bottom: 8px; }
.selected-example strong { display: block; font-size: 13px; font-weight: 650; }
.selected-example p { font-family: var(--serif); font-size: 25px; line-height: 1.15; margin-top: 7px; overflow-wrap: anywhere; }
.selected-example button { width: 44px; min-height: 44px; font-size: 24px; flex: none; }
.selected-example[hidden] { display: none; }
.selected-task p { font: inherit; font-size: 11px; color: var(--muted); line-height: 1.7; }
.draft-controls { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 10px; }
.draft-controls > span { font-size: 10px; color: var(--muted); }
.draft-controls .text-link { font-size: 11px; min-height: 44px; gap: 12px; }
.draft-warning { font-size: 12px; line-height: 1.8; margin-top: 15px; color: #80611b; }


/* An explicitly local assistant. Native dialog provides keyboard containment. */
/* The guide occupies its own header space; it never floats over page controls. */
.header-inner { gap: 20px; }
#navigation { order: 2; margin-left: auto; }
.chat-launcher { order: 3; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 10px 5px 5px; border: 1px solid #bbc4e8; border-radius: 4px; background: var(--paper); }
.chat-launcher:hover { border-color: var(--blue); }
.chat-launcher-icon { display: grid; place-items: center; width: 29px; height: 29px; background: var(--blue); color: white; border-radius: 50%; font-size: 19px; font-weight: 500; }
.chat-demo-label { font-size: 11px; font-weight: 650; color: var(--ink); }
@media (max-width: 1100px) {
  .chat-launcher { padding: 5px; }
  .chat-demo-label { display: none; }
}
@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .chat-launcher { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; }
  #navigation { order: 4; margin-left: 0; }
}
.demo-chat { position: fixed; inset: auto var(--gutter) 82px auto; margin: 0; width: 465px; max-width: calc(100% - 32px); max-height: calc(100dvh - 110px); padding: 26px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--paper); box-shadow: 0 15px 80px #17201e30; overflow: auto; }
.demo-chat[open] { display: flex; flex-direction: column; }
.demo-chat::backdrop { background: #17201e65; }
.chat-heading { display: flex; align-items: flex-start; gap: 15px; justify-content: space-between; }
.chat-heading .eyebrow { font-size: 9px; color: var(--blue); }
.chat-heading h2 { font-size: 32px; letter-spacing: -.045em; line-height: 1.12; margin-top: 12px; max-width: 290px; }
.chat-heading h2 em { white-space: nowrap; }
.chat-close { font-size: 29px; line-height: 1; border: 1px solid var(--line); min-width: 38px; min-height: 38px; border-radius: 50%; }
.chat-notice { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 19px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 17px; }
.chat-quick button { font-size: 10px; padding: 7px 10px; min-height: 35px; border: 1px solid #c4cbe2; border-radius: 3px; background: #eef0f8; }
.chat-quick button:hover { background: #dfe5fa; }
.chat-conversation { min-height: 90px; max-height: 230px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 8px; }
#chat-messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
#chat-messages li { padding: 12px 14px; background: #eaece5; border-radius: 2px; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
#chat-messages li > span { display: block; font-size: 9px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
#chat-messages .chat-question { background: #e6ebfd; margin-left: 25px; }
#chat-messages .chat-answer { margin-right: 12px; }
#chat-demo-form { margin-top: 17px; }
#chat-demo-form label { display: block; font-size: 11px; font-weight: 650; margin-bottom: 7px; }
#chat-demo-form label span { font-weight: 400; color: var(--muted); }
.chat-input-row { display: flex; gap: 7px; }
.chat-input-row input { margin: 0; min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid #bbc4b5; background: white; border-radius: 2px; font-size: 16px; }
.chat-input-row button { min-width: 45px; min-height: 45px; background: var(--blue); color: white; font-size: 23px; border-radius: 2px; }
.chat-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 11px; }
.chat-actions .text-link { font-size: 11px; gap: 12px; }
.chat-reset { font-size: 10px; color: var(--muted); min-height: 35px; padding: 5px 0; }
.chat-reset:hover { color: var(--blue); }
.demo-chat .field-error { color: #8b321e; font-size: 11px; line-height: 1.7; margin-top: 7px; }

@media (min-width: 901px) and (max-width: 1100px) {
  #navigation { gap: 14px; font-size: 12px; }
  #navigation .nav-contact { gap: 15px; margin-left: 0; }
  .header-inner { gap: 18px; }
  .brand { font-size: 23px; }
}
@media (max-width: 900px) {
  #navigation { gap: 0; }
  .footer-links-grid { gap: 25px; }
  .footer-links-grid nav { grid-template-columns: repeat(2, max-content); gap: 5px 25px; font-size: 12px; }
}
@media (max-width: 700px) {
  .selected-example { padding: 12px; gap: 6px; }
  .selected-example strong { font-size: 12px; }
  .footer-links-grid { grid-template-columns: 1fr; margin-top: 23px; gap: 25px; }
  .footer-links-grid > div { font-size: 13px; }
  .demo-chat { inset: auto 16px max(16px, env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: calc(100dvh - 32px - env(safe-area-inset-bottom)); padding: 20px; }
  .chat-heading h2 { font-size: 29px; }
  .chat-conversation { max-height: 25dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-chat, .chat-launcher { animation: none; transition: none; }
}

/* Contact review and deterministic receipt share the approved visual system. */
.contact-privacy { margin: 16px 0 0; font-size: 12px; line-height: 1.75; color: var(--muted); }
.summary-actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 28px; }
.contact-result { margin: 24px 0; padding: 22px; border: 1px solid var(--blue); background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.contact-result:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.contact-demo button:disabled { cursor: default; opacity: .65; }
.contact-demo input[readonly], .contact-demo textarea[readonly] { opacity: .8; }

.hero-offers { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 0; }
.hero-offers a { display: flex; align-items: baseline; gap: 10px; padding: 18px 16px 5px 0; font-size: 12px; line-height: 1.6; font-weight: 650; }
.hero-offers span { color: var(--blue); font-size: 10px; }
.hero-offers a:hover { color: var(--blue); }
@media (max-width: 900px) { .hero-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .hero-offers { grid-row: 5; margin-top: 24px; gap: 0 14px; } .hero-offers a { font-size: 11px; padding-block: 12px; padding-right: 0; border-bottom: 1px solid var(--line); } }

@media (min-width: 701px) { .hero-art { grid-column: 2; grid-row: 1; } .hero { row-gap: 24px; } }
@media (max-width: 700px) { .hero-art { grid-row: 6; } .hero-description { grid-row: 7; } .hero-signoff { grid-row: 8; } }
