/* Native controls, illustrated like the rest of the atlas. */
html { scrollbar-color: #9e7c46 #011925; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #011925; }
::-webkit-scrollbar-thumb { background: #9e7c46; border: 2px solid #011925; border-radius: 8px; }
button, a, summary { touch-action: manipulation; }
.button:active { transform: translateY(1px); box-shadow: inset 0 2px 8px #70532630; }
.button:focus-visible { outline: 2px solid #ffe4ad; outline-offset: 5px; }
.part-button.is-in-visit > span:last-child::after,
.service-item.is-in-visit h3::after { content: '✓'; display: inline-block; font-size: .8em; color: #efd59a; margin-left: .55em; }
.inspection-paper { transition: filter .5s, box-shadow .5s; }
.inspection-paper:focus-within { filter: drop-shadow(0 4px 14px #e7b66b1b); }
.inspection-checks li em { background-image: linear-gradient(#4a6b6b44,#4a6b6b44); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 90%; transition: background-size .6s; }
.inspection-checks li:hover em { background-size: 100% 1px; }
.paper-preferences button { position: relative; }
.paper-preferences button i { transition: background .32s, box-shadow .32s; }
.paper-preferences button:hover i,
.paper-preferences button:focus-visible i { box-shadow: 0 0 0 3px #294b5722; }
.visit-topics button { min-width: 0; max-width: 100%; }
.visit-topics button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 33ch; }
#visit-form label { position: relative; }
#visit-form label::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; transform: scaleX(0); transform-origin: left; background: #ffe1a2; box-shadow: 0 0 8px #e3af5940; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
#visit-form label:focus-within::after { transform: scaleX(1); }
#visit-form input::placeholder, #visit-form textarea::placeholder { transition: opacity .3s; }
#visit-form input:focus::placeholder, #visit-form textarea:focus::placeholder { opacity: .45; }
.faq-list summary { transition: color .25s; }
.faq-list summary:hover { color: #ffe4ac; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list summary svg { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.faq-list details[open] > p { animation: faq-ink .38s ease-out; }
@keyframes faq-ink { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* A service is a plate in the same book, with an actionable explanation. */
.care-dialog { width: min(960px, calc(100% - 40px)); padding: 52px 38px 26px; background: radial-gradient(ellipse at 15% 36%,#13394099,transparent 53%),#02212c; }
.care-dialog .dialog-close { width: 40px; height: 40px; top: 12px; right: 12px; padding: 10px; }
.service-dossier { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 32px; align-items: center; }
.service-dossier-plate { position: relative; margin: 0; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.dossier-orbits { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #c39b555b; fill: none; stroke-width: .65; transform: rotate(-12deg); }
.dossier-orbits circle:nth-child(2) { stroke-dasharray: 1 7; stroke-width: 3; }
.dossier-orbits circle:nth-child(3) { stroke-dasharray: 2 5; opacity: .55; }
.dossier-orbits path { opacity: .4; }
#service-detail-art { position: relative; width: 95%; aspect-ratio: 1; background-repeat: no-repeat; filter: drop-shadow(0 8px 12px #0008); }
.dossier-folio { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); color: #cba46c; font-size: 19px; font-style: italic; letter-spacing: .12em; }
.service-dossier-copy .dialog-eyebrow { font-size: 10px; letter-spacing: .24em; margin-bottom: 18px; }
.service-dossier-copy h2 { font-size: clamp(36px,4vw,52px); line-height: .98; margin-bottom: 19px; }
.service-dossier-copy > p { font-size: 18px; line-height: 1.43; color: #e2cfae; }
.service-dossier-copy > ul { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 18px 0 20px; font-size: 14px; color: #d1b17a; }
.service-preparation { padding-top: 14px; border-top: 1px solid #bc975841; }
.service-preparation h3 { font-size: 15px; font-style: italic; margin-bottom: 5px; }
.service-preparation p { font-family: NorthstarUI,sans-serif; font-size: 12px; line-height: 1.6; color: #c6baa1; }
.service-dossier-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 22px; }
.service-dossier-actions .button { font-size: 18px; gap: 16px; }
.service-dossier-actions .dialog-go-visit { margin: 0; font-size: 15px; }
.service-index { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px 12px; border-top: 1px solid #b28b4949; margin-top: 34px; padding-top: 16px; }
.service-index button { position: relative; padding: 10px 4px 10px 16px; min-height: 42px; text-align: left; font-size: 15px; color: #c6b695; border-bottom: 1px solid #c7a66919; transition: color .3s, border-color .3s; }
.service-index button::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; background: #e2bb79; transform: translateY(-50%) rotate(45deg) scale(0); transition: transform .3s; }
.service-index button[aria-pressed=true] { color: #ffe0a3; border-color: #e7c28365; }
.service-index button[aria-pressed=true]::before { transform: translateY(-50%) rotate(45deg) scale(1); box-shadow: 0 0 8px #e9af67; }
.service-index button:hover { color: #ffe5b9; }

/* The scene and the chosen journey commit together after image decode. */
.road-scene { isolation: isolate; }
.road-scene > .journey-image { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; animation: none; transform: scale(1.025); }
.road-scene > .journey-image.is-current { z-index: 1; }
.road-atmosphere { z-index: 3; pointer-events: none; }
.journey-exposure { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(110deg,transparent 30%,#f6d38e09 47%,#f6d38e26 50%,transparent 60%); opacity: 0; }
.journeys[aria-busy=true] .journey-tabs button:focus-visible svg { animation: loading-star 1.4s ease-in-out infinite; }
.journey-tabs button { min-height: 44px; }
.journey-tabs button > span { transition: color .3s, text-shadow .3s; }
.journey-tabs button[aria-selected=true] > span { text-shadow: 0 0 16px #deb47728,0 2px 5px var(--navy); }
.journey-tabs button:focus-visible { outline-offset: 5px; }
@keyframes loading-star { 50% { opacity: .35; transform: scale(.83); } }

.symptom-answer-label { display: flex; align-items: center; justify-content: space-between; font-size: 15px; margin: 2px 0 8px; }
.symptom-answer-label span { font-family: NorthstarUI,sans-serif; font-size: 10px; color: #c5b390; }
#symptom-question { min-height: 60px; margin-bottom: 18px; }
#symptom-answer { display: block; width: 100%; max-height: 200px; resize: vertical; border: 1px solid #b9955355; background: #00172388; color: #f2dfb9; padding: 12px 14px; font-size: 17px; line-height: 1.4; margin-bottom: 22px; }
#symptom-answer::placeholder { color: #bbaa8b; }
#symptom-answer:focus-visible { outline: 1px solid #d6ae6b; outline-offset: 3px; }
.symptom-options button { min-height: 40px; }
.brief-dialog .dialog-close, .symptom-dialog .dialog-close { width: 40px; height: 40px; padding: 9px; }

@media (max-width: 700px) {
  .care-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 36px 22px 20px; }
  .service-dossier { grid-template-columns: 1fr; gap: 15px; }
  .service-dossier-plate { width: min(72%,255px); margin: 0 auto 3px; }
  .service-dossier-copy .dialog-eyebrow { margin-bottom: 10px; }
  .service-dossier-copy h2 { font-size: 37px; margin-bottom: 14px; }
  .service-dossier-copy > p { font-size: 17px; }
  .service-dossier-copy > ul { padding: 14px 0 16px; font-size: 13px; gap: 6px 13px; }
  .service-dossier-actions { gap: 12px 15px; margin-top: 18px; }
  .service-dossier-actions .button { font-size: 17px; padding: 10px 15px; }
  .service-dossier-actions .dialog-go-visit { display: inline; margin: 0; }
  .service-index { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 14px; margin-top: 23px; padding-top: 12px; }
  .service-index button { min-height: 44px; font-size: 15px; }
  .service-preparation p { font-size: 12px; }
  .dossier-folio { font-size: 16px; }
}
@media (min-width: 621px) and (max-width: 820px) {
  #add-journey { min-height: 44px; padding-top: 6px; font-size: 13px; }
}
@media (max-width: 620px) {
  .journeys { height: auto; min-height: 490px; padding-bottom: 18px; }
  /* Keep the three left-of-centre cars inside the phone crop, including their entrance drift. */
  .road-scene { height: 270px; top: 62px; left: -8%; right: -37%; }
  .journey-bottom { position: relative; left: auto; right: auto; bottom: auto; margin: 200px 24px 0 27px; }
  #journey-list { min-height: 70px; line-height: 1.4; }
  #add-journey { min-height: 44px; padding-top: 6px; font-size: 13px; }
  .journey-tabs { gap: 9px; }
  .journey-tabs button { padding: 4px 0; }
  .visit-topics button { min-height: 38px; }
  .visit-topics button span { max-width: 25ch; }
  .paper-preferences button { min-height: 44px; }
  .more-services button { min-height: 40px; }
  .floating-motion { width: 38px; height: 38px; }
  .menu-toggle { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .road-scene > .journey-image { transform: none; }
  .faq-list details[open] > p { animation: none; }
}
.motion-paused .road-scene > .journey-image { transition: none; }

.page-hidden *, .page-hidden *::before, .page-hidden *::after { animation-play-state: paused !important; }

#add-journey:disabled { opacity: .55; cursor: progress; }
.motion-toggle:disabled { cursor: default; }
