/* Technical documentation styles. Layout and navigation come from style.css. */
.developer-cover {
  padding-top: 12px;
}
.developer-cover h1 {
  margin-bottom: 20px;
}
.developer-content {
  max-width: 1040px;
}
.developer-content .section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-no {
  color: #8a9bb8;
  font:
    12px ui-monospace,
    monospace;
}
.developer-content .section-intro {
  font-size: 14px;
}
.developer-note {
  padding: 20px 24px;
  margin: 24px 0;
  border-left: 3px solid #6888d5;
  border-radius: 0 10px 10px 0;
  background: #ecf1fc;
}
.developer-note strong {
  font-size: 14px;
  color: #5574af;
}
.developer-note p {
  font-size: 13px;
  line-height: 1.9;
  color: #7d90b0;
  margin: 6px 0 0;
}
.card {
  padding: 26px;
  margin: 18px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  min-width: 0;
}
.card h3 {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 13px;
  font-weight: 650;
}
.card h4 {
  font-size: 14px;
  margin: 20px 0 10px;
}
.card p,
.card li {
  color: #738198;
  font-size: 14px;
  line-height: 1.95;
}
.card p {
  margin: 10px 0;
}
.card ul,
.card ol {
  padding-left: 22px;
  margin: 12px 0;
}
.card li {
  margin: 6px 0;
}
.callout {
  padding: 16px 20px;
  border-left: 3px solid #7490cc;
  background: #edf2fc;
  color: #758aad;
  font-size: 13px;
  line-height: 1.95;
  border-radius: 0 9px 9px 0;
  margin: 18px 0;
}
.callout strong {
  color: #5272af;
}
.notice {
  border-color: #c1a36b;
  background: #faf6ee;
  color: #a08c65;
}
.status {
  display: inline-block;
  color: #689582;
  background: #eef7f2;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  margin: 0 0 10px;
}
.status.supplement {
  background: #edf1fb;
  color: #8195bb;
}
.status.pending {
  background: #faf3e5;
  color: #a28b5d;
}
.rule {
  border-top: 1px solid #eaf0f5;
  margin-top: 16px;
  padding-top: 16px;
}
.rule-id {
  display: block;
  color: #7990b3;
  font:
    11px ui-monospace,
    monospace;
}
.rule p {
  margin-bottom: 0;
}
.copy {
  white-space: pre-line;
  border-left: 2px solid #d5dfef;
  padding-left: 16px;
  margin: 14px 0;
  font-size: 15px;
  line-height: 1.95;
  color: #617390;
}
.module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.module-header a {
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}
.module-code {
  color: #8da1bf;
  font:
    11px ui-monospace,
    monospace;
  margin-bottom: 8px;
}
.route-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0f5;
}
.route-row:last-child {
  border: 0;
}
.route-row b {
  font-size: 14px;
  font-weight: 600;
}
.route-row p {
  margin: 0;
  font-size: 13px;
}
.route-row code {
  display: inline-block;
  margin-bottom: 4px;
}
.table-wrap {
  border: 1px solid #e4e9f1;
  border-radius: 9px;
  overflow-x: auto;
  margin: 18px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.9;
  table-layout: fixed;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 13px 16px;
  border-bottom: 1px solid #e9edf5;
  overflow-wrap: anywhere;
}
th {
  background: #f1f4fa;
  font-weight: 550;
  color: #7b8da9;
}
td {
  color: #75839a;
}
th:first-child,
td:first-child {
  width: 28%;
}
tr:last-child td {
  border-bottom: 0;
}
code {
  color: #637ea8;
  background: #f0f4fa;
  padding: 3px 5px;
  border-radius: 4px;
  font:
    11px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.flow {
  list-style: none;
  counter-reset: step;
}
.flow li {
  position: relative;
  padding: 0 0 24px 38px;
}
.flow li:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border: 1px solid #dce5f4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8098bf;
  font:
    11px ui-monospace,
    monospace;
  background: #f5f8fe;
}
.flow li:after {
  content: "";
  position: absolute;
  left: 11px;
  top: 32px;
  bottom: 4px;
  width: 1px;
  background: #e6edf8;
}
.flow li:last-child {
  padding-bottom: 0;
}
.flow li:last-child:after {
  display: none;
}
.flow b {
  font-size: 14px;
  color: #66768e;
}
.flow p {
  margin: 4px 0 0;
  font-size: 13px;
}
.diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.diagram span {
  padding: 9px 15px;
  border: 1px solid #e1e8f5;
  border-radius: 8px;
  background: #f2f6fd;
  color: #7890b5;
  font-size: 13px;
}
.diagram i {
  font-style: normal;
  color: #a6b4cc;
}
.palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.swatch {
  border: 1px solid #e2e8f1;
  border-radius: 8px;
  height: 50px;
  margin-bottom: 10px;
}
.palette small {
  display: block;
  color: #8699b6;
  font:
    11px ui-monospace,
    monospace;
  text-align: center;
}
.source-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.developer-content details {
  border: 1px solid #e4eaf3;
  border-radius: 9px;
  padding: 13px 16px;
}
.developer-content summary {
  font-size: 14px;
}
.developer-content details p {
  font-size: 13px !important;
}
.developer-search {
  margin: -20px 0 42px;
}
.developer-search label {
  display: block;
  color: #8092af;
  font-size: 12px;
  margin-bottom: 8px;
}
.developer-search input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}
.developer-search input::placeholder {
  color: #a1adbf;
}
.developer-search output {
  display: block;
  color: #8e9eb7;
  font-size: 11px;
  margin-top: 8px;
  min-height: 22px;
}
.empty {
  padding: 44px;
  border: 1px dashed #d7e0ef;
  border-radius: 10px;
  color: #8193af;
  text-align: center;
}
.section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.accept-status {
  font-size: 12px;
  color: #7c92b2;
}
.text-btn {
  font-size: 12px;
  border: 0;
  padding: 6px;
  background: none;
  color: #7c92b2;
}
.verified {
  color: #428e75 !important;
}
.developer-content .checklist label > span {
  color: #74849c;
  font-size: 14px;
}
.developer-content .checklist label.done > span {
  color: #a3aec0;
  text-decoration: line-through;
}
@media (max-width: 699px) {
  .card {
    padding: 20px;
  }
  .card h3 {
    font-size: 17px;
  }
  .card p,
  .card li {
    font-size: 13px;
  }
  .developer-note {
    padding: 16px 18px;
  }
  .route-row {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }
  .route-row b {
    font-size: 13px;
  }
  table {
    font-size: 11px;
  }
  th,
  td {
    padding: 10px;
  }
  th:first-child,
  td:first-child {
    width: 33%;
  }
  .copy {
    font-size: 13px;
  }
  .callout {
    padding: 14px 16px;
    font-size: 12px;
  }
  code {
    font-size: 10px;
  }
  .palette {
    gap: 7px;
  }
  .palette small {
    font-size: 8px;
  }
  .flow {
    padding-left: 0 !important;
  }
  .flow li {
    padding-left: 34px;
  }
  .developer-content .checklist label > span {
    font-size: 13px;
  }
}
@media print {
  .card {
    break-inside: avoid;
    border-color: #bbb;
  }
  .section-head {
    break-after: avoid;
  }
  .section-footer,
  .module-header a {
    display: none;
  }
  th,
  td,
  .card p,
  .card li {
    color: #384354;
  }
}

/* Functional specification: readable business tables on every screen. */
.maintenance-reference {
  margin: 24px 0 0;
  color: #68788f;
  font-size: 13px;
  line-height: 1.9;
}
.spec-table th,
.spec-table td {
  font-size: 13px;
  line-height: 1.85;
}
.spec-table th {
  color: #617189;
}
.spec-table td {
  color: #53637a;
}
.spec-table th:first-child,
.spec-table td:first-child {
  width: 23%;
}
.spec-table td:first-child {
  color: #34445d;
  font-weight: 550;
}
.developer-content .card p,
.developer-content .card li {
  color: #5d6d84;
}
.developer-note p {
  color: #60779d;
}

@media (max-width: 699px) {
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table td {
    display: block;
    width: 100%;
  }
  .spec-table thead {
    display: none;
  }
  .spec-table tr {
    padding: 8px 0;
    border-bottom: 1px solid #dfe6f0;
  }
  .spec-table tr:last-child {
    border-bottom: 0;
  }
  .spec-table td,
  .spec-table td:first-child {
    width: 100%;
    padding: 8px 13px;
    border: 0;
    font-size: 12px;
  }
  .spec-table td:first-child {
    background: #f7f9fc;
    font-size: 13px;
  }
  .spec-table td::before {
    content: attr(data-label);
    display: block;
    color: #8794a7;
    font-size: 10px;
    font-weight: 400;
    margin-bottom: 4px;
  }
  .maintenance-reference {
    font-size: 12px;
  }
}
