/* JCW service pages. Grey studio background, white cards, ink text, serif numerals. No framework. */
:root { --studio: #c6c8cc; --card: #fbfbfa; --ink: #1d1e20; --soft: #5c5e63; --line: #dcdcd8; --warn: #8a2a1f; }
* { box-sizing: border-box; }
html { background: var(--studio); }
body { margin: 0; color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans TC", sans-serif; }
[hidden] { display: none !important; }

header.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; max-width: 980px; margin: 0 auto; }
.logo { height: 26px; width: auto; fill: var(--ink); display: block; }
.logo-text { font: 600 26px/1 Georgia, "Times New Roman", serif; letter-spacing: .12em; }
nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav a { color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
nav a.here { background: var(--ink); color: var(--card); }
select.lang { margin-left: 8px; }

main { max-width: 980px; margin: 0 auto; padding: 0 20px 48px; display: grid; gap: 18px; }
main.narrow { max-width: 520px; }
.card { background: var(--card); border-radius: 14px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(29, 30, 32, .08); }
h1, h2 { font-weight: 600; margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
p { margin: 0 0 12px; }
.soft { color: var(--soft); font-size: 14px; }
.num { font-family: Georgia, "Times New Roman", serif; font-variant-numeric: lining-nums tabular-nums; }
.big { font-size: 40px; line-height: 1; }

label { display: block; margin: 0 0 12px; font-size: 14px; color: var(--soft); }
input[type=text], input[type=email], input[type=password], select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
select.lang, select.inline { display: inline-block; width: auto; margin-top: 0; padding: 6px 10px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.birth { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.birth input { font-family: Georgia, "Times New Roman", serif; }
label.check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: var(--ink); font-size: 15px; }
label.check input { margin-top: 4px; width: 16px; height: 16px; }

button, a.button {
  display: inline-block; font: inherit; cursor: pointer; text-decoration: none; text-align: center;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--card);
}
button.plain, a.button.plain { background: transparent; color: var(--ink); }
button.danger { background: transparent; color: var(--warn); border-color: var(--warn); }
button:disabled { opacity: .4; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.even > * { flex: 1 1 200px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button { background: transparent; color: var(--ink); border-color: var(--line); }
.tabs button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }

.note { padding: 10px 14px; border-radius: 10px; background: #eeeeea; margin: 0 0 12px; }
.note.bad { background: #f6e4e1; color: var(--warn); }
.legal { font-size: 14px; max-height: 260px; overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 14px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.model { text-align: center; }
.model img, .stage img { width: 100%; height: auto; border-radius: 10px; background: var(--studio); display: block; }
.model img { max-height: 52vh; object-fit: contain; }
.model .name { margin: 10px 0; }
.room { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; align-items: start; }
.stage { position: sticky; top: 12px; }
.slot { margin: 0 0 14px; }
.slot h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--soft); }
.items { display: flex; gap: 8px; flex-wrap: wrap; }
.item { position: relative; width: 76px; height: 76px; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; color: var(--ink); font-size: 13px; }
.item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item.on { border-color: var(--ink); }
.item .x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 18px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 12px; }
table.led { width: 100%; border-collapse: collapse; font-size: 14px; }
table.led td { padding: 6px 0; border-top: 1px solid var(--line); }
table.led td:last-child { text-align: right; }
.doc { font-size: 15px; }
.doc h1 { font-size: 24px; margin-top: 8px; }
.doc h2 { font-size: 18px; margin-top: 26px; }
.doc h3 { font-size: 16px; margin: 18px 0 8px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin-bottom: 4px; }
.doc blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--line); color: var(--soft); }
.doc blockquote.draft { border: 2px solid var(--warn); border-radius: 10px; background: #f6e4e1; color: var(--warn); }
.doc .scroll { overflow-x: auto; margin: 0 0 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.doc code { font-size: 13px; }
#conn-code-text { flex: 1 1 220px; width: auto; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
footer { max-width: 980px; margin: 0 auto; padding: 0 20px 32px; color: #3f4145; font-size: 13px; }
footer a { color: inherit; }

@media (max-width: 720px) {
  .two, .room { grid-template-columns: 1fr; }
  .stage { position: static; }
  header.top { padding: 14px 16px; }
  main { padding: 0 12px 40px; }
}

.item .gone { display: block; padding: 28px 4px 0; font-size: 12px; line-height: 1.2; text-align: center; opacity: .6; }
