/*
Theme Name: Plastik Izgara Malzeme Laboratuvarı
Theme URI: https://plastikizgara.net/
Author: NA-ME A.Ş.
Description: Plastik, CTP ve FRP ızgara seçimi için hızlı, özgün ve erişilebilir kurumsal tema.
Version: 1.0.8
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: plastik-izgara-lab
*/

:root {
  --ink: #17201d;
  --paper: #f2efe7;
  --paper-2: #e7e2d7;
  --white: #fffdf8;
  --sage: #7fa79b;
  --sage-dark: #416d63;
  --clay: #d87058;
  --mustard: #d4b34b;
  --line: rgba(23, 32, 29, .18);
  --muted: #65716c;
  --rail: 238px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 20px 60px rgba(23, 32, 29, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--clay); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  width: var(--rail);
  padding: 24px 22px 20px;
  color: var(--white);
  background: var(--ink);
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.12);
}
.brand {
  display: grid;
  align-items: center;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid var(--sage);
  background-image: linear-gradient(var(--sage) 2px, transparent 2px), linear-gradient(90deg, var(--sage) 2px, transparent 2px);
  background-size: 15px 15px;
  background-position: 6px 6px;
}
.brand-mark::after {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  content: "";
  background: var(--clay);
}
.brand-copy {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .09em;
}
.brand-copy small {
  display: block;
  margin-top: 5px;
  color: var(--sage);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
}
.rail-nav { margin: auto 0; }
.rail-nav ul { margin: 0; padding: 0; list-style: none; }
.rail-nav li + li { border-top: 1px solid rgba(255,255,255,.13); }
.rail-nav a {
  display: grid;
  padding: 15px 2px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  grid-template-columns: 25px 1fr;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}
.rail-nav a span { color: var(--sage); font-variant-numeric: tabular-nums; }
.rail-nav a:hover,
.rail-nav a[aria-current="page"] { color: var(--white); }
.rail-meta {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  line-height: 1.55;
}
.rail-meta a { display: block; color: var(--white); font-size: 12px; font-weight: 650; text-decoration: none; }
.rail-meta strong { display: block; margin-bottom: 8px; color: var(--sage); font-size: 12px; letter-spacing: .08em; }
.rail-copyright { display: block; max-width: 188px; margin-top: 16px; color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.45; }

.site-shell { min-height: 100vh; margin-left: var(--rail); }
.site-main { min-height: 100vh; }

.eyebrow,
.spec-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--sage-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow::before,
.spec-label::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  line-height: 1.02;
  letter-spacing: -.035em;
}
h1 { max-width: 13ch; font-size: clamp(3rem, 5.3vw, 7rem); }
h2 { font-size: clamp(2.25rem, 4.4vw, 5.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.25em; }
.lead { max-width: 62ch; color: #35413d; font-size: clamp(1.08rem, 1.4vw, 1.3rem); }
.muted { color: var(--muted); }

.button-row { display: flex; margin-top: 28px; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .25s var(--ease), background .25s ease;
}
.button:hover { background: var(--clay); transform: translateY(-2px); }
.button--ghost { color: var(--ink); background: transparent; }
.button--ghost:hover { color: var(--white); }

/* Desktop horizontal story */
.lab-story {
  position: relative;
  display: flex;
  width: calc(100vw - var(--rail));
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--clay) var(--paper-2);
}
.lab-panel {
  position: relative;
  display: grid;
  min-width: calc(100vw - var(--rail));
  height: 100vh;
  padding: clamp(34px, 5vw, 82px);
  overflow-y: auto;
  align-content: stretch;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.lab-panel:nth-child(even) { background: var(--paper-2); }
.panel-no {
  position: absolute;
  top: 30px;
  right: 34px;
  color: rgba(23,32,29,.28);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}
.lab-grid {
  display: grid;
  width: min(1180px, 100%);
  min-height: 100%;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr);
  gap: clamp(35px, 6vw, 90px);
}
.lab-grid--reverse > :first-child { order: 2; }
.media-frame {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #d8d5cc;
  box-shadow: 16px 16px 0 var(--sage);
}
.media-frame::before {
  position: absolute;
  inset: 14px;
  z-index: 2;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.55);
}
.media-frame img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.media-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-width: 75%;
  padding: 9px 13px;
  color: var(--white);
  background: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-title em { display: block; color: var(--clay); font-style: normal; }
.hero-data { display: grid; margin-top: 36px; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.hero-data div { padding: 14px; border-right: 1px solid var(--line); }
.hero-data div:last-child { border-right: 0; }
.hero-data b { display: block; font-size: 18px; }
.hero-data span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.risk-grid,
.term-grid,
.process-grid,
.card-grid { display: grid; margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.risk-card,
.term-card,
.process-card,
.info-card { padding: 22px; background: var(--paper); }
.risk-card b,
.term-card b,
.process-card b { display: block; margin-bottom: 5px; font-size: 14px; }
.risk-card p,
.term-card p,
.process-card p { margin: 0; color: var(--muted); font-size: 13px; }
.risk-card .index { color: var(--clay); font-weight: 900; }

.comparison-wrap { width: min(1260px, 100%); margin: 0 auto; }
.comparison-wrap { align-self: center; }
.matrix-scroll { width: 100%; margin-top: 30px; overflow-x: auto; box-shadow: var(--shadow); overscroll-behavior-inline: contain; }
.matrix { width: 100%; margin-top: 0; border-collapse: collapse; background: var(--white); }
.matrix th,
.matrix td { padding: 16px 18px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix th { color: var(--white); background: var(--ink); font-size: 12px; letter-spacing: .06em; }
.matrix th:first-child { color: var(--ink); background: var(--sage); }
.matrix td:first-child { font-weight: 800; }
.matrix small { display: block; color: var(--muted); line-height: 1.4; }
.signal { color: var(--sage-dark); font-weight: 800; }
.caution { color: #9b4c3c; font-weight: 800; }
.matrix--winner { table-layout: fixed; font-size: 12px; line-height: 1.25; }
.matrix--winner th,
.matrix--winner td { padding: 8px 11px; }
.matrix--winner th:first-child { width: 14%; }
.matrix--winner th:nth-child(3) { color: var(--ink); background: var(--mustard); border-inline: 3px solid #af8b29; }
.matrix--winner td:nth-child(3) { color: var(--ink); background: rgba(212,179,75,.2); border-inline: 3px solid var(--mustard); font-weight: 750; }
.winner-badge { display: inline-flex; margin: 0 8px 5px 0; padding: 3px 7px; border-radius: 999px; color: var(--white); background: var(--sage-dark); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.winner-cell::before { margin-right: 7px; color: var(--sage-dark); content: "✓"; font-weight: 1000; }
.weakness { color: #7f463a; }
.recommendation-row td { border-top: 3px solid var(--ink); }
.matrix--winner .recommendation-row td:nth-child(3) { background: var(--mustard); }

.term-band { padding: 28px; color: var(--white); background: var(--ink); }
.term-band h2 { max-width: 12ch; }
.term-band .term-grid { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.term-band .term-card { background: #202c28; }
.term-band .term-card b { color: var(--mustard); font-size: 18px; }
.term-band .term-card p { color: rgba(255,255,255,.68); }
.term-grid--five { margin-top: 20px; }
.term-grid--five .term-card { padding: 10px 14px; }
.term-grid--five .term-card p { font-size: 12px; line-height: 1.3; }
.term-card small { display: block; margin-top: 3px; color: rgba(255,255,255,.5); font-size: 9.5px; line-height: 1.3; }
.term-card--wide { grid-column: 1 / -1; }
.term-band .button-row { margin-top: 18px; }
.process-grid .process-card { padding: 16px 18px; }
.process-grid .process-card b { font-size: 13px; }
.process-grid .process-card p { font-size: 12.5px; line-height: 1.45; }
#selection-title { max-width: 15ch; font-size: clamp(2.55rem, 4.4vw, 4.5rem); }

.video-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 16px 16px 0 var(--clay);
}
.video-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.story-controls {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  place-items: center;
}
.story-controls button:hover { color: var(--white); background: var(--ink); }
.story-progress { width: 100px; height: 3px; overflow: hidden; background: rgba(23,32,29,.18); }
.story-progress span { display: block; width: var(--progress, 0%); height: 100%; background: var(--clay); transition: width .3s ease; }

.footer-panel { color: var(--white); background: var(--sage-dark) !important; }
.footer-panel h2 { max-width: 12ch; font-size: clamp(2.5rem, 4.2vw, 4.7rem); }
.footer-panel .lab-grid { grid-template-columns: 1fr 1fr; }
.contact-stack { display: grid; gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.contact-stack a,
.contact-stack address { padding: 22px; color: var(--white); background: rgba(23,32,29,.32); text-decoration: none; font-style: normal; }
.contact-stack small { display: block; margin-bottom: 4px; color: rgba(255,255,255,.6); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-stack .map-link { color: var(--ink); background: var(--mustard); font-weight: 850; }
.contact-stack .map-link small { color: rgba(23,32,29,.65); }
.copyright { margin-top: 34px; color: rgba(255,255,255,.75); font-size: 12px; }
.legal-link { color: rgba(255,255,255,.75); font-size: 12px; }

/* Standard internal pages */
.page-hero { position: relative; padding: clamp(70px, 9vw, 130px) clamp(25px, 7vw, 110px) 55px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after {
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  content: "";
  opacity: .55;
  border: 38px solid var(--sage);
  border-radius: 50%;
}
.page-hero h1 { max-width: 14ch; font-size: clamp(3.1rem, 7vw, 7.3rem); }
.breadcrumbs { margin-bottom: 30px; color: var(--muted); font-size: 12px; font-weight: 700; }
.breadcrumbs a { text-decoration: none; }
.page-body { width: min(1040px, calc(100% - 50px)); margin: 0 auto; padding: 70px 0 110px; }
.page-body > * { max-width: 780px; }
.page-body > .wide,
.page-body > table,
.page-body > .comparison-table,
.page-body > .media-split,
.page-body > .card-grid,
.page-body > .step-list { max-width: none; }
.page-body h2 { margin-top: 1.15em; font-size: clamp(2.1rem, 4.2vw, 4.2rem); }
.page-body h3 { margin-top: 1.8em; }
.page-body ul,
.page-body ol { padding-left: 1.2em; }
.page-body li { margin-bottom: .55em; }
.page-body blockquote {
  margin: 40px 0;
  padding: 30px;
  border-left: 7px solid var(--clay);
  background: var(--white);
  box-shadow: var(--shadow);
}
.page-body blockquote p:last-child { margin-bottom: 0; }
.notice {
  margin: 35px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: rgba(127,167,155,.15);
  font-size: 14px;
}
.notice--warning { background: rgba(216,112,88,.13); }
.media-split { display: grid; margin: 42px 0; align-items: center; grid-template-columns: 1.1fr .9fr; gap: 34px; }
.media-split img { width: 100%; min-height: 330px; object-fit: cover; border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--sage); }
.figure-note { margin-top: 13px; color: var(--muted); font-size: 12px; }
.step-list { display: grid; margin: 35px 0; padding: 0 !important; counter-reset: steps; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; }
.step-list li { margin: 0; padding: 24px; background: var(--white); counter-increment: steps; }
.step-list li::before { display: block; margin-bottom: 28px; color: var(--clay); content: "0" counter(steps); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.step-list b { display: block; margin-bottom: 6px; }
.step-list span { color: var(--muted); font-size: 14px; }

.comparison-table,
.spec-table { display: block; width: 100%; margin: 35px 0; overflow-x: auto; border-collapse: collapse; background: var(--white); }
.comparison-table th,
.comparison-table td,
.spec-table th,
.spec-table td { min-width: 150px; padding: 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th,
.spec-table th { color: var(--white); background: var(--ink); font-size: 12px; }
.comparison-table td:first-child,
.spec-table td:first-child { font-weight: 800; }
.spec-table tbody tr:nth-child(even) { background: rgba(127,167,155,.09); }

.surface-grid { display: grid; margin: 40px 0; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.surface-card { overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.surface-card img { width: 100%; height: 230px; object-fit: cover; }
.surface-card div { padding: 22px; }
.surface-card h3 { margin-top: 0; }

.contact-layout { display: grid; max-width: none !important; grid-template-columns: .82fr 1.18fr; gap: 50px; }
.contact-facts { display: grid; align-content: start; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-facts a,
.contact-facts address { padding: 20px; background: var(--white); text-decoration: none; font-style: normal; }
.contact-facts small { display: block; margin-bottom: 3px; color: var(--sage-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.contact-facts .map-link { color: var(--ink); background: rgba(212,179,75,.34); font-weight: 850; }
.contact-form { padding: clamp(24px, 4vw, 45px); background: var(--ink); color: var(--white); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field--full { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 6px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 700; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 0;
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.contact-form textarea { min-height: 145px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--mustard); outline: 0; }
.contact-form .button { border-color: var(--mustard); color: var(--ink); background: var(--mustard); cursor: pointer; }
.hp-field { position: absolute !important; left: -10000px !important; }
.form-status { margin-bottom: 24px; padding: 13px 16px; color: var(--ink); background: var(--mustard); font-size: 14px; font-weight: 700; }

.site-footer {
  padding: 30px clamp(25px, 7vw, 110px);
  color: rgba(255,255,255,.72);
  background: var(--ink);
  font-size: 12px;
}
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--white); }

.error-page { display: grid; min-height: 100vh; padding: 50px; text-align: center; place-content: center; }
.error-page strong { color: var(--clay); font-size: clamp(5rem, 16vw, 13rem); line-height: .8; }

@media (max-width: 1180px) {
  :root { --rail: 205px; }
  .site-rail { padding-inline: 18px; }
  .lab-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .media-frame,
  .media-frame img { min-height: 340px; }
  .hero-data { grid-template-columns: 1fr; }
  .hero-data div { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (min-width: 901px) and (max-height: 760px) {
  .lab-panel { padding-block: 28px; }
  .lab-panel h1 { font-size: clamp(3rem, 4.3vw, 5.7rem); }
  .lab-panel h2 { font-size: clamp(2.2rem, 3.5vw, 4.4rem); }
  .media-frame,
  .media-frame img { min-height: 340px; }
  .hero-data { margin-top: 18px; }
  .button-row { margin-top: 18px; }
  .rail-nav a { padding-block: 11px; }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }
  body::before { background-size: 34px 34px; }
  .site-rail {
    position: sticky;
    top: 0;
    display: grid;
    width: 100%;
    min-height: 74px;
    padding: 12px 18px;
    align-items: center;
    grid-template-columns: 1fr auto;
  }
  .brand { grid-template-columns: 38px 1fr; }
  .brand-mark { width: 38px; height: 38px; background-size: 12px 12px; background-position: 5px 5px; }
  .nav-toggle { display: grid; width: 44px; height: 44px; place-items: center; cursor: pointer; }
  .rail-nav {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 100%;
    padding: 12px 20px 22px;
    background: var(--ink);
  }
  .site-rail.is-open .rail-nav { display: block; }
  .rail-meta { display: none; }
  .site-shell { margin-left: 0; }
  .lab-story {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }
  .lab-panel {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 70px 24px;
    overflow: hidden;
  }
  .lab-grid,
  .footer-panel .lab-grid { grid-template-columns: 1fr; }
  .lab-grid--reverse > :first-child { order: initial; }
  .media-frame { margin-top: 26px; }
  .panel-no { top: 22px; right: 18px; writing-mode: horizontal-tb; }
  .story-controls { display: none; }
  .term-band { padding: 24px; }
  .page-hero { padding-top: 75px; }
  .media-split,
  .contact-layout { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .brand-copy small { display: none; }
  .lab-panel { padding: 62px 20px; }
  .risk-grid,
  .term-grid,
  .process-grid,
  .card-grid,
  .surface-grid { grid-template-columns: 1fr; }
  .media-frame,
  .media-frame img { min-height: 280px; }
  .matrix th,
  .matrix td { min-width: 170px; padding: 12px; }
  .comparison-wrap { overflow: visible; }
  .matrix-scroll { -webkit-overflow-scrolling: touch; }
  .matrix--winner { width: 960px; min-width: 960px; }
  .page-body { width: min(100% - 36px, 1040px); padding-block: 50px 80px; }
  .page-hero { padding-inline: 18px; }
  .page-hero::after { width: 220px; height: 220px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-rail,
  .story-controls,
  .button-row { display: none !important; }
  .site-shell { margin: 0; }
  .lab-story { display: block; width: auto; height: auto; overflow: visible; }
  .lab-panel { min-width: 0; height: auto; min-height: 0; page-break-after: always; }
}
