/* =====================================================================
   Hydari theme — the print version of a post (spec 4.21).

   (2026-11-10, the user's correction) Set as a magazine page: white paper
   (no tinted ground anywhere, nor the site's textured background on the
   last page), a slim letterhead, the section as a kicker over a bold
   title, one quiet line of date, length and reference, the summary
   beside an accent bar, the picture whole and framed (never cropped),
   the text in a smaller reading size with a clear order of headings,
   and the address with its QR code at the end. The palette gives the
   accents; the ink is near black so it prints clean.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html:has(body.hy-print) { background: #fff !important; background-image: none !important; }
body.hy-print { --ink: #1c1b1a; --muted: #5f5b57; --soft: #8a8580; --line: #e3dfda; --accent: var(--color-primary, #4a4a4a); --accent-2: var(--color-accent, var(--accent));
    --pad: clamp(1rem, 6vw, 1.7cm);
    margin: 0; padding: 1rem 1rem 3rem; background: var(--bg-app, #eceae6); background-image: none; color: var(--ink); font-family: var(--font-body, serif); font-size: 15px; line-height: 1.7; }
.hy-print svg { inline-size: 1em; block-size: 1em; flex: none; }

/* ---- the tool bar (screen only) ---------------------------------------------------------------------------------------------------- */
.hy-print__bar { position: sticky; z-index: 5; inset-block-start: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; inline-size: fit-content; max-inline-size: 100%;
    margin: 0 auto 1.25rem; padding: .35rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, #fff 85%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .35); }
.hy-print__btn { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.05rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--color-on-primary, #fff);
    font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .25s ease, box-shadow .2s ease; }
.hy-print__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px var(--accent); }
.hy-print__btn--ghost { background: transparent; color: var(--ink); }
.hy-print__btn--ghost:hover { background: #f2f0ed; box-shadow: none; }
.hy-print__hint { margin: 0; padding-inline: .6rem; font-size: .85rem; color: var(--muted); }

/* ---- the sheet: white A4 paper ------------------------------------------------------------------------------------------------------ */
.hy-print__sheet { position: relative; max-inline-size: 21cm; min-block-size: 29.7cm; margin-inline: auto; padding-block-end: var(--pad); border-radius: 4px; background: #fff;
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06); }
.hy-print__sheet::before { content: ""; display: block; block-size: 5px; background: linear-gradient(90deg, var(--accent) 0 70%, var(--accent-2) 70%); -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* the letterhead */
.hy-print__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4cm 1cm; margin-inline: var(--pad); padding-block: .6cm .45cm; border-block-end: 1px solid var(--ink); }
.hy-print__brand { display: flex; align-items: center; gap: .35cm; min-inline-size: 0; }
.hy-print__logo { display: block; max-block-size: 1.3cm; max-inline-size: 4.5cm; object-fit: contain; }
.hy-print__mark { display: grid; place-items: center; flex: none; inline-size: 1.15cm; block-size: 1.15cm; border-radius: 8px; background: var(--accent); color: #fff;
    font-family: var(--font-heading, serif); font-size: 1.25rem; font-weight: 800; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hy-print__brandtext { min-inline-size: 0; }
.hy-print__site { margin: 0; font-family: var(--font-heading, inherit); font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: .01em; color: var(--ink); }
.hy-print__tagline { margin: .06cm 0 0; color: var(--soft); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.hy-print__contact { display: grid; gap: .04cm; margin: 0; padding: 0; list-style: none; font-size: .7rem; line-height: 1.5; color: var(--muted); text-align: end; }
.hy-print__contact li { display: flex; align-items: center; justify-content: flex-end; gap: .2cm; }
.hy-print__contact svg { color: var(--accent); inline-size: .85em; block-size: .85em; }
.hy-print__contact:empty { display: none; }

/* ---- the article --------------------------------------------------------------------------------------------------------------------- */
.hy-print__article { padding: .8cm var(--pad) .2cm; }
.hy-print__titleblock { margin-block-end: .5cm; }
.hy-print__kicker { display: inline-block; margin: 0 0 .25cm; padding-block-end: .06cm; border-block-end: 2px solid var(--accent-2); color: var(--accent); font-family: var(--font-body, sans-serif);
    font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hy-print__title { margin: 0; font-family: var(--font-text, var(--font-heading, inherit)); font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.hy-print__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .1cm .45cm; margin: .3cm 0 0; color: var(--muted); font-family: var(--font-body, sans-serif); font-size: .72rem; line-height: 1.5; }
.hy-print__meta > span { display: inline-flex; align-items: center; gap: .14cm; }
.hy-print__meta svg { color: var(--accent); inline-size: .95em; block-size: .95em; }
.hy-print__meta strong { color: var(--ink); font-weight: 700; }
.hy-print__refno { margin-inline-start: auto; color: var(--soft); font-family: var(--font-code, monospace); font-size: .66rem; letter-spacing: .04em; }
.hy-print__lead { margin: 0 0 .55cm; padding-inline-start: .4cm; border-inline-start: 3px solid var(--accent-2); font-family: var(--font-text, inherit); font-size: 1rem; font-style: italic; line-height: 1.65; color: var(--muted);
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hy-print__lead:lang(fa), .hy-print__lead:lang(ar), .hy-print__lead:lang(ur) { font-style: normal; }

/* the picture: whole, centred, framed by a hairline, never cut */
.hy-print__figure { margin: 0 0 .6cm; padding: .15cm; border: 1px solid var(--line); border-radius: 3px; text-align: center; break-inside: avoid; }
.hy-print__figure picture { display: block; }
.hy-print__figure img { display: block; inline-size: auto; max-inline-size: 100%; block-size: auto; max-block-size: 11.5cm; margin-inline: auto; object-fit: contain; }
.hy-print__figure figcaption { margin-block-start: .15cm; color: var(--soft); font-size: .7rem; font-style: italic; }

/* the text: a smaller reading size, justified, a clear order of headings */
.hy-print .hy-print__text.hb-flow, .hy-print__text { color: var(--ink); font-family: var(--font-text, inherit); font-size: .94rem; line-height: 1.7; }
.hy-print__text :not(code, pre, kbd, samp) { font-family: inherit; }
.hy-print__text :is(p, li, dd) { color: var(--ink); text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; text-wrap: pretty; }
.hy-print .hy-print__text > * { margin-block: 0 .8em; }
.hy-print .hy-print__text > :last-child { margin-block-end: 0; }
.hy-print__text :is(strong, b) { color: var(--ink); font-weight: 700; }
.hy-print__text a { color: var(--accent); font-weight: 600; text-decoration: none; background: none; box-shadow: none; padding: 0; margin: 0; }
.hy-print__text :is(h1, h2, h3, h4, h5, h6) { line-height: 1.3; text-align: start; break-after: avoid; }
.hy-print__text :is(h1, h2) { margin-block: 1.5em .5em; padding-block-end: .12cm; border-block-end: 1px solid var(--line); font-size: 1.22em; }
.hy-print__text :is(h1, h2)::before { content: ""; display: inline-block; inline-size: .5em; block-size: .5em; margin-inline-end: .35em; border-radius: 2px; background: var(--accent-2); vertical-align: .08em;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hy-print__text h3 { margin-block: 1.3em .4em; font-size: 1.08em; }
.hy-print__text :is(h4, h5, h6) { margin-block: 1.1em .3em; font-size: 1em; }
.hy-print__text :is(blockquote, .hb-quote) { margin-inline: 0; padding: .1cm 0 .1cm .45cm; border-inline-start: 3px solid var(--accent-2); background: none; color: var(--muted); font-style: italic; }
.hy-print__text :is(ul, ol) { padding-inline-start: 1.3em; }
.hy-print__text li { margin-block-end: .25em; }
.hy-print__text li::marker { color: var(--accent); }
.hy-print__text :is(figure, .hb-image) { margin-inline: 0; text-align: center; break-inside: avoid; }
.hy-print__text img { display: block; inline-size: auto; max-inline-size: 100%; block-size: auto; max-block-size: 10cm; margin-inline: auto; object-fit: contain; border-radius: 2px; }
.hy-print__text :is(figcaption, .hb-caption) { margin-block-start: .12cm; color: var(--soft); font-size: .78em; font-style: italic; text-align: center; }
.hy-print__text table { inline-size: 100%; border-collapse: collapse; font-size: .9em; }
.hy-print__text :is(th, td) { padding: .1cm .2cm; border: 1px solid var(--line); text-align: start; }
.hy-print__text th { background: none; font-weight: 700; }
.hy-print__text :is(pre, code) { background: none; }
/* a block's own coloured panels lose their ground on paper */
.hy-print__text :is(.hb-callout, .hb-box, .hb-group, .hb-panel, .hb-notice) { background: none !important; border: 1px solid var(--line); }

/* ---- the address with its QR code ---------------------------------------------------------------------------------------------------- */
.hy-print__foot { display: flex; align-items: center; gap: .55cm; margin: .7cm var(--pad) 0; padding-block-start: .4cm; border-block-start: 1px solid var(--ink); break-inside: avoid; }
.hy-print__qr { flex: none; padding: .1cm; background: #fff; border: 1px solid var(--line); }
.hy-print__qr svg { display: block; inline-size: 2.2cm; block-size: 2.2cm; }
.hy-print__address { min-inline-size: 0; font-size: .74rem; }
.hy-print__label { margin: 0; color: var(--accent); font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hy-print__url { margin: 0 0 .15cm; color: var(--ink); word-break: break-all; font-family: var(--font-code, monospace); font-size: .7rem; line-height: 1.5; }
.hy-print__printed { margin: .1cm 0 0; color: var(--soft); font-size: .66rem; }

@media (max-width: 575.98px) {
    .hy-print__sheet { min-block-size: 0; }
    .hy-print__head { grid-template-columns: minmax(0, 1fr); }
    .hy-print__contact { text-align: start; }
    .hy-print__contact li { justify-content: flex-start; }
    .hy-print__refno { margin-inline-start: 0; }
    .hy-print__foot { flex-direction: column; align-items: flex-start; }
}

/* ---- paper ----------------------------------------------------------------------------------------------------------------------------- */
@page { size: A4; margin: 13mm 15mm 15mm; @bottom-left { font: 7.5pt sans-serif; color: #777; } @bottom-right { font: 7.5pt sans-serif; color: #777; } }
@media print {
    html, body.hy-print { background: #fff !important; background-image: none !important; }
    body.hy-print { padding: 0; font-size: 10pt; }
    .hy-print__bar { display: none !important; }
    .hy-print__sheet { max-inline-size: none; min-block-size: 0; padding: 0; border-radius: 0; background: #fff; box-shadow: none; }
    .hy-print__head, .hy-print__foot { margin-inline: 0; }
    .hy-print__head { padding-block: .1cm .35cm; }
    .hy-print__article { padding: .6cm 0 0; }
    .hy-print .hy-print__text.hb-flow, .hy-print__text { font-size: 10.5pt; line-height: 1.6; }
    .hy-print__title { font-size: 20pt; }
    .hy-print__lead { font-size: 11pt; }
    .hy-print__figure img { max-block-size: 11cm; }
    .hy-print__text :is(p, li) { orphans: 3; widows: 3; }
    .hy-print__text :is(figure, table, pre, blockquote), .hy-print__head, .hy-print__titleblock, .hy-print__figure { break-inside: avoid; }
}

/* =====================================================================
   (2026-11-10, the user's request) Four layouts, chosen in Display › Item ›
   Print version and, when readers may, on this page's bar: letterhead (the
   rules above), magazine, newspaper and social post. One page of HTML, set
   four ways; every side and every float is logical, so a right-to-left text
   is set as a right-to-left page. Letters are never spaced apart in Arabic
   script (it would break their joins) and only Latin text gets a drop cap.
   ===================================================================== */

/* the chooser on the bar */
.hy-print__layouts { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: #f1efec; }
.hy-print__layout { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem .35rem .45rem; border: 0; border-radius: 999px; background: none; color: var(--muted);
    font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.hy-print__layout svg { inline-size: 26px; block-size: 22px; }
.hy-print__layout:hover { background: #fff; color: var(--ink); }
.hy-print__layout.is-current { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.hy-print__layout:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 760px) { .hy-print__layout span { display: none; } .hy-print__layout { padding: .35rem .45rem; } }

/* parts only some layouts show */
.hy-print__dateline, .hy-print__card-head, .hy-print__card-actions { display: none; }
html[dir="rtl"] .hy-print *, .hy-print [dir="rtl"], .hy-print [dir="rtl"] * { letter-spacing: 0 !important; }
.hy-print__title:is(:lang(ur), :lang(ar), :lang(fa)) { line-height: 1.6; }
.hy-print__text:lang(ur) { line-height: 2.2; }

/* ---- MAGAZINE: a display title beside a small kicker, the lead set to the end, the picture whole, two columns with a rule and a drop
        cap ----------------------------------------------------------------------------------------------------------------------------- */
.hy-print--magazine .hy-print__sheet::before { display: none; }
.hy-print--magazine .hy-print__head { grid-template-columns: minmax(0, 1fr); padding-block: .55cm .3cm; border-block-end: 1px solid var(--line); }
.hy-print--magazine .hy-print__contact { display: none; }
.hy-print--magazine .hy-print__logo { max-block-size: .9cm; }
.hy-print--magazine .hy-print__mark { inline-size: .8cm; block-size: .8cm; border-radius: 50%; font-size: .9rem; }
.hy-print--magazine .hy-print__site { font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hy-print--magazine .hy-print__tagline { display: none; }
.hy-print--magazine .hy-print__article { padding-block-start: .9cm; }
.hy-print--magazine .hy-print__titleblock { display: grid; grid-template-columns: 3.6cm minmax(0, 1fr); grid-template-areas: "kick title" "meta title"; align-items: end; column-gap: .6cm; margin-block-end: .55cm; }
.hy-print--magazine .hy-print__kicker { grid-area: kick; justify-self: end; margin: 0 0 .15cm; border: 0; font-size: .62rem; letter-spacing: .18em; text-align: end; }
.hy-print--magazine .hy-print__meta { grid-area: meta; flex-direction: column; align-items: flex-end; gap: .08cm; margin: 0; font-size: .64rem; text-align: end; }
.hy-print--magazine .hy-print__refno { margin: 0; }
.hy-print--magazine .hy-print__title { grid-area: title; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 500; line-height: 1.04; letter-spacing: -.015em; text-transform: uppercase; }
.hy-print--magazine .hy-print__title:is(:lang(ur), :lang(ar), :lang(fa)) { text-transform: none; line-height: 1.55; }
.hy-print--magazine .hy-print__lead { inline-size: min(100%, 62%); margin: 0 0 .6cm auto; padding: 0; border: 0; font-size: 1.12rem; line-height: 1.45; text-align: end; color: var(--ink); }
.hy-print--magazine .hy-print__figure { margin: 0 0 .6cm calc(-1 * var(--pad)); padding: 0; border: 0; border-radius: 0; text-align: start; }
.hy-print--magazine .hy-print__figure img { margin-inline: 0; max-block-size: 10cm; }
.hy-print--magazine .hy-print__text { column-count: 2; column-gap: .75cm; column-rule: 1px solid var(--line); font-size: .9rem; }
.hy-print--magazine .hy-print__text > p { margin-block: 0 .65em; }
.hy-print--magazine .hy-print__text > :is(h2, h3, h4) { column-span: none; }
.hy-print--magazine .hy-print__text :is(h2, h3) { border: 0; padding: 0; margin-block: 1em .3em; }
.hy-print--magazine .hy-print__text :is(h1, h2)::before { display: none; }
.hy-print--magazine .hy-print__text:not(:lang(fa), :lang(ar), :lang(ur), :lang(hi)) .hy-print__drop { float: inline-start; margin: .06em .1em 0 0; color: var(--ink);
    font-size: 4.1em; font-weight: 500; line-height: .82; }
.hy-print--magazine .hy-print__foot { border-block-start-width: 1px; border-color: var(--line); }

/* ---- NEWSPAPER: a dateline, the site as a masthead between two rules, the picture first with its caption, the headline and subhead,
        the text in two justified columns ---------------------------------------------------------------------------------------------- */
.hy-print--newspaper .hy-print__sheet::before { display: none; }
.hy-print--newspaper .hy-print__dateline { display: flex; justify-content: space-between; gap: .5cm; margin: 0 var(--pad); padding-block: .5cm .2cm; border-block-end: 1.5px solid var(--ink);
    color: var(--muted); font-family: var(--font-text, serif); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.hy-print--newspaper .hy-print__dateline-section { color: var(--accent); font-weight: 700; }
.hy-print--newspaper .hy-print__head { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: .3cm .25cm; border-block-end: 4px double var(--ink); text-align: center; }
.hy-print--newspaper .hy-print__brand { flex-direction: column; gap: .12cm; }
.hy-print--newspaper .hy-print__logo { max-block-size: 1cm; }
.hy-print--newspaper .hy-print__mark { display: none; }
.hy-print--newspaper .hy-print__site { font-family: var(--font-text, serif); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 400; line-height: 1.05; letter-spacing: .05em; text-transform: uppercase; }
.hy-print--newspaper .hy-print__tagline { font-size: .66rem; letter-spacing: .18em; }
.hy-print--newspaper .hy-print__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .1cm .5cm; margin-block-start: .1cm; text-align: center; }
.hy-print--newspaper .hy-print__contact li { justify-content: center; }
.hy-print--newspaper .hy-print__article { display: flex; flex-direction: column; padding-block-start: .55cm; }
.hy-print--newspaper .hy-print__figure { order: 1; margin: 0 0 .45cm; padding: 0 0 .35cm; border: 0; border-block-end: 1.5px solid var(--ink); border-radius: 0; }
.hy-print--newspaper .hy-print__figure img { inline-size: 100%; max-block-size: 10.5cm; object-fit: cover; }
.hy-print--newspaper .hy-print__titleblock { order: 2; margin-block-end: .2cm; }
.hy-print--newspaper .hy-print__lead { order: 3; }
.hy-print--newspaper .hy-print__text { order: 4; }
.hy-print--newspaper .hy-print__kicker { border: 0; padding: 0; color: var(--muted); font-size: .66rem; }
.hy-print--newspaper .hy-print__title { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.9rem); font-weight: 700; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; }
.hy-print--newspaper .hy-print__title:is(:lang(ur), :lang(ar), :lang(fa)) { text-transform: none; }
.hy-print--newspaper .hy-print__meta { font-size: .68rem; }
.hy-print--newspaper .hy-print__lead { margin: 0 0 .45cm; padding: 0; border: 0; color: var(--ink); font-size: 1.02rem; font-style: normal; font-weight: 700; line-height: 1.45; }
.hy-print--newspaper .hy-print__text { column-count: 2; column-gap: .8cm; font-size: .9rem; }
.hy-print--newspaper .hy-print__text > p { margin-block: 0 .55em; }
.hy-print--newspaper .hy-print__text :is(h2, h3) { border: 0; padding: 0; margin-block: .9em .3em; font-size: 1.05em; text-transform: uppercase; }
.hy-print--newspaper .hy-print__text :is(h2, h3):is(:lang(ur), :lang(ar), :lang(fa)) { text-transform: none; }
.hy-print--newspaper .hy-print__text :is(h1, h2)::before { display: none; }
.hy-print--newspaper .hy-print__foot { border-block-start: 4px double var(--ink); }

/* ---- SOCIAL POST: the site's name and the reference on a top line, a large italic title between two thick rules, the lead beside an
        accent square, the picture as a post card beside the text ----------------------------------------------------------------------- */
.hy-print--social .hy-print__sheet::before { display: none; }
.hy-print--social .hy-print__head { display: none; }
.hy-print--social .hy-print__dateline { display: flex; justify-content: space-between; gap: .5cm; margin: 0 var(--pad); padding-block: .6cm 0; color: var(--ink);
    font-family: var(--font-body, sans-serif); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hy-print--social .hy-print__dateline > span:first-child { order: 2; color: var(--muted); font-weight: 400; }
.hy-print--social .hy-print__dateline > :last-child { order: 3; color: var(--muted); font-weight: 400; }
.hy-print--social .hy-print__dateline-section { order: 1; margin-inline-end: auto; }
.hy-print--social .hy-print__dateline::before { content: attr(data-site); }
.hy-print--social .hy-print__article { padding-block-start: .45cm; }
.hy-print--social .hy-print__titleblock { margin-block-end: .45cm; padding-block: .2cm .3cm; border-block: 4px solid var(--accent); text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hy-print--social .hy-print__kicker { display: none; }
.hy-print--social .hy-print__title { color: var(--accent); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-style: italic; font-weight: 800; line-height: 1.15; }
.hy-print--social .hy-print__title:is(:lang(ur), :lang(ar), :lang(fa)) { font-style: normal; line-height: 1.6; }
.hy-print--social .hy-print__meta { justify-content: center; }
.hy-print--social .hy-print__refno { margin: 0; }
.hy-print--social .hy-print__lead { display: grid; grid-template-columns: 1.7cm minmax(0, 1fr); gap: .45cm; align-items: start; margin: 0 0 .55cm; padding: 0; border: 0;
    color: var(--ink); font-size: .98rem; font-weight: 700; line-height: 1.5; text-align: justify; }
.hy-print--social .hy-print__lead::before { content: ""; display: block; inline-size: 1.7cm; block-size: 1.7cm; background: var(--accent); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hy-print--social .hy-print__figure { float: inline-end; inline-size: 46%; margin: .1cm 0 .4cm .55cm; padding: .25cm .25cm .2cm; border: 1px solid var(--line); border-radius: 6px; background: #fff;
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35); text-align: start; }
[dir="rtl"] .hy-print--social .hy-print__figure, .hy-print--social [dir="rtl"] .hy-print__figure { margin: .1cm .55cm .4cm 0; }
.hy-print--social .hy-print__figure img { inline-size: 100%; max-block-size: 9cm; object-fit: cover; border-radius: 2px; }
.hy-print--social .hy-print__card-head { display: flex; align-items: center; gap: .2cm; margin-block-end: .2cm; font-family: var(--font-body, sans-serif); font-size: .7rem; font-weight: 700; color: var(--ink); }
.hy-print--social .hy-print__card-avatar { display: grid; place-items: center; inline-size: .6cm; block-size: .6cm; overflow: hidden; border-radius: 50%; background: var(--accent); color: #fff; font-size: .6rem;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hy-print--social .hy-print__card-avatar img { inline-size: 100%; block-size: 100%; max-block-size: none; object-fit: contain; background: #fff; }
.hy-print--social .hy-print__card-name { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hy-print--social .hy-print__card-more { color: var(--soft); letter-spacing: .1em; }
.hy-print--social .hy-print__card-actions { display: flex; align-items: center; gap: .3cm; margin-block-start: .2cm; color: var(--ink); }
.hy-print--social .hy-print__card-actions svg { inline-size: .45cm; block-size: .45cm; }
.hy-print--social .hy-print__card-actions svg:first-child { color: #e0245e; fill: #e0245e; }
.hy-print--social .hy-print__card-actions span { flex: 1 1 auto; }
.hy-print--social .hy-print__text { font-size: .9rem; }
.hy-print--social .hy-print__text :is(h2, h3) { border: 0; padding: 0; }
.hy-print--social .hy-print__text :is(h1, h2)::before { display: none; }
.hy-print--social .hy-print__text :is(blockquote, .hb-quote) { clear: both; padding: .35cm .45cm; border: 0; background: var(--accent); color: #fff; font-style: normal; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hy-print--social .hy-print__foot { clear: both; border-block-start: 4px solid var(--accent); }

@media (max-width: 575.98px) {
    .hy-print--magazine .hy-print__titleblock { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kick" "title" "meta"; }
    .hy-print--magazine .hy-print__kicker, .hy-print--magazine .hy-print__meta { justify-self: start; align-items: flex-start; text-align: start; }
    .hy-print--magazine .hy-print__lead { inline-size: 100%; }
    .hy-print--magazine .hy-print__text, .hy-print--newspaper .hy-print__text { column-count: 1; }
    .hy-print--social .hy-print__figure { float: none; inline-size: 100%; margin-inline: 0; }
}
@media print {
    .hy-print--magazine .hy-print__figure { margin-inline-start: 0; }
    .hy-print--magazine .hy-print__title { font-size: 30pt; }
    .hy-print--newspaper .hy-print__site { font-size: 30pt; }
    .hy-print--newspaper .hy-print__dateline, .hy-print--social .hy-print__dateline { margin-inline: 0; padding-block-start: 0; }
    .hy-print--social .hy-print__figure { box-shadow: none; }
    .hy-print--social .hy-print__title { font-size: 24pt; }
    .hy-print--magazine .hy-print__text, .hy-print--newspaper .hy-print__text { font-size: 10pt; }
}
/* refinements after the first proofs */
.hy-print--magazine .hy-print__meta svg { display: none; }
.hy-print--magazine .hy-print__meta > span { white-space: nowrap; }
.hy-print--newspaper .hy-print__figure img { inline-size: auto; max-inline-size: 100%; margin-inline: auto; object-fit: contain; }
.hy-print--newspaper :is(.hy-print__kicker, .hy-print__meta-date, .hy-print__refno), .hy-print--social :is(.hy-print__meta-date, .hy-print__refno) { display: none; }
.hy-print--social .hy-print__lead { align-items: stretch; }
.hy-print--social .hy-print__lead::before { block-size: auto; min-block-size: 1.1cm; }

/* (2026-11-10, the user's correction) A link's address no longer follows its words on paper: the words carry a starred number and the
   addresses are listed as footnotes before the address and QR code. */
.hy-print__text .hy-print__fn { margin-inline-start: .08em; color: var(--accent); font-family: var(--font-body, sans-serif); font-size: .62em; font-weight: 700; line-height: 0; }
.hy-print__notes { margin: .6cm var(--pad) 0; padding-block-start: .3cm; border-block-start: 1px solid var(--line); break-inside: avoid; }
.hy-print__notelist { display: grid; gap: .1cm; margin: .15cm 0 0; padding: 0; list-style: none; font-size: .72rem; line-height: 1.5; }
.hy-print__notelist li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .25cm; }
.hy-print__notemark { grid-row: span 2; color: var(--accent); font-weight: 800; }
.hy-print__notetext { color: var(--ink); font-weight: 600; }
.hy-print__noteurl { color: var(--muted); font-family: var(--font-code, monospace); font-size: .66rem; word-break: break-all; text-align: start; }
[dir="rtl"] .hy-print__noteurl { text-align: end; }
@media print { .hy-print__notes { margin-inline: 0; } }

/* =====================================================================
   (2026-11-10, the user's request) Ornaments before the headings: the
   single-colour designs of Display › Books (themes/hydari/assets/img/
   ornaments), painted in the palette's accent through a mask — one per
   layout. And the page budget: a post of up to ~550 words, with its
   links, address and QR code, is set to fit one A4 sheet; a longer one
   flows on, but its end (footnotes, address, QR) stays with the last
   lines of the text and is never left alone on a new page.
   ===================================================================== */
body.hy-print { --hy-orn: url("../img/ornaments/compass.webp"); }
body.hy-print--magazine { --hy-orn: url("../img/ornaments/quatrefoil.webp"); }
body.hy-print--newspaper { --hy-orn: url("../img/ornaments/star.webp"); }
body.hy-print--social { --hy-orn: url("../img/ornaments/flower.webp"); }
body.hy-print .hy-print__text :is(h1, h2, h3)::before { content: ""; display: inline-block; flex: none; inline-size: .9em; block-size: .9em; margin-inline-end: .4em; border-radius: 0; vertical-align: -.1em;
    background: var(--accent-2); -webkit-mask: var(--hy-orn) center / contain no-repeat; mask: var(--hy-orn) center / contain no-repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.hy-print .hy-print__text h3::before { inline-size: .75em; block-size: .75em; }

/* the end of the post keeps with its text */
.hy-print__notes, .hy-print__foot { break-before: avoid; break-inside: avoid; }
.hy-print__text > :last-child { break-after: avoid; }

@media print {
    body.hy-print--fit-one .hy-print__head { padding-block: 0 .25cm; }
    body.hy-print--fit-one .hy-print__dateline { padding-block-end: .12cm; }
    body.hy-print--fit-one .hy-print__article { padding-block-start: .35cm; }
    body.hy-print--fit-one .hy-print__titleblock { margin-block-end: .3cm; }
    body.hy-print--fit-one .hy-print__title { font-size: 18pt; }
    body.hy-print--fit-one.hy-print--magazine .hy-print__title { font-size: 24pt; }
    body.hy-print--fit-one.hy-print--newspaper .hy-print__site { font-size: 24pt; }
    body.hy-print--fit-one.hy-print--social .hy-print__title { font-size: 20pt; }
    body.hy-print--fit-one .hy-print__lead { margin-block-end: .3cm; font-size: 10pt; line-height: 1.45; }
    body.hy-print--fit-one.hy-print--social .hy-print__lead::before { inline-size: 1.1cm; min-block-size: .8cm; }
    body.hy-print--fit-one .hy-print__figure { margin-block-end: .3cm; }
    body.hy-print--fit-one .hy-print__figure img { max-block-size: 6.5cm; }
    body.hy-print--fit-one.hy-print--social .hy-print__figure { inline-size: 40%; }
    body.hy-print--fit-one .hy-print__text.hb-flow, body.hy-print--fit-one .hy-print__text { font-size: 9.6pt; line-height: 1.5; }
    body.hy-print--fit-one .hy-print__text > * { margin-block-end: .5em; }
    body.hy-print--fit-one .hy-print__text :is(h1, h2, h3) { margin-block: .8em .25em; }
    body.hy-print--fit-one .hy-print__text img { max-block-size: 5.5cm; }
    body.hy-print--fit-one .hy-print__notes { margin-block-start: .3cm; padding-block-start: .15cm; }
    body.hy-print--fit-one .hy-print__foot { margin-block-start: .3cm; padding-block-start: .2cm; gap: .4cm; }
    body.hy-print--fit-one .hy-print__qr svg { inline-size: 1.8cm; block-size: 1.8cm; }
}

/* (2026-11-10) A tighter budget for the one-sheet posts that also carry pictures and tables: the main picture lower, pictures inside the
   text beside it (text flows round them), compact tables and lists. */
@media print {
    body.hy-print--fit-one .hy-print__figure img { max-block-size: 5cm; }
    body.hy-print--fit-one .hy-print__text.hb-flow, body.hy-print--fit-one .hy-print__text { font-size: 9.3pt; line-height: 1.45; }
    body.hy-print--fit-one .hy-print__text > :is(figure, .hb-image) { float: inline-end; clear: inline-end; inline-size: 36%; margin: .1cm 0 .2cm .4cm; }
    html[dir="rtl"] body.hy-print--fit-one .hy-print__text > :is(figure, .hb-image) { margin: .1cm .4cm .2cm 0; }
    body.hy-print--fit-one .hy-print__text :is(figure, .hb-image) img { max-block-size: 4cm; }
    body.hy-print--fit-one:is(.hy-print--magazine, .hy-print--newspaper) .hy-print__text > :is(figure, .hb-image) { float: none; inline-size: auto; margin: 0 0 .4em; }
    body.hy-print--fit-one:is(.hy-print--magazine, .hy-print--newspaper) .hy-print__text :is(figure, .hb-image) img { max-block-size: 3.2cm; }
    body.hy-print--fit-one .hy-print__text table { font-size: .82em; }
    body.hy-print--fit-one .hy-print__text :is(th, td) { padding: .04cm .15cm; }
    body.hy-print--fit-one .hy-print__text :is(ul, ol) { margin-block: 0 .4em; }
    body.hy-print--fit-one .hy-print__text li { margin-block-end: .1em; }
    body.hy-print--fit-one .hy-print__text > :is(h1, h2, h3) { clear: none; }
    body.hy-print--fit-one .hy-print__text hr { margin-block: .4em; }
}
/* the last few lines: smaller page margins and rhythm for the one-sheet posts */
@media print {
    body.hy-print--fit-one .hy-print__text.hb-flow, body.hy-print--fit-one .hy-print__text { font-size: 9pt; line-height: 1.42; }
    body.hy-print--fit-one .hy-print__text > * { margin-block-end: .42em; }
    body.hy-print--fit-one .hy-print__text :is(h1, h2, h3) { margin-block: .6em .2em; }
    body.hy-print--fit-one .hy-print__figure img { max-block-size: 4.6cm; }
    body.hy-print--fit-one .hy-print__title { font-size: 16.5pt; }
    body.hy-print--fit-one .hy-print__head { padding-block-end: .2cm; }
    body.hy-print--fit-one .hy-print__foot { margin-block-start: .25cm; padding-block-start: .15cm; }
    body.hy-print--fit-one .hy-print__qr svg { inline-size: 1.6cm; block-size: 1.6cm; }
    body.hy-print--fit-one .hy-print__url { margin-block-end: .08cm; }
}
@page fit { margin: 10mm 13mm 13mm; }
@media print { body.hy-print--fit-one .hy-print__sheet { page: fit; } }
@media print {
    body.hy-print--fit-one .hy-print__mark { inline-size: .85cm; block-size: .85cm; font-size: 1rem; border-radius: 7px; }
    body.hy-print--fit-one .hy-print__logo { max-block-size: 1cm; }
    body.hy-print--fit-one .hy-print__figure { padding: 0; border: 0; }
    body.hy-print--fit-one .hy-print__text hr { margin-block: .25em; }
    body.hy-print--fit-one .hy-print__kicker { margin-block-end: .12cm; }
    body.hy-print--fit-one .hy-print__meta { margin-block-start: .15cm; }
    body.hy-print--fit-one .hy-print__text :is(figcaption, .hb-caption) { margin-block-start: .05cm; }
}
@media print {
    body.hy-print--fit-one .hy-print__figure img { max-block-size: 4.2cm; }
    body.hy-print--fit-one .hy-print__text > :is(figure, .hb-image) { inline-size: 30%; }
    body.hy-print--fit-one .hy-print__text :is(figure, .hb-image) img { max-block-size: 3.4cm; }
    body.hy-print--fit-one .hy-print__sheet::before { block-size: 4px; }
    body.hy-print--fit-one .hy-print__lead { margin-block-end: .22cm; }
}

/* (2026-11-10) The heading ornaments chosen in Display › Item › Text, per level, over the layout's own design. */
body.hy-print .hy-print__text h4::before { content: ""; display: inline-block; inline-size: .8em; block-size: .8em; margin-inline-end: .4em; vertical-align: -.1em;
    background: var(--accent-2); -webkit-mask: var(--hy-orn) center / contain no-repeat; mask: var(--hy-orn) center / contain no-repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.hy-print[data-orn-h1] .hy-print__text h1 { --hy-orn: var(--hy-orn-h1); }
body.hy-print[data-orn-h2] .hy-print__text h2 { --hy-orn: var(--hy-orn-h2); }
body.hy-print[data-orn-h3] .hy-print__text h3 { --hy-orn: var(--hy-orn-h3); }
body.hy-print[data-orn-h4] .hy-print__text h4 { --hy-orn: var(--hy-orn-h4); }
body.hy-print[data-orn-h1="img"] .hy-print__text h1::before, body.hy-print[data-orn-h2="img"] .hy-print__text h2::before,
body.hy-print[data-orn-h3="img"] .hy-print__text h3::before, body.hy-print[data-orn-h4="img"] .hy-print__text h4::before {
    background: var(--hy-orn) center / contain no-repeat; -webkit-mask: none; mask: none; }

/* =====================================================================
   (2026-11-10, the user's request) "PDF" and "Image" on the bar: the sheet
   saved as it shows, one page as long as the post. While it is drawn the
   sheet loses its A4 height, corners and shadow. Justified text is
   hyphenated, so a narrow column has no wide gaps between words; a browser
   that cannot hyphenate the language sets it to the start instead
   (print.js, .hy-print--ragged). Paragraphs open flush, with a space
   between them, not an indent.
   ===================================================================== */
.hy-print__exports { display: inline-flex; gap: .3rem; }
.hy-print__btn--soft { background: #f1efec; color: var(--ink); }
.hy-print__btn--soft:hover { background: #e9e6e2; box-shadow: none; }
.hy-print__btn--soft svg { color: var(--accent); }
.hy-print__btn.is-suggested { box-shadow: 0 0 0 2px var(--accent); }
.hy-print__btn.is-busy { cursor: progress; opacity: .75; }
.hy-print__btn.is-busy svg { animation: hy-print-pulse 1s ease-in-out infinite; }
@keyframes hy-print-pulse { 50% { opacity: .3; } }
.hy-print__hint { flex-basis: 100%; padding-block: .1rem .25rem; color: #a3312a; text-align: center; }
@media (max-width: 760px) { .hy-print__exports .hy-print__btn { padding-inline: .7rem; } }

body.is-exporting .hy-print__sheet { min-block-size: 0; border-radius: 0; box-shadow: none; }

.hy-print--ragged .hy-print__text :is(p, li, dd) { text-align: start; hyphens: manual; -webkit-hyphens: manual; }
.hy-print__text :is(h1, h2, h3, h4, h5, h6, figcaption, .hb-caption, th, td) { hyphens: manual; -webkit-hyphens: manual; }
.hy-print__text > p { text-indent: 0; }

/* the links of the end: the address, the short link, the footnotes and the QR code open their page (on screen, in a PDF) */
.hy-print__url a, a.hy-print__noteurl { color: inherit; font-weight: inherit; text-decoration: none; }
a.hy-print__qr { display: block; }
.hy-print__noteurl { display: block; }
.hy-print__fn a { color: inherit; font-weight: inherit; text-decoration: none; }
/* =====================================================================
   (2026-11-10, the user's rule) The text looks as it does on the site —
   the same colours, weights and styles (bold, light, italic or not); a
   layout only places and sizes it. Text in the site's text colour
   (--text-content), bold words a deeper primary, links bold in the
   accent hue, headings in the heading colour at the heading weight with
   the ornament in the accent, the title in the post page's tone, the
   summary in the muted body face. On screen (and so in the PDF and the
   picture) the sheet is the site's card colour with its background
   pattern laid very faint over it; paper stays white.
   ===================================================================== */
body.hy-print .hy-print__text, body.hy-print .hy-print__text.hb-flow { color: var(--text-content, var(--color-primary, var(--ink))); }
body.hy-print .hy-print__text :is(p, li, dd) { color: inherit; }
body.hy-print .hy-print__text :is(strong, b) { color: color-mix(in srgb, var(--text-content, var(--color-primary, var(--ink))) 55%, var(--text-heading, var(--color-primary-hover, var(--ink)))); font-weight: 700; }
body.hy-print .hy-print__text a:not(.hy-print__fn a) { color: color-mix(in srgb, var(--color-accent, var(--color-primary-active, var(--accent))) 76%, var(--text-main, #1c1b1a)); font-weight: 700; }
body.hy-print .hy-print__text a :is(strong, b, em, i) { color: inherit; }
/* A heading's colour and weight are the site's own: the heading block's (.hb-heading, with the colour an editor gave it) or the theme's per level (h2 { color: var(--text-h2) }); the print sets neither. */
body.hy-print .hy-print__text :is(h1, h2, h3, h4, h5, h6) { font-style: normal; text-transform: none; }
body.hy-print .hy-print__text li::marker { color: inherit; }
body.hy-print .hy-print__text .hy-print__drop { color: inherit; }
body.hy-print[data-orn-h1="mask"] .hy-print__text h1::before, body.hy-print[data-orn-h2="mask"] .hy-print__text h2::before,
body.hy-print[data-orn-h3="mask"] .hy-print__text h3::before, body.hy-print[data-orn-h4="mask"] .hy-print__text h4::before {
    background: color-mix(in srgb, var(--color-accent, var(--color-primary, #777)) 82%, var(--text-main, #1c1b1a)); }

/* the title and the summary as on the post page (each layout keeps its size and place) */
body.hy-print .hy-print__title { color: color-mix(in srgb, var(--color-primary, var(--ink)) 82%, var(--color-accent, var(--color-primary, var(--ink)))); font-weight: 800; font-style: normal; text-transform: none; }
body.hy-print .hy-print__lead { color: var(--text-muted, var(--text-secondary, var(--muted))); font-family: var(--font-body, sans-serif); font-style: normal; font-weight: 400; }

/* MAGAZINE: no date beside the title (the author stays when the site shows one); the picture at the end side — on the right of an
   English text, on the left of a Persian or Urdu one — with rounded corners */
.hy-print--magazine .hy-print__titleblock { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "meta"; }
.hy-print--magazine .hy-print__meta { justify-self: start; align-items: flex-start; margin-block-start: .25cm; text-align: start; }
.hy-print--magazine .hy-print__meta-date { display: none !important; }
.hy-print--magazine .hy-print__meta:not(:has(> span:not(.hy-print__meta-date))) { display: none; }
.hy-print--magazine .hy-print__figure { margin: 0 0 .6cm; padding: 0; text-align: end; }
.hy-print--magazine .hy-print__figure :is(picture, img) { margin-inline: auto 0; }
.hy-print--magazine .hy-print__figure img { border-radius: var(--radius-card, 14px); }
@media print { .hy-print--magazine .hy-print__figure { margin-inline-start: 0; } }

/* the sheet on screen: the site's card with its pattern, very faint */
@media screen {
    body.hy-print .hy-print__sheet { --hy-sheet: var(--bg-content, var(--bg-card, #fff));
        background: linear-gradient(color-mix(in srgb, var(--hy-sheet) 50%, transparent), color-mix(in srgb, var(--hy-sheet) 50%, transparent)),
            var(--hy-sheet-texture, none) 0 0 / var(--hy-sheet-texture-size, auto) repeat, var(--hy-sheet); }
    body.hy-print .hy-print__qr { background: #fff; }
}
/* (2026-11-10) Urdu on the sheet as on the post page: set to the start (a justified Nastaliq line stops short of the right edge in
   Chrome), the title at Nastaliq's line height, a small gap between paragraphs. */
body.hy-print .hy-print__text:lang(ur) :is(p, li, dd) { text-align: start; }
body.hy-print .hy-print__text:lang(ur) > p { margin-block-end: .3em; }
body.hy-print .hy-print__title:lang(ur) { line-height: 2; }
body.hy-print .hy-print__lead:lang(ur) { line-height: 2.1; }
/* (2026-11-10, the user's correction) MAGAZINE: the picture back against the sheet's edge at the start of the line (left in English,
   right in Persian and Urdu), as before — only its corners rounded. */
.hy-print--magazine .hy-print__figure { margin-block: 0 .6cm; margin-inline: calc(-1 * var(--pad)) 0; padding: 0; text-align: start; }
.hy-print--magazine .hy-print__figure :is(picture, img) { margin-inline: 0; }
.hy-print--magazine .hy-print__figure img { border-radius: var(--radius-card, 14px); }
@media print { .hy-print--magazine .hy-print__figure { margin-inline-start: 0; } }

/* (2026-11-10, the user's correction) Urdu on the sheet with twice the room between lines: Nastaliq climbs and falls far, and the
   one-sheet budget (1.42 on paper) had squeezed it. The same on screen, in the PDF and the picture, and on paper. */
body.hy-print .hy-print__text:lang(ur), body.hy-print .hy-print__text.hb-flow:lang(ur) { line-height: 2.9; }
@media print { body.hy-print .hy-print__text:lang(ur), body.hy-print .hy-print__text.hb-flow:lang(ur), body.hy-print--fit-one .hy-print__text:lang(ur), body.hy-print--fit-one .hy-print__text.hb-flow:lang(ur) { line-height: 2.8; } }