/* Projects and subbies */
.sitenav { display: flex; gap: .4rem; max-width: 760px; margin: 0 auto; padding: .5rem 1rem 0; }
.sitenav a { flex: 1; text-align: center; padding: .55rem .5rem; border-radius: 99px; background: #fff; border: 2px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; font-size: .92rem; }
.sitenav a.on { background: #91001d; border-color: #91001d; color: #fff; }
.btn-maroon { background: #91001d; color: #fff; }
.btn-maroon:hover { background: #6e0016; }
.pj-list { display: grid; gap: .9rem; }
.pj-card { background: var(--paper); border-radius: var(--r); overflow: hidden; border-left: 8px solid var(--c); }
.pj-head { display: flex; flex-direction: column; padding: .9rem 1rem .4rem; color: var(--ink); text-decoration: none; }
.pj-head strong { font-stretch: 75%; font-size: 1.4rem; }
.pj-head span { color: var(--mute); font-size: .9rem; }
.pj-body { padding: 0 1rem 1rem; }
.pj-hero { border-bottom: 8px solid var(--c); }
.pj-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pj-actions .btn { width: 100%; min-height: 56px; }
.pj-note { margin: .5rem 0 0; }
.ss-sum { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; color: var(--steel); }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
.dot.ok, .ss.ok { --s: #1d6b45; } .dot.pend, .ss.pend { --s: #b26a00; } .dot.bad, .ss.bad { --s: #a32d2d; } .ss.na { --s: #6b7278; }
.dot { background: var(--s); }
.ss { display: inline-block; font-size: .78rem; font-weight: 800; padding: .2rem .6rem; border-radius: 99px; color: var(--s); background: color-mix(in srgb, var(--s) 13%, #fff); white-space: nowrap; }
.chip-btn { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: .4rem .8rem; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.chip-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pj-trades { list-style: none; margin: .75rem 0 0; padding: 0; }
.pj-trades > li + li { border-top: 1px solid var(--line); }
.pj-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: none; border: 0; font: inherit; text-align: left; padding: .7rem 0; cursor: pointer; color: var(--ink); }
.pj-row b { display: block; }
.pj-row small, .sb-top small { display: block; color: var(--mute); font-size: .86rem; }
.pj-more { padding: 0 0 .8rem; }
.field.inline { margin: 0; }
.field.grow { flex: 1 1 200px; }
.sb-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .6rem; }
.sb-list > li { background: var(--paper); border-radius: var(--r); padding: .8rem 1rem; }
.sb-top { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.sb-call { display: flex; gap: .4rem; }
.sb-contact { margin: .35rem 0; font-size: .92rem; }
.sb-sites { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0; }
.sb-form { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .5rem; }
@media (max-width: 420px) { .pj-actions { grid-template-columns: 1fr; } }

/* Quick action icons */
.actions .action { position: relative; overflow: hidden; padding-top: 4.6rem; min-height: 132px; }
.actions .action::before { content: ""; position: absolute; top: 1rem; left: 1rem; width: 2.9rem; height: 2.9rem; border-radius: 12px; background: rgba(255,255,255,.14) var(--ic) center / 62% no-repeat; }
.actions .action::after { content: ""; position: absolute; right: -.9rem; bottom: -.9rem; width: 6.2rem; height: 6.2rem; background: var(--ic) center / contain no-repeat; opacity: .1; transform: rotate(-12deg); pointer-events: none; }
.actions .action.red::before { background-color: rgba(255,255,255,.2); }
.actions .action strong, .actions .action span { position: relative; z-index: 1; }
.actions .action[href="#prestart"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E"); }
.actions .action[href="#incident"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.actions .action[href="#chat"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.8 7L3 21l2-5.5A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8 11h.01M12 11h.01M16 11h.01'/%3E%3C/svg%3E"); }
.actions .action[href="#schedule"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M7 14h2M11 14h2M15 14h2M7 17h2M11 17h2'/%3E%3C/svg%3E"); }
.actions .action[href="#equipment"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h13v7H2z'/%3E%3Cpath d='M15 12h7'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='11' cy='18' r='2'/%3E%3C/svg%3E"); }
.actions .action[href="#leave"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 10h4a2 2 0 0 1 0 4h-4l-4 7H9l2-7H7l-2 2H2l2-4-2-4h3l2 2h4L9 3h3z'/%3E%3C/svg%3E"); }
.actions .action[href="#po"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16l-3-2-2 2-2-2-2 2-2-2z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E"); }
.actions .action[href="#register"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3Cpath d='M16 3.1a4 4 0 0 1 0 7.8M21 21v-2a4 4 0 0 0-3-3.9'/%3E%3C/svg%3E"); }
.actions .action[href="#records"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Crect x='3' y='9' width='18' height='8' rx='2'/%3E%3Cpath d='M6 14h12v7H6z'/%3E%3C/svg%3E"); }

/* Projects / Subbies tiles */
.sitenav { gap: .6rem; padding: .75rem 1rem 0; }
.sitenav a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-content: center; text-align: left;
  min-height: 66px; padding: .65rem .85rem; border-radius: 14px; border: 0; color: #fff; font-stretch: 75%; font-weight: 800; font-size: 1.15rem; line-height: 1.1;
  position: relative; overflow: hidden; background: #1d2023; box-shadow: 0 6px 16px -10px rgba(0,0,0,.5); }
.sitenav a::before { content: ""; grid-row: 1 / 3; align-self: center; width: 2.6rem; height: 2.6rem; border-radius: 11px; background: rgba(255,255,255,.15) var(--ic) center / 60% no-repeat; }
.sitenav a::after { content: var(--sub); grid-column: 2; font-stretch: 100%; font-weight: 500; font-size: .78rem; opacity: .8; margin-top: .15rem; }
.sitenav a[href$="#projects"] { background: #91001d; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V8l7-5 7 5v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3Cpath d='M9 11h6'/%3E%3C/svg%3E"); --sub: "Plans and site info"; }
.sitenav a[href$="#subbies"] { background: #1d2023; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 18h20'/%3E%3Cpath d='M4 18v-2a8 8 0 0 1 16 0v2'/%3E%3Cpath d='M10 8V5h4v3'/%3E%3Cpath d='M8 18v-4M16 18v-4'/%3E%3C/svg%3E"); --sub: "Contacts and SSSPs"; }
.sitenav a[href="portal.html#today"] { flex: 0 0 auto; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322262a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); --sub: "Back"; }
.sitenav a[href="portal.html#today"]::before { background-color: var(--concrete); width: 2.2rem; height: 2.2rem; }
.sitenav a.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor; }
.sitenav a[href$="#projects"].on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #91001d; }
.sitenav a[href$="#subbies"].on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1d2023; }
.sitenav a:active { transform: scale(.98); }
@media (max-width: 420px) { .sitenav a { font-size: 1.05rem; padding: .6rem .7rem; column-gap: .55rem; } .sitenav a::before { width: 2.3rem; height: 2.3rem; } }
.sitenav a { min-width: 0; }
.sitenav a[href="portal.html#today"] { grid-template-columns: auto; grid-template-rows: auto; font-size: 0; padding: .65rem; flex: 0 0 66px; justify-items: center; }
.sitenav a[href="portal.html#today"]::after { content: none; }
.sitenav a[href="portal.html#today"]::before { grid-row: 1; }

/* Safety docs */
.sitenav a[href$="#docs"] { background: #2b4a73; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); --sub: "Data sheets, SOPs, 3604"; }
.sitenav a[href$="#docs"].on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #2b4a73; }
@media (max-width: 600px) {
  .sitenav:has(a:nth-child(3)) a::after { content: none; }
  .sitenav:has(a:nth-child(3)) a { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: .3rem; font-size: .95rem; padding: .6rem .4rem; }
  .sitenav:has(a:nth-child(3)) a::before { grid-row: 1; }
  .sitenav:has(a:nth-child(3)) a[href="portal.html#today"] { flex: 0 0 52px; }
}
.doc-sec h2 { font-size: 1.2rem; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-row { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; color: var(--ink); text-decoration: none; }
.doc-t { flex: 1; min-width: 0; }
.doc-t b { display: block; }
.doc-t small { color: var(--mute); }
.doc-ic { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--c) var(--ic) center / 58% no-repeat; }
.doc-sds { --c: #b26a00; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6v5l5 9a2 2 0 0 1-2 3H6a2 2 0 0 1-2-3l5-9z'/%3E%3Cpath d='M7 15h10'/%3E%3C/svg%3E"); }
.doc-sop { --c: #1d6b45; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12'/%3E%3Cpath d='M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.doc-std { --c: #2b4a73; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5a2 2 0 0 1 2-2h14v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M8 7h8M8 11h6'/%3E%3C/svg%3E"); }