@charset "utf-8";
/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #F8F3E7;
  color: #2F3437;
  font-size: 16px;
}
a {
  text-decoration: none;
  color: inherit;
}
/* ═══════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════ */
.breadcrumb {
  background-color: #e8e2d6;
  padding: 10px 24px;
  font-size: 0.85rem;
  color: #555;
  border-bottom: 1px solid #d5cfc5;
}
.breadcrumb a {
  color: #1D3557;
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.bc-sep {
  margin: 0 6px;
  color: #aaa;
}
.bc-current {
  color: #2F3437;
  font-weight: 600;
}
/* ═══════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════ */
.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
/* ═══════════════════════════════════════
   PAGE TITLE BLOCK
═══════════════════════════════════════ */
.page-title-block {
  background: linear-gradient(135deg, #1D3557 0%, #2a4d73 100%);
  color: #F8F3E7;
  border-radius: 8px;
  padding: 36px 32px;
  margin-bottom: 28px;
}
.page-title-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F5B041;
  margin-bottom: 8px;
}
.page-title-main {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-title-sub {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 680px;
}
/* ═══════════════════════════════════════
   QUICK NAV
═══════════════════════════════════════ */
.quick-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.qnav-card {
  background: #ffffff;
  border: 1px solid #e0dbd2;
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  color: #1D3557;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.qnav-card:hover {
  border-color: #2a4d73;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.qnav-card.active {
  border-color: #2a4d73;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  background-color: #1D3557;
  color: #fff;
}
.qnav-card.active .qnav-icon {
  filter: brightness(1.3);
}
.qnav-icon {
  font-size: 1.7rem;
  line-height: 1;
}
/* ═══════════════════════════════════════
   ARTICLE / SECTION
═══════════════════════════════════════ */
.section-art-txt {
  margin: 0 0 28px 0;
  padding: 28px 28px 24px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.section-art-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1D3557;
  border-left: 4px solid #E63946;
  padding-left: 12px;
  margin-bottom: 20px;
  line-height: 1.3;
}
.section-art-txt > p {
  font-size: 1rem;
  color: #2F3437;
  line-height: 1.6;
  margin-bottom: 16px;
}
.sub-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #1D3557;
  margin: 24px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0dbd2;
}
/* ═══════════════════════════════════════
   DEVICE CARD (main wrapper for each relay)
═══════════════════════════════════════ */
.device-card {
  border: 1px solid #e0dbd2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.dc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}
.dc-hdr--blue {
  background: linear-gradient(135deg, #1D3557, #2a4d73);
  color: #F8F3E7;
}
.dc-hdr--green {
  background: linear-gradient(135deg, #2E7D52, #388E5C);
  color: #F8F3E7;
}
.dc-hdr--purple {
  background: linear-gradient(135deg, #6A0DAD, #7B1FBE);
  color: #F8F3E7;
}
.dc-hdr--slate {
  background: linear-gradient(135deg, #455A64, #546e7a);
  color: #F8F3E7;
}
.dc-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.dc-title {
  flex: 1;
}
.dc-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3px;
}
.dc-title p {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
}
.dc-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex-shrink: 0;
}
.dc-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
/* ═══════════════════════════════════════
   STATE COMPARE (start vs run side by side)
═══════════════════════════════════════ */
.state-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sc-col {
  padding: 16px 18px;
}
.sc-col--start {
  background: #FEF9EC;
  border-right: 1px solid #e0dbd2;
}
.sc-col--run {
  background: #F0F7F4;
}
.sc-phase {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-phase--start {
  color: #D4890A;
}
.sc-phase--run {
  color: #2E7D52;
}
.sc-phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sc-phase-dot--start {
  background: #D4890A;
}
.sc-phase-dot--run {
  background: #2E7D52;
}
/* ── Circuit mini-diagram ── */
.circuit-mini {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 8px 0 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  flex-wrap: wrap;
  gap: 4px;
}
.cm-block {
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid;
  white-space: nowrap;
}
.cm-block--line {
  background: #EBF2FA;
  border-color: #1D3557;
  color: #1D3557;
}
.cm-block--coil {
  background: #FEF9EC;
  border-color: #D4890A;
  color: #D4890A;
}
.cm-block--cap {
  background: #F3EFF8;
  border-color: #6A0DAD;
  color: #6A0DAD;
}
.cm-block--wind {
  background: #ECEFF1;
  border-color: #455A64;
  color: #455A64;
}
.cm-block--closed {
  background: #F0F7F4;
  border-color: #2E7D52;
  color: #2E7D52;
}
.cm-block--open {
  background: #FEF0F0;
  border-color: #E63946;
  color: #E63946;
}
.cm-block--ptc-lo {
  background: #EBF2FA;
  border-color: #1D3557;
  color: #1D3557;
}
.cm-block--ptc-hi {
  background: #FEF0F0;
  border-color: #E63946;
  color: #E63946;
}
.cm-arrow {
  font-size: 0.75rem;
  color: #aaa;
  padding: 0 2px;
}
.sc-detail {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #2F3437;
}
.sc-detail strong {
  color: #1D3557;
}
.sc-detail ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sc-detail ul li {
  padding-left: 14px;
  position: relative;
  font-size: 0.84rem;
  line-height: 1.45;
}
.sc-detail ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #888;
}
/* ═══════════════════════════════════════
   DEVICE SPECS ROW
═══════════════════════════════════════ */
.dc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid #e0dbd2;
  background: #fdfcfa;
}
.dc-spec {
  flex: 1;
  min-width: 130px;
  padding: 12px 16px;
  border-right: 1px solid #e0dbd2;
}
.dc-spec:last-child {
  border-right: none;
}
.dc-spec-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  display: block;
  margin-bottom: 4px;
}
.dc-spec-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1D3557;
  line-height: 1.4;
}
/* ═══════════════════════════════════════
   FAULT TABLE ROWS (colour-coded)
═══════════════════════════════════════ */
.fault-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.fault-card {
  border-radius: 6px;
  padding: 12px 14px;
  border: 1px solid;
}
.fault-card--weld {
  background: #FEF0F0;
  border-color: #E63946;
}
.fault-card--open {
  background: #FEF9EC;
  border-color: #D4890A;
}
.fault-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  display: block;
}
.fault-label--weld {
  color: #E63946;
}
.fault-label--open {
  color: #D4890A;
}
.fault-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1D3557;
  margin-bottom: 4px;
}
.fault-detail {
  font-size: 0.83rem;
  line-height: 1.5;
  color: #3a3f42;
}
/* ═══════════════════════════════════════
   PTC RESISTANCE SCALE
═══════════════════════════════════════ */
.ptc-scale {
  display: flex;
  align-items: stretch;
  border: 1px solid #e0dbd2;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}
.ptc-col {
  flex: 1;
  padding: 14px 16px;
}
.ptc-col--cold {
  background: #EBF2FA;
  border-right: 1px solid #e0dbd2;
}
.ptc-col--hot {
  background: #FEF0F0;
}
.ptc-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.ptc-col-label--cold {
  color: #1D3557;
}
.ptc-col-label--hot {
  color: #E63946;
}
.ptc-ohm {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.ptc-ohm--cold {
  color: #1D3557;
}
.ptc-ohm--hot {
  color: #E63946;
}
.ptc-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #3a3f42;
}
.ptc-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 12px 0;
}
.ptc-tl-step {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
}
.ptc-tl-step--a {
  background: #EBF2FA;
  border-radius: 6px 0 0 6px;
}
.ptc-tl-step--b {
  background: #FEF9EC;
}
.ptc-tl-step--c {
  background: #FEF0F0;
}
.ptc-tl-step--d {
  background: #ECEFF1;
  border-radius: 0 6px 6px 0;
}
.ptc-tl-arrow {
  font-size: 1rem;
  color: #aaa;
  padding: 0 2px;
  flex-shrink: 0;
}
.ptc-tl-icon {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 3px;
}
.ptc-tl-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1D3557;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}
.ptc-tl-desc {
  font-size: 0.72rem;
  color: #555;
  line-height: 1.3;
}
/* ═══════════════════════════════════════
   CENTRIFUGAL SWITCH VISUAL
═══════════════════════════════════════ */
.csw-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.csw-state {
  border-radius: 8px;
  padding: 16px;
  border: 2px solid;
  text-align: center;
}
.csw-state--rest {
  background: #F0F7F4;
  border-color: #2E7D52;
}
.csw-state--spin {
  background: #FEF0F0;
  border-color: #E63946;
}
.csw-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.csw-label--rest {
  color: #2E7D52;
}
.csw-label--spin {
  color: #E63946;
}
.csw-graphic {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.csw-state-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1D3557;
  display: block;
  margin-bottom: 4px;
}
.csw-state-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #3a3f42;
}
/* ═══════════════════════════════════════
   REGULATION BLOCKS
═══════════════════════════════════════ */
.reg-block {
  border: 1px solid #e0dbd2;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.reg-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.reg-hdr--blue {
  background-color: #1D3557;
  color: #F8F3E7;
}
.reg-hdr--green {
  background-color: #2E7D52;
  color: #F8F3E7;
}
.reg-hdr--gold {
  background-color: #D4890A;
  color: #fff;
}
.reg-hdr--slate {
  background-color: #455A64;
  color: #F8F3E7;
}
.reg-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.reg-block-header h4 {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
  line-height: 1.3;
}
.reg-block-body {
  padding: 18px 20px;
  background-color: #fdfcfa;
}
.reg-block-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2F3437;
  margin-bottom: 12px;
}
.reg-block-body p:last-child {
  margin-bottom: 0;
}
/* ═══════════════════════════════════════
   CHECK / BULLET LISTS
═══════════════════════════════════════ */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.check-list li {
  font-size: 0.95rem;
  color: #2F3437;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2E7D52;
  font-weight: 700;
}
/* ═══════════════════════════════════════
   CALLOUT
═══════════════════════════════════════ */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 16px;
}
.callout--tip {
  background-color: #EBF2FA;
  border-left: 4px solid #1D3557;
}
.callout--warn {
  background-color: #FEF9EC;
  border-left: 4px solid #F5B041;
}
.callout--red {
  background-color: #FEF0F0;
  border-left: 4px solid #E63946;
}
.callout--green {
  background-color: #F0F7F4;
  border-left: 4px solid #2E7D52;
}
.callout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.callout strong {
  display: block;
  font-size: 0.9rem;
  color: #1D3557;
  margin-bottom: 4px;
}
.callout p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #2F3437;
  margin: 0;
}
/* ═══════════════════════════════════════
   COMPARISON TABLE
═══════════════════════════════════════ */
.data-table-wrap {
  overflow-x: auto;
  margin-bottom: 4px;
}
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.styled-table th {
  background-color: #1D3557;
  color: #F8F3E7;
  padding: 10px 12px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.styled-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e8e2d6;
  color: #2F3437;
  vertical-align: top;
}
.styled-table tbody tr:nth-child(even) {
  background-color: #f9f7f2;
}
.styled-table tbody tr:hover {
  background-color: #EBF2FA;
}
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill--blue {
  background: #EBF2FA;
  color: #1D3557;
  border: 1px solid #1D3557;
}
.pill--green {
  background: #F0F7F4;
  color: #2E7D52;
  border: 1px solid #2E7D52;
}
.pill--purple {
  background: #F3EFF8;
  color: #6A0DAD;
  border: 1px solid #6A0DAD;
}
.pill--slate {
  background: #ECEFF1;
  color: #455A64;
  border: 1px solid #455A64;
}
.pill--gold {
  background: #FEF9EC;
  color: #D4890A;
  border: 1px solid #D4890A;
}
.pill--red {
  background: #FEF0F0;
  color: #E63946;
  border: 1px solid #E63946;
}
.pill--yes {
  background: #F0F7F4;
  color: #2E7D52;
  border: 1px solid #2E7D52;
}
.pill--no {
  background: #FEF0F0;
  color: #E63946;
  border: 1px solid #E63946;
}

/* QUIZ NAV */
.quiz-nav-container {
  text-align: center;
  margin-bottom: 0.75rem;
}

.quiz-nav {
  display: flex;
  justify-content: center;
}

.quiz-nav-btn {
  display: inline-block;
  background-color: #E63946;
  color: #F8F3E7;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.18);
  border: 2px solid transparent;
}

.quiz-nav-btn:hover {
  background-color: #C92F3B;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(29, 53, 87, 0.24);
}

.quiz-nav-btn:focus {
  outline: none;
  border-color: #F1C40F;
}

/* FOOTER NAV */
.main-footer-nav {
  background-color: #1D3557;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  flex-wrap: wrap;
}
.main-footer-nav-btn {
  display: inline-block;
  background-color: #F5B041;
  color: #2F3437;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 4px;
  transition: background-color 0.2s;
  text-decoration: none;
}
.main-footer-nav-btn:hover {
  background-color: #F8C471;
}
/* ═══════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════ */
.site-footer {
  background-color: #2F3437;
  color: #F8F3E7;
  padding: 40px 24px 24px;
}
.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #F1C40F;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col {
  text-align: left;
  color: #F1C40F;
  margin: 0 50px;
}
.footer-col a {
  color: #F1C40F;
  text-decoration: underline;
  transition: opacity 0.2s;
}
.footer-col a:hover {
  opacity: 0.5;
}
.footer-col h3 {
  font-size: 1.05rem;
  color: #F1C40F;
  margin-bottom: 10px;
}
.footer-col p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
}
.footer-credit {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .page-title-main {
    font-size: 1.5rem;
  }
  .page-title-block {
    padding: 24px 20px;
  }
  .section-art-txt {
    padding: 20px 16px;
  }
  .section-art-title {
    font-size: 1rem;
  }
  .quick-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
  .state-compare {
    grid-template-columns: 1fr;
  }
  .sc-col--start {
    border-right: none;
    border-bottom: 1px solid #e0dbd2;
  }
  .fault-grid {
    grid-template-columns: 1fr;
  }
  .csw-diagram {
    grid-template-columns: 1fr;
  }
  .dc-badge {
    display: none;
  }
  .ptc-scale {
    flex-direction: column;
  }
  .ptc-col--cold {
    border-right: none;
    border-bottom: 1px solid #e0dbd2;
  }
}
@media (max-width: 480px) {
  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dc-specs {
    flex-direction: column;
  }
  .dc-spec {
    border-right: none;
    border-bottom: 1px solid #e0dbd2;
  }
  .ptc-timeline {
    flex-direction: column;
    gap: 4px;
  }
  .ptc-tl-arrow {
    transform: rotate(90deg);
  }
}
/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  padding: 10px 18px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.section-art-txt[id], article[id] {
  scroll-margin-top: 80px;
}