/*
Theme Name: Ruinorb Studios
Description: Inspection views and a nested salvage diagram.
Version: 3.77.198
Text Domain: ruinorb
*/

:root {
    --floor: #291430; --arc: #BA53E0; --steel: #B464A3; --mark: #78E830;
    --type: #f4e5f4; --panel: #391e43; --rail: #9968a2;
    font: 18px/1.62 "Segoe UI", Arial, sans-serif;
    color: var(--type); background: var(--floor); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, figure { margin: 0; }
img { width: 100%; height: auto; display: block; }
a { color: var(--mark); text-underline-offset: .18em; }
a:hover { color: #deb0ee; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 4px; }
h1, h2 { line-height: 1.02; margin: 0; letter-spacing: -.053em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.6rem,6.8vw,6.5rem); }
h2 { font-size: clamp(1.55rem,3.1vw,2.45rem); }
.rig-skip { position: absolute; left: .9rem; top: -8rem; background: var(--floor); padding: .5em; z-index: 10; }
.rig-skip:focus { top: .9rem; }
.gantry { width: min(1280px,100% - 44px); margin: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3em 1.4em; padding: .45em 0; border-bottom: 1px solid var(--rail); }
.gantry nav { display: flex; flex-wrap: wrap; align-items: center; gap: .7em 1.6em; }
.gantry nav span { border-inline: 1px solid var(--rail); padding-inline: .85em; }
.rig-mark { width: min(100%,243px); }
.inspection-axis { width: min(1210px,100% - 44px); margin: 1.2em auto 3.9em; }
.bay-overview { border: 1px solid var(--rail); padding: .36em; }
.bay-overview img { max-height: 610px; aspect-ratio: 2.15; object-fit: cover; }
.axis-title { max-width: min(760px,100%); margin: 1.2em auto; text-align: center; }
.rig-prose { max-width: 730px; }
.rig-prose h2, .rig-prose aside { margin-top: 1.55em; }
.axis-copy { margin: 0 auto 1.1em; }
.machines-near { display: grid; grid-template-columns: minmax(0,1fr) 3.4em minmax(0,1fr); gap: .6em; align-items: start; }
.machines-near figure img { aspect-ratio: 2; object-fit: cover; }
.machines-near figcaption, .open-frame figcaption, .inspection-file figcaption { font-size: 15px; padding: .53em 0; }
.floor-axis { display: block; margin: .5em auto 0; height: 88%; border-left: 2px dashed var(--steel); }
.bay-title { width: min(1140px,100% - 44px); margin: clamp(24px,5vw,70px) auto 1.35em; }
.bay-title h1 { max-width: 16ch; }
.bay-title p { font-size: 14px; }
.system-paths { width: min(1140px,100% - 44px); margin: 0 auto 4em; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .8em 2em; }
.system-paths > nav { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: .5em 1.2em; align-items: center; padding: .5em .7em; border: 1px solid var(--rail); }
.fastener-tree { align-self: start; border-left: 3px solid var(--arc); padding-left: .8em; }
.fastener-tree > details { margin: 0 0 .6em; padding: .62em; background: var(--panel); }
.fastener-tree details details { margin: .5em 0 .17em .85em; border-left: 1px solid var(--rail); padding-left: .6em; }
summary { cursor: pointer; font-weight: 700; }
.dispatch-intro { width: min(755px,100% - 44px); margin: 0 auto 1.5em; }
.shop-filter { width: min(1100px,100% - 44px); margin: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5em .8em; padding: .7em; background: var(--panel); }
.shop-filter select { font: inherit; color: var(--type); background: var(--floor); padding: .28em; border: 1px solid var(--rail); }
.shop-filter p { margin: 0 0 0 auto; font-size: 14px; }
.dispatch-rail { list-style: none; padding: 0; width: min(1100px,100% - 44px); margin: 1.1em auto 4em; }
.dispatch-rail li { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.2fr); gap: 1em 1.4em; border-top: 1px solid var(--rail); padding: 1em 0; align-items: start; }
.dispatch-rail img { aspect-ratio: 2; object-fit: cover; }
.dispatch-rail article p { margin: .45em 0; }
.dispatch-rail article p:first-child { font-size: 14px; }
.joint-study { margin-top: .8em; padding: .66em; background: var(--panel); }
.joint-cells { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5em; margin: .5em 0; }
.joint-cells figure { padding: .24em; background: var(--floor); }
.joint-cells i { display: block; width: 70%; height: 0; border: 3px solid var(--arc); transform-origin: 12% center; margin: 14px 0 17px 10%; }
.joint-cells figure:nth-child(2) i { transform: rotate(-14deg); }
.joint-cells figcaption { font-size: 13px; line-height: 1.3; }
.running .joint-cells i { animation: install-joint 3s ease-in-out infinite; }
.running .joint-cells figure:nth-child(2) i { animation-delay: 1s; }
.running .joint-cells figure:nth-child(3) i { animation-delay: 2s; }
@keyframes install-joint { 0%,100% { transform: rotate(0deg); } 55% { transform: rotate(-14deg); border-color: var(--mark); } }
.cycle-joint, .fault-form button { background: var(--mark); color: var(--floor); border: 0; padding: .48em .7em; font: inherit; cursor: pointer; }
.open-frame, .inspection-file { width: min(1140px,100% - 44px); margin: 0 auto 4em; }
.open-frame .bay-title, .inspection-file .bay-title { width: 100%; }
.open-frame figure img { aspect-ratio: 2.23; object-fit: cover; }
.open-frame .rig-prose { margin: 0 auto; }
.inspection-file { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.77fr); gap: .7em 2em; }
.inspection-file header { grid-column: 1/-1; }
.inspection-file > figure { grid-column: 2; grid-row: 2; }
.inspection-file > div { grid-column: 1; grid-row: 2; }
.fault-bench { width: min(1070px,100% - 44px); margin: clamp(25px,5vw,71px) auto 4em; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.84fr); gap: 1.1em 1.8em; }
.fault-form { padding: 1.1em; background: var(--panel); border-top: 4px solid var(--arc); display: grid; gap: .32em; align-self: start; }
.fault-form label { font-weight: 700; }
.fault-form input:not([type=hidden]), .fault-form textarea { width: 100%; padding: .55em; font: inherit; background: var(--floor); color: var(--type); border: 1px solid var(--rail); margin-bottom: .51em; }
.fault-form button { justify-self: start; }
.fault-form p { font-size: 15px; margin: .1em 0 .5em; }
.fault-bench {display:block;width:min(800px,100% - 44px)}
.fault-bench h1 {margin-bottom:.4em}
.fault-form {border-top:0;border-left:5px solid var(--arc);border-bottom:1px solid var(--rail);padding:clamp(.85em,3vw,1.8em);gap:.72rem}
.fault-return-line {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.fault-form label {display:block;margin-bottom:.26em}
.fault-submit-line {display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap;padding-top:.4rem}
.fault-instructions {border-top:1px dashed var(--rail);margin:1.9rem 0 0;padding-top:1.2rem}
@media(max-width:470px) {
    .fault-return-line {grid-template-columns:1fr;gap:.15rem}
}
.quiet-bay, .joint-directory { width: min(760px,100% - 44px); margin: clamp(25px,6vw,74px) auto 4em; }
.joint-directory section { margin-top: 1.2em; border-top: 1px solid var(--rail); padding-top: .6em; }
.scrap-ledger { width: min(1280px,100% - 44px); margin: 0 auto; padding: 1em 0 2em; display: grid; grid-template-columns: 1.4fr .8fr .7fr; gap: .6em 1.2em; border-top: 2px dotted var(--arc); font-size: 15px; }
.scrap-ledger p { margin: .3em 0 0; }
.scrap-ledger nav { display: flex; flex-wrap: wrap; gap: .4em .9em; align-content: center; }
@media (max-width: 730px) {
    .system-paths, .dispatch-rail li, .inspection-file, .fault-bench, .scrap-ledger { grid-template-columns: minmax(0,1fr); }
    .inspection-file > figure, .inspection-file > div { grid-column: auto; grid-row: auto; }
    .machines-near { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .floor-axis { display: none; }
    .gantry nav { gap: .55em .75em; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .running .joint-cells i { animation: none; }
}
