/* Laser blog: a port of the React site's design (src/styles/global.css + the inline styles of the blog pages). */
:root {
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.18);
  --bg: #0d0e0e;
  --font-sans: Vazirmatn, Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body.lb-body { margin: 0; background: var(--bg); font-family: var(--font-sans); color: #e9e6df; }
.lb-body a { color: #e9e6df; text-decoration: none; }
.lb-body a:hover { color: var(--accent); }
::placeholder { color: #7c7f7d; }
.lb-sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, p { margin: 0; }

.lb-root { container-type: inline-size; container-name: page; font-family: var(--font-sans); color: #e9e6df; background: var(--bg); overflow: hidden; }
.lb-container { max-width: 1320px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 56px); }
.lb-mono { font-family: var(--font-mono); }
.lb-accent { color: var(--accent); }
.lb-accent-stroke { stroke: var(--accent); }
.lb-accent-fill { fill: var(--accent); }
.lb-muted-13 { font-size: 13px; color: #a6a8a6; }
.lb-monolabel { font-size: 12px; color: #8e918f; text-align: right; }

.lb-grid-bg-lg { background-color: #0d0e0e; background-image: linear-gradient(#1a1c1c 1px, transparent 1px), linear-gradient(90deg, #1a1c1c 1px, transparent 1px); background-size: 48px 48px; }
.lb-grid-bg-sm { background-color: #111313; background-image: linear-gradient(#1a1c1c 1px, transparent 1px), linear-gradient(90deg, #1a1c1c 1px, transparent 1px); background-size: 20px 20px; }
.lb-cta .lb-grid-bg-lg, .lb-cta.lb-grid-bg-lg { background-color: #111313; background-size: 32px 32px; }

/* ---- responsive grids (container queries, like the React site) ---- */
.lb-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-g6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container page (max-width: 900px) { .lb-g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 760px) { .lb-g3 { grid-template-columns: minmax(0, 1fr); } }
@container page (max-width: 560px) { .lb-g6 { grid-template-columns: minmax(0, 1fr); } }

/* ---- status bar ---- */
.lb-status { border-bottom: 1px solid #222525; background: #0a0b0b; }
.lb-status__in { padding-block: 10px; display: flex; flex-wrap: wrap; column-gap: 28px; align-items: center; justify-content: space-between; height: 40px; line-height: 20px; overflow: hidden; font-family: var(--font-mono); font-size: 12px; color: #9a9d9b; }
.lb-status__left { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.lb-status__text { font-family: var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-status__right { white-space: nowrap; }
.lb-blink-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; animation: lb-blink 1.4s ease-in-out infinite; }
@keyframes lb-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---- header ---- */
.lb-header { position: relative; max-width: 1320px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 56px); display: flex; flex-wrap: nowrap; gap: clamp(12px, 1.6vw, 24px); align-items: center; justify-content: space-between; white-space: nowrap; }
.lb-brand { display: flex; flex: none; align-items: center; gap: 12px; }
.lb-brand img { object-fit: contain; }
.lb-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.lb-brand__name { font-weight: 900; font-size: 20px; }
.lb-brand__tag { font-size: 12px; color: #9a9d9b; }
.lb-nav-d { flex: 1; min-width: 0; display: flex; justify-content: center; gap: clamp(10px, 1.5vw, 26px); font-size: clamp(12px, 1.05vw, 15px); white-space: nowrap; }
.lb-nav-d a.is-current, .lb-mnav a.is-current { color: var(--accent); }
.lb-header__actions { display: flex; flex-wrap: nowrap; flex: none; gap: 10px; align-items: center; white-space: nowrap; }
.lb-login { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 clamp(10px, 1.2vw, 18px); border: 1px solid #3a3d3c; color: #e9e6df; font-size: clamp(13px, 1.05vw, 15px); }
.lb-quote { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 clamp(12px, 1.4vw, 22px); background: var(--accent); color: #0d0e0e !important; font-weight: 700; font-size: clamp(13px, 1.05vw, 15px); }
.lb-quote:hover { color: #0d0e0e !important; filter: brightness(1.08); }
.lb-nav-m { display: none; }
.lb-nav-m > summary { list-style: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid #3a3d3c; color: #e9e6df; cursor: pointer; }
.lb-nav-m > summary::-webkit-details-marker { display: none; }
.lb-nav-m[open] > summary { border-color: var(--accent); }
.lb-mnav { position: absolute; top: 100%; right: 0; left: 0; z-index: 70; display: flex; flex-direction: column; padding: 4px clamp(16px, 4vw, 56px) 16px; background: #0d0e0e; border-bottom: 1px solid #222525; white-space: normal; }
.lb-mnav a { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid #1e2121; font-size: 16px; }
@container page (max-width: 1180px) { .lb-nav-d { display: none; } .lb-nav-m { display: block; } }
@container page (max-width: 700px) { .lb-brand__tag { display: none; } }
@container page (max-width: 560px) { .lb-hide-sm { display: none; } }

/* ---- shared bits ---- */
.lb-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; background: var(--accent); color: #0d0e0e !important; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.lb-btn--between { justify-content: space-between; min-height: 50px; font-size: 15px; padding: 0 20px; }
.lb-ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; background: transparent; border: 1px solid #3a3d3c; color: #e9e6df; font-family: inherit; font-size: 15px; cursor: pointer; }
.lb-kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #9a9d9b; }
.lb-kicker span { width: 40px; height: 2px; background: var(--accent); display: inline-block; }
.lb-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; font-size: 14px; font-family: inherit; color: #c4c6c3 !important; border: 1px solid #3a3d3c; background: transparent; cursor: pointer; }
.lb-chip.is-on { background: var(--accent); color: #0d0e0e !important; border-color: var(--accent); font-weight: 700; }
.lb-chip:hover:not(.is-on) { border-color: var(--accent); }

/* ---- blog home / archives ---- */
.lb-hero { border-top: 1px solid #222525; }
.lb-hero__in { padding-block: clamp(56px, 7vw, 96px) 40px; display: flex; flex-direction: column; gap: 36px; }
.lb-hero__row { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: end; justify-content: space-between; }
.lb-hero__title { display: flex; flex-direction: column; gap: 20px; }
.lb-hero h1 { font-weight: 900; font-size: clamp(40px, 5.5vw, 80px); line-height: 1.12; color: #f3f1ec; }
.lb-hero__lead { max-width: 440px; font-size: 17px; line-height: 1.9; color: #a6a8a6; }
.lb-hero__in > .lb-hero__lead, .lb-hero__in > div > .lb-btn { margin-top: 0; }
.lb-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid #2a2d2c; padding-top: 24px; }
.lb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-search { flex: 0 1 320px; min-width: 220px; display: flex; align-items: center; gap: 10px; background: #171919; border: 1px solid #2a2d2c; padding: 0 14px; min-height: 44px; }
.lb-search:focus-within { border-color: var(--accent); }
.lb-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #e9e6df; font-family: inherit; font-size: 15px; padding: 10px 0; }
.lb-list { background: #0d0e0e; }
.lb-list__in { padding-bottom: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 24px; }

.lb-card { display: flex; flex-direction: column; background: #121414; border: 1px solid #2a2d2c; color: #e9e6df; transition: border-color 0.2s, background 0.2s; }
.lb-card:hover { border-color: var(--accent); }
.lb-card .lb-title { transition: color 0.2s; }
.lb-card:hover .lb-title { color: var(--accent); }
.lb-card__media { aspect-ratio: 16 / 9; border-bottom: 1px solid #2a2d2c; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-card__media .lb-art { width: 60%; height: auto; }
.lb-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-card__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lb-code { font-size: 11px; color: var(--accent); text-align: right; }
.lb-card__title { font-weight: 700; font-size: 19px; line-height: 1.6; color: #f3f1ec; }
.lb-card__excerpt { font-size: 14px; line-height: 1.85; color: #a6a8a6; }
.lb-card__meta { margin-top: auto; padding-top: 14px; border-top: 1px solid #262928; display: flex; justify-content: space-between; font-size: 13px; color: #8e918f; }
.lb-art { display: block; }
.lb-art .lb-accent-stroke, .lb-art path.lb-accent-stroke { stroke: var(--accent); }

.lb-featured { flex-direction: row; flex-wrap: wrap; }
.lb-featured__media { flex: 1 1 460px; min-width: 0; border-left: 1px solid #2a2d2c; display: flex; align-items: center; justify-content: center; background-size: 24px 24px; overflow: hidden; }
.lb-featured__media .lb-thumb { height: 100%; min-height: 280px; }
.lb-featured__art { display: block; width: 100%; height: auto; }
.lb-featured__body { flex: 1 1 380px; min-width: 0; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.lb-featured__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lb-badge { padding: 4px 10px; background: var(--accent); color: #0d0e0e; font-size: 12px; font-weight: 700; }
.lb-featured__title { font-weight: 900; font-size: clamp(26px, 3vw, 40px); line-height: 1.35; color: #f3f1ec; }
.lb-featured__excerpt { font-size: 16px; line-height: 1.9; color: #a6a8a6; }
.lb-card__meta--row { margin-top: 0; padding-top: 0; border: 0; justify-content: flex-start; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.lb-more { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; color: #e9e6df; font-size: 14px; }
.lb-grid { gap: 16px; }
.lb-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.lb-page { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; border: 1px solid #3a3d3c; color: #e9e6df !important; }
.lb-page.is-on { background: var(--accent); color: #0d0e0e !important; border-color: var(--accent); }
.lb-page.is-dots { border: 0; }
.lb-empty { padding: 48px 24px; border: 1px dashed #3a3d3c; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lb-empty__title { font-size: 18px; font-weight: 700; }

/* ---- single article ---- */
.lb-art-head { border-top: 1px solid #222525; }
.lb-art-head__in { padding-block: clamp(40px, 5vw, 72px) 40px; display: flex; flex-direction: column; gap: 28px; }
.lb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: #8e918f; }
.lb-crumbs a { color: #a6a8a6; }
.lb-crumbs__y { display: contents; }
.lb-crumbs__y > span { display: contents; }
.lb-crumbs__y a { color: #a6a8a6; }
.lb-art-head__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lb-pill { padding: 4px 12px; border: 1px solid var(--accent); color: var(--accent) !important; font-size: 13px; }
.lb-code-sm { font-size: 12px; color: #8e918f; }
.lb-art-title { max-width: 980px; font-weight: 900; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.3; color: #f3f1ec; }
.lb-art-lead { max-width: 760px; font-size: 19px; line-height: 1.9; color: #b4b6b3; }
.lb-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 20px; border-top: 1px solid #2a2d2c; font-size: 14px; color: #a6a8a6; }
.lb-byline__author { display: flex; align-items: center; gap: 10px; color: #e9e6df; }
.lb-byline__icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #171919; border: 1px solid #2a2d2c; }
.lb-cover-wrap { padding-block: 0; }
.lb-cover { border: 1px solid #2a2d2c; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 200px; }
.lb-cover .lb-art { width: min(100%, 360px); padding: 32px; }
.lb-cover .lb-thumb { max-height: 560px; }
.lb-body-wrap { padding-block: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.lb-prose-col { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.lb-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.lb-toc { border: 1px solid #2a2d2c; background: #121414; padding: 22px; }
.lb-toc .lb-monolabel { display: block; margin-bottom: 14px; }
.lb-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.lb-toc a { display: flex; gap: 10px; padding: 8px 0; }
.lb-toc a .lb-mono { color: #8e918f; }
.lb-side-cta { border: 1px solid var(--accent); background: #121414; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.lb-side-cta__title { font-weight: 900; font-size: 20px; color: #f3f1ec; }
.lb-side-cta__text { font-size: 15px; line-height: 1.8; color: #a6a8a6; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #2a2d2c; }
.lb-related { background: #121414; border-top: 1px solid #1e2121; }
.lb-related__in { padding-block: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 36px; }
.lb-related__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.lb-related__head h2 { font-weight: 900; font-size: clamp(28px, 3.4vw, 44px); color: #f3f1ec; }
.lb-related__grid { gap: 16px; }
.lb-card--simple { gap: 12px; padding: 24px; background: #171919; }
.lb-related__title { font-weight: 700; font-size: 19px; line-height: 1.6; color: #f3f1ec; }
.lb-related__meta { margin-top: auto; font-size: 13px; color: #8e918f; }

/* ---- article body (Gutenberg output) ---- */
.lb-prose { font-size: 18px; line-height: 2.1; color: #d4d6d3; overflow-wrap: anywhere; }
.lb-prose > * { margin: 0 0 24px; }
.lb-prose h2 { margin: 48px 0 16px; font-weight: 900; font-size: 28px; line-height: 1.5; color: #f3f1ec; scroll-margin-top: 24px; }
.lb-prose h3 { margin: 32px 0 12px; font-weight: 700; font-size: 22px; color: #f3f1ec; }
.lb-prose h4 { margin: 28px 0 10px; font-weight: 700; font-size: 18px; color: #f3f1ec; }
.lb-prose ul, .lb-prose ol { padding-inline-start: 24px; }
.lb-prose li { margin-bottom: 6px; }
.lb-prose img, .lb-prose video, .lb-prose iframe { max-width: 100%; height: auto; }
.lb-prose figure { margin: 0 0 28px; }
.lb-prose figcaption { margin-top: 8px; font-size: 14px; color: #8e918f; text-align: center; }
.lb-prose blockquote, .lb-prose .wp-block-quote { margin: 0 0 28px; padding: 16px 24px; background: #171919; border: 0; border-inline-start: 3px solid var(--accent); }
.lb-prose blockquote p { margin: 0; }
.lb-prose table { width: 100%; border-collapse: collapse; }
.lb-prose td, .lb-prose th { border: 1px solid #2a2d2c; padding: 8px 12px; }
.lb-prose th { background: #171919; }
.lb-prose code, .lb-prose pre { font-family: var(--font-mono); background: #171919; direction: ltr; }
.lb-prose code { padding: 2px 6px; }
.lb-prose pre { padding: 16px; overflow-x: auto; }
.lb-prose a { color: var(--accent); text-decoration: underline; }
.lb-prose hr { border: 0; border-top: 1px solid #2a2d2c; margin: 40px 0; }
.lb-prose .alignleft { float: left; margin: 0 24px 16px 0; }
.lb-prose .alignright { float: right; margin: 0 0 16px 24px; }
.lb-prose .aligncenter { display: block; margin-inline: auto; }
.lb-prose .wp-block-button__link { display: inline-block; padding: 12px 22px; background: var(--accent); color: #0d0e0e; font-weight: 700; text-decoration: none; border-radius: 0; }
.lb-prose .wp-block-separator { border: 0; border-top: 1px solid #2a2d2c; }
.lb-prose .wp-block-pullquote { border-block: 2px solid var(--accent); padding: 24px 0; text-align: center; }
.lb-prose .has-accent-color { color: var(--accent); }
.lb-prose .has-accent-background-color { background: var(--accent); color: #0d0e0e; }

/* ---- quote CTA + footer ---- */
.lb-cta-section { background: #0d0e0e; border-top: 1px solid #1e2121; }
.lb-cta-wrap { padding-block: clamp(56px, 7vw, 104px); }
.lb-cta { position: relative; overflow: hidden; border: 1px solid #2a2d2c; padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.lb-scan { position: absolute; top: 0; right: 0; width: 30%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: lb-scan 3.5s ease-in-out infinite alternate; }
@keyframes lb-scan { 0% { transform: translateX(0); } 100% { transform: translateX(-233%); } }
.lb-cta__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lb-cta__text h2 { font-weight: 900; font-size: clamp(36px, 5vw, 72px); line-height: 1.15; color: #f3f1ec; }
.lb-cta__text p { font-size: 17px; line-height: 1.9; color: #a6a8a6; max-width: 480px; }
.lb-cta__phone { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 15px; }
.lb-cta__phone .lb-mono { font-size: 17px; color: #f3f1ec; }
.lb-drop { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; min-height: 260px; border: 1.5px dashed #3a3d3c; background: rgba(13, 14, 14, 0.7); text-align: center; transition: border-color 0.2s, background 0.2s; }
.lb-drop:hover { border-color: var(--accent); background: rgba(255, 90, 31, 0.05); }
.lb-drop__icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--accent); }
.lb-drop__title { font-weight: 700; font-size: 19px; }
.lb-drop__formats { font-size: 12px; color: #8e918f; }
.lb-footer { background: #0a0b0b; }
.lb-footer__in { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 40px; }
.lb-footer__grid { gap: 32px 64px; }
.lb-footer__about { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.lb-footer__name { font-weight: 900; font-size: 22px; color: #f3f1ec; }
.lb-footer__tag { font-size: 14px; line-height: 1.8; color: #9a9d9b; }
.lb-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.lb-footer__contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #c4c6c3; }
.lb-footer__contact > span, .lb-footer__contact > a { display: flex; align-items: center; gap: 10px; }
.lb-footer__bottom { border-top: 1px solid #222525; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px; color: #8e918f; }

.lb-body .wp-block-search, #wpadminbar { font-family: sans-serif; }
@media (prefers-reduced-motion: reduce) { .lb-blink-dot, .lb-scan { animation: none; } }
@media (max-width: 900px) { .lb-side { position: static; } }
