@page { size: A4; margin: 18mm 20mm 20mm 20mm; @bottom-center { content: counter(page); font: 8pt Helvetica, Arial, sans-serif; color: #555; } }
@page :first { @bottom-center { content: none; } }
html { background: #fff; }
body { margin: 0 auto; max-width: 170mm; font: 9.5pt/1.45 Helvetica, Arial, sans-serif; color: #111; background: #fff; }
h1, h2, h3 { font-weight: bold; margin: 0; }
h2 { font-size: 13pt; border-bottom: 0.6pt solid #111; padding-bottom: 2pt; margin: 0 0 8pt; }
h2 .n { display: inline-block; width: 9mm; }
h3 { font-size: 10pt; margin: 12pt 0 4pt; page-break-after: avoid; }
h4 { font-size: 9.5pt; margin: 9pt 0 3pt; page-break-after: avoid; }
p { margin: 0 0 6pt; }
ul, ol { margin: 0 0 6pt; padding-left: 5mm; }
li { margin: 0 0 2pt; }
code, .m { font: 8.5pt Menlo, Consolas, monospace; }
kbd { font: 7.8pt Menlo, Consolas, monospace; display: inline-block; padding: 0 3pt; border: 0.6pt solid #777; border-bottom-width: 1.4pt; border-radius: 2.5pt; background: #fafafa; color: #111; line-height: 1.35; white-space: nowrap; vertical-align: 0.5pt; }
.cover { page-break-after: always; }
.cover .ct { margin-bottom: 8mm; }
.cover3 { page-break-after: always; padding-top: 10mm; }
.cover3 .f { margin-top: 10mm; }
.mailart figure.collage { margin: 0 0 8pt; }
.cover .t { font: bold 34pt Georgia, 'Times New Roman', serif; letter-spacing: .5pt; display: flex; align-items: center; gap: 5mm; }
.cover .t b { font: bold 9pt Helvetica, Arial, sans-serif; letter-spacing: 3pt; border: 0.8pt solid #111; padding: 2.5pt 2pt 2.5pt 5pt; }
.cover .s { font-size: 8pt; letter-spacing: 2.4pt; text-transform: uppercase; margin-top: 3mm; }
.cover .p { font-size: 8.5pt; color: #333; margin-top: 2.5mm; }
.cover .k { font-size: 15pt; margin-top: 6mm; }
.cover .d { font-size: 9pt; letter-spacing: 1.5pt; text-transform: uppercase; color: #8a2a2a; margin-top: 2.5mm; }
.cover .t { margin-top: 10mm; }
.cover3 figure.cf, .cover2 figure.cf { margin: 0; }
.cover3 figure.cf + figure.cf { margin-top: 14pt; }
figure.hero img { filter: grayscale(1) contrast(1.06); transition: filter .6s ease; }
figure.hero:hover img, figure.hero:focus img, figure.hero:active img { filter: none; }
@media print { figure.hero img { filter: grayscale(1); } }
.cover2 { page-break-after: always; padding-top: 10mm; }
figure.collage { margin: 0 0 8pt; }
figure.collage img { border: 0; }
.mailart h2 { margin-top: 2pt; }
figure.win img { width: 100%; }
figure.win figcaption { margin: 3pt 0 0; }
figure img { cursor: zoom-in; }
#lb { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; cursor: zoom-out; }
#lb.on { display: flex; }
#lb img { max-width: 96vw; max-height: 92vh; border: 0.6pt solid #666; background: #000; }
#lb span { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); font: 8pt Menlo, Consolas, monospace; color: #ddd; }
@media print { #lb { display: none !important; } figure img { cursor: auto; } }
.cover .f, .cover3 .f { font-size: 8.5pt; line-height: 1.6; border-top: 0.6pt solid #111; padding-top: 3mm; }
section { page-break-before: always; }
section.cont { page-break-before: auto; margin-top: 10mm; }
.toc { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.toc td { border-bottom: 0.3pt solid #bbb; padding: 3pt 4pt 3pt 0; font-weight: normal; }
.toc td:first-child { width: 9mm; font-weight: bold; }
.toc td.sub { padding-left: 9mm; font-size: 8.8pt; }
table { width: 100%; border-collapse: collapse; margin: 4pt 0 10pt; font-size: 8.8pt; }
tr { page-break-inside: avoid; }
th { text-align: left; font-weight: bold; border-bottom: 0.6pt solid #111; padding: 2pt 4pt 2pt 0; }
td { border-bottom: 0.3pt solid #bbb; padding: 2.5pt 4pt 2.5pt 0; vertical-align: top; }
td:first-child { white-space: nowrap; font-weight: bold; }
.plain td:first-child { font-weight: normal; }
table.pb, h3.pb, h4.pb { page-break-before: always; }
table.snip { table-layout: fixed; }
table.snip td:first-child { width: 62%; white-space: normal; }
table.recipe { table-layout: fixed; }
table.recipe th:nth-child(1) { width: 19%; }
table.recipe th:nth-child(2) { width: 55%; }
figure { margin: 8pt 0 10pt; page-break-inside: avoid; }
figure img { width: 100%; display: block; border: 0.3pt solid #999; box-sizing: border-box; }
figcaption { font-size: 8pt; color: #333; margin-top: 3pt; }
figure.half { float: right; width: 42%; margin: 0 0 8pt 10pt; }
figure.half img { width: 100%; }
.ex { clear: both; }
figure.w70 img { width: 70%; }
figure.w60 img { width: 60%; }
figure.tall img { width: 300px; max-width: 100%; margin: 0 auto; }
figure.tall figcaption { max-width: 420px; margin: 4pt auto 0; text-align: center; }
body.bigimg figure.tall img { width: 300px; }
.meta { font-size: 8pt; color: #333; margin: -4pt 0 6pt; }
.note { font-size: 8.5pt; color: #333; }
.try { margin: 6pt 0 8pt; }
.try b { font-weight: bold; }
.tip { clear: both; border: 0.6pt solid #111; border-left: 3pt solid #111; padding: 5pt 9pt 6pt; margin: 9pt 0 11pt; page-break-inside: avoid; }
.tip .tl { display: block; font: bold 7.5pt Menlo, Consolas, monospace; letter-spacing: 1.2pt; text-transform: uppercase; margin-bottom: 3pt; }
.tip p { margin: 0 0 4pt; }
.tip p:last-child { margin-bottom: 0; }
.ex { border: 0.6pt solid #111; margin: 8pt 0 10pt; page-break-inside: avoid; }
.ex .exh { display: flex; justify-content: space-between; font: 7.5pt Menlo, Consolas, monospace; padding: 3pt 6pt; border-bottom: 0.3pt solid #999; background: #f2f2f2; }
.ex .exb { display: flex; align-items: center; gap: 6pt; padding: 5pt 6pt; }
.ex button { font: bold 8pt Helvetica, Arial, sans-serif; border: 0.6pt solid #111; background: #fff; color: #111; padding: 2pt 7pt; cursor: pointer; }
.ex button.on { background: #111; color: #fff; }
.ex .wf { flex: 1; height: 26pt; position: relative; cursor: pointer; }
.ex .wf svg { width: 100%; height: 100%; display: block; }
.ex .t { font: 7.5pt Menlo, Consolas, monospace; min-width: 62pt; text-align: right; }
.ex .exc { font-size: 8pt; color: #333; padding: 0 6pt 5pt; margin: 0; }
.ex .pr { display: none; font: 7.5pt Menlo, Consolas, monospace; padding: 4pt 6pt; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: .5pt; text-underline-offset: 1.5pt; }
.toc a { text-decoration: none; }
.toc a:hover, a:hover { background: #eee; }
h2[id], h3[id], .ex[id] { scroll-margin-top: 14mm; }
#a11y { position: fixed; top: 8px; right: 8px; z-index: 10; display: flex; align-items: center; gap: 6px; background: #fff; border: 0.6pt solid #111; padding: 4px 7px; font: 8pt Menlo, Consolas, monospace; }
#a11y button { font: bold 8pt Menlo, Consolas, monospace; border: 0.6pt solid #111; background: #fff; color: #111; padding: 1px 6px; cursor: pointer; }
#a11y button[aria-pressed="true"] { background: #111; color: #fff; }
#a11y .sep { color: #999; }
#a11y a { text-decoration: none; font-weight: bold; }
body.bigimg figure, body.bigimg figure.half { float: none; width: auto; margin: 8pt 0 10pt; }
body.bigimg figure img, body.bigimg figure.half img, body.bigimg figure.w60 img, body.bigimg figure.w70 img { width: 100%; }
@media print { #a11y { display: none; } a { text-decoration: none; } }
@media print { .ex .exb { display: none; } .ex .pr { display: block; } }
@media screen and (max-width: 760px) {
  body { max-width: none; padding: 0 16px 64px; font-size: 16px; line-height: 1.55; }
  h2 { font-size: 20px; } h3 { font-size: 17px; } h4 { font-size: 16px; }
  h2 .n { width: 30px; }
  code, .m { font-size: 13px; overflow-wrap: anywhere; }
  table { font-size: 14px; display: block; overflow-x: auto; }
  .toc { display: table; font-size: 15px; }
  .toc td.sub { font-size: 14px; padding-left: 30px; }
  td:first-child { white-space: normal; }
  table.snip td:first-child { width: auto; }
  figure.half { float: none; width: auto; margin: 8px 0 12px; }
  figure.w60 img, figure.w70 img { width: 100%; }
  figcaption, .note, .meta { font-size: 13px; }
  .cover .t { font-size: 34px; flex-wrap: wrap; gap: 10px; }
  .cover .s { font-size: 11px; letter-spacing: 1.5px; }
  .cover .p, .cover .f, .cover3 .f { font-size: 13px; }
  .cover .d { font-size: 12px; letter-spacing: 1px; }
  .tip .tl, .ex .exh, .ex .t, .ex .pr { font-size: 11px; }
  .ex .exb { flex-wrap: wrap; }
  .ex button { font-size: 14px; padding: 6px 12px; }
  .ex .wf { height: 44px; flex-basis: 100%; }
  .ex .exc { font-size: 14px; }
  #a11y { top: auto; bottom: 8px; right: 8px; left: 8px; justify-content: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; }
  #a11y button { font-size: 14px; padding: 4px 10px; }
  #a11y .sep { display: none; }
  h2[id], h3[id], .ex[id], .tip[id] { scroll-margin-top: 16px; }
}

/* Circuit Bender Environment: entry boxes and its own page */
a.cbe { display: grid; grid-template-columns: auto 1fr; gap: 2pt 16pt; align-items: center; margin: 12pt 0 14pt; padding: 12pt 14pt; border: 1.4pt solid #111; background: #fff; color: #111; text-decoration: none; }
a.cbe .b { grid-column: 1; grid-row: 1 / span 3; font: bold 11pt Helvetica, Arial, sans-serif; letter-spacing: .32em; border: 1.2pt solid #111; padding: 6pt 6pt 6pt 10pt; color: #111; }
a.cbe .k { grid-column: 2; font-weight: bold; letter-spacing: .14em; text-transform: uppercase; font-size: 9.5pt; color: #111; }
a.cbe .t { grid-column: 2; font-size: 9pt; color: #444; }
a.cbe .g { grid-column: 2; font: bold 9pt Menlo, Consolas, monospace; color: #d0302a; }
a.cbe:hover { background: #f4f2ef; }
#a11y a.cbe-nav { color: #d0302a; font-weight: bold; }
.cbe-hero { margin-top: 0; }
.cbe-hero .cbe-t { display: flex; align-items: baseline; gap: 12pt; flex-wrap: wrap; margin: 10pt 0 8pt; }
.cbe-hero .cbe-t > :first-child { font: bold 26pt Georgia, 'Times New Roman', serif; }
.cbe-hero .cbe-t b { font: bold 8pt Helvetica, Arial, sans-serif; letter-spacing: .32em; border: 1pt solid #111; padding: 3pt 3pt 3pt 6pt; margin-left: 8pt; vertical-align: middle; }
.cbe-hero .cbe-s { font-size: 11pt; letter-spacing: .14em; text-transform: uppercase; color: #d0302a; }
@media screen and (max-width: 480px) { a.cbe { grid-template-columns: 1fr; } a.cbe .b { grid-row: auto; justify-self: start; margin-bottom: 6pt; } a.cbe .k, a.cbe .t, a.cbe .g { grid-column: 1; } }
@media screen and (max-width: 760px) { .cbe-hero .cbe-t > :first-child { font-size: 26px; } }

h2 .toc-up { float: right; font-size: 8pt; font-weight: normal; letter-spacing: .04em; color: #777; text-decoration: none; margin-top: 4pt; }
h2 .toc-up:hover { color: #111; text-decoration: underline; }
@media print { h2 .toc-up { display: none; } }
.tip.hl { border-width: 0.8pt; border-left-width: 5pt; padding: 8pt 12pt 9pt; margin: 4pt 0 14pt; }
.tip.hl p { font-size: 1.04em; line-height: 1.5; }
.sdiv { clear: both; text-align: center; border-top: 0.6pt solid #111; padding: 16pt 0 6pt; margin: 18pt 0 8pt; }
.sdiv img { width: 52%; max-width: 360px; height: auto; }
.sdiv.sm img { width: 30%; max-width: 210px; }
.sdiv.pb { page-break-before: always; }
.olead { text-align: center; margin: 2pt auto 8pt; max-width: 88%; }
.ocloud { margin: 6pt 0 14pt; padding: 9pt 10pt 8pt; border: 0.6pt solid #111; background: #fff; }
.ocloud .ocr { display: flex; align-items: flex-start; gap: 6pt; margin: 0 0 5pt; }
.ocloud .ocs { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 4pt; }
.ocloud .ocf { flex: 0 0 15%; padding-top: 2.5pt; font: bold 7.5pt Menlo, Consolas, monospace; letter-spacing: 1.2pt; text-transform: uppercase; color: #555; }
.ocloud .oc { font: 9pt Menlo, Consolas, monospace; color: #111; border: 0.6pt solid #111; border-radius: 2pt; padding: 1.5pt 5pt; background: #fff; white-space: nowrap; }
.ocloud .oc.bo { color: #fff; background: #1f3d52; border-color: #1f3d52; }
.ocloud figcaption { margin-top: 6pt; }
@media (max-width: 640px) { .ocloud .ocr { flex-wrap: wrap; } .ocloud .ocf { flex-basis: 100%; } }
.objs td:nth-child(2) { width: 46%; }
.objs td:nth-child(3) { width: 38%; }
.cbe-hero .cbe-d { font-size: 9pt; letter-spacing: 1.5pt; text-transform: uppercase; color: #8a2a2a; margin: 0 0 6mm; text-align: center; }
figure.win.mid img { width: 78%; margin: 0 auto; }
figure.win.small img { width: 50%; margin: 0 auto; }
@media screen and (max-width: 640px) { figure.win.mid img, figure.win.small img { width: 100%; } }
.ocloud a.oc { text-decoration: none; }
.ocloud a.oc:hover { background: #111; color: #fff; }
.ocloud a.oc.bo:hover { background: #000; }
@media print { .ocloud a.oc { color: #111; } .ocloud a.oc.bo { color: #fff; } }
@keyframes hlx { 0%, 45% { background: #ffe58f; } 100% { background: transparent; } }
.hlx, tr.hlx > td, tr.hlx > th { animation: hlx 5s ease-out 1; }
@media print { .hlx, tr.hlx > td { animation: none; } }
.hlw { background: #ffd24d; box-shadow: 0 0 0 2px #ffd24d; border-radius: 2px; font-weight: bold; }
@media print { .hlw { background: none; box-shadow: none; font-weight: inherit; } }
h3 .toc-up { float: right; font-size: 8pt; font-weight: normal; letter-spacing: .04em; color: #777; text-decoration: none; margin-top: 2pt; }

#msq { position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.72); display: flex; justify-content: center; align-items: flex-start; padding-top: 9vh; }
#msq .msq-in { width: min(660px, 92vw); max-height: 76vh; display: flex; flex-direction: column; background: #fff; border: 0.6pt solid #111; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
#msq .msq-h { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 10px; border-bottom: 0.6pt solid #111; }
#msq .msq-h span { font: bold 8pt Helvetica, Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #d0302a; }
#msq input { font: 15pt Helvetica, Arial, sans-serif; border: 0; outline: 0; padding: 2px 0; color: #111; background: transparent; -webkit-appearance: none; appearance: none; }
#msq .msq-l { overflow-y: auto; }
#msq .msq-r { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 9px 14px; border-bottom: 0.4pt solid #ddd; text-decoration: none; color: #111; }
#msq .msq-r:hover, #msq .msq-r.on { background: #f3f1ec; }
#msq .msq-r.on { box-shadow: inset 3px 0 0 #d0302a; }
#msq .msq-p { font: 7.5pt Helvetica, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; }
#msq .msq-r b { font-size: 10.5pt; }
#msq .msq-t { font-size: 9pt; color: #555; line-height: 1.4; }
#msq mark { background: #ffe58f; color: inherit; padding: 0 1px; }
#msq .msq-none { padding: 14px; color: #8a8a8a; }
mark.msq-hit { background: #ffd24d; box-shadow: 0 0 0 2px #ffd24d; border-radius: 2px; color: inherit; transition: background .8s, box-shadow .8s; }
mark.msq-hit.fade { background: transparent; box-shadow: none; }
@media print { #msq, #a11y-q { display: none; } mark.msq-hit { background: none; box-shadow: none; } }
@media (max-width: 700px) { #msq { padding-top: 4vh; } #msq input { font-size: 18px; } }

a.home { color: inherit; text-decoration: none; cursor: pointer; transition: opacity .15s; }
a.home:hover { opacity: .7; }

.ccmark { display: flex; align-items: center; gap: 6px; margin: 10pt 0 6pt; color: #8f8f8f; }
.ccmark .ccsep { width: 1px; height: 20px; background: #c8c8c8; margin: 0 4px; }
.ccmark i { font-style: normal; font-size: 8.5pt; letter-spacing: .14em; color: #8f8f8f; margin-left: 6px; }
table.cclegend td:first-child { white-space: nowrap; color: #8f8f8f; }
table.cclegend td:first-child svg { vertical-align: -4px; margin-right: 6px; }
table.cclegend td:first-child b { color: #555; font-weight: 600; letter-spacing: .06em; }
.ccmini { display: flex; gap: 3px; margin-top: 5px; color: #9a9a9a; }

.tip.research { display: flex; gap: 16pt; align-items: flex-start; border-width: 1pt; border-left-width: 7pt; background: #f4f4f2; padding: 13pt 15pt 13pt; margin: 12pt 0 18pt; }
.tip.research .rimg { flex: 0 0 170px; display: block; background: #fff; border: 0.6pt solid #111; padding: 14px 16px; }
.tip.research .rimg img { width: 100%; display: block; }
.tip.research .rtx { flex: 1; min-width: 0; }
.tip.research p.rl { margin-top: 7pt; }
.tip.research p.rl { display: flex; flex-wrap: wrap; gap: 4pt 16pt; }
.tip.research p.rl a { font-weight: bold; }
.tip.research p.rh { font: bold 1.35em/1.25 Georgia, "Times New Roman", serif; margin: 2pt 0 7pt; }
.tip.research p.rh a { color: inherit; text-decoration: none; }
@media (max-width: 680px) { .tip.research { flex-direction: column; align-items: stretch; } .tip.research .rimg { flex-basis: auto; max-width: 200px; } .tip.research .rtx { width: 100%; } .tip.research code { white-space: normal; } }

/* IL RIQUADRO DELLE ISCRIZIONI. Usa il rosso che il manuale tiene gia' per le cose su cui si clicca, cosi'
   si vede senza stonare. Nessuna data dentro: una data sbagliata in un manuale ci resta per mesi. */
a.signup { display: block; margin: 16pt 0 20pt; padding: 14pt 16pt 15pt; border: 1.4pt solid #d0302a;
  background: #fffaf9; color: #111; text-decoration: none; page-break-inside: avoid; }
a.signup .sl { display: block; font: bold 8pt Helvetica, Arial, sans-serif; letter-spacing: .3em;
  text-transform: uppercase; color: #d0302a; margin-bottom: 7pt; }
a.signup .st { display: block; font: bold 14pt Georgia, 'Times New Roman', serif; margin-bottom: 5pt; }
a.signup .sd { display: block; font-size: 9.2pt; line-height: 1.5; color: #444; }
a.signup .sg { display: inline-block; margin-top: 9pt; font: bold 9pt Menlo, Consolas, monospace;
  letter-spacing: .06em; color: #d0302a; }
a.signup:hover { background: #fdf0ee; }
a.signup:hover .sg { text-decoration: underline; }
