/* ===== Печатный журнал варки (Сохранить как PDF) ===== */
* { box-sizing: border-box; }
body {
  margin: 0; color: #221a10; background: #f4f0e8;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.5; font-size: 13px;
}
.sheet {
  max-width: 780px; margin: 24px auto; background: #fff; padding: 40px 46px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.toolbar {
  max-width: 780px; margin: 16px auto 0; display: flex; gap: 10px;
  align-items: center; flex-wrap: wrap;
}
.toolbar a, .toolbar button {
  font: inherit; cursor: pointer; border: 1px solid #d8ccb6; background: #fff; color: #6b4a12;
  padding: 8px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.toolbar a:hover, .toolbar button:hover { border-color: #c67c1e; }
.toolbar .primary { background: #c67c1e; color: #fff; border-color: #c67c1e; }
.toolbar .tb-spacer { flex: 1; }

/* Полный / Короткий — сегментированный переключатель предпросмотра */
.tb-switch { display: inline-flex; border: 1px solid #d8ccb6; border-radius: 8px; overflow: hidden; }
.tb-switch a { border: 0; border-radius: 0; padding: 8px 16px; color: #6b4a12; background: #fff; }
.tb-switch a + a { border-left: 1px solid #d8ccb6; }
.tb-switch a:hover { background: #f6efe1; }
.tb-switch a.active { background: #c67c1e; color: #fff; }

h1 { font-size: 26px; margin: 0 0 4px; color: #2a1c0c; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: #9c5c12;
     border-bottom: 2px solid #eadfca; padding-bottom: 5px; margin: 26px 0 12px; }
h3 { font-size: 13px; color: #6b4a12; margin: 16px 0 6px; }
.pdf-head { border-bottom: 3px solid #c67c1e; padding-bottom: 14px; margin-bottom: 8px; }
.pdf-sub { color: #6b5c48; margin: 4px 0 0; }
.brandline { color: #9c5c12; font-weight: 700; letter-spacing: .02em; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.spec { border: 1px solid #eadfca; border-radius: 8px; padding: 9px 6px; text-align: center; }
.spec b { display: block; font-size: 16px; color: #2a1c0c; }
.spec span { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #927a58; }

table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 12.5px; }
th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; color: #927a58;
     border-bottom: 1.5px solid #d8ccb6; padding: 5px 7px; }
td { padding: 6px 7px; border-bottom: 1px solid #efe7d6; }
tfoot td { font-weight: 700; border-top: 1.5px solid #d8ccb6; }
.r { text-align: right; white-space: nowrap; }
.muted { color: #927a58; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.kv dt { color: #927a58; } .kv dd { margin: 0; text-align: right; font-weight: 600; }
.note { background: #fbf5e8; border-left: 3px solid #e9a92e; padding: 10px 14px; border-radius: 4px; margin: 10px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag { border: 1px solid #e2d3b2; border-radius: 999px; padding: 2px 10px; font-size: 11px; }
ul.lessons { padding-left: 18px; margin: 6px 0; }
ul.lessons li { margin-bottom: 5px; }
.chip { font-size: 10.5px; background: #efe7d6; border-radius: 999px; padding: 1px 8px; }
.pdf-foot { margin-top: 30px; border-top: 1px solid #eadfca; padding-top: 10px; color: #927a58; font-size: 11px; display: flex; justify-content: space-between; }
.ferm-chart { width: 100%; height: auto; }
.fc-grid { stroke: #efe7d6; } .fc-axis { fill: #927a58; font-size: 10px; }
.fc-line-t { stroke: #c67c1e; stroke-width: 2; fill: none; }
.fc-line-sg { stroke: #4a5aa0; stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.fc-dot-t { fill: #c67c1e; } .fc-dot-sg { fill: #4a5aa0; }

@media print {
  body { background: #fff; }
  .toolbar { display: none; }
  .sheet { box-shadow: none; margin: 0; max-width: none; padding: 0; }
  h2 { break-after: avoid; }
  table, section { break-inside: avoid; }
  a[href]::after { content: ""; }
}
@page { margin: 16mm 14mm; }
