/* =========================================================
   Digi Mohr — site.css
   One mobile-first RTL stylesheet. Replaces temp9.css, v4.css,
   styles.css, slideStyle.css, w3.css and Font Awesome.
   Identity: walnut wood + paper, logo D/G teal-blue accents, red stamp ink on the stamp plates.
   ========================================================= */

@font-face {
  font-family: 'BYekan';
  src: url('/fonts/BYekanRegular.woff') format('woff'),
       url('/fonts/BYekanRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* bars: top bar, menu bar, footer (override from web.config: Theme.HeaderColor / MenuColor / FooterColor / BarTexture) */
  --header-bg: #2a1a0f;
  --menu-bg: #3a2414;
  --footer-bg: #1c1109;
  --bar-img: url('/img/bg_pattern/wood-pattern_h.png');
  --walnut-950: #1c1109;
  --walnut-900: #2a1a0f;
  --walnut-800: #3a2414;
  --walnut-600: #6b4528;
  --wood: #e3c4a8;
  --wood-deep: #c9a27a;
  --paper: #f6efe2;
  --paper-2: #efe5d2;
  --card: #fffdf8;
  --brand: #0f6b8f; /* logo D/G teal-blue */
  --brand-dark: #0b4f6b;
  --brand-2: #0e86c0; /* logo cyan edge */
  --brass: #c79a3b;
  --text: #2a1d14;
  --muted: #6d5a49;
  --line: #e2d6c0;
  --radius: 10px;
  --font: 'BYekan', Tahoma, 'Segoe UI', sans-serif;
  --media-ratio: 4 / 3;

  /* ink grain: tiny SVG noise rendered once as a background image (no live filters) */
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.6 1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .94 0 0 0 0 .89 0 0 0 -1.6 1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  background: var(--paper) url('/img/bg_pattern/cream-paper.png');
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; padding: 8px 14px; z-index: 200; border-radius: 6px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 8px 22px; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-size: 1rem; line-height: 1.4; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--brand); color: #fff; }
.btn-red:hover { background: var(--brand-dark); color: #fff; }
.btn-line { border-color: currentColor; color: var(--walnut-800); background: transparent; }
.btn-line:hover { background: var(--walnut-800); color: var(--paper); border-color: var(--walnut-800); }
.btn-light { background: var(--paper); color: var(--walnut-900); }
.btn-light:hover { background: #fff; color: var(--walnut-900); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg) var(--bar-img) center / 600px auto;
  background-blend-mode: multiply;
  color: var(--paper);
  border-bottom: 3px solid var(--brand);
}
.topbar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); margin-inline-end: auto; }
.brand:hover { color: #fff; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--wood); object-fit: cover; background: var(--walnut-800); }
.brand-text { display: grid; line-height: 1.35; }
.brand-text strong { font-size: 1.15rem; }
.brand-text small { font-size: .78rem; color: var(--wood); }
.header-call { display: none; }
.burger {
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
  background: transparent; color: var(--paper); border: 2px solid rgba(246,239,226,.45); border-radius: 8px; cursor: pointer;
}
.burger .icon { width: 24px; height: 24px; }

/* mobile drawer */
.nav {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 80;
  width: min(84vw, 320px); padding: 16px 0 24px; overflow-y: auto;
  background: var(--header-bg) var(--bar-img) center / 600px auto;
  background-blend-mode: multiply;
  transform: translateX(105%); visibility: hidden;
  transition: transform .22s ease, visibility 0s .22s;
  box-shadow: -8px 0 30px rgba(0,0,0,.4);
}
.nav.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
.nav a {
  display: block; padding: 12px 22px; color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(246,239,226,.1);
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.07); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset -4px 0 0 var(--brand); }
.nav-close { display: flex; justify-content: flex-start; padding: 0 12px 8px; }
.nav-close button { background: none; border: 0; color: var(--paper); padding: 8px; cursor: pointer; }
.nav-close .icon { width: 26px; height: 26px; }
.backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(20,10,4,.6); }
.backdrop[hidden] { display: none; }

@media (min-width: 960px) {
  .site-header { position: static; }
  .burger, .nav-close, .backdrop { display: none !important; }
  .header-call { display: inline-flex; }
  .topbar { min-height: 78px; }
  .brand-logo { width: 54px; height: 54px; }
  .nav {
    position: sticky; top: 0; z-index: 60; transform: none; visibility: visible; width: auto; padding: 0;
    box-shadow: 0 6px 16px rgba(30,15,5,.18); overflow: visible;
    background: var(--menu-bg) var(--bar-img) center / 600px auto;
    background-blend-mode: multiply;
  }
  .nav-inner { display: flex; gap: 2px; max-width: 1180px; margin-inline: auto; padding-inline: 10px; overflow-x: auto; scrollbar-width: none; }
  .nav a { border: 0; padding: 11px 14px; font-size: .95rem; white-space: nowrap; border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); }
}

/* ---------- hero (home) ---------- */
.hero { padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-impression {
  /* the one memorable element: the H1 pressed like a stamp onto paper */
  position: relative; display: inline-block; margin: 0 0 18px;
  padding: .45em 1em .5em; font-size: clamp(1.7rem, 1.1rem + 3.2vw, 3rem); line-height: 1.45;
  color: var(--brand); border: 5px double var(--brand); border-radius: 6px;
  transform: rotate(-1.6deg); opacity: .94;
}
.hero-impression::after { content: ""; position: absolute; inset: 0; background: var(--grain-paper); background-size: 140px; opacity: .7; pointer-events: none; border-radius: inherit; }
.hero-lead { font-size: 1.05rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 2px 14px; border: 1px dashed var(--wood-deep); border-radius: 999px; font-size: .88rem; color: var(--walnut-600); background: rgba(255,253,248,.6); }

.hero-photo { margin: 0; padding: 10px; background: var(--wood) url('/img/bg_pattern/wood-pattern_h.png') center / 500px; border-radius: 12px; box-shadow: 0 10px 28px rgba(60,35,15,.28), inset 0 0 0 2px rgba(58,36,20,.35); }
.album-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--walnut-800); }
.album-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s ease-out; }
.album-frame img.on { opacity: 1; transform: scale(1); z-index: 1; }
.album-dots { display: flex; justify-content: center; gap: 8px; padding-top: 8px; }
.album-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.album-dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .album-frame img { transition: none; transform: none; } }

@media (min-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: .35em; }
.section-title::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 8px; border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); }
.section-sub { color: var(--muted); max-width: 62ch; margin-bottom: 26px; }

/* type cards (home) */
.types { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .types { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .types { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 420px) { .types { grid-template-columns: 1fr; } }
.type-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.type-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(60,35,15,.16); color: var(--text); }
.type-card .stage { min-height: 110px; padding: 20px 12px; }
.type-card .plate { font-size: 1.25rem; }
.type-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.type-body p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.9; }
.type-more { margin-top: auto; padding-top: 6px; color: var(--brand-dark); font-size: .93rem; }

/* ---------- stamp stages & plates ---------- */
.stage { position: relative; display: grid; place-items: center; min-height: 150px; padding: 30px 18px; background: var(--paper-2) url('/img/bg_pattern/cream-paper.png'); border-bottom: 1px solid var(--line); }
.plate-h { margin: 0; font-size: inherit; line-height: 1; max-width: 100%; }
.plate {
  --ink: #b3261e;
  position: relative; display: inline-block; max-width: 100%;
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.9rem); font-weight: 700; line-height: 1.6; text-align: center;
  overflow-wrap: anywhere; transform: rotate(var(--tilt, 0deg));
}
.plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-size: 140px; }

/* ژلاتینی — solid ink block with offset ring */
.plate-jelatini { --ink: #a62c2b; background: var(--ink); color: #fff; padding: .35em 1em; border-radius: 3px; outline: 2px solid var(--ink); outline-offset: 5px; }
.plate-jelatini::after { background-image: var(--grain-light); opacity: .35; }

/* لیزری — outlined double-rule impression */
.plate-leizeri { --ink: #d2481b; color: var(--ink); padding: .25em .9em; border: 5px double var(--ink); border-radius: 4px; }
.plate-leizeri::after { background-image: var(--grain-paper); opacity: .8; }

/* برجسته — blind emboss on paper */
.stage-barjaste { background: #d8c9ae url('/img/bg_pattern/cream-paper.png'); background-blend-mode: multiply; }
.plate-barjaste { color: #d8c9ae; padding: .5em 1.1em; letter-spacing: .03em; border: 3px solid #d8c9ae; box-shadow: -2px -2px 2px rgba(255,255,255,.95), 2px 2px 3px rgba(70,45,20,.45), inset -1px -1px 2px rgba(255,255,255,.8), inset 1px 1px 3px rgba(70,45,20,.4); text-shadow: -1.5px -1.5px 0 rgba(255,255,255,.98), 1.5px 1.5px 2px rgba(70,45,20,.55); }
.plate-barjaste::before { content: ""; position: absolute; inset: 4px; border: 1px solid #d8c9ae; box-shadow: -1px -1px 1px rgba(255,255,255,.9), 1px 1px 1px rgba(70,45,20,.4); pointer-events: none; }

/* برنجی — brass die, negative pill with double ring */
.plate-berenji { --ink: #9c2a2a; color: #fff; padding: .4em 1.5em; border-radius: 999px; background: var(--ink) url('/img/bg_pattern/stardust.png'); border: 5px double #fff; outline: 2px solid var(--ink); outline-offset: 4px; box-shadow: inset 0 0 14px rgba(0,0,0,.28); white-space: normal; }
.plate-berenji::after { background-image: var(--grain-light); opacity: .22; }

/* داغی — hot iron branded into wood */
.stage-daghi { background: var(--wood) url('/img/bg_pattern/wood-pattern_h.png') center / 620px auto; box-shadow: inset 0 0 70px rgba(70,35,8,.18); }
.plate-daghi { color: rgba(38,20,5,.92); padding: .35em 1em; border: 2px solid rgba(38,20,5,.72); background: rgba(58,30,8,.09); box-shadow: inset 0 0 9px rgba(0,0,0,.45), 0 0 16px rgba(84,43,9,.3); text-shadow: 1px 1px 1px rgba(0,0,0,.65), 0 0 10px rgba(54,28,6,.55); }

/* ---------- category page head ---------- */
.page-head { position: relative; padding: 22px 0 30px; background: linear-gradient(var(--paper-2), var(--paper)); }
.page-head::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 10px; background: var(--wood-deep) url('/img/bg_pattern/wood-pattern_h.png') center / 500px; border-top: 1px solid rgba(58,36,20,.4); }
.page-head h1 { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.4rem); color: var(--walnut-800); margin-bottom: .3em; }
.lead { max-width: 70ch; color: var(--muted); font-size: 1.04rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-2); }

/* ---------- product cards ---------- */
/* one stamp per row on every screen size, like the original page; narrow column keeps lines readable */
.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 rgba(120,80,40,.07); }
.card-kicker { margin: 0; padding: 8px 16px 0; font-size: .82rem; color: var(--muted); }
.card-media { aspect-ratio: var(--media-ratio); max-height: 520px; background: #f1e9da; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px 16px 18px; }
.prose { white-space: pre-line; }
.prose a { text-decoration: underline; }
/* ---------- HEADING STYLE: plain (set Theme.HeadingStyle = plain in web.config) ----------
   <body data-hd="plain"> turns every stamp heading back into ordinary heading text. */
body[data-hd="plain"] .hero-impression { display: block !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; transform: none !important; opacity: 1 !important; color: var(--text) !important; font-size: clamp(1.7rem, 1.2rem + 2.6vw, 2.6rem) !important; }
body[data-hd="plain"] .hero-impression::after { display: none !important; }
body[data-hd="plain"] .stage { display: block !important; min-height: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
body[data-hd="plain"] .plate-h { font-size: 1.35rem !important; line-height: 1.6 !important; margin: 4px 0 10px !important; padding: 0 16px; }
body[data-hd="plain"] .plate { display: inline !important; padding: 0 !important; margin: 0 !important; border: 0 !important; outline: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; text-shadow: none !important; transform: none !important; color: var(--text) !important; font-size: inherit !important; letter-spacing: 0 !important; text-align: start !important; }
body[data-hd="plain"] .plate::before, body[data-hd="plain"] .plate::after { display: none !important; }
body[data-hd="plain"] .type-card .stage { display: none !important; }

.card .stage + .card-media, .card-kicker + .stage { margin-top: 0; }
.card-tag { display: inline-block; margin: 0 16px 16px; padding: 0 12px; border: 1px dashed var(--wood-deep); border-radius: 999px; font-size: .84rem; text-decoration: none; color: var(--walnut-600); }
.card-tag:hover { background: var(--paper-2); }

.others { margin-top: 36px; padding: 18px 20px; background: var(--card); border: 1px dashed var(--wood-deep); border-radius: var(--radius); }
.others h2 { font-size: 1.05rem; margin-bottom: .6em; }
.others ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.others a { display: inline-block; padding: 2px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--paper); }
.others a:hover { background: var(--walnut-800); color: var(--paper); border-color: var(--walnut-800); }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; font-size: 1.5rem; line-height: 1; color: var(--brand); }
.faq details[open] summary { background: var(--paper-2); }
.faq details[open] summary::after { content: "−"; }
.faq-num { flex: none; min-width: 2em; text-align: center; padding: 0 8px; border: 2px solid var(--brand); border-radius: 6px; color: var(--brand); font-size: .85rem; }
.faq summary img { max-height: 44px; width: auto; border-radius: 4px; }
.faq-a { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.faq-a img { display: block; margin: 14px auto 0; max-height: 260px; width: auto; border-radius: 6px; }

/* ---------- blog ---------- */
.posts { display: grid; gap: 16px; max-width: 860px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-inline-start: 5px solid var(--brand); }
.post h2 { font-size: 1.2rem; margin-bottom: .2em; }
.post h2 a { color: var(--walnut-800); text-decoration: none; }
.post h2 a:hover { color: var(--brand-2); }
.meta { color: var(--muted); font-size: .86rem; margin-bottom: .5em; }
.article { max-width: 780px; }
.article h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); }
.article .feature { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: 14px 0 20px; }
.article .prose { font-size: 1.05rem; line-height: 2.1; }
.article .prose img { border-radius: 8px; margin-block: 10px; }

/* ---------- videos ---------- */
.vgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.vframe { aspect-ratio: 16 / 9; background: #000; }
.vframe video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vinfo { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.vinfo h2 { font-size: 1.1rem; }
.vinfo p { color: var(--muted); font-size: .94rem; flex: 1; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--brand) url('/img/bg_pattern/stardust.png'); color: #fff; padding: 30px 0; text-align: center; }
.cta-band h2 { font-size: 1.35rem; margin-bottom: .3em; }
.cta-band p { margin-bottom: 16px; opacity: .95; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta-band .btn-line { color: #fff; }
.cta-band .btn-line:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }

.site-footer { background: var(--footer-bg) var(--bar-img) center / 600px auto; background-blend-mode: multiply; color: #d9c9b3; padding: 40px 0 28px; font-size: .94rem; }
.site-footer a { color: #f0e2cc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; }
.site-footer h2 { font-size: 1.05rem; color: var(--wood); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 2px 0; }
.foot-contact li { display: flex; align-items: center; gap: 8px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.brand-note { margin: 10px 0 14px; padding: 8px 12px; border-inline-start: 3px solid var(--brand-2); background: rgba(255,255,255,.06); border-radius: 4px; font-size: .9rem; color: #f0e2cc; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; color: #b9a78f; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* mobile action bar */
.action-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; background: var(--walnut-950); box-shadow: 0 -4px 16px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; color: #fff; text-decoration: none; font-size: .95rem; }
.action-bar .ab-call { background: var(--brand); }
.action-bar .ab-wa { background: #1c7c4a; }
.action-bar .ab-tg { background: #1b6c9c; }
body { padding-bottom: 52px; }
@media (min-width: 760px) { .action-bar { display: none; } body { padding-bottom: 0; } }

/* legacy helpers so un-redesigned pages (e.g. pelak) don't fall apart */
.imgbox { max-width: 1180px; margin: 0 auto; padding: 16px; }
.center-fit { display: block; margin: 12px auto; max-width: 100%; height: auto; }
.body-text { white-space: pre-line; }
.related-stamp { text-align: center; margin: 24px 0; }
hr { border: 0; height: 3px; background: linear-gradient(to left, var(--walnut-600), var(--wood-deep), var(--walnut-600)); opacity: .5; margin: 28px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
