/* emirkoyuncu.com — Rev 2.0 "laboratuvar defteri / devre kartı".
   Elle yazılmış stil; dış yazı tipi, kütüphane veya sıfırlama dosyası yok. */

:root {
  --paper: #f1eee5;
  --sheet: #faf8f2;
  --ink: #17160f;
  --ink-2: #3f3c33;
  --muted: #625e53;
  --line: rgba(23, 22, 15, 0.2);
  --line-soft: rgba(23, 22, 15, 0.1);
  --grid: rgba(38, 76, 112, 0.055);
  --grid-major: rgba(38, 76, 112, 0.1);
  --copper: #a3451c;
  --copper-dim: rgba(163, 69, 28, 0.22);
  --copper-lit: #df5a26;
  --led: #ff3a1c;
  --board: #16180f;
  --board-2: #0d0e09;
  --gold: #c9a24a;

  --f-head: "Bahnschrift", "DIN Alternate", "DIN 2014", "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --rail: 88px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 64px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--copper-lit); color: var(--sheet); }

:focus-visible { outline: 2px solid var(--copper-lit); outline-offset: 3px; }

.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1180px; padding: 0 var(--gutter); }

.ref { color: var(--copper); font-weight: 600; }

/* ---------- Üst şerit ---------- */

.strip {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 46px;
  padding: 0 var(--gutter) 0 calc(var(--rail) - 8px);
  background: rgba(241, 238, 229, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.strip a { text-decoration: none; }
.strip__id b { color: var(--copper); }
.strip__nav { display: flex; gap: clamp(12px, 2.4vw, 32px); }
.strip__nav a { position: relative; padding: 4px 0; color: var(--ink-2); white-space: nowrap; transition: color 0.2s; }
.strip__nav a span { color: var(--muted); margin-right: 4px; }
.strip__nav a:hover, .strip__nav a[aria-current="true"] { color: var(--ink); }
.strip__nav a[aria-current="true"] span { color: var(--copper-lit); }
.strip__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--copper-lit);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.strip__nav a[aria-current="true"]::after { transform: scaleX(1); }
.strip__clock { color: var(--muted); white-space: nowrap; }
.strip__clock time { color: var(--ink); }

/* ---------- Kart: bakır iz rayı ---------- */

.board { position: relative; padding-left: var(--rail); }

.trace {
  position: absolute;
  left: 0; top: 0;
  width: var(--rail);
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.trace .t-base { fill: none; stroke: var(--copper-dim); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trace .t-lit { fill: none; stroke: var(--copper-lit); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trace .t-pad { fill: var(--paper); stroke: var(--copper); stroke-width: 2; transition: fill 0.4s var(--ease); }
.trace .t-pad.is-on { fill: var(--copper-lit); }
.trace .t-via { fill: var(--paper); stroke: var(--copper-dim); stroke-width: 2; }
.trace .t-label { font: 600 9px/1 var(--f-mono); fill: var(--muted); letter-spacing: 0.06em; }
.trace .t-spark { fill: var(--led); }
.trace .t-halo { fill: rgba(255, 58, 28, 0.18); }

/* ---------- DS1: giriş ---------- */

.head { padding: clamp(84px, 13vh, 130px) 0 clamp(56px, 9vh, 96px); }

.module {
  position: relative;
  margin-top: 14px;
  max-width: 980px;
  padding: clamp(18px, 3vw, 40px) clamp(18px, 3vw, 44px) clamp(34px, 4vw, 54px);
  background: var(--board);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -24px rgba(23, 22, 15, 0.55);
}
.module__hole {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--gold);
}
.module__hole:nth-child(1) { left: 10px; top: 10px; }
.module__hole:nth-child(2) { right: 10px; top: 10px; }
.module__hole:nth-child(3) { left: 10px; bottom: 10px; }
.module__hole:nth-child(4) { right: 10px; bottom: 10px; }

.display {
  display: block;
  width: 100%;
  height: auto;
  background: var(--board-2);
  border-radius: 3px;
  padding: 2%;
}
.display .seg { fill: none; stroke: #2a1d16; stroke-width: 8; stroke-linecap: round; transition: stroke 0.12s linear; }
.display .seg.on { stroke: var(--led); }
.display .dot { fill: #2a1d16; transition: fill 0.12s linear; }
.display .dot.on { fill: var(--led); }
.display .lit { filter: drop-shadow(0 0 5px rgba(255, 58, 28, 0.55)); }
.display .lit .seg:not(.on) { stroke: transparent; }
.display .lit .dot:not(.on) { fill: transparent; }

.module__pins {
  position: absolute;
  left: 50%; bottom: 12px;
  display: flex;
  gap: clamp(8px, 1.6vw, 18px);
  transform: translateX(-50%);
}
.module__pins li { width: 8px; height: 14px; background: var(--gold); border-radius: 1px; opacity: 0.85; }

.head__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(32px, 5vh, 56px);
  max-width: 980px;
}
.head__lede {
  font: 500 clamp(1.4rem, 2.5vw, 2.05rem)/1.22 var(--f-head);
  font-stretch: 90%;
  letter-spacing: -0.005em;
}

.spec { background: var(--sheet); border: 1px solid var(--ink); }
.spec__title { padding: 8px 14px; background: var(--ink); color: var(--paper); }
.spec__list { padding: 10px 14px 14px; }
.spec__list li {
  position: relative;
  padding: 6px 0 6px 18px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  line-height: 1.4;
}
.spec__list li:last-child { border-bottom: 0; }
.spec__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95em;
  width: 8px; height: 2px;
  background: var(--copper);
}

/* Ölçü çizgisi */
.dim {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin-top: clamp(32px, 5vh, 52px);
  color: var(--muted);
}
.dim__line { position: relative; flex: 1; height: 1px; background: var(--muted); }
.dim__line::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 1px; height: 13px;
  background: var(--muted);
}
.dim__line:first-child::before { left: 0; }
.dim__line:last-child::before { right: 0; }
.dim__text { white-space: nowrap; }

/* ---------- Bölümler ---------- */

.sec { padding: clamp(64px, 11vh, 120px) 0; border-top: 1px solid var(--line-soft); }

.sec__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.sec__title {
  font: 600 clamp(2rem, 4.6vw, 3.9rem)/0.95 var(--f-head);
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.led {
  width: 11px; height: 11px;
  border-radius: 50%;
  align-self: center;
  background: #cfc9bb;
  box-shadow: inset 0 0 0 1px rgba(23, 22, 15, 0.25);
  transition: background 0.3s, box-shadow 0.3s;
}
.is-powered > .wrap > .sec__head .led {
  background: var(--led);
  box-shadow: 0 0 0 3px rgba(255, 58, 28, 0.16), 0 0 12px rgba(255, 58, 28, 0.6);
}
.sec__note { max-width: 62ch; margin: -12px 0 clamp(28px, 4vh, 44px); color: var(--muted); }

/* U1 */
.overview {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.overview__text { display: flex; flex-direction: column; gap: 20px; max-width: 64ch; }
.overview__text p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; }

.blocks { background: var(--sheet); border: 1px solid var(--ink); padding: 16px; }
.blocks__cap { color: var(--muted); margin-bottom: 14px; }
.blocks__list { display: flex; flex-direction: column; gap: 22px; }
.blocks__list li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font: 600 1.15rem/1 var(--f-head);
  font-stretch: 90%;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  transition-delay: var(--bd, 0s);
}
.blocks__list li span { width: 3.4em; color: var(--copper); font-weight: 400; }
.blocks__list li + li::before {
  content: "";
  position: absolute;
  left: 50%; top: -23px;
  width: 2px; height: 22px;
  background: var(--ink);
}
.blocks__list li + li::after {
  content: "";
  position: absolute;
  left: calc(50% - 4px); top: -8px;
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.blocks.is-in .blocks__list li { background: var(--ink); color: var(--paper); }
.blocks.is-in .blocks__list li span { color: var(--copper-lit); }

/* J: defter sayfaları */
.entries { display: flex; flex-direction: column; gap: clamp(18px, 3vh, 28px); }
.entry {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  background: var(--sheet);
  border: 1px solid var(--ink);
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.entry:hover { border-color: var(--copper); box-shadow: 6px 6px 0 var(--copper-dim); transform: translate(-2px, -2px); }
.entry::before, .entry::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--copper);
}
.entry::before { left: -7px; top: -7px; border-left-width: 2px; border-top-width: 2px; }
.entry::after { right: -7px; bottom: -7px; border-right-width: 2px; border-bottom-width: 2px; }

.entry__no {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-right: 1px solid var(--ink);
  color: var(--muted);
}
.entry__no b {
  font: 600 clamp(3rem, 5vw, 4.4rem)/0.9 var(--f-head);
  font-stretch: 80%;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.entry__body { padding: clamp(18px, 2.4vw, 28px); }
.entry__title {
  font: 600 clamp(1.6rem, 2.8vw, 2.4rem)/1 var(--f-head);
  font-stretch: 88%;
  margin-bottom: 16px;
}
.entry__rows > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
}
.entry__rows dt { color: var(--muted); padding-top: 3px; }
.entry__rows dd { line-height: 1.5; }
.entry__rows dd.mono { text-transform: none; font-size: 0.84rem; padding-top: 2px; }
.entry__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--copper);
  text-decoration: none;
  text-transform: none;
  border-bottom: 1px solid currentColor;
}
.entry__link::after { content: " ↗"; }
.entry__link:hover { color: var(--copper-lit); }

.state { display: inline-flex; align-items: center; gap: 8px; text-transform: none; font-size: 0.84rem; }
.state::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--muted);
}
.state--on::before { background: var(--led); border-color: var(--led); box-shadow: 0 0 8px rgba(255, 58, 28, 0.6); }

/* Tablolar: revizyon, BOM, koşullar */
.table-wrap { overflow-x: auto; }
.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--sheet);
  border: 1px solid var(--ink);
  font-size: 0.98rem;
}
.sheet th {
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  font-weight: 500;
}
.sheet td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.sheet td:first-child { width: 72px; color: var(--copper); font-weight: 600; }
.sheet td.mono { text-transform: none; font-size: 0.86rem; }
.sheet tr.is-current td { background: rgba(223, 90, 38, 0.08); }
.sheet tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--copper-lit); }
.sheet--bom td:nth-child(2) { width: 30%; font-weight: 600; }

/* TP1: iletişim */
.tp {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 80px);
}
.tp__big {
  font: 600 clamp(2.6rem, 6.4vw, 5.6rem)/0.9 var(--f-head);
  font-stretch: 82%;
  text-transform: uppercase;
}
.tp__lede { margin-top: 18px; color: var(--muted); max-width: 40ch; }
.scope {
  margin-top: 28px;
  padding: 10px;
  background: var(--board);
  border-radius: 5px;
}
.scope__screen {
  display: block;
  width: 100%;
  height: 130px;
  background-color: var(--board-2);
  background-image:
    linear-gradient(rgba(201, 162, 74, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 74, 0.13) 1px, transparent 1px);
  background-size: 10% 25%;
  border-radius: 2px;
}
.scope__label { margin-top: 8px; color: var(--gold); font-size: 0.7rem; }
.tp__links { margin-top: 24px; }
.tp__links a { color: var(--copper); text-transform: none; }
.tp__links a:hover { color: var(--copper-lit); }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--sheet);
  border: 1px solid var(--ink);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 1.05rem;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--copper-lit); background: #fff; }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--led); }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.btn i { position: relative; width: 26px; height: 2px; background: currentColor; transition: width 0.3s var(--ease); }
.btn i::after {
  content: "";
  position: absolute;
  right: 0; top: -4px;
  width: 8px; height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover { background: var(--copper); }
.btn:hover i { width: 36px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.form__status { min-height: 1.4em; color: var(--muted); text-transform: none; font-size: 0.85rem; }
.form__status[data-kind="ok"] { color: var(--ink); }
.form__status[data-kind="err"] { color: var(--copper); }

/* ---------- Dil seçici ---------- */

.strip__end { display: flex; align-items: center; gap: 16px; }
.strip__lang {
  padding: 3px 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.strip__lang:hover { background: var(--ink); color: var(--paper); }

/* ---------- Defter kartından sayfaya ---------- */

.entry__title a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--copper-lit), var(--copper-lit)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.35s var(--ease); }
.entry__title a:hover { background-size: 100% 2px; }
.entry__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: 14px; }
.entry__links .entry__link { margin-top: 0; }
.entry__more { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.entry__more::after { content: " →"; color: var(--copper-lit); }
.entry__more:hover { color: var(--copper); border-color: var(--copper); }

/* ---------- Proje (defter) sayfası ---------- */

.head--page { padding-bottom: clamp(40px, 7vh, 72px); }
.crumb { color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--copper); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.page-sheet {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  max-width: 980px;
  background: var(--sheet);
  border: 1px solid var(--ink);
}
.page-sheet::before, .page-sheet::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 0 solid var(--copper);
}
.page-sheet::before { left: -8px; top: -8px; border-left-width: 2px; border-top-width: 2px; }
.page-sheet::after { right: -8px; bottom: -8px; border-right-width: 2px; border-bottom-width: 2px; }
.page-sheet .entry__no b { font-size: clamp(3.4rem, 7vw, 6rem); }
.page-sheet__body { padding: clamp(20px, 3vw, 36px); }
.page-sheet__title {
  font: 600 clamp(2.4rem, 6vw, 4.8rem)/0.95 var(--f-head);
  font-stretch: 85%;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.page-sheet__link a { color: var(--copper); }
.page-sheet__link a::after { content: " ↗"; }

.page-intro { max-width: 62ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55; }

.notes { display: flex; flex-direction: column; max-width: 860px; border-top: 1px solid var(--ink); }
.note {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.note__no { color: var(--copper); padding-top: 4px; }
.note p { line-height: 1.6; }

.sheet--narrow { max-width: 620px; }

.pager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(36px, 6vh, 60px);
  border: 1px solid var(--ink);
  background: var(--sheet);
  max-width: 980px;
}
.pager__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  color: var(--ink);
  text-decoration: none;
  border-left: 1px solid var(--ink);
  transition: background 0.2s;
}
.pager__item:first-child { border-left: 0; }
.pager__item b { font: 600 1.25rem/1.1 var(--f-head); font-stretch: 88%; }
.pager__item span { color: var(--muted); }
a.pager__item:hover { background: var(--paper); }
a.pager__item:hover b { color: var(--copper); }
.pager__all { text-align: center; }
.pager__next { text-align: right; }

/* ---------- Antet (alt bilgi) ---------- */

.titleblock { padding: 0 0 40px var(--rail); }
.titleblock__grid {
  display: grid;
  grid-template-columns: 2.4fr repeat(5, 1fr);
  border: 1px solid var(--ink);
  background: var(--sheet);
}
.titleblock__grid > div { padding: 10px 12px; border-left: 1px solid var(--ink); }
.titleblock__grid > div:first-child { border-left: 0; }
.titleblock__grid dt { color: var(--muted); font-size: 0.66rem; }
.titleblock__grid dd { margin-top: 4px; color: var(--ink); text-transform: none; font-size: 0.86rem; }
.titleblock__note { margin-top: 12px; color: var(--muted); text-transform: none; }
.titleblock__note a { color: var(--copper); margin-left: 8px; }

/* ---------- Açılma ---------- */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */

.lost { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-left: var(--rail); }
.lost__title {
  margin: 18px 0 16px;
  font: 600 clamp(2.4rem, 7vw, 5.6rem)/0.92 var(--f-head);
  font-stretch: 85%;
  text-transform: uppercase;
  max-width: 16ch;
}
.lost__text { color: var(--muted); margin-bottom: 28px; }
.lost .btn { text-decoration: none; }

/* ---------- Duyarlı ---------- */

@media (max-width: 1040px) {
  .strip__nav a span { display: none; }
}

@media (max-width: 900px) {
  .head__grid, .overview, .tp { grid-template-columns: 1fr; }
  .titleblock__grid { grid-template-columns: repeat(3, 1fr); }
  .titleblock__grid > .titleblock__main { grid-column: 1 / -1; border-bottom: 1px solid var(--ink); }
  .titleblock__grid > div:nth-child(2), .titleblock__grid > div:nth-child(5) { border-left: 0; }
  .titleblock__grid > div:nth-child(n + 5) { border-top: 1px solid var(--ink); }
}

@media (max-width: 680px) {
  :root { --rail: 30px; }
  body { font-size: 1rem; }
  .strip { padding-left: var(--gutter); }
  .strip__nav { display: none; }
  .entry { grid-template-columns: 1fr; }
  .entry__no { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; border-right: 0; border-bottom: 1px solid var(--ink); padding: 12px 18px; }
  .entry__no b { font-size: 2.2rem; }
  .entry__rows > div { grid-template-columns: 1fr; gap: 2px; }
  .trace .t-label { display: none; }
  .sheet { font-size: 0.92rem; }
  .sheet td, .sheet th { padding: 10px; }
  .sheet td:first-child { width: 44px; }
  .module__pins { display: none; }
  .strip__clock { display: none; }
  .page-sheet { grid-template-columns: 1fr; }
  .page-sheet .entry__no { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; border-right: 0; border-bottom: 1px solid var(--ink); padding: 12px 18px; }
  .page-sheet .entry__no b { font-size: 2.4rem; }
  .note { grid-template-columns: 1fr; gap: 4px; }
  .pager { grid-template-columns: 1fr; }
  .pager__item { border-left: 0; border-top: 1px solid var(--ink); text-align: left; }
  .pager__item:first-child { border-top: 0; }
  .pager__item.is-empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  body { background: #fff; }
  .strip, .trace, .scope, .form { display: none; }
  .board, .titleblock { padding-left: 0; }
}
