/* Screen controls and print typography are independent of the live theme. */
*{box-sizing:border-box}html{color-scheme:light}body{margin:0;color:#172e3b;background:#e9eef1;font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}.pdf-screenbar{position:sticky;top:0;z-index:5;padding:12px max(16px,calc((100% - 1020px)/2));background:#fff;border-bottom:1px solid #cfd9df;box-shadow:0 2px 10px #172e3b0b}.pdf-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pdf-controls button,.pdf-change summary,.pdf-back{border:1px solid #bfd1dc;border-radius:7px;background:#fff;color:#075f78;text-decoration:none;font:600 14px/1.3 system-ui,sans-serif;min-height:44px;padding:11px 13px;cursor:pointer}.pdf-controls>strong{margin-right:auto;font-size:14px;white-space:nowrap}#pdf-print{background:#075f78;color:#fff;border-color:#075f78}button:disabled{opacity:.5;cursor:wait}.pdf-screenbar p{margin:7px 0 3px;font-size:13px}.pdf-help,#pdf-draft-help{font-size:12px;color:#596772;line-height:1.5}.pdf-change{position:relative}.pdf-change form{position:absolute;right:0;top:50px;width:300px;max-width:calc(100vw - 24px);padding:16px;border:1px solid #cfd9df;background:white;border-radius:8px;box-shadow:0 6px 22px #172e3b22}.pdf-change label{display:block;font-size:13px;margin:0 0 10px}.pdf-change input,.pdf-change select{display:block;width:100%;margin-top:4px;padding:9px;border:1px solid #bbcbd5;background:#fff;border-radius:5px;color:#243c4b;font:16px/1.4 system-ui;min-height:44px}.pdf-change form button{width:100%}#pdf-draft-help{padding:8px 0 0}#pdf-draft-help button{margin-left:10px;background:#fff;border:1px solid #bbcbd5;border-radius:4px;padding:7px;min-height:36px;color:#9c3924;cursor:pointer}.pdf-screenbar .pdf-error{color:#9d3020;font-weight:600}.pdf-retry{margin-left:10px;font:inherit;cursor:pointer}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d98c18;outline-offset:3px}[hidden]{display:none!important}#pdf-paper{width:210mm;max-width:calc(100% - 28px);padding:14mm 14mm 16mm;margin:22px auto 40px;background:white;box-shadow:0 3px 18px #18334214;font-family:"Times New Roman",Times,"Liberation Serif",serif;font-size:12pt;line-height:1.5;color:#101820}.pdf-doc-header{margin-bottom:7mm}.pdf-brandrow{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:4mm;border-bottom:1pt solid #152f41}.pdf-brand{display:flex;flex-direction:column;align-items:flex-start;font:700 11pt/1.25 Arial,sans-serif;gap:3px}.pdf-brand span{font:8pt/1.4 Arial,sans-serif}.pdf-logo{display:block;max-width:42mm;max-height:15mm;object-fit:contain}.pdf-domain{font:9pt/1.4 Arial,sans-serif;padding-top:3px}.pdf-doc-header h1{font-size:17pt;line-height:1.3;text-align:center;margin:6mm 0 3mm;font-weight:700}.pdf-meta{text-align:center;font-size:10pt;margin:0 0 4mm}.pdf-student{display:flex;align-items:baseline;gap:7px;margin:0;font-size:10pt}.pdf-student span{border-bottom:.5pt dotted #69727a;flex:1}.pdf-student .pdf-classline{flex:0 0 27mm}.pdf-part{margin:6mm 0 3mm;padding:2mm 0;border-bottom:.7pt solid #b9c5cb;font-size:12pt;line-height:1.3;break-after:avoid;page-break-after:avoid}.pdf-question{margin:0 0 5mm;break-inside:avoid;page-break-inside:avoid}.pdf-qheading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 1mm;font-size:12pt;break-after:avoid}.pdf-qheading>span{font:8pt/1.3 Arial,sans-serif;color:#576570}.pdf-rich{overflow-wrap:break-word}.pdf-rich p{margin:1.5mm 0}.pdf-rich figure{margin:3mm auto;max-width:100%;text-align:center;break-inside:avoid}.pdf-rich img:not(.pdf-logo){display:block;margin:3mm auto;max-width:112mm;max-height:73mm;width:auto;height:auto;object-fit:contain}.pdf-rich svg:not(mjx-container svg){display:block;max-width:100%;height:auto;margin:2mm auto}.pdf-rich figcaption{font-size:9pt;line-height:1.3;margin:2mm 0}.pdf-rich a{color:inherit;text-decoration:none}.pdf-options{display:grid;grid-template-columns:1fr;gap:1.3mm;margin-top:2.5mm}.pdf-option{display:flex;gap:2mm;align-items:baseline;break-inside:avoid}.pdf-option>strong{flex:0 0 5mm}.pdf-option>.pdf-rich{min-width:0}.pdf-tf,.pdf-key{width:100%;border-collapse:collapse;font-size:11pt;margin:3mm 0}.pdf-tf th,.pdf-tf td,.pdf-key th,.pdf-key td{padding:2mm;border:.5pt solid #aebbc2;vertical-align:middle}.pdf-tf thead th{font-size:9pt}.pdf-tf th:first-child{text-align:left}.pdf-tf th:not(:first-child),.pdf-tf td:not(:first-child){width:12mm;min-width:12mm;text-align:center;white-space:nowrap}.pdf-box{display:inline-block;width:3mm;height:3mm;border:.6pt solid #343c41}.pdf-abc{font-weight:bold;white-space:nowrap}.pdf-tf tr,.pdf-key tr{break-inside:avoid;page-break-inside:avoid}.pdf-tf thead,.pdf-key thead{display:table-header-group}.pdf-answerblank{font-size:10pt;display:flex;gap:2mm;align-items:baseline;margin:2mm 0}.pdf-answerblank span{width:50mm;border-bottom:.5pt dotted #79858c}.pdf-ruled{margin:2mm 0 0;break-before:avoid}.pdf-rule{height:7mm;border-bottom:.4pt dotted #8f999e;break-inside:avoid}.pdf-workspace{margin-top:3mm}.pdf-workspace label{font:600 12px/1.4 system-ui,sans-serif;color:#345461;display:block;margin:0 0 4px}.pdf-workspace textarea{display:block;width:100%;resize:vertical;min-height:100px;max-height:none;padding:10px;border:1px solid #a8c5d6;border-radius:5px;background:#fcfefe;color:#173543;font:16px/1.6 system-ui,sans-serif}.pdf-written-output{margin:2mm 0;padding:2mm 0;white-space:pre-wrap;overflow-wrap:anywhere}.pdf-written-output:empty{display:none}.pdf-is-writing .pdf-ruled{display:none}.pdf-is-writing .pdf-written-output:not(:empty){padding:3mm;border-top:.5pt dashed #a1bac7;background:#f7fafc}.pdf-solutions{break-before:page;page-break-before:always;margin-top:8mm}.pdf-solutions h2{font-size:16pt;margin:0 0 2mm;text-align:center}.pdf-answer-note{font-size:9pt;color:#495962;margin:0 0 4mm;text-align:center}.pdf-key th:first-child{width:17mm;white-space:nowrap}.pdf-key th{text-align:left}.pdf-solution{break-inside:avoid;margin:0 0 4mm}.pdf-solution h3{margin:4mm 0 1mm;font-size:12pt;break-after:avoid}.pdf-doc-footer{border-top:.5pt solid #adb9c0;padding-top:3mm;margin-top:7mm;font:8pt/1.6 Arial,sans-serif;display:flex;flex-wrap:wrap;gap:2mm;overflow-wrap:anywhere}.pdf-doc-footer a{width:100%;color:#334d5e;text-decoration:none}.pdf-source-warning{border:1pt solid #9b3e1e;padding:3mm;color:#70280f;font:10pt/1.5 Arial,sans-serif}.pdf-long-question,.pdf-long-question .pdf-question-body{break-inside:auto!important;page-break-inside:auto!important}.pdf-rich table{max-width:100%;border-collapse:collapse}.pdf-rich mjx-container{max-width:100%;font-size:102%!important;overflow:visible}.pdf-rich mjx-container[display=true]{display:block;margin:2mm 0!important;text-align:center}.pdf-rich mjx-container svg{max-width:100%}.pdf-too-wide{outline:2px solid #b6432e}.pdf-manual-hint{color:#8b4029}
@page{size:A4;margin:14mm 14mm 16mm}
@media print{html,body{width:auto;margin:0;padding:0;background:#fff;color:#000;font-size:12pt}.pdf-screenbar,noscript{display:none!important}#pdf-paper{max-width:none;width:auto;margin:0;padding:0;box-shadow:none;font-size:12pt}.pdf-doc-header{margin-top:0}.pdf-workspace textarea,.pdf-workspace label{display:none!important}.pdf-written-output[hidden]{display:block!important}.pdf-written-output{background:none!important;border:none!important;padding:0!important}.pdf-workspace[hidden]{display:none!important}.pdf-is-writing .pdf-ruled{display:none}.pdf-is-writing .pdf-workspace{display:block!important}.pdf-rich img{break-inside:avoid}.pdf-rich mjx-container{break-inside:avoid}.pdf-too-wide{outline:none}.pdf-solutions{margin-top:0}.pdf-doc-footer{break-inside:avoid}body:not([data-ready="true"]) #pdf-paper{display:none!important}body:not([data-ready="true"])::before{display:block;content:"Chưa đủ công thức hoặc hình ảnh để xuất. Quay lại trang và chờ báo sẵn sàng; không in khi đề chưa hoàn tất.";font:14pt/1.5 Arial,sans-serif;color:#000}}
@media screen and (max-width:650px){.pdf-screenbar{padding:10px 12px}.pdf-controls{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pdf-controls>.pdf-back{justify-self:start;border:0;padding:9px 0}.pdf-controls>strong{text-align:right;margin:0}.pdf-controls>#pdf-print,.pdf-controls>#pdf-write{width:100%;font-size:14px}.pdf-change{grid-column:1/-1}.pdf-change summary{border:0;padding:6px 0;min-height:32px}.pdf-change form{position:static;width:100%;max-width:100%;box-shadow:none;margin:5px 0}.pdf-help{font-size:11px}#pdf-paper{width:auto;max-width:100%;margin:12px 0 25px;padding:18px 15px;font-size:12pt;box-shadow:none}.pdf-doc-header h1{font-size:15pt}.pdf-domain{font-size:8pt}.pdf-brand span{font-size:7pt}.pdf-rich img:not(.pdf-logo){max-width:100%;max-height:75mm}.pdf-tf{font-size:11pt}.pdf-tf th:not(:first-child),.pdf-tf td:not(:first-child){width:10mm;min-width:10mm;padding:1mm}.pdf-student .pdf-classline{flex-basis:17mm}.pdf-doc-footer{font-size:8pt}}

.pdf-options.pdf-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:4mm}.pdf-options.pdf-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:3mm}@media screen and (max-width:650px){.pdf-options.pdf-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@page{@bottom-right{content:counter(page) " / " counter(pages);font:9pt Arial,sans-serif;color:#596771}}


.pdf-source-url{font:7pt/1.4 Arial,sans-serif;margin:2mm 0 0;overflow-wrap:anywhere}.pdf-source-url a{color:#586a76;text-decoration:none}.pdf-domain{color:inherit;text-decoration:none}
@media print{.pdf-doc-footer{display:flex!important}}
@page{@bottom-left{content:"Gia Sư SV · giasutainha.edu.vn";font:8pt Arial,sans-serif;color:#596771}}

/* RC7.100.8: original approved logo, unique exercise URL, clean printable QR. */
.pdf-logo{max-width:19mm;max-height:19mm;width:auto;height:auto;object-fit:contain}
.pdf-brandrow{align-items:center;gap:8mm}
.pdf-brand{flex-direction:row;align-items:center;gap:4mm}
.pdf-brand span{font:8pt/1.45 Arial,sans-serif;max-width:50mm}
.pdf-domain{font:600 9pt/1.4 Arial,sans-serif;white-space:nowrap;color:#314e60;text-decoration:none}
.pdf-doc-footer{display:flex;align-items:center;gap:5mm;padding-top:4mm;border-top:.6pt solid #b9c7cf;break-inside:avoid;page-break-inside:avoid;overflow-wrap:anywhere;color:#172e3b}
.pdf-qr{width:34mm;height:34mm;flex:0 0 34mm;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e3e9eb}
.pdf-qr svg{width:100%;height:100%;display:block;shape-rendering:crispEdges}
.pdf-qr-wait{font:7pt Arial,sans-serif;text-align:center;color:#65737b}
.pdf-footer-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:1mm;min-width:0}
.pdf-footer-copy>strong{font:700 9pt/1.45 Arial,sans-serif}
.pdf-footer-copy>a{width:auto!important;max-width:100%;font:8pt/1.4 Arial,sans-serif;color:#324e60;text-decoration:none;overflow-wrap:anywhere;word-break:break-word}
.pdf-footer-copy>small{font:7.5pt/1.4 Arial,sans-serif;color:#60727b}
@media print{
 .pdf-doc-footer{display:flex!important}
 .pdf-qr{border:0!important}
 .pdf-footer-copy a{text-decoration:none}
}
@page{@bottom-left{content:"Gia Sư SV";font:8pt Arial,sans-serif;color:#596771}}
@media screen and (max-width:650px){.pdf-brandrow{gap:7px}.pdf-logo{max-width:14mm;max-height:14mm}.pdf-domain{font-size:7pt}.pdf-brand span{font-size:7pt}.pdf-qr{width:22mm;height:22mm;flex-basis:22mm}.pdf-footer-copy>strong{font-size:8pt}.pdf-footer-copy>a{font-size:7pt}}
.pdf-qr-head{display:flex;align-items:center;gap:3.5mm;justify-content:flex-end}
.pdf-qr-head .pdf-qr{width:26mm;height:26mm;flex-basis:26mm}
.pdf-doc-footer{display:block;break-inside:avoid;page-break-inside:avoid;margin-top:4mm;padding-top:2mm}
.pdf-doc-footer .pdf-footer-copy{display:flex;flex-direction:column;gap:0;align-items:flex-start}
/* Keep the short source link on the final question page, rather than adding an almost-empty sheet. */
@media print{.pdf-question{margin-bottom:3mm!important}.pdf-doc-footer{margin-top:2mm!important}}
@media print{.pdf-doc-footer{display:block!important}}
@media screen and (max-width:650px){.pdf-qr-head{gap:2mm}.pdf-qr-head .pdf-qr{width:22mm;height:22mm;flex-basis:22mm}}

/* RC7.100.9: understated publisher information. Focus the reader on the exam. */
.pdf-doc-header{margin-bottom:6mm}
.pdf-brandrow{justify-content:flex-start;align-items:center;gap:0;padding-bottom:2mm;border-bottom:.35pt solid #d8e0e4}
.pdf-brand{display:flex;flex-direction:row;gap:2.5mm;align-items:center;color:#4a5e69}
.pdf-logo{max-width:10mm;max-height:10mm;width:auto;height:auto;object-fit:contain}
.pdf-brand-copy{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0}
.pdf-brand-copy strong{font:700 8pt/1.2 Arial,sans-serif;letter-spacing:.2px;color:#385463}
.pdf-brand-copy small{font:6.8pt/1.35 Arial,sans-serif;color:#657883;white-space:normal}
.pdf-doc-header h1{margin-top:4mm}
.pdf-doc-footer{display:flex!important;flex-direction:row!important;align-items:center;gap:3.5mm;min-height:0;max-width:100%;margin-top:2mm;padding:2mm 0 0;border-top:.35pt solid #d2dbdf;page-break-inside:avoid;break-inside:avoid;color:#566974}
.pdf-doc-footer .pdf-qr{display:flex;align-items:center;justify-content:center;flex:0 0 20mm;width:20mm;height:20mm;border:0;background:#fff}
.pdf-doc-footer .pdf-qr svg{width:100%;height:100%;max-width:100%;display:block;shape-rendering:crispEdges}
.pdf-doc-footer .pdf-footer-copy{display:flex;flex:1;flex-direction:column;gap:.7mm;min-width:0;justify-content:center;align-items:flex-start}
.pdf-doc-footer .pdf-site{font:600 7.5pt/1.35 Arial,sans-serif;color:#36596b;text-decoration:none;overflow-wrap:anywhere}
.pdf-doc-footer .pdf-hotline{font:7pt/1.35 Arial,sans-serif;color:#5b6f7a}
.pdf-doc-footer small{font:6.6pt/1.3 Arial,sans-serif;color:#6a7b85}
@page{@bottom-left{content:""}}
@media print{.pdf-doc-footer{display:flex!important}.pdf-doc-footer .pdf-qr{border:0}.pdf-doc-footer a{text-decoration:none}}
@media screen and (max-width:650px){
 .pdf-brandrow{gap:0}.pdf-logo{max-width:9mm;max-height:9mm}
 .pdf-brand-copy strong{font-size:7.5pt}.pdf-brand-copy small{font-size:6.3pt}
 .pdf-doc-footer .pdf-qr{width:19mm;height:19mm;flex-basis:19mm}
 .pdf-doc-footer .pdf-site{font-size:7pt}.pdf-doc-footer .pdf-hotline{font-size:6.8pt}.pdf-doc-footer small{font-size:6.1pt}
}
/* Compact print spacing: keep the QR/contact row on the last question sheet. */
@media print{
 .pdf-question{margin-bottom:0!important}
 .pdf-rich figure{margin:2mm auto}
 .pdf-question:last-of-type{margin-bottom:0!important}
 .pdf-doc-footer{margin-top:0!important;padding-top:.3mm!important}
 .pdf-doc-footer .pdf-qr{width:14mm;height:14mm;flex-basis:14mm}
}

/* RC7.100.10: three quiet footer lines alongside a scannable small QR. */
.pdf-brand-copy{max-width:29mm}
.pdf-brand-copy small{display:flex;flex-direction:column;max-width:29mm;gap:0;font:400 5.6pt/1.16 Arial,sans-serif;letter-spacing:0;white-space:normal;color:#73838b}
.pdf-brand-copy small span{display:block;white-space:nowrap}
.pdf-doc-footer{gap:2.5mm;align-items:center}
.pdf-doc-footer .pdf-qr{flex:0 0 14mm;width:14mm;height:14mm}
.pdf-doc-footer .pdf-footer-copy{gap:0;min-width:0}
.pdf-doc-footer .pdf-site{font:600 7pt/1.2 Arial,sans-serif;white-space:nowrap}
.pdf-doc-footer .pdf-hotline{font:400 6.7pt/1.2 Arial,sans-serif;white-space:nowrap}
.pdf-doc-footer .pdf-footer-copy>small{font:400 6.1pt/1.2 Arial,sans-serif;white-space:nowrap}
@media screen and (max-width:650px){
 .pdf-doc-footer .pdf-qr{flex-basis:15mm;width:15mm;height:15mm}
 .pdf-doc-footer .pdf-footer-copy>small{font-size:6pt}
}
@media print{
 .pdf-brand-copy small{font-size:5.5pt}
 .pdf-doc-footer{gap:2.2mm!important}
 .pdf-doc-footer .pdf-qr{flex:0 0 14mm;width:14mm;height:14mm}
 .pdf-doc-footer .pdf-footer-copy>small{font-size:6pt}
}

/* Prevent the compact Gia Sư SV name itself from wrapping. */
.pdf-brand-copy{flex:0 0 29mm;min-width:29mm;max-width:29mm}
.pdf-brand-copy strong{white-space:nowrap}


/* RC7.100.11 · Keep exactly one compact publisher/contact row, on the FIRST A4 page.
 * All question typography, diagram sizing, answer keys, page spacing and controls
 * above remain untouched. The QR id is unchanged for local-only QR generation. */
.pdf-doc-header .pdf-brandrow{
 display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;
 gap:3mm;max-width:100%;min-width:0;padding-bottom:2mm;
 border-bottom:.35pt solid #d8e0e4;
}
.pdf-doc-header .pdf-brand{display:flex;flex:0 1 auto;min-width:0;align-items:center;gap:2.5mm}
.pdf-doc-header .pdf-logo{display:block;flex:0 0 auto;max-width:9mm;max-height:9mm;width:auto;height:auto}
.pdf-doc-header .pdf-brand-copy{flex:0 0 auto;min-width:0;max-width:none}
.pdf-doc-header .pdf-brand-copy strong{
 font:700 8pt/1.2 Arial,sans-serif;letter-spacing:.1px;color:#385463;white-space:nowrap;
}
.pdf-doc-header .pdf-brand-copy small{
 display:flex;flex-direction:column;gap:0;max-width:none;
 font:400 6.2pt/1.22 Arial,sans-serif;color:#6b7c86;
}
.pdf-doc-header .pdf-brand-copy small span{display:block;white-space:nowrap}
.pdf-doc-header .pdf-contacthead{
 display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:2.3mm;
 min-width:0;margin-left:auto;
}
.pdf-contacthead .pdf-footer-copy{
 display:flex;flex:0 1 auto;flex-direction:column;justify-content:center;
 align-items:flex-end;gap:0;min-width:0;text-align:right;
}
.pdf-contacthead .pdf-site{display:block;font:600 7pt/1.2 Arial,sans-serif;color:#36596b;text-decoration:none;white-space:nowrap}
.pdf-contacthead .pdf-hotline{display:block;font:400 6.6pt/1.2 Arial,sans-serif;color:#5b6f7a;white-space:nowrap}
.pdf-contacthead .pdf-footer-copy>small{display:block;font:400 5.8pt/1.2 Arial,sans-serif;color:#687b86;white-space:nowrap}
.pdf-contacthead .pdf-qr{
 display:flex;flex:0 0 15mm;align-items:center;justify-content:center;
 width:15mm;height:15mm;margin:0;padding:0;border:0;background:#fff;
}
.pdf-contacthead .pdf-qr svg{width:100%;height:100%;display:block;shape-rendering:crispEdges}
/* The paper preview on very narrow phones may wrap the contact row rather than overlap. */
@media screen and (max-width:650px){
 .pdf-doc-header .pdf-brandrow{gap:1.2mm}
 .pdf-doc-header .pdf-brand{gap:1.3mm}
 .pdf-doc-header .pdf-logo{max-width:7.5mm;max-height:7.5mm}
 .pdf-doc-header .pdf-brand-copy strong{font-size:7.1pt}
 .pdf-doc-header .pdf-brand-copy small{font-size:5.6pt;line-height:1.16}
 .pdf-doc-header .pdf-contacthead{gap:1.2mm}
 .pdf-contacthead .pdf-site{font-size:6pt}
 .pdf-contacthead .pdf-hotline{font-size:5.8pt}
 .pdf-contacthead .pdf-footer-copy>small{font-size:5.1pt}
 .pdf-contacthead .pdf-qr{flex-basis:12mm;width:12mm;height:12mm}
}
@media screen and (max-width:380px){
 .pdf-doc-header .pdf-brandrow{flex-wrap:wrap;row-gap:1mm}
 .pdf-doc-header .pdf-contacthead{margin-left:auto}
}
@media print{
 .pdf-doc-header .pdf-brandrow{flex-wrap:nowrap}
 .pdf-contacthead .pdf-qr{flex:0 0 15mm;width:15mm;height:15mm}
}

/* RC7.100.12 · iPhone print footer safeguard + one-line trademark slogan.
 * The date/time, URL and page counter visible in Apple print previews are
 * browser-added metadata, not part of this document's HTML. The zero page
 * margin removes space normally reserved for them on supporting browsers;
 * duplicated fragment padding preserves the printable A4 content margins. */
.pdf-doc-header .pdf-brand-copy small {
 display:block;white-space:nowrap;max-width:none;
 font:400 5.5pt/1.16 Arial,sans-serif;color:#6b7c86;letter-spacing:-.075pt;
}
@media screen and (max-width:650px){
 .pdf-doc-header .pdf-brandrow {flex-wrap:wrap;row-gap:1mm;}
 .pdf-doc-header .pdf-brand-copy small {font-size:5.3pt;}
}
/* Reassert a single A4 line when printing, even from a narrow phone preview. */
@media print {
 .pdf-doc-header .pdf-brandrow {flex-wrap:nowrap;}
 .pdf-doc-header .pdf-brand-copy small {font-size:5.5pt;}
 /* Avoid content touching edges when the page-area margin is zero. */
 #pdf-paper {
  padding:14mm 14mm 16mm !important;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
  margin:0 !important;max-width:none !important;width:100% !important;
 }
 html,body {margin:0!important;padding:0!important;}
}
/* Apply last to override older @page page-number and publisher margin boxes. */
@page {
 size:A4;
 margin:0;
 @top-left {content:none;}
 @top-center {content:none;}
 @top-right {content:none;}
 @bottom-left {content:none;}
 @bottom-center {content:none;}
 @bottom-right {content:none;}
}
