/* Free tools and guides. Loaded only on those pages. Sheets are always black on white (paper), in light and dark mode. */
.tool-layout{display:grid;gap:1.5rem;margin-top:1.5rem}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem}
.panel h2{font-size:1.2rem;margin-bottom:.9rem}
.lang-ar .panel h2{font-size:1.25rem}
.fgroup{display:grid;gap:.9rem;margin-bottom:1.2rem}
.fgroup:last-child{margin-bottom:0}
.fgroup>h3{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:800}
.lang-ar .fgroup>h3{letter-spacing:0;font-size:.95rem;text-transform:none}
.field{display:grid;gap:.3rem;min-width:0}
.field>label,.field>span.lab{font-weight:700;font-size:.95rem}
.field input,.field select,.field textarea{font:inherit;width:100%;min-width:0;min-height:48px;padding:.6rem .8rem;border-radius:14px;border:1px solid var(--line);background:var(--bg);color:var(--text)}
.field textarea{min-height:104px;resize:vertical;line-height:1.5}
.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.hint{color:var(--muted);font-size:.88rem;line-height:1.5}
.row2{display:grid;gap:.9rem;grid-template-columns:1fr 1fr}
.row3{display:grid;gap:.9rem;grid-template-columns:1fr 1fr 1fr}
.type-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr) minmax(0,1fr);gap:.6rem;align-items:end}
.type-row .tname{font-weight:700;padding-bottom:.8rem}
.err{margin-top:.2rem;padding:.7rem .9rem;border-radius:12px;background:var(--ember-soft);color:var(--ember);font-weight:600;font-size:.95rem}
.err[hidden]{display:none}
.actions{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;margin-top:1.2rem}
.privacy-line{color:var(--muted);font-size:.9rem;margin-top:.8rem}
.out-head{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:space-between;align-items:center;margin:2rem 0 .8rem}
.out-head h2{font-size:1.4rem}
.warn-box{padding:1rem 1.2rem;border-radius:var(--radius);background:var(--saffron-soft);color:var(--text);border:1px solid color-mix(in srgb,var(--saffron) 40%,transparent);font-size:.97rem}
.warn-box strong{color:var(--saffron)}
@media (prefers-color-scheme:dark){.warn-box strong{color:#e5b25a}}
.how-line{margin-top:2.2rem;padding:1.2rem 1.3rem;border-inline-start:4px solid var(--focus);background:var(--surface);border-radius:0 var(--radius) var(--radius) 0}
[dir=rtl] .how-line{border-radius:var(--radius) 0 0 var(--radius)}
.how-line h2{font-size:1.1rem;margin-bottom:.4rem}
.how-line p{color:var(--muted)}
.src-list{display:grid;gap:.4rem;margin-top:.8rem;color:var(--muted);font-size:.92rem}
@media (min-width:900px){.tool-layout.split{grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:start}.tool-layout.split>.panel:first-child{position:sticky;top:7rem}}

/* Calculator results */
#calc-out h3{font-size:1.05rem;margin-bottom:.6rem}
.calc-table{width:100%;border-collapse:collapse}
.calc-table th,.calc-table td{padding:.5rem 0;border-bottom:1px solid var(--line);text-align:start;font-weight:600}
.calc-table td{text-align:end}
.calc-table tr.strong th,.calc-table tr.strong td{font-weight:800;border-bottom:2px solid var(--text)}
.price-cards{display:grid;gap:.7rem;margin-top:1rem;grid-template-columns:1fr}
.pcard{display:flex;flex-direction:column;gap:.15rem;padding:.9rem 1rem;border-radius:16px;border:1px solid var(--line);background:var(--bg)}
.pcard-main{border:2px solid var(--focus);background:var(--tile-bg)}
.pcard-l{font-size:.85rem;font-weight:700;color:var(--muted)}
.pcard strong{font-size:1.5rem;font-weight:800;letter-spacing:-.02em}
.pcard small{color:var(--muted);font-size:.82rem}
.calc-per{margin-top:.9rem;color:var(--muted);font-weight:600}
.steps-txt{margin-top:1rem;padding-inline-start:1.3rem;list-style:decimal;display:grid;gap:.4rem;color:var(--muted);font-size:.93rem}
.steps-txt li{padding-inline-start:.2rem}
@media (min-width:560px){.price-cards{grid-template-columns:repeat(3,1fr)}}

/* Paper sheets */
.sheet,.stickers,.contract{--p:#111;color:#111;background:#fff;font-size:.88rem;line-height:1.45}
.sheet,.contract{border:1px solid var(--line);border-radius:12px;padding:clamp(.9rem,3vw,1.6rem);max-width:860px;margin-inline:auto;box-shadow:var(--shadow);overflow-wrap:anywhere}
.lang-ar .sheet,.lang-ar .contract,.lang-ar .stickers{line-height:1.7}
.sheet *,.contract *,.stickers *{color:inherit}
.sheet-head{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #111;padding-bottom:.7rem;margin-bottom:.8rem}
.sheet-co{display:flex;flex-direction:column;gap:.1rem;min-width:0;flex:1 1 12rem}
.co-name{font-weight:800;font-size:1.25rem;line-height:1.25}
.blank-co{display:block;min-height:1.6rem;border-bottom:1px solid #777;min-width:9rem}
.co-phone{font-weight:600}
.sheet-title{display:flex;flex-direction:column;gap:.1rem;text-align:start}
.sheet-title strong{font-weight:800;font-size:1.05rem}
.sheet-type{font-size:.85rem;color:#444}
.flds{display:grid;gap:.55rem 1rem;grid-template-columns:1fr;margin-bottom:.8rem}
.fld-l{font-size:.78rem;font-weight:700;color:#444}
.fld-v{min-height:1.7rem;border-bottom:1px solid #777;font-weight:600}
.blank{display:inline-block;min-width:1px}
table.tasks{width:100%;border-collapse:collapse;table-layout:fixed;margin-bottom:.8rem}
.tasks th,.tasks td{border:1px solid #999;padding:.35rem .5rem;vertical-align:top;text-align:start}
.tasks th{background:#eee;font-size:.8rem}
.tasks td[lang=ar],.tasks th[lang=ar]{text-align:start}
.tk-c{width:2rem;text-align:center!important}
.tk-n{display:none}
.tick{display:inline-block;width:.95rem;height:.95rem;border:1.5px solid #111;border-radius:3px;vertical-align:middle}
.tasks .qn{text-align:end;width:23%}
.tasks tfoot td{font-weight:700;background:#f6f6f6}
.tasks tr.strong td{font-weight:800;font-size:1.02rem}
.boxes{display:grid;gap:.6rem;grid-template-columns:1fr 1fr;margin-bottom:.8rem}
.box,.notes-box{border:1px solid #999;border-radius:6px;padding:.3rem .5rem}
.box-l{font-size:.75rem;font-weight:700;color:#444}
.box-v{min-height:1.6rem}
.box-v.tall{min-height:4.5rem}
.sheet-foot,.sheet-warn{font-size:.78rem;color:#444;display:grid;gap:.2rem;margin-top:.8rem}
.sheet-warn{padding:.5rem .7rem;border:1px solid #999;border-radius:6px;background:#f6f6f6;margin:0 0 .9rem;font-weight:600;color:#111}
.quote-terms{display:grid;gap:.5rem;margin:.6rem 0 .9rem;font-size:.85rem}
.quote-terms li{display:grid;gap:.1rem}
.sep{color:#777}
@media (min-width:640px){
  .flds{grid-template-columns:1fr 1fr}
  .boxes{grid-template-columns:repeat(4,1fr)}
  .tk-n{display:table-cell;width:22%}
}

/* Contract */
.contract{outline:none}
.contract:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.clause{margin-bottom:.9rem;break-inside:avoid}
.clause h3{font-size:.95rem;margin-bottom:.2rem;letter-spacing:0;line-height:1.35}
.clause p{margin:0 0 .3rem}
.bi{display:grid;gap:.5rem;grid-template-columns:1fr}
.bi-ar{border-top:1px dashed #bbb;padding-top:.5rem}
.unit-list{padding-inline-start:1.4rem;list-style:decimal;display:grid;gap:.1rem;margin:.2rem 0}
.sigs{display:grid;gap:1.4rem;grid-template-columns:1fr;margin-top:1.6rem}
.sig .sig-line{min-height:3rem;border-bottom:1px solid #111;margin:.3rem 0 .2rem;font-weight:600}
.sig small{color:#444;font-size:.75rem}
@media (min-width:640px){.bi{grid-template-columns:1fr 1fr;gap:1.2rem}.bi-ar{border-top:0;padding-top:0;border-inline-start:1px dashed #bbb;padding-inline-start:1.2rem}.sigs{grid-template-columns:1fr 1fr;gap:2rem}}
.bi-ar,.bi-ar *{font-family:"Plex Arabic","Manrope",sans-serif;line-height:1.75;letter-spacing:0}

/* Stickers */
.stickers{display:flex;flex-wrap:wrap;gap:.6rem;padding:.8rem;background:#fff;border:1px solid var(--line);border-radius:12px;justify-content:center;box-shadow:var(--shadow)}
.sticker{margin:0;border:1px dashed #888;border-radius:6px;padding:2.5mm;display:flex;flex-direction:column;align-items:center;gap:1.2mm;text-align:center;break-inside:avoid;background:#fff;overflow:hidden}
.size-sm .sticker{width:45mm}.size-md .sticker{width:60mm}.size-lg .sticker{width:90mm}
.st-co{font-weight:800;line-height:1.2;font-size:.95rem;max-width:100%}
.blank-co.st-co{border-bottom:1px solid #777;min-width:60%;min-height:1.1rem}
.sticker .qr{width:78%;height:auto}
.sticker figcaption{display:flex;flex-direction:column;align-items:center;gap:.1rem;width:100%}
.st-scan{font-size:.72rem;font-weight:600;line-height:1.25}
.st-phone{font-weight:800;font-size:.95rem}
.st-unit{font-weight:800;font-size:1.05rem;border-top:1px solid #aaa;margin-top:.15rem;padding-top:.15rem;width:100%;line-height:1.25;min-height:1.5rem}
.size-sm .st-co,.size-sm .st-unit,.size-sm .st-phone{font-size:.78rem}.size-sm .st-scan{font-size:.62rem}
.size-lg .st-co{font-size:1.25rem}.size-lg .st-unit{font-size:1.4rem}.size-lg .st-phone{font-size:1.2rem}.size-lg .st-scan{font-size:.9rem}
#qr-link{direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere;font-size:.85rem;color:var(--muted)}

/* Hub and guides */
.hub-grid{display:grid;gap:14px;margin-top:2rem}
.hub-card{position:relative;display:flex;gap:14px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;transition:border-color .15s}
.hub-card:hover{border-color:var(--focus)}
.hub-card .ic{width:2.75rem;height:2.75rem;padding:.7rem;border-radius:14px;background:var(--tile-bg);color:var(--tile-fg);stroke-width:1.8}
.hub-card h3{margin-bottom:.3rem}
.hub-card h3 a{color:inherit;text-decoration:none}
.hub-card h3 a::after{content:"";position:absolute;inset:0;border-radius:var(--radius)}
.hub-card p{color:var(--muted);font-size:.98rem}
.hub-card .go{display:inline-block;margin-top:.5rem;font-weight:800;color:var(--accent);font-size:.95rem}
@media (min-width:720px){.hub-grid{grid-template-columns:1fr 1fr}}
.crumbs{font-size:.9rem;color:var(--muted);margin-bottom:1rem}
.crumbs a{color:var(--muted)}
.article{padding-top:.5rem}
.article h2{font-size:1.5rem;margin:2.2rem 0 .5rem}
.article h3{font-size:1.1rem;margin:1.4rem 0 .3rem}
.article p,.article li{max-width:68ch}
.article p{margin-top:.8rem}
.article ul,.article ol{margin-top:.8rem;padding-inline-start:1.3rem;display:grid;gap:.5rem}
.article ul{list-style:disc}.article ol{list-style:decimal}
.article .tbl{overflow-x:auto;margin-top:1rem}
.article table{border-collapse:collapse;width:100%;font-size:.95rem}
.article th,.article td{border:1px solid var(--line);padding:.55rem .7rem;text-align:start;vertical-align:top}
.article th{background:var(--soft)}
.callout{margin-top:1.4rem;padding:1rem 1.2rem;border-radius:var(--radius);background:var(--tile-bg);color:var(--text)}
.callout p{margin:0}
.related{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--line)}
.related h2{font-size:1.15rem;margin:0 0 .6rem}
.related ul{display:grid;gap:.4rem;padding:0;list-style:none;margin:0}

.made-with{font-size:.7rem;color:#777;text-align:center;margin:.9rem 0 0;flex-basis:100%;width:100%}
.stickers .made-with{grid-column:1/-1}
/* Print: only the sheet */
@page{size:A4;margin:12mm}
@media print{
  html,body{background:#fff!important}
  body{color:#000;font-size:10pt}
  .no-print,.site-header,.site-footer,.skip,.cta-band{display:none!important}
  main,.band,.wrap{padding:0!important;margin:0!important;max-width:none!important;background:none!important}
  .sheet,.contract,.stickers{border:0;box-shadow:none;border-radius:0;padding:0;max-width:none;font-size:10pt}
  .stickers{justify-content:flex-start;gap:0;padding:0}
  .sticker{border:1px dashed #888;border-radius:0}
  .tk-n{display:table-cell;width:22%}
  .flds{grid-template-columns:1fr 1fr}
  .boxes{grid-template-columns:repeat(4,1fr)}
  .bi{grid-template-columns:1fr 1fr;gap:1.2rem}
  .bi-ar{border-top:0;padding-top:0;border-inline-start:1px dashed #bbb;padding-inline-start:1.2rem}
  .sigs{grid-template-columns:1fr 1fr}
  .tasks tr{break-inside:avoid}
  a{color:inherit;text-decoration:none}
}
.prose .more,.article .more{white-space:normal}
table.quote-lines{table-layout:auto}
.quote-lines th.qn,.quote-lines td.qn{width:auto;min-width:6.5rem;white-space:normal;padding-inline:.6rem}
.quote-lines td.qn{white-space:nowrap}
@media (max-width:639px){.quote-lines th.qn,.quote-lines td.qn{min-width:0;padding-inline:.3rem}.quote-lines{font-size:.78rem}.quote-lines th{font-size:.7rem}}
