/* D-085: Room 05 only. Dominant route plate, companion lining study, clear exit. */
#room-function {
  position: relative; background: radial-gradient(ellipse at 50% 15%, #70453724, transparent 65%), #35131b;
  border-block: 6px solid #261017;
  box-shadow: inset 0 1px #b9a17d80, inset 0 -1px #b9a17d80;
}
#room-function::before { content: ""; position: absolute; inset: 17px; border: 1px solid #b9a17d33; pointer-events: none; }
#room-function > header { margin-bottom: 30px; }
#room-function > header > .an-marker { display: flex; align-items: center; gap: 16px; color: #d8c7aa; }
#room-function > header > .an-marker::after { content: ""; height: 1px; width: 80px; background: #b9a17d80; }
#room-function h2 { text-wrap: balance; }
#room-function .an-deck { color: #e2d4be; max-width: 52ch; }
#room-function .an-conditioning-plate { max-width: 860px; }
#room-function .an-plate-mount {
  padding: clamp(12px,1.3vw,20px); border: 1px solid #b9a17d;
  outline: 3px solid #211015; outline-offset: 1px; background: #f2ead9;
  box-shadow: inset 0 0 0 3px #ded0b8, 0 12px 24px #11080c55;
  transition: box-shadow .18s ease;
}
#room-function .an-plate-mount:hover { box-shadow: inset 0 0 0 3px #ded0b8, 0 16px 30px #11080c80; }
#room-function figcaption { padding-top: 24px; border-bottom: 0; }
#room-function figcaption > .an-marker { color: #d8c7aa; font-size: .65rem; letter-spacing: .1em; }
#room-function figcaption h3 { margin: 9px 0 12px; font-size: 1.65rem; text-wrap: balance; }
#room-function figcaption .an-credit { border-top: 1px solid #b9a17d55; padding-top: 14px; margin-top: 20px; font-size: .875rem; line-height: 1.6; color: #d8c7aa; }
#room-function .an-look-closer { font: 400 1rem/1.4 var(--serif); padding-block: 6px; }
#room-function .an-conditioning-key { gap: 28px; }
#room-function .an-conditioning-key strong { color: #f2ead9; font-size: 1.25rem; }
#room-function .an-lining-salon {
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: start; gap: clamp(26px,4vw,52px);
  border-top: 1px solid #b9a17d80; padding-top: 32px; margin-top: 32px;
}
#room-function #airwayLiningPlate { max-width: 400px; }
#room-function #airwayLiningPlate h3 { font-size: 1.45rem; }
#room-function .an-lining-note > .an-marker { color: #d8c7aa; }
#room-function .an-lining-note h3 { margin-top: 12px; font-size: 1.8rem; }
#room-function .an-small-note { border-left: 1px solid #b9a17d; color: #e2d4be; }
#room-function .an-function-bridge { padding-top: 26px; border-top-color: #b9a17d80; }
#room-function .an-function-topics { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(26px,4vw,52px); }
#room-function .an-function-topics h3 { margin-top: 0; font-size: 1.6rem; }
#room-function .an-function-topics p { margin-bottom: 0; }
#room-function .an-related-links { gap: 4px 20px; margin-top: 16px; }
#room-function .an-references { border-top: 1px solid #b9a17d55; padding-top: 18px; }
#room-function .an-final-note { margin-top: 30px; padding-top: 26px; border-top: 1px solid #b9a17d80; max-width: 65ch; }
#room-function .an-final-note > .an-marker { color: #d8c7aa; }
#room-function .an-final-note h3 { font-size: 1.9rem; }
#room-function :is(a,button,summary):focus-visible { outline: 3px solid #f5d28b; outline-offset: 5px; }
@media (max-width: 900px) {
  #room-function .an-lining-salon { grid-template-columns: 1fr; gap: 24px; }
  #room-function #airwayLiningPlate { max-width: 480px; }
}
@media (max-width: 600px) {
  #room-function { background: #35131b; }
  #room-function::before { inset: 9px; border-inline: 0; }
  #room-function .an-plate-mount { padding: 10px; }
  #room-function .an-function-topics { grid-template-columns: 1fr; gap: 24px; }
  #room-function figcaption h3 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { #room-function .an-plate-mount { transition: none; } }
