/* Facility page (redesign 19 Oct 2026): a walk through the rooms, an equipment schedule set out like a drawing schedule,
   and a photo wall. Loaded after site.css and theme-b.css on facility.html only. */
.fx { --plate: #e9e4d6; --plate-line: #cfc7b3; --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace; }
.fx section { padding-block: 72px; }
.fx .eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); display: flex; gap: .6rem; align-items: center; margin: 0 0 .9rem; }
.fx .eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.fx h2 { text-wrap: balance; max-width: 22ch; margin: 0 0 1rem; }
.fx .intro { color: var(--ink-2); max-width: 62ch; font-size: 1.06rem; line-height: 1.65; margin: 0; }

/* hero */
.fx-hero { background: var(--bg); padding-block: 40px 56px !important; }
.fx-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }
.fx-hero .crumb { font-size: .9rem; color: var(--muted); text-decoration: none; }
.fx-hero .crumb:hover { color: var(--green); }
.fx-hero h1 { color: #0f1a13; margin: .8rem 0 1.1rem; max-width: 13ch; text-wrap: balance; }
.fx-hero h1 em { font-style: italic; font-weight: 600; color: var(--green); }
.fx-hero .lead { font-size: 1.1rem; line-height: 1.65; max-width: 46ch; margin: 0 0 1.5rem; }
.fx-hero .acts { display: flex; gap: .7rem; flex-wrap: wrap; }
.fx-shot { position: relative; margin: 0; }
.fx-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; box-shadow: 0 30px 60px -30px rgba(15, 30, 18, .45); }
.fx-shot .second { position: absolute; width: 38%; aspect-ratio: 3 / 4; right: -14px; bottom: -34px; border: 6px solid var(--bg); border-radius: 8px; box-shadow: none; }

/* nameplate: the facility's rating plate, riveted like the ones on a drive or panel */
.plate { position: absolute; left: -22px; bottom: -30px; width: min(300px, 62%); background: var(--plate); border: 1px solid var(--plate-line); border-radius: 4px; padding: 14px 18px 12px; font-family: var(--mono); font-size: .72rem; color: #2c312b; box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); }
.plate::before, .plate::after { content: ""; position: absolute; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #b5ad98; box-shadow: 0 0 0 1px #9d957f inset; }
.plate::before { left: 7px; } .plate::after { right: 7px; }
.plate b { display: block; font-size: .78rem; letter-spacing: .12em; border-bottom: 1px solid var(--plate-line); padding-bottom: 6px; margin-bottom: 6px; color: var(--green-ink); }
.plate dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.plate dt { color: #6b6f63; text-transform: uppercase; letter-spacing: .06em; }
.plate dd { margin: 0; }

/* the walk */
.fx-walk { background: var(--paper); border-block: 1px solid var(--line); }
.stops { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 4.5rem; counter-reset: stop; }
.stop { display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; position: relative; }
.stop:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 64px; bottom: -4.5rem; border-left: 2px dashed var(--plate-line); }
.stop .no { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--green); color: var(--green); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; background: var(--paper); position: relative; z-index: 1; }
.stop .pics { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; }
.stop .pics img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; aspect-ratio: 4 / 3; }
.stop .pics.one { grid-template-columns: 1fr; }
.stop .pics.one img { aspect-ratio: 16 / 10; }
.stop .pics .side { display: grid; gap: .6rem; grid-template-rows: 1fr 1fr; }
.stop .pics .side img { aspect-ratio: auto; min-height: 0; }
.stop h3 { margin: .2rem 0 .7rem; font-size: 1.55rem; }
.stop p { color: var(--ink-2); line-height: 1.65; margin: 0 0 1rem; }
.stop ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .95rem; }
.stop li { padding-left: 1.2rem; position: relative; }
.stop li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); }

/* video band */
.fx-film { background: var(--green-ink); color: #e6efe7; }
.fx-film .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; align-items: center; }
.fx-film h2 { color: #fff; }
.fx-film .eyebrow { color: #9fd3a8; }
.fx-film p { color: #c9dccc; line-height: 1.65; max-width: 44ch; }
.fx-film video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; display: block; }

/* equipment schedule */
.sched-wrap { margin-top: 2rem; overflow-x: auto; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); }
table.sched { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 760px; }
.sched caption { caption-side: bottom; text-align: left; padding: .7rem 1rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); border-top: 1px solid var(--ink); letter-spacing: .04em; }
.sched th { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: .75rem 1rem; background: var(--ink); color: #f3efe4; font-weight: 600; }
.sched td { padding: .9rem 1rem; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.sched tr:hover td { background: #fbf8ef; }
.sched td.tag-no { font-family: var(--mono); font-weight: 700; color: var(--green); white-space: nowrap; width: 1%; }
.sched td b { font-family: Manrope, Inter, sans-serif; display: block; }
.sched td.mk { color: var(--ink-2); }
.sched td.pr { color: var(--ink-2); font-size: .92rem; }

/* photo wall (keeps .gallery so the site's lightbox works) */
.gallery.fx-wall { display: block; columns: 3 260px; column-gap: .8rem; margin-top: 2rem; }
.gallery.fx-wall figure { aspect-ratio: auto; break-inside: avoid; margin: 0 0 .8rem; border-radius: 6px; }
.gallery.fx-wall img { height: auto; }
.gallery.fx-wall figcaption { font-weight: 500; font-size: .82rem; opacity: 0; transition: opacity .25s; }
.gallery.fx-wall figure:hover figcaption, .gallery.fx-wall figure:focus-within figcaption { opacity: 1; }
@media (hover: none) { .gallery.fx-wall figcaption { opacity: 1; } }

/* visit */
.fx-visit .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.fx-steps { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 1.1rem; counter-reset: s; }
.fx-steps li { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; counter-increment: s; }
.fx-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); font-weight: 700; display: grid; place-items: center; font-family: var(--mono); font-size: .85rem; }
.fx-steps b { display: block; font-family: Manrope, Inter, sans-serif; }
.fx-steps span { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.addr { border-left: 3px solid var(--green); padding: .3rem 0 .3rem 1rem; margin: 0 0 1.4rem; line-height: 1.6; }
.fx-visit .map { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.fx-visit .map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

@media (max-width: 960px) {
  .fx section { padding-block: 52px; }
  .fx-hero .wrap, .fx-film .wrap, .fx-visit .wrap { grid-template-columns: 1fr; gap: 2.2rem; }
  .fx-shot { margin-bottom: 40px; }
  .stop { grid-template-columns: 56px minmax(0, 1fr); }
  .stop .pics { grid-column: 2; }
  .stop .txt { grid-column: 2; }
  .stop .no { grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  .fx-shot .second { display: none; }
  .plate { position: relative; left: auto; bottom: auto; width: auto; margin-top: -40px; margin-inline: 12px; }
  .fx-shot { margin-bottom: 0; }
  .stop { grid-template-columns: 1fr; gap: 1rem; }
  .stop::after { display: none; }
  .stop .no, .stop .pics, .stop .txt { grid-column: 1; grid-row: auto; }
  .stop .no { width: 44px; height: 44px; font-size: .85rem; }
  .stops { gap: 3rem; }
  .stop .pics { grid-template-columns: 1fr; }
  .stop .pics .side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .stop .pics .side img { aspect-ratio: 4 / 3; }
  .gallery.fx-wall { columns: 2; column-gap: .5rem; } .gallery.fx-wall figure { margin-bottom: .5rem; }
  table.sched { min-width: 0; }
  .sched thead { display: none; }
  .sched tr { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; padding: .9rem 1rem; border-top: 1px solid var(--line); }
  .sched td { border: 0; padding: 0; }
  .sched td.tag-no { grid-row: span 3; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .gallery.fx-wall img, .gallery.fx-wall figcaption { transition: none; } }
