/* 配額設定教學頁（storage-quota-*.html）共用樣式：導覽列、步驟、截圖與預留位置、程式碼區塊 */
.new-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); margin-right: 6px; vertical-align: middle; position: relative; top: -1px; }
.nav-links a[aria-current="page"] .new-dot { background: #ffffff; }
@media (min-width: 1120px) {
  .topbar-inner { flex-wrap: nowrap; gap: 16px; }
  .brand { flex: none; }
  .nav-links { flex-wrap: nowrap; gap: 0; margin-left: auto; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
}
@media (min-width: 901px) and (max-width: 1119px) {
  .topbar-inner { flex-wrap: nowrap; gap: 10px; padding-inline: 14px; }
  .brand { flex: none; font-size: 15px; }
  .brand small { display: none; }
  .nav-links { flex-wrap: nowrap; gap: 0; margin-left: auto; }
  .nav-links a { padding: 7px 6px; font-size: 13px; }
}
@media (max-width: 900px) {
  .topbar-inner { gap: 10px 16px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 7px 10px; font-size: 13.5px; }
}

.cw-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.cw-section:last-of-type { border-bottom: none; }
.cw-section h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 14px; }
.cw-section p, .cw-section li { font-size: 15.5px; color: var(--ink-soft); }
.cw-section ul, .cw-section ol { padding-left: 22px; }
.cw-section li { margin-bottom: 8px; }

.sop-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin: 0 0 30px; }
.sop-step > div:last-child { min-width: 0; }
.sop-step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue-600); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.sop-step h3 { margin: 4px 0 8px; font-size: 18px; }
.sop-step p { margin: 0 0 10px; }
@media (max-width: 600px) { .sop-step { grid-template-columns: 1fr; } }

.path { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13.5px;
  background: var(--paper-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; margin: 0 0 14px; overflow-x: auto; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .92em; }

.shot { margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--paper); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper-sunk); }
.shot-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius-md); background: var(--paper-sunk);
  color: var(--muted); font-size: 13.5px; padding: 28px 18px; text-align: center; margin: 0;
  display: grid; gap: 6px; justify-items: center;
}
.shot-placeholder .ph-icon { font-size: 26px; line-height: 1; }
.shot-placeholder .ph-title { font-weight: 700; color: var(--ink-soft); }
.shot-placeholder code { font-size: 12.5px; word-break: break-all; }

pre.codeblock {
  margin: 0 0 14px; padding: 14px 16px; overflow-x: auto;
  background: var(--paper-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.7; color: var(--ink);
}
pre.codeblock .c { color: var(--muted); }

.cw-section table.compare { min-width: 0; table-layout: fixed; }
.cw-section table.compare th, .cw-section table.compare td { vertical-align: top; padding: 14px 18px; line-height: 1.65; }
.cw-section table.compare th + th, .cw-section table.compare td + td { border-left: 1px solid var(--line); }
.cw-section table.compare tbody tr:nth-child(even) td { background: var(--paper-sunk); }
.cw-section table.compare td:first-child { color: var(--ink); font-weight: 700; word-break: keep-all; }
@media (max-width: 720px) { .cw-section table.compare { table-layout: auto; min-width: 560px; } }

.cw-section .faq-list { margin-top: 14px; }
.cw-section details.faq .a p { font-size: 14.5px; }

/* 五份教學之間的切換 */
.qg-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.qg-pager a {
  display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper); text-decoration: none; color: var(--ink);
}
.qg-pager a:hover { border-color: var(--blue-500); }
.qg-pager small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.qg-pager a b { font-size: 15px; }
.qg-pager a.next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .qg-pager { grid-template-columns: 1fr; } .qg-pager a.next { grid-column: auto; } }
.qg-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.qg-others a {
  display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper); text-decoration: none; color: var(--ink); font-size: 14px;
}
.qg-others a:hover { border-color: var(--blue-500); }
.qg-others a small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.qg-others a[aria-current="page"] { background: var(--blue-050); border-color: var(--blue-100); pointer-events: none; }
.src-list { font-size: 13.5px; color: var(--muted); }
