:root {
  --ink: #111313;
  --paper: #f1f0ea;
  --panel: #faf9f4;
  --line: rgba(17, 19, 19, 0.16);
  --muted: #6b706e;
  --acid: #c9ff45;
  --cyan: #78ddd7;
  --dark: #0b1116;
  --dark-2: #121b22;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(19, 22, 20, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, input, textarea { font: inherit; }
a { color: inherit; }

.catalog-page { min-height: 100vh; }
.catalog-shell { width: min(1540px, calc(100% - 44px)); margin: 0 auto; }
.catalog-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}
.catalog-brand { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.catalog-topbar__center { color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.catalog-topbar__count { justify-self: end; font-size: 12px; font-variant-numeric: tabular-nums; }

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 30px;
  padding: clamp(62px, 9vw, 132px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.catalog-kicker { margin: 0 0 18px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.catalog-hero h1 { max-width: 980px; margin: 0; font-size: clamp(54px, 8.2vw, 132px); font-weight: 640; letter-spacing: -.075em; line-height: .84; }
.catalog-hero h1 span { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.catalog-hero__note { align-self: end; max-width: 400px; margin: 0; color: var(--muted); font-size: clamp(15px, 1.45vw, 20px); line-height: 1.5; }

.catalog-controls { display: flex; align-items: center; gap: 12px; padding: 24px 0 28px; }
.catalog-search { position: relative; flex: 1; }
.catalog-search input { width: 100%; height: 52px; padding: 0 52px 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.45); outline: none; }
.catalog-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,19,19,.07); }
.catalog-search::after { position: absolute; top: 50%; right: 20px; width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 50%; content: ""; transform: translateY(-60%); }
.catalog-search::before { position: absolute; z-index: 1; top: 31px; right: 17px; width: 7px; height: 1.5px; background: var(--ink); content: ""; transform: rotate(45deg); }
.catalog-filter { display: flex; gap: 7px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.catalog-filter::-webkit-scrollbar { display: none; }
.catalog-filter button { min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; }
.catalog-filter button:hover, .catalog-filter button:focus-visible, .catalog-filter button.is-active { border-color: var(--ink); color: var(--paper); background: var(--ink); outline: none; }

.feature-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.template-card { position: relative; display: grid; gap: 0; margin: 0 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); break-inside: avoid; transition: transform 180ms ease, box-shadow 180ms ease; }
.template-card:hover { transform: translateY(-4px); box-shadow: 0 30px 90px rgba(19,22,20,.14); }
.template-card[hidden] { display: none; }
.template-card__preview { position: relative; height: var(--preview-h, 310px); overflow: hidden; border-bottom: 1px solid var(--line); background: #e6e7e0; }
.feature-row .template-card__preview { height: clamp(360px, 39vw, 560px); }
.template-card__preview iframe { width: 160%; height: 160%; border: 0; pointer-events: none; transform: scale(.625); transform-origin: 0 0; }
.template-card__copy { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 20px 21px 22px; }
.template-card__eyebrow { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.template-card h2 { margin: 0; font-size: clamp(22px, 2.1vw, 34px); font-weight: 590; letter-spacing: -.045em; line-height: 1; }
.template-card p { max-width: 470px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.48; }
.template-card__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--paper); background: var(--ink); font-size: 20px; }
.template-card__link { position: absolute; z-index: 4; inset: 0; border-radius: inherit; }
.template-card__link:focus-visible { outline: 3px solid var(--acid); outline-offset: -5px; }
.masonry-feed { column-count: 3; column-gap: 18px; }
.empty-state { display: none; padding: 70px 0 110px; color: var(--muted); font-size: 20px; text-align: center; }
.empty-state.is-visible { display: block; }

.catalog-footer { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-top: 64px; padding: 34px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.catalog-footer strong { color: var(--ink); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* Individual template pages */
.template-page { min-height: 100vh; color: var(--ink); background: #dfe1da; }
.template-nav { position: fixed; z-index: 100; top: 0; right: 0; left: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; padding: 0 22px; border-bottom: 1px solid rgba(17,19,19,.18); background: rgba(241,240,234,.9); backdrop-filter: blur(16px); }
.template-nav a { font-size: 11px; font-weight: 760; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.template-nav__title { color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.template-nav__next { justify-self: end; }
.template-canvas { display: grid; min-height: 100vh; padding-top: 64px; }
.demo { position: relative; min-width: 0; min-height: calc(100vh - 64px); overflow: hidden; background: #fff; }
.template-page.is-preview .template-nav { display: none; }
.template-page.is-preview .template-canvas { min-height: 100vh; padding-top: 0; }
.template-page.is-preview .demo { min-height: 100vh; }
.demo button, .demo a { -webkit-tap-highlight-color: transparent; }
.demo button { cursor: pointer; }
.demo .micro { color: inherit; font-size: 10px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }

/* Sitebar */
.demo--sitebar { display: grid; place-items: center; background: #d8ddd7; }
.sitebar-stage { position: relative; width: min(1050px, 92vw); height: min(720px, 78vh); overflow: hidden; border-radius: 24px; background: #f8f8f4; box-shadow: 0 32px 100px rgba(15,25,24,.18); }
.sitebar-rail { position: absolute; z-index: 2; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 92px; color: rgba(240,247,247,.74); background: #111b24; }
.sitebar-logo { display: grid; place-items: center; height: 90px; color: #fff; font-size: 32px; font-weight: 900; }
.sitebar-items { display: flex; flex: 1; flex-direction: column; }
.sitebar-item { display: grid; place-items: center; min-height: 62px; color: inherit; font-size: 9px; text-decoration: none; }
.sitebar-item i { position: relative; display: block; width: 21px; height: 21px; margin-bottom: 4px; border: 1.3px solid currentColor; border-radius: 6px; font-style: normal; }
.sitebar-item.is-current { color: var(--cyan); background: rgba(120,221,215,.08); }
.sitebar-account { display: grid; place-items: center; min-height: 82px; background: #0c141c; font-size: 9px; }
.sitebar-account::before { width: 27px; height: 27px; margin-bottom: 4px; border: 1px solid currentColor; border-radius: 50%; content: ""; opacity: .55; }
.sitebar-panel { position: absolute; inset: 0 0 0 92px; display: grid; grid-template-columns: 1.05fr .95fr; }
.sitebar-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 58px; }
.sitebar-copy h1 { max-width: 580px; margin: 14px 0; font-size: clamp(52px, 8vw, 112px); font-weight: 580; letter-spacing: -.075em; line-height: .82; }
.sitebar-copy p { max-width: 450px; color: #6d7672; line-height: 1.55; }
.sitebar-map { display: grid; align-content: center; gap: 9px; padding: 40px; border-left: 1px solid #d9dcd6; background: #eef0eb; }
.sitebar-map a { padding: 15px 4px; border-bottom: 1px solid #cdd1cb; font-size: 14px; text-decoration: none; }

/* Userbar */
.demo--userbar { display: grid; place-items: center; color: #eef7f5; background: #0a0e12; }
.userbar-stage { position: relative; width: min(1100px, 94vw); height: min(720px, 80vh); overflow: hidden; border-radius: 24px; background: radial-gradient(circle at 22% 20%, #244447 0, #111921 44%, #080b0e 100%); box-shadow: 0 34px 110px rgba(0,0,0,.42); }
.userbar-content { position: absolute; inset: 0 86px 0 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; }
.userbar-content h1 { max-width: 650px; margin: 13px 0; font-size: clamp(56px, 8vw, 110px); font-weight: 340; letter-spacing: -.065em; line-height: .86; }
.userbar-content p { max-width: 540px; color: #9fb1b4; line-height: 1.55; }
.userbar-rail { position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column; align-items: center; width: 86px; background: rgba(4,6,8,.58); backdrop-filter: blur(15px); }
.userbar-avatar { display: grid; place-items: center; width: 48px; height: 48px; margin-top: 22px; border-radius: 50%; color: #112024; background: var(--cyan); font-weight: 800; box-shadow: 0 10px 30px rgba(120,221,215,.24); }
.userbar-actions { display: grid; gap: 22px; margin-top: 46px; }
.userbar-actions button { position: relative; width: 48px; height: 48px; border: 0; color: #c1cbcc; background: transparent; }
.userbar-actions button::before, .userbar-actions button::after { position: absolute; content: ""; }
.userbar-actions button::before { inset: 12px; border: 1.4px solid currentColor; border-radius: 7px; }
.userbar-actions button.has-dot::after { top: 7px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #f34747; box-shadow: 8px 0 #f34747, 16px 0 #f34747; }
.userbar-actions button.is-active { color: var(--cyan); text-shadow: 0 0 18px var(--cyan); }
.userbar-panel { position: absolute; inset: 0 86px 0 0; display: grid; align-content: end; padding: 56px; background: linear-gradient(90deg, rgba(5,7,9,.66), rgba(5,7,9,.9)); }
.userbar-panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.userbar-panel-card { min-height: 170px; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.065); }
.userbar-panel-card strong { display: block; margin-top: 72px; font-size: 20px; font-weight: 500; }

/* Header */
.demo--header { display: grid; place-items: center; background: #dfe2dc; }
.header-demo { width: min(1160px, 94vw); overflow: hidden; border-radius: 20px; background: #fbfbf7; box-shadow: var(--shadow); }
.header-bar { display: grid; grid-template-columns: auto 1px 1fr auto auto; align-items: center; min-height: 92px; border-bottom: 1px solid #d8dcd6; }
.header-wordmark { padding: 0 28px; font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.header-divider { height: 92px; background: #d8dcd6; }
.header-descriptor { padding: 0 28px; color: #727a76; font-size: 12px; line-height: 1.4; }
.header-search { width: min(340px, 30vw); height: 44px; margin-right: 18px; padding: 0 18px; border: 1px solid #ccd1cc; border-radius: 999px; background: #fff; }
.header-status { display: grid; place-items: center; width: 92px; height: 92px; background: var(--acid); font-weight: 800; }
.header-body { min-height: 470px; padding: 58px; }
.header-body h1 { max-width: 700px; margin: 0; font-size: clamp(56px, 9vw, 118px); letter-spacing: -.08em; line-height: .84; }

/* Generic content surfaces */
.content-stage { width: min(1240px, 94vw); margin: 0 auto; padding: clamp(38px, 6vw, 78px) 0; }
.content-head { display: grid; grid-template-columns: 1.4fr .6fr; gap: 28px; align-items: end; margin-bottom: 42px; }
.content-head h1 { margin: 7px 0 0; font-size: clamp(48px, 7vw, 94px); font-weight: 590; letter-spacing: -.065em; line-height: .88; }
.content-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.demo--dark { color: #eff6f4; background: var(--dark); }
.demo--dark .content-head p { color: #93a4a6; }

.demo--masonry, .demo--text-masonry, .demo--community-light, .demo--newsfeed, .demo--newspaper, .demo--traditional-newspaper, .demo--gallery { background: #f5f4ee; }
.demo-grid-masonry { columns: 4 220px; column-gap: 14px; }
.demo-grid-card { min-height: var(--h, 220px); margin: 0 0 14px; padding: 19px; border-radius: 13px; color: #f8faf7; background: var(--c, #263b38); break-inside: avoid; }
.demo-grid-card:nth-child(3n+2) { color: #121513; background: var(--acid); }
.demo-grid-card:nth-child(4n) { background: #473d66; }
.demo-grid-card h2 { margin: calc(var(--h, 220px) * .45) 0 8px; font-size: 23px; letter-spacing: -.035em; line-height: 1; }
.demo-grid-card p { margin: 0; font-size: 12px; line-height: 1.45; opacity: .76; }
.text-columns { columns: 3 280px; column-gap: 16px; }
.text-note { margin: 0 0 16px; padding: 24px; border: 1px solid #cfd3cd; border-radius: 14px; background: #fff; break-inside: avoid; }
.text-note:nth-child(2n) { background: #e6ecd8; }
.text-note h2 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.04em; }
.text-note p { margin: 0; color: #606a65; line-height: 1.55; }

.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.community-post { min-height: 250px; padding: 22px; border: 1px solid #d1d5cf; border-radius: 15px; background: #fff; }
.community-post__user { display: flex; align-items: center; gap: 10px; }
.community-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #111b24; font-size: 12px; }
.community-post h2 { margin: 56px 0 12px; font-size: 24px; letter-spacing: -.04em; }
.community-post p { color: #66706b; line-height: 1.5; }
.demo--community-dark { background: #0c1115; color: #eef4f2; }
.demo--community-dark .community-post { border-color: #28343c; background: #141d24; }
.demo--community-dark .community-post p { color: #92a1a4; }
.demo--community-dark .community-avatar { color: #102022; background: var(--cyan); }

.ai-shell { display: grid; grid-template-columns: 250px 1fr; width: min(1200px, 94vw); min-height: min(760px, 82vh); margin: 4vh auto; overflow: hidden; border: 1px solid #2a353c; border-radius: 22px; background: #10171c; box-shadow: 0 32px 100px rgba(0,0,0,.38); }
.ai-sidebar { padding: 28px; border-right: 1px solid #2a353c; }
.ai-sidebar h1 { margin: 0 0 44px; color: var(--cyan); font-size: 18px; }
.ai-sidebar a { display: block; padding: 12px 0; border-bottom: 1px solid #28343b; color: #8f9da1; font-size: 12px; text-decoration: none; }
.ai-chat { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.ai-chat__head { padding: 24px 30px; border-bottom: 1px solid #2a353c; }
.ai-messages { display: flex; flex-direction: column; gap: 15px; padding: 38px clamp(22px,5vw,70px); }
.ai-message { max-width: 70%; padding: 17px 19px; border: 1px solid #2b373e; border-radius: 5px 18px 18px; color: #b9c5c6; background: #172128; line-height: 1.5; }
.ai-message.is-own { align-self: flex-end; border-color: rgba(120,221,215,.24); border-radius: 18px 5px 18px 18px; color: #eaffff; background: #17403f; }
.ai-composer { margin: 0 28px 28px; padding: 15px 18px; border: 1px solid #35434b; border-radius: 14px; color: #74848a; }

.feed-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; }
.feed-list { display: grid; gap: 12px; }
.feed-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; min-height: 120px; padding: 14px; border: 1px solid #d2d6d0; border-radius: 14px; background: #fff; }
.feed-thumb { height: 90px; border-radius: 10px; background: linear-gradient(135deg,#111b24,#78ddd7); }
.feed-item h2 { margin: 0 0 7px; font-size: 22px; letter-spacing: -.035em; }
.feed-item p { margin: 0; color: #69716e; font-size: 12px; }
.feed-time { color: #8a918d; font-size: 10px; }
.feed-side { align-self: start; padding: 24px; border-radius: 14px; color: #eaf5f2; background: #111b24; }
.feed-side h3 { margin: 0 0 30px; font-size: 28px; }
.feed-side ol { padding-left: 20px; color: #9fafb1; line-height: 2.1; }

.paper-masthead { display: flex; justify-content: space-between; align-items: end; padding-bottom: 18px; border-bottom: 4px solid #111; }
.paper-masthead h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(52px,8vw,112px); font-weight: 400; letter-spacing: -.06em; line-height: .8; }
.paper-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 0; margin-top: 18px; }
.paper-story { min-height: 440px; padding: 0 22px; border-right: 1px solid #bfc3be; }
.paper-story:first-child { padding-left: 0; }
.paper-story:last-child { border: 0; }
.paper-story h2 { margin: 16px 0; font-family: Georgia,serif; font-size: clamp(28px,4vw,52px); font-weight: 400; letter-spacing: -.035em; line-height: .98; }
.paper-story p { color: #555d59; font-family: Georgia,serif; line-height: 1.6; }
.paper-photo { min-height: 170px; background: linear-gradient(145deg,#d9ddcc,#334543); }
.demo--traditional-newspaper .paper-masthead { border-top: 1px solid #111; border-bottom-width: 1px; padding-top: 12px; }
.demo--traditional-newspaper .paper-grid { grid-template-columns: repeat(4,1fr); }
.demo--traditional-newspaper .paper-story { min-height: 500px; }

.info-hero { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 420px; }
.info-title { display: flex; flex-direction: column; justify-content: end; padding: clamp(38px,7vw,90px); background: var(--acid); }
.info-title h1 { margin: 11px 0 0; font-size: clamp(58px,9vw,126px); letter-spacing: -.08em; line-height: .8; }
.info-side { display: grid; grid-template-columns: repeat(2,1fr); background: #111b24; }
.info-stat { display: flex; flex-direction: column; justify-content: end; padding: 28px; border: 1px solid rgba(255,255,255,.08); color: #93a3a6; }
.info-stat strong { color: #fff; font-size: clamp(30px,4vw,58px); font-weight: 440; }
.info-body { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding: clamp(28px,5vw,70px); background: #f6f5ef; }
.info-card { min-height: 210px; padding: 24px; border: 1px solid #d4d8d1; border-radius: 14px; background: #fff; }
.info-card h2 { margin: 40px 0 10px; font-size: 25px; letter-spacing: -.035em; }
.demo--info-product .info-title { color: #fff; background: #5648c7; }
.demo--info-country .info-title { background: #ffba72; }
.demo--info-procurement .info-title { color: #fff; background: #155e59; }

.table-shell { width: min(1320px,95vw); margin: 5vh auto; overflow: hidden; border: 1px solid #cfd3cd; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.table-head { display: flex; justify-content: space-between; align-items: end; padding: 28px; border-bottom: 1px solid #d7dbd5; }
.table-head h1 { margin: 8px 0 0; font-size: 42px; letter-spacing: -.05em; }
.table-search { height: 42px; padding: 0 16px; border: 1px solid #ccd1cb; border-radius: 999px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 16px 20px; border-bottom: 1px solid #e1e3df; text-align: left; }
.data-table th { color: #7c8581; background: #f5f6f2; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.data-table td { font-size: 13px; }
.status-pill { display: inline-flex; padding: 6px 9px; border-radius: 99px; color: #125f5b; background: #daf4ef; font-size: 10px; font-weight: 700; }

.form-demo { display: grid; place-items: center; color: #eef5f3; background: radial-gradient(circle at 24% 18%, #263b3e, #10161b 48%, #080b0d); }
.form-card { width: min(460px, calc(100vw - 36px)); padding: 38px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(18,27,34,.86); box-shadow: 0 32px 100px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.form-card h1 { margin: 10px 0 28px; font-size: 42px; font-weight: 430; letter-spacing: -.05em; }
.form-card label { display: grid; gap: 7px; margin-top: 14px; color: #91a0a4; font-size: 11px; }
.form-card input { width: 100%; height: 49px; padding: 0 14px; border: 1px solid #34424a; border-radius: 10px; color: #eef5f3; background: #111a20; outline: none; }
.form-card input:focus { border-color: var(--cyan); }
.form-card button { width: 100%; height: 49px; margin-top: 20px; border: 0; border-radius: 10px; color: #0b1719; background: var(--cyan); font-weight: 760; }
.form-note { margin: 18px 0 0; color: #78878b; font-size: 11px; line-height: 1.55; text-align: center; }
.registration-mark { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 18px; border: 1px solid #4a5a62; border-radius: 50%; color: var(--cyan); font-size: 32px; }

.article-shell { width: min(1180px, calc(100% - 42px)); margin: 0 auto; padding: clamp(60px,9vw,130px) 0; }
.article-head { max-width: 980px; }
.article-head h1 { margin: 14px 0 28px; font-family: Georgia,serif; font-size: clamp(56px,9vw,122px); font-weight: 400; letter-spacing: -.065em; line-height: .88; }
.article-head p { max-width: 680px; color: #5f6763; font-size: 20px; line-height: 1.5; }
.article-body { display: grid; grid-template-columns: 1fr 270px; gap: 80px; margin-top: 80px; }
.article-copy { max-width: 720px; font-family: Georgia,serif; font-size: 19px; line-height: 1.8; }
.article-facts { align-self: start; padding: 22px 0; border-top: 1px solid #aeb4ae; border-bottom: 1px solid #aeb4ae; }
.article-facts span { display: block; padding: 8px 0; color: #65706a; font-size: 12px; }
.shortread-card { width: min(720px,calc(100% - 36px)); margin: auto; padding: clamp(35px,6vw,72px); border-radius: 24px; color: #eff5f3; background: #111b24; box-shadow: 0 35px 100px rgba(12,20,28,.3); }
.shortread-card h1 { margin: 12px 0 22px; font-size: clamp(50px,8vw,90px); letter-spacing: -.07em; line-height: .88; }
.shortread-card p { max-width: 560px; color: #a5b1b2; font-size: 18px; line-height: 1.6; }
.shortread-card a { display: inline-flex; margin-top: 24px; padding-bottom: 4px; border-bottom: 1px solid var(--cyan); color: var(--cyan); text-decoration: none; }

.gallery-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.gallery-head h1 { margin: 7px 0 0; font-size: clamp(50px,8vw,100px); letter-spacing: -.07em; line-height: .86; }
.gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 70px; gap: 14px; }
.gallery-item { position: relative; grid-column: span 4; grid-row: span 4; overflow: hidden; border-radius: 14px; background: linear-gradient(145deg,var(--a,#2d4140),var(--b,#b6d19a)); }
.gallery-item:nth-child(2) { grid-column: span 5; grid-row: span 6; --a:#554974; --b:#d2b4a1; }
.gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 5; --a:#172631; --b:#679f98; }
.gallery-item:nth-child(4) { grid-column: span 7; grid-row: span 4; --a:#765a37; --b:#edd4a2; }
.gallery-item:nth-child(5) { grid-column: span 5; grid-row: span 3; --a:#283445; --b:#7bb4c2; }
.gallery-item span { position: absolute; right: 16px; bottom: 14px; color: #fff; font-size: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* MarketBI-inspired footer */
.demo--footer { display: flex; align-items: end; color: #53616a; background: #fff; }
.footer-demo { width: 100%; border-top: 1px solid #d9dfdf; }
.footer-sitemap { display: grid; grid-template-columns: minmax(150px,.72fr) minmax(0,3.28fr); gap: clamp(36px,5vw,88px); padding: clamp(42px,5.4vw,76px) clamp(28px,5vw,76px); }
.footer-brand { display: flex; align-items: flex-start; flex-direction: column; }
.footer-brand strong { color: #17212a; font-size: 27px; letter-spacing: -.04em; }
.footer-brand p { margin: 18px 0 0; color: #7b8790; font-size: 13px; line-height: 1.5; }
.footer-brand a { margin-top: 24px; color: #187e7a; font-size: 12px; font-weight: 750; }
.footer-map { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(30px,4vw,68px); }
.footer-column { display: flex; flex-direction: column; gap: 30px; }
.footer-group h2 { margin: 0 0 12px; color: #18222c; font-size: 14px; }
.footer-group a { display: block; margin: 8px 0; color: #61707b; font-size: 13px; text-decoration: none; }
.footer-group a:hover { color: #118987; text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { display: flex; justify-content: space-between; min-height: 58px; padding: 20px clamp(28px,5vw,76px); border-top: 1px solid #d9dfdf; background: #fbfcfc; font-size: 11px; }

/* Messenger */
.demo--messenger { color: #dce8e9; background: #0b1118; }
.messenger-app { display: grid; grid-template-rows: 72px 1fr; min-height: calc(100vh - 64px); }
.messenger-top { display: flex; justify-content: space-between; align-items: center; padding: 0 24px; border-bottom: 1px solid #27333b; }
.messenger-brand { display: flex; align-items: baseline; gap: 9px; font-size: 24px; font-weight: 750; }
.messenger-brand span { color: var(--cyan); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.messenger-privacy { color: #7f9095; font-size: 11px; }
.messenger-layout { display: grid; grid-template-columns: minmax(250px,310px) 1fr minmax(240px,285px); min-height: 0; }
.messenger-contacts, .messenger-details { padding: 24px 18px; background: rgba(14,21,27,.8); }
.messenger-contacts { border-right: 1px solid #27333b; }
.messenger-details { border-left: 1px solid #27333b; }
.messenger-contacts h1 { margin: 7px 0 20px; font-size: 27px; font-weight: 400; }
.messenger-search { width: 100%; height: 42px; margin-bottom: 14px; padding: 0 14px; border: 1px solid #2b3840; border-radius: 11px; color: #dce8e9; background: #111a21; }
.contact-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; min-height: 62px; padding: 8px 10px; border-radius: 11px; }
.contact-row.is-current { background: rgba(120,221,215,.1); }
.contact-avatar, .peer-avatar { display: grid; place-items: center; border-radius: 50%; color: #102022; background: var(--cyan); font-size: 12px; font-weight: 800; }
.contact-avatar { width: 38px; height: 38px; }
.contact-row small { color: #728389; }
.messenger-chat { display: grid; grid-template-rows: 68px 1fr auto; min-width: 0; background: radial-gradient(circle at center,rgba(120,221,215,.08),transparent 55%); }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 0 22px; border-bottom: 1px solid #27333b; }
.peer-avatar { width: 40px; height: 40px; }
.chat-messages { display: flex; flex-direction: column; gap: 12px; padding: 34px clamp(18px,4vw,52px); }
.chat-bubble { max-width: 68%; padding: 13px 15px; border: 1px solid #2b3941; border-radius: 5px 16px 16px; color: #b9c6c8; background: #172129; line-height: 1.45; }
.chat-bubble.is-own { align-self: flex-end; border-color: rgba(120,221,215,.2); border-radius: 16px 5px 16px 16px; color: #ecffff; background: #17403f; }
.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 24px 22px; padding: 9px 9px 9px 15px; border: 1px solid #33424a; border-radius: 14px; background: #141e25; }
.chat-compose input { border: 0; color: #dce8e9; background: transparent; outline: none; }
.chat-compose button { padding: 0 16px; border: 0; border-radius: 10px; background: var(--cyan); }
.detail-pulse { width: 42px; height: 42px; margin-bottom: 22px; border: 1px solid #3a4a53; border-radius: 50%; box-shadow: inset 0 0 0 14px #65d4a1; }
.detail-list { display: grid; gap: 0; }
.detail-list div { padding: 13px 0; border-bottom: 1px solid #28343b; }
.detail-list small { display: block; margin-bottom: 5px; color: #6f8085; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 1050px) {
  .masonry-feed { column-count: 2; }
  .catalog-hero { grid-template-columns: 1fr; }
  .catalog-hero__note { align-self: auto; }
  .community-grid { grid-template-columns: repeat(2,1fr); }
  .footer-sitemap { grid-template-columns: 1fr; }
  .messenger-layout { grid-template-columns: 260px 1fr; }
  .messenger-details { display: none; }
}

@media (max-width: 760px) {
  .catalog-shell { width: min(100% - 24px, 1540px); }
  .catalog-topbar { grid-template-columns: 1fr auto; }
  .catalog-topbar__center { display: none; }
  .catalog-hero { padding-top: 52px; }
  .catalog-controls { align-items: stretch; flex-direction: column; }
  .feature-row { grid-template-columns: 1fr; }
  .masonry-feed { column-count: 1; }
  .template-card__preview, .feature-row .template-card__preview { height: 340px; }
  .catalog-footer { grid-template-columns: 1fr; }
  .template-nav { grid-template-columns: 1fr auto; }
  .template-nav__title { display: none; }
  .content-head, .feed-layout, .article-body { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .ai-shell { grid-template-columns: 1fr; margin: 2vh auto; }
  .ai-sidebar { display: none; }
  .paper-grid, .demo--traditional-newspaper .paper-grid { grid-template-columns: 1fr; }
  .paper-story { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid #bfc3be; }
  .info-hero, .info-body { grid-template-columns: 1fr; }
  .info-side { min-height: 300px; }
  .table-shell { overflow-x: auto; }
  .data-table { min-width: 820px; }
  .article-body { gap: 30px; margin-top: 44px; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .footer-map { grid-template-columns: 1fr 1fr; }
  .footer-column:last-child { grid-column: 1/-1; }
  .messenger-app { grid-template-rows: 62px 1fr; }
  .messenger-privacy { display: none; }
  .messenger-layout { grid-template-columns: 1fr; }
  .messenger-contacts { display: none; }
  .sitebar-stage, .userbar-stage { width: 100vw; height: calc(100vh - 64px); border-radius: 0; }
  .sitebar-panel { grid-template-columns: 1fr; }
  .sitebar-map { display: none; }
  .sitebar-copy { padding: 36px; }
  .userbar-panel-grid { grid-template-columns: 1fr; }
  .userbar-panel-card:nth-child(n+2) { display: none; }
  .header-bar { grid-template-columns: auto 1fr auto; }
  .header-divider, .header-descriptor { display: none; }
  .header-search { width: auto; min-width: 0; }
}

@media (max-width: 520px) {
  .catalog-hero h1 { font-size: 51px; }
  .template-card__copy { grid-template-columns: 1fr; }
  .template-card__arrow { display: none; }
  .footer-map { grid-template-columns: 1fr; }
  .footer-column:last-child { grid-column: auto; }
  .footer-meta { flex-direction: column; gap: 6px; }
  .sitebar-rail { width: 72px; }
  .sitebar-panel { left: 72px; }
  .sitebar-copy h1 { font-size: 50px; }
  .userbar-content { padding: 30px; }
  .userbar-content h1 { font-size: 52px; }
  .chat-messages { padding: 20px 12px; }
  .chat-bubble { max-width: 88%; }
  .chat-compose { margin: 0 9px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
