:root {
  --bg: #f7f4fb;
  --surface: #ffffff;
  --ink: #1c1526;
  --muted: #5c5368;
  --line: #e6dced;
  --accent: #7a3d9e;
  --accent-soft: #f0e4f8;
  --danger: #9b2c2c;
  --danger-bg: #fdecec;
  --ok: #276749;
  --ok-bg: #e8f7ef;
  --code-bg: #f3f0f7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 21, 38, 0.06), 0 8px 24px rgba(28, 21, 38, 0.06);
  /* Brand fonts by default (blog, legal, FA UI). Homepage locks to system until ads consent. */
  --font-fa: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --font-latin: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

html.consent-pending {
  --font-fa: Tahoma, "Segoe UI", system-ui, sans-serif;
  --font-latin: "Segoe UI", system-ui, sans-serif;
}

html.consent-ok {
  --font-fa: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --font-latin: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* CSS display on labels overrides the HTML hidden attribute unless forced */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 100% -10%, #efe3f8 0%, transparent 55%),
    radial-gradient(900px 400px at 0% 0%, #e8f2ff 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-fa);
  line-height: 1.75;
  font-size: 16px;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-brand {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topbar-brand:hover {
  text-decoration: none;
  opacity: 0.88;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  line-height: 1.2;
}

.lang-btn + .lang-btn {
  border-inline-start: 1px solid var(--line);
}

.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-btn:hover:not(.is-active):not([aria-pressed="true"]) {
  background: var(--code-bg);
  color: var(--ink);
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 4rem;
}

.wrap.layout {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.25rem;
  align-items: start;
}

.main-col {
  min-width: 0;
}

.history-col {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  margin-bottom: 0;
}

.history-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.history-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.history-select-all {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.history-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
}

.history-check {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.history-open {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--code-bg);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  text-align: start;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
}

.history-open:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.history-open strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.history-open span {
  font-size: 0.78rem;
  color: var(--muted);
}

.history-delete {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--danger);
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.history-delete:hover {
  background: var(--danger-bg);
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
}

button.ghost.danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 25%, var(--line));
}

button.ghost.danger:hover:not(:disabled) {
  background: var(--danger-bg);
}

button.ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.field-hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .wrap.layout {
    grid-template-columns: 1fr;
  }

  .history-col {
    position: static;
    max-height: none;
  }
}

header.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

header.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.35;
  color: var(--accent);
}

header.hero .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 46rem;
  line-height: 1.65;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge.warn {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

section.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

section.card > h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--accent);
}

section.card > h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.02rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .form-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-grid.two {
    grid-template-columns: 1fr auto;
  }
  .form-grid.two-equal {
    grid-template-columns: 1fr 1fr;
  }
}

.provider-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  min-height: 2.85rem;
}

.provider-status .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #b0a8bc;
  flex-shrink: 0;
}

.provider-status[data-state="checking"] .dot {
  background: #c9a227;
  box-shadow: 0 0 0 3px color-mix(in srgb, #c9a227 25%, transparent);
}

.provider-status[data-state="ok"] {
  background: var(--ok-bg);
  border-color: color-mix(in srgb, var(--ok) 25%, white);
  color: var(--ok);
}

.provider-status[data-state="ok"] .dot {
  background: var(--ok);
}

.provider-status[data-state="error"] {
  background: var(--danger-bg);
  border-color: color-mix(in srgb, var(--danger) 25%, white);
  color: var(--danger);
}

.provider-status[data-state="error"] .dot {
  background: var(--danger);
}

.provider-status-text {
  flex: 1 1 12rem;
  min-width: 0;
  line-height: 1.45;
}

button.ghost.small {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

button.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

label.field select,
label.field textarea {
  font-family: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fcfaff;
  color: var(--ink);
  width: 100%;
}

label.field select:focus,
label.field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, white);
  border-color: var(--accent);
}

label.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

.formula-help,
.context-tips {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
}

.context-tips {
  min-height: 9.5rem;
}

.context-tips .tips-heading {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.context-tips .tips-row {
  display: grid;
  gap: 0.15rem 0.75rem;
  margin-top: 0.45rem;
  line-height: 1.45;
}

.context-tips .tips-label {
  font-weight: 600;
}

.context-tips .tips-checklist {
  margin: 0.65rem 0 0;
  padding-inline-start: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}

.context-tips .tips-checklist li + li {
  margin-top: 0.2rem;
}

.formula-help .code,
.context-tips .code {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--accent);
}

.formula-help .skeleton,
.context-tips .skeleton {
  margin-top: 0.45rem;
  white-space: pre-wrap;
  font-size: 0.85rem;
  color: var(--muted);
  direction: rtl;
  unicode-bidi: plaintext;
  font-family: var(--font-fa);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

button.primary {
  appearance: none;
  border: none;
  background: var(--accent);
  color: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
}

button.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.ghost {
  appearance: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.status {
  font-size: 0.9rem;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
  background: var(--danger-bg);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
}

/* Piece card output — mirrors docs/instagram-content-plan-fa.html */
.ltr, [dir="ltr"] {
  font-family: var(--font-latin);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

bdi.ltr,
span.ltr-inline {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-latin);
  display: inline;
}

code, .mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  direction: ltr;
  unicode-bidi: isolate;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  vertical-align: top;
  text-align: start;
}

th {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

tr:nth-child(even) td { background: #fcfaff; }

.piece-meta {
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: auto 1fr;
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
}

.piece-meta dt {
  color: var(--muted);
  font-weight: 600;
}

.piece-meta dd { margin: 0; }

.caption-box,
.quote-box {
  background: #fbf9fd;
  border: 1px dashed #d7cce3;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0.75rem 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.caption-box {
  direction: rtl;
  unicode-bidi: plaintext;
  line-height: 1.85;
}

.quote-box {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-latin);
  font-style: italic;
  text-align: left;
  border-style: solid;
  border-color: #d8e4f5;
  background: #f5f9ff;
}

.hashtags {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-latin);
  text-align: left;
  margin-top: 0.5rem;
}

.empty-output {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
}

.output-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.output-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent);
  flex: 1;
  min-width: 12rem;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edit-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.editable-title[contenteditable="true"],
.editable-output[contenteditable="true"] {
  outline: none;
  border-radius: 10px;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.editable-title[contenteditable="true"] {
  padding: 0.15rem 0.35rem;
  margin-inline: -0.35rem;
}

.editable-output[contenteditable="true"] {
  padding: 0.35rem 0.5rem;
  margin: -0.35rem -0.5rem;
  min-height: 4rem;
}

.editable-title[contenteditable="true"]:hover,
.editable-output[contenteditable="true"]:hover {
  background: #fcfaff;
}

.editable-title[contenteditable="true"]:focus,
.editable-output[contenteditable="true"]:focus-within {
  background: #fcfaff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, white);
}

.print-only {
  display: none;
}

.site-footer {
  margin-top: 0.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.footer-links a,
button.linkish {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.footer-links a:hover,
button.linkish:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.ad-slot {
  margin: 0.85rem 0;
  min-height: 90px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--code-bg) 70%, white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem;
  overflow: hidden;
}

.ad-slot-sidebar {
  margin-top: 1rem;
  min-height: 250px;
}

.ad-slot-footer {
  min-height: 90px;
}

.ad-slot-placeholder .ad-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-slot-placeholder .ad-placeholder-text {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  max-width: 16rem;
  line-height: 1.35;
}

.ad-slot-rejected {
  display: none !important;
}

.ad-slot .adsbygoogle {
  width: 100%;
}

.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1000;
  padding: 1rem;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
}

.cookie-consent,
.ads-gate {
  font-family: var(--font-fa) !important;
}

html[lang='fa'] body,
html[dir='rtl'] body,
[lang='fa'],
[dir='rtl'] {
  font-family: var(--font-fa);
}

.caption-box {
  font-family: var(--font-fa);
}

.cookie-consent-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem 1.1rem;
  min-height: 11.5rem;
}

.cookie-consent-inner p {
  margin: 0.45rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

html.consent-ok #cookieConsent {
  display: none !important;
}

html.consent-pending #cookieConsent {
  display: block;
}

html.consent-pending body {
  /* Lock applied early to avoid post-paint layout shift when ads.js runs */
}

html.consent-pending .layout {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.ads-gate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
}

.ads-gate[hidden] {
  display: none !important;
}

.ads-gate-inner {
  max-width: 420px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.25rem;
  text-align: center;
}

.ads-gate-inner h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.ads-gate-inner p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.ads-gate-inner p.ads-gate-thanks {
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
}

.ads-gate-inner .primary {
  width: 100%;
}

.legal-wrap {
  max-width: 760px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.legal-nav a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-inline-start: 0.75rem;
}

.legal-nav > a {
  margin-inline-start: 0;
}

.legal-card h1 {
  margin-top: 0;
  color: var(--accent);
}

.legal-card h2 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
}

.legal-card ul {
  padding-inline-start: 1.2rem;
}

.legal-card .faq-item {
  margin-top: 1.15rem;
  padding-top: 0.15rem;
}

.legal-card .faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.45;
}

.legal-card .faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-card h2[lang='fa'],
.legal-card .faq-item[lang='fa'] {
  font-family: var(--font-fa);
}

.home-faq {
  max-width: 1180px;
  margin: 0 auto 1.25rem;
  padding: 0 1.25rem;
}

.home-faq .faq-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46rem;
}

.home-faq .faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-faq .faq-list li strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.home-faq .faq-list li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-faq .faq-more {
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.home-faq .faq-more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.home-faq .faq-more a:hover {
  text-decoration: underline;
}

.blog-wrap {
  max-width: 760px;
}

.blog-index-header {
  margin-bottom: 1rem;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.blog-card-link {
  display: block;
  padding: 1.2rem 1.25rem 1.3rem;
  text-decoration: none;
  color: inherit;
}

.blog-card-link:hover h2 {
  color: var(--accent);
}

.blog-card-meta {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.blog-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.4;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.blog-card[lang='fa'] {
  font-family: var(--font-fa);
}

.blog-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.blog-kicker a {
  color: var(--accent);
  text-decoration: none;
}

.blog-kicker a:hover {
  text-decoration: underline;
}

.blog-post > h1 {
  margin-bottom: 0.55rem;
}

.blog-dek {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

.blog-post h2 {
  margin-top: 1.6rem;
}

.blog-post ol,
.blog-post ul {
  margin: 0.5rem 0 0.85rem;
}

.blog-post li + li {
  margin-top: 0.35rem;
}

.blog-post blockquote {
  margin: 0.85rem 0;
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.65;
}

.blog-post table {
  font-size: 0.88rem;
}

.blog-post table th {
  white-space: nowrap;
}

@media print {
  @page {
    margin: 14mm;
    size: A4;
  }

  body {
    background: white !important;
    font-size: 11pt;
  }

  body * {
    visibility: hidden;
  }

  #outputCard,
  #outputCard * {
    visibility: visible;
  }

  #outputCard {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: white;
  }

  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: var(--accent);
  }

  .caption-box,
  .quote-box {
    break-inside: avoid;
  }

  table {
    break-inside: avoid;
  }
}
