/* MJK Electric — Industrial Electrical page (templates/website/services/industrial-electrical.html).
   Loaded after css/home_v2.css (tokens, nav, buttons, section heads, statement and stats, the one-line bus,
   the split "live" section, ask bar, call to action, footer), css/services.css (photo header, index strip,
   check lists, city links) and css/service_detail.css (photo blocks, schedule table, questions, related
   services). See docs/home_v2.md. */

.symdefs { position: absolute; }

/* ---------------------------------------------------------- 01 capabilities */
.ind-cap { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }

/* the plant one-line: this page's drawing. A sheet of drawing paper with the utility source, the main
   switchgear bus and one tap per service; every tap is a link to its block below. */
.plant { position: relative; padding: clamp(18px, 2.2vw, 30px) clamp(16px, 2.4vw, 34px) clamp(24px, 2.8vw, 40px); border: 1px solid var(--line-2); border-radius: 6px;
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(194, 124, 46, .13), transparent 70%),
        linear-gradient(var(--line) 1px, transparent 1px) 0 -1px / 100% 48px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) -1px 0 / 48px 100%,
        var(--panel);
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9), 0 0 90px -40px rgba(226, 150, 74, .3); }
.plant__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: clamp(30px, 3.4vw, 46px); }
.plant__head .mono:first-child { color: var(--copper-hi); font-weight: 600; }
.plant__sheet { color: var(--dim); }
/* labels sit above the bus, so the bus runs over every tap */
.plant__line { position: relative; }
.plant__line .oneline__source .mono { position: absolute; left: 60px; bottom: calc(50% + 13px); white-space: nowrap; }
.plant__line .oneline__rating { position: absolute; right: 0; bottom: calc(50% + 13px); }

.plant__feeders { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(4px, .8vw, 12px); margin-top: -19px; /* taps start at the underside of the bus */ padding-left: 34px; }
.plant__feeders a { display: flex; flex-direction: column; align-items: center; height: 100%; padding-bottom: 4px; text-align: center; color: #9c6a35; transition: color .35s; }
.plant__feeders a:hover, .plant__feeders a:focus-visible { color: var(--copper-hi); }
.plant__tap { flex: none; width: 56px; height: 118px; overflow: visible; transition: filter .35s; }
.plant__feeders a:hover .plant__tap, .plant__feeders a:focus-visible .plant__tap { filter: drop-shadow(0 0 9px rgba(226, 150, 74, .55)); }
.plant__dev { display: none; flex: none; }
.plant__text { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.plant__k { font-size: .62rem; color: var(--copper-hi); }
.plant__v { min-height: 2.1em; /* two lines, so the lists under the names start level */ font-family: var(--display); font-weight: 600; font-size: clamp(1.12rem, 1.5vw, 1.45rem); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; color: #fff; text-wrap: balance; }
.plant__s { display: flex; flex-direction: column; font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6; color: var(--muted); }
.plant__feeders a:hover .plant__v, .plant__feeders a:focus-visible .plant__v { color: var(--copper-hi); }
.plant__v { transition: color .25s; }

/* a circuit: its symbol and number, then photo and copy (the .svc__ pieces of service_detail.css) */
.ckt { margin-top: clamp(64px, 8vw, 120px); }
.service .ckt[id], .service .also li[id] { scroll-margin-top: 92px; }
.ckt__head { margin-bottom: clamp(20px, 2.6vw, 34px); color: var(--copper-hi); }
.ckt__sym { flex: none; width: 34px; height: 34px; }
.service h3.svc__name { margin-bottom: 18px; }

/* circuits 04 to 07: no photo, one card each */
.also { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line-2); }
.also li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px 24px 8px; border-left: 1px solid var(--line); }
.js .also li.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease), background .4s; transition-delay: var(--d, 0s); }
.also li:first-child { border-left: 0; padding-left: 0; }
.also li:target { background: linear-gradient(180deg, rgba(234, 168, 98, .09), transparent 80%); }
.also__sym { width: 44px; height: 44px; margin-bottom: 4px; color: #9c6a35; transition: color .35s; }
.also li:hover .also__sym, .also li:target .also__sym { color: var(--copper-hi); }
.also__k { font-size: .62rem; color: var(--copper-hi); }
.also h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1.8vw, 1.7rem); line-height: 1.05; text-transform: uppercase; color: #fff; text-wrap: balance; }
.also p { font-size: .95rem; line-height: 1.6; color: var(--muted); }
.also__go { margin-top: auto; padding-top: 6px; display: inline-flex; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; color: var(--copper-hi); transition: gap .3s var(--ease); }
.also__go:hover { gap: 14px; }

/* ------------------------------------------------------ 02 live facilities */
/* the lift and the work lights sit in the left half of the photo */
.ind-live .live__media img { object-position: 30% 50%; }

/* --------------------------------------------------------- 03 arizona heat */
/* a sunlit roof on a dark page: held back a little until it is pointed at */
.ind-heat .svc__media img { filter: saturate(.88) brightness(.8); }
.ind-heat .svc__body:hover .svc__media img { filter: saturate(1) brightness(.96); }
.ind-heat .svc__copy > p + p { margin-top: 14px; }
.heat__point { color: #dcd9d4; }
.ind-heat .cites { margin: 24px 0 28px; }

/* correction factors, drawn as what is left of the conductor's ampacity */
.sched--derate tbody th small { display: block; margin-top: 7px; font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .08em; color: var(--dim); }
.sched--derate .sched__v { font-size: 1.02rem; }
.sched--derate .sched__bar { height: 5px; margin-top: 10px; }
.sched--derate td:last-child { max-width: none; }
.sched--derate tbody td { vertical-align: middle; }

/* ------------------------------------------------------------ 04 facilities */
.ind-fac { border-top: 1px solid var(--line); }
.fac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.fac__list { border-top: 1px solid var(--line-2); }
.fac__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fac__list .mono { color: var(--copper-hi); }
.fac__name { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.05; letter-spacing: .005em; text-transform: uppercase; color: #fff; text-wrap: balance; }

/* ------------------------------------------------------------- responsive */
@media (min-width: 901px) {
    .sched--derate th:first-child { width: 24%; }
    .sched--derate td { width: 38%; }
}
@media (max-width: 1100px) {
    .also { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .also li { padding-bottom: 30px; }
    .also li:nth-child(odd) { border-left: 0; padding-left: 0; }
    .also li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
    /* no room for seven taps across: the bus turns down the left side and each service becomes a row on it */
    .plant__head { margin-bottom: 18px; }
    .plant__line .oneline__bus { display: none; }
    .plant__line .oneline__source .mono { position: static; }
    .plant__feeders { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: -7px; padding-left: 20px; }
    .plant__feeders li { position: relative; }
    .plant__feeders li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(90deg, #e9a55c, #a8651f); }
    .plant__feeders li:last-child::before { bottom: 50%; }
    .plant__feeders a { flex-direction: row; align-items: center; gap: 14px; padding: 13px 0 13px 4px; text-align: left; }
    .plant__feeders a::before { content: ''; flex: none; width: clamp(18px, 4vw, 40px); height: 2px; background: currentColor; }
    .plant__tap { display: none; }
    .plant__dev { display: block; width: 44px; height: 44px; }
    .plant__text { align-items: flex-start; gap: 3px; margin-top: 0; }
    .plant__v { min-height: 0; font-size: 1.3rem; }
    /* the list under each name runs on one line, breaking only between items */
    .plant__s { display: block; }
    .plant__s span { display: inline-block; }
    .plant__s span:not(:last-child)::after { content: '\00b7'; margin: 0 .7em; }
    .fac { grid-template-columns: minmax(0, 1fr); }
    /* the factor table as cards: the two conductor ratings side by side under each temperature */
    .sched--derate tbody td:last-child { grid-column: auto; }
    .sched--derate tbody th small { display: inline; margin: 0 0 0 12px; }
}
@media (max-width: 599px) {
    .plant__sheet { display: none; }
    .plant__feeders { padding-left: 16px; }
    .plant__line .oneline__source svg { width: 36px; height: 36px; }
    .plant__line .oneline__source .mono { display: inline; }
    .plant__feeders a { gap: 10px; }
    .plant__dev { width: 38px; height: 38px; }
    .plant__v { font-size: 1.2rem; }
    .ckt__sym { width: 28px; height: 28px; }
    .also { grid-template-columns: minmax(0, 1fr); }
    .also li, .also li:first-child { padding: 24px 0 26px; border-left: 0; }
    .also li + li { border-top: 1px solid var(--line); }
    .fac__list li { grid-template-columns: 30px minmax(0, 1fr); padding: 16px 0; }
}
