/* ==========================================================================
   अंकालय – Design system (simple editorial magazine theme)
   1. Tokens   2. Base   3. Layout & type   4. Header   5. Buttons & small parts
   6. Sections & cards   7. Magazine covers & archive   8. Forms, modal, overlay
   9. Footer   10. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #2A1E18;
  --ink-2: #5E4E44;
  --muted: #8A7A6E;
  --paper: #FBF8F3;
  --surface: #FFFFFF;
  --sand: #F4EEE4;
  --line: #E7DED1;
  --maroon: #641E16;
  --maroon-2: #4A150F;
  --saffron: #D97706;
  --gold: #C49A45;
  --green: #526B50;
  --dark: #231813;

  --ff-display: "Tiro Devanagari Marathi", "Noto Serif Devanagari", serif;
  --ff-body: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(42, 30, 24, .05), 0 10px 28px -14px rgba(42, 30, 24, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
  --space: clamp(2.5rem, 5vw, 4rem);

  --bs-body-font-family: var(--ff-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--maroon);
  --bs-link-color-rgb: 100, 30, 22;
  --bs-link-hover-color: var(--saffron);
  --bs-link-hover-color-rgb: 217, 119, 6;
  --bs-border-color: var(--line);
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--ff-body); font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--ff-display); font-weight: 400; color: var(--ink); line-height: 1.3; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--maroon); }
a { text-decoration: none; transition: color .2s var(--ease); }
img, svg { max-width: 100%; }
::selection { background: var(--maroon); color: #fff; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--maroon); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

/* Justified body text (all pages + reading panel) */
p, li, dd, blockquote { text-align: justify; text-justify: inter-word; }
.campaign p, .closing p, .text-center p, .section-head.center p, .archive-empty p,
.fan-caption, .breadcrumb li, .navbar li, .footer-bottom p { text-align: inherit; }
.campaign, .closing { text-align: center; }

/* 3. Layout & type --------------------------------------------------------- */
.section { padding: var(--space) 0; }
.section-tight-top, .page-header + .section { padding-top: clamp(2rem, 4vw, 2.75rem); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--dark); color: #E9E0D6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: #CDBFB2; }
.border-top-line { border-top: 1px solid var(--line); }
.narrow { max-width: 760px; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem;
  font-size: .9rem; font-weight: 600; letter-spacing: .03em; color: var(--saffron);
}
.kicker b { font-family: var(--ff-display); font-weight: 400; color: var(--maroon); font-size: 1rem; }
.kicker::after { content: ""; width: 40px; height: 1px; background: var(--gold); }
.section-dark .kicker b { color: var(--gold); }

.display { font-size: clamp(2.15rem, 4.8vw, 3.6rem); line-height: 1.25; margin-bottom: 1.25rem; }
.h-section { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); line-height: 1.75; }
.text-ink-2 { color: var(--ink-2); }
.text-muted-ank { color: var(--muted); }
.text-maroon { color: var(--maroon) !important; }
.text-saffron { color: var(--saffron) !important; }
.section-head { max-width: none; margin-bottom: 2rem; }
.section-head.center { max-width: 820px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::before { content: ""; width: 40px; height: 1px; background: var(--gold); }

.pull-quote {
  font-family: var(--ff-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.55; color: var(--ink);
  border-left: 3px solid var(--saffron); padding: .25rem 0 .25rem 1.4rem; margin: 2rem 0;
}
.pull-quote cite { display: block; margin-top: .6rem; font-family: var(--ff-body); font-style: normal; font-size: .9rem; color: var(--muted); }
.section-dark .pull-quote { color: #fff; }

/* Bulleted highlights */
.points { list-style: none; padding: 0; margin: 0; }
.points li { position: relative; padding-left: 1.6rem; margin-bottom: .75rem; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--saffron); transform: rotate(45deg); }
.points li strong { color: var(--ink); font-weight: 600; }
.section-dark .points li { color: #CDBFB2; }
.section-dark .points li strong { color: #fff; }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030; background: rgba(251, 248, 243, .94);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(251, 248, 243, .85); backdrop-filter: blur(10px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(42, 30, 24, .5); }
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-logo { display: block; height: 52px; width: auto; }
.site-footer .brand-logo { height: 56px; }
.site-header .nav-link { color: var(--ink-2); font-weight: 500; font-size: .98rem; padding: .5rem .7rem !important; position: relative; }
.site-header .nav-link:hover { color: var(--maroon); }
.site-header .nav-link.active { color: var(--maroon); font-weight: 600; }
.site-header .nav-link.active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .1rem; height: 2px; background: var(--saffron); border-radius: 2px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: all .2s var(--ease);
}
.icon-btn:hover { border-color: var(--maroon); color: var(--maroon); }
.navbar-toggler { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(217, 119, 6, .35); }
.toggler-bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Inner page header */
.page-header { background: var(--sand); border-bottom: 1px solid var(--line); padding: clamp(2.25rem, 4.5vw, 3.25rem) 0 clamp(1.75rem, 3.5vw, 2.5rem); }
.page-header h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .9rem; max-width: none; }
.page-header h1.one-line { max-width: none; }
@media (min-width: 992px) { .page-header h1.one-line { white-space: nowrap; font-size: clamp(2rem, 3.3vw, 3.2rem); } }
.page-header .lead { max-width: none; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb-item a { color: var(--ink-2); }
.breadcrumb-item.active { color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--gold); }

/* 5. Buttons & small parts ------------------------------------------------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .75rem 1.5rem; transition: all .2s var(--ease); }
.btn-ank { background: var(--maroon); color: #fff; border: 1px solid var(--maroon); }
.btn-ank:hover, .btn-ank:focus-visible { background: var(--maroon-2); border-color: var(--maroon-2); color: #fff; }
.btn-ank-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ank-outline:hover, .btn-ank-outline:focus-visible { background: var(--ink); color: #fff; }
.btn-ank-light { background: #fff; color: var(--maroon); border: 1px solid #fff; }
.btn-ank-light:hover { background: transparent; color: #fff; }
.btn-ank-sm { padding: .5rem 1rem; font-size: .92rem; }
.btn-link-ank { font-weight: 600; color: var(--maroon); display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: 0; }
.btn-link-ank i { transition: transform .2s var(--ease); }
.btn-link-ank:hover { color: var(--saffron); }
.btn-link-ank:hover i { transform: translateX(4px); }
.section-dark .btn-link-ank { color: var(--gold); }

.pill { display: inline-block; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; color: var(--ink-2); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.section-dark .pill { background: transparent; border-color: rgba(255, 255, 255, .18); color: #E9E0D6; }
.tag { display: inline-block; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.badge-sample {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; line-height: 1;
  padding: .35rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--maroon); border: 1px solid var(--line);
}
.badge-ref { color: var(--green); }
.icon-chip { width: 46px; height: 46px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--sand); color: var(--maroon); font-size: 1.25rem; }
.notice-sample {
  display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; font-size: .93rem; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
}
.notice-sample i { color: var(--gold); font-size: 1.1rem; line-height: 1.6; }
.source-note { font-size: .82rem; color: var(--muted); }

/* 6. Sections & cards ------------------------------------------------------ */
/* Hero */
.hero { padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.25rem, 4.5vw, 3.25rem); }
.home-hero + .hero { padding-top: 1.75rem; }
.hero .lead { max-width: none; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
/* Home slider */
.home-hero { padding-top: 1.5rem; }
.home-slider { border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); }
.home-slider .carousel-item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.home-slider .carousel-item { transition-duration: .8s; }
.slider-arrow {
  width: 46px; height: 46px; top: 50%; bottom: auto; transform: translateY(-50%); margin: 0 1rem;
  border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); opacity: 0; font-size: 1.2rem;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .4); transition: opacity .25s var(--ease), background .2s;
}
.home-slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { background: #fff; color: var(--maroon); }
.home-slider .carousel-indicators { margin-bottom: .9rem; gap: .35rem; }
.home-slider .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; margin: 0; border: 0; border-radius: 999px; background: #fff; opacity: .6;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: width .3s var(--ease), opacity .3s;
}
.home-slider .carousel-indicators .active { width: 26px; opacity: 1; }
.slider-pause {
  position: absolute; right: 1rem; bottom: .75rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .4);
}
.slider-pause:hover { color: var(--maroon); }
.slider-caption {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem .25rem 0; transition: opacity .3s var(--ease);
}
.slider-caption.is-changing { opacity: 0; }
.slide-count { font-family: var(--ff-display); font-size: 1.6rem; color: var(--maroon); line-height: 1; }
.slide-count small { font-size: .9rem; color: var(--muted); }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 1.6rem 1.25rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--maroon); line-height: 1.15; }
.stat span { font-size: .92rem; color: var(--ink-2); }

/* Cards */
.card-flat {
  height: 100%; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card-flat:hover { border-color: #D8C7AE; transform: translateY(-3px); box-shadow: var(--shadow); }
.card-flat h3 { font-size: 1.3rem; margin: 1rem 0 .4rem; }
.card-flat p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.card-flat .num { font-family: var(--ff-display); color: var(--gold); font-size: 1.1rem; }
.card-row { display: flex; gap: 1rem; align-items: flex-start; }
.card-row h3 { margin-top: 0; }

/* Question list */
.question { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--ff-display); font-size: 1.2rem; }
.question:last-child { border-bottom: 0; }
.question i { color: var(--saffron); font-size: 1.2rem; }

/* Flow (one story → many forms) */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: flow; }
.flow-step { position: relative; text-align: center; padding: 0 .5rem; }
.flow-step .icon-chip { margin: 0 auto .75rem; width: 58px; height: 58px; font-size: 1.4rem; background: var(--surface); border: 1px solid var(--line); }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -.6rem; top: 14px; color: var(--gold); font-size: 1.3rem; }
.flow-step h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.flow-step p { font-size: .88rem; color: var(--ink-2); margin: 0; }

/* Case studies */
.case-card { height: 100%; display: flex; flex-direction: column; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.case-type { font-size: .82rem; font-weight: 600; color: var(--saffron); letter-spacing: .03em; }
.case-card h3 { font-size: 1.5rem; margin: .3rem 0 .6rem; }
.case-card p { color: var(--ink-2); font-size: .98rem; }
.case-path { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--ink-2); }
.case-path i { color: var(--gold); font-size: .8rem; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.roadmap::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: var(--line); }
.road-step { position: relative; }
.road-step .step-no { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: #fff; font-family: var(--ff-display); font-size: 1.1rem; position: relative; margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--paper); }
.section-sand .road-step .step-no { box-shadow: 0 0 0 6px var(--sand); }
.road-step h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.road-step p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: tl; }
.tl-item { position: relative; padding: 1.4rem 1.4rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--maroon); transition: transform .2s var(--ease), box-shadow .2s; }
.tl-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tl-item::before { counter-increment: tl; content: counter(tl, devanagari); position: absolute; top: 1rem; right: 1.2rem; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--maroon); font-size: .85rem; }
.tl-year { display: inline-block; font-family: var(--ff-display); color: var(--maroon); font-size: 1.5rem; line-height: 1.2; }
.tl-item h3 { font-size: 1.2rem; margin: .35rem 0 .45rem; }
.tl-item p { margin: 0; color: var(--ink-2); }

/* Big numbers (WAVES etc.) */
.big-num { font-family: var(--ff-display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; color: var(--gold); }
.big-num + p { margin-top: .4rem; }

/* Campaign band */
.campaign { text-align: center; padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.campaign p.line-1 { font-family: var(--ff-display); font-size: clamp(1.5rem, 3.2vw, 2.3rem); color: var(--ink); margin-bottom: .4rem; line-height: 1.4; }
.campaign p.line-2 { font-family: var(--ff-display); font-size: clamp(1.25rem, 2.6vw, 1.8rem); color: var(--maroon); margin: 0; }
.campaign .ornament { color: var(--gold); letter-spacing: .5em; margin-bottom: 1rem; display: block; }

/* CTA panels */
.cta-panel { height: 100%; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; }
.cta-panel.light { background: var(--surface); border: 1px solid var(--line); }
.cta-panel.dark { background: var(--maroon); color: #F4E7DD; }
.cta-panel.dark h3 { color: #fff; }
.cta-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .6rem; }
.cta-panel p { margin-bottom: 1.5rem; }
.cta-panel .btn { margin-top: auto; }

/* Closing */
.closing { text-align: center; }
.closing h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.closing .tagline { font-family: var(--ff-display); color: var(--maroon); font-size: 1.2rem; }

/* 7. Magazine covers & archive -------------------------------------------- */
.gen-cover {
  position: relative; aspect-ratio: 3 / 4; width: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  padding: 11% 9% 13%; font-size: 16px; font-size: 6.4cqw; color: var(--c4, #FFF6E8);
  background: radial-gradient(circle at 50% 40%, var(--c3) 0, transparent 55%), linear-gradient(165deg, var(--c1), var(--c2));
}
.gen-cover::before { content: ""; position: absolute; inset: 5%; border: 1px solid rgba(226, 194, 125, .7); pointer-events: none; }
.gen-cover.light::before { border-color: rgba(100, 30, 22, .45); }
.gc-kicker { font-size: .7em; letter-spacing: .1em; opacity: .9; position: relative; }
.gc-motif { width: 40%; position: relative; }
.gc-title { font-family: var(--ff-display); font-size: 2.3em; line-height: 1.1; position: relative; }
.gc-year { font-size: .85em; padding: .1em .9em; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; position: relative; }
.gc-label { position: absolute; bottom: 6.5%; left: 0; right: 0; font-size: .5em; opacity: .75; }

.archive-controls { padding: 1.25rem; margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.archive-controls .form-label { font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-bottom: .3rem; }
.search-input-wrap { position: relative; }
.search-input-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input-wrap .form-control { padding-left: 2.6rem; }
.archive-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; color: var(--ink-2); font-size: .95rem; }
.archive-summary strong { color: var(--maroon); }
.archive-empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.archive-empty i { font-size: 2.4rem; color: var(--gold); }

.mag-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mag-cover-wrap { position: relative; overflow: hidden; container-type: inline-size; background: var(--sand); }
.mag-cover-wrap > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.mag-cover-wrap > .gen-cover, .mag-cover-wrap > img { transition: transform .6s var(--ease); }
.mag-card:hover .mag-cover-wrap > .gen-cover, .mag-card:hover .mag-cover-wrap > img { transform: scale(1.04); }
.mag-cover-wrap .badge-sample { position: absolute; top: .7rem; left: .7rem; z-index: 2; }
.mag-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.mag-meta { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--saffron); font-weight: 600; flex-wrap: wrap; }
.mag-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.mag-title { font-size: 1.45rem; margin: .1rem 0 .3rem; }
.mag-publisher { font-size: .88rem; color: var(--ink-2); margin-bottom: .5rem; line-height: 1.55; }
.mag-publisher i { color: var(--muted); margin-right: .25rem; }
.mag-desc { font-size: .93rem; color: var(--ink-2); line-height: 1.6; flex: 1; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 8. Forms, modal, overlay, toast ----------------------------------------- */
.form-control, .form-select { min-height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--line); background-color: var(--surface); color: var(--ink); font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--maroon); box-shadow: 0 0 0 .2rem rgba(100, 30, 22, .12); }
.form-control::placeholder { color: #A99A8E; }
.form-label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.form-check-input:checked { background-color: var(--maroon); border-color: var(--maroon); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(100, 30, 22, .15); border-color: var(--maroon); }
.form-card { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; }
.check-grid.is-invalid .form-check-label { color: #b02a37; }
.form-success { display: none; }
.form-success.show { display: flex; }
.invalid-feedback { font-size: .88rem; }

.ank-modal .modal-content { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ank-modal .modal-header { border-bottom: 1px solid var(--line); padding: 1rem 1.5rem; }
.ank-modal .modal-title { font-family: var(--ff-display); font-size: 1.5rem; }
.ank-modal .modal-body { padding: 1.5rem; }
.ank-modal .modal-footer { border-top: 1px solid var(--line); }
.modal-backdrop.show { opacity: .55; }
.modal-cover { max-width: 300px; margin: 0 auto; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.1rem; margin: 1rem 0; }
.detail-list dt { font-weight: 600; color: var(--ink); font-size: .95rem; }
.detail-list dd { margin: 0; color: var(--ink-2); }

.search-overlay { position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; padding: 1.5rem; background: rgba(251, 248, 243, .98); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: min(720px, 100%); }
.search-box label { display: block; text-align: center; font-family: var(--ff-display); font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 1.25rem; }
.search-field { display: flex; align-items: center; gap: .75rem; border-bottom: 2px solid var(--ink); padding: .5rem .25rem; }
.search-field i { color: var(--muted); font-size: 1.3rem; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: clamp(1.1rem, 2.6vw, 1.5rem); color: var(--ink); }
.search-hints { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; color: var(--muted); font-size: .92rem; }
.search-hints a { border: 1px solid var(--line); padding: .2rem .8rem; border-radius: 999px; color: var(--ink-2); background: var(--surface); }
.search-hints a:hover { border-color: var(--maroon); color: var(--maroon); }
.search-close { position: absolute; top: 1.25rem; right: 1.25rem; }

.ank-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 1080; transform: translate(-50%, 160%); max-width: min(520px, calc(100% - 2rem)); padding: .85rem 1.2rem; border-radius: var(--radius-sm); background: var(--ink); color: #fff; display: flex; gap: .6rem; align-items: center; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.ank-toast.show { transform: translate(-50%, 0); }
.ank-toast i { color: var(--gold); }

.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s var(--ease); }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--maroon); border-color: var(--maroon); }

/* 9. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #BFB1A4; padding-top: 4.5rem; font-size: .96rem; }
.footer-about { margin: 1rem 0 1.25rem; max-width: 340px; line-height: 1.7; }
.footer-title { font-family: var(--ff-body); font-weight: 600; font-size: .95rem; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .45rem; }
.footer-links a { color: #BFB1A4; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact i { color: var(--gold); }
.social { display: flex; gap: .5rem; }
.social a, .social button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #E9E0D6; border: 1px solid rgba(255, 255, 255, .15); background: transparent; transition: all .2s var(--ease); }
.social a:hover, .social button:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { margin-top: 3.5rem; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: #9A8C80; }
.footer-bottom .tagline { font-family: var(--ff-display); color: #E9E0D6; }
.site-footer .badge-sample { background: transparent; color: #E9E0D6; border-color: rgba(255, 255, 255, .25); }

/* 9b. "Read more" buttons + reading panel ---------------------------------- */
.read-more {
  display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .95rem .42rem .8rem;
  border-radius: 999px; border: 1px solid rgba(100, 30, 22, .35); background: var(--surface); color: var(--maroon);
  font-weight: 600; font-size: .9rem; line-height: 1.2; position: relative; overflow: hidden; isolation: isolate;
  transition: color .25s var(--ease), border-color .25s, box-shadow .25s;
}
.read-more::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--maroon); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.read-more:hover, .read-more:focus-visible { color: #fff; border-color: var(--maroon); box-shadow: 0 8px 18px -10px rgba(100, 30, 22, .7); }
.read-more:hover::before, .read-more:focus-visible::before { transform: scaleX(1); }
.read-more i { transition: transform .3s var(--ease); }
.read-more:hover .bi-book-half { transform: rotate(-12deg) scale(1.1); }
.read-more:hover .bi-arrow-up-right { transform: translate(2px, -2px); }
.read-more-sm { padding: .3rem .75rem .3rem .65rem; font-size: .82rem; }
.section-dark .read-more, .cta-panel.dark .read-more { background: transparent; color: var(--gold); border-color: rgba(196, 154, 69, .5); }
.section-dark .read-more::before, .cta-panel.dark .read-more::before { background: var(--gold); }
.section-dark .read-more:hover, .cta-panel.dark .read-more:hover { color: var(--dark); border-color: var(--gold); }
.stack-block p { max-width: none; }
.stack-block .hero-actions { margin-top: .5rem; }
.read-excerpt { max-width: none; margin: 1rem 0 0; color: var(--ink-2); line-height: 1.85; }
.read-excerpt + .read-row { margin-top: .9rem; }
.campaign .read-excerpt, .closing .read-excerpt { text-align: center; }
.stat-wrap { padding-bottom: var(--space); }
.read-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.1rem; }
.card-flat .read-more, .case-card .read-more { margin-top: 1rem; align-self: flex-start; }

html.reader-lock, html.reader-lock body { overflow: hidden; }
.reader { position: fixed; inset: 0; z-index: 1070; visibility: hidden; pointer-events: none; transition: visibility 0s linear .45s; }
.reader.open { visibility: visible; pointer-events: auto; transition: none; }
.reader-backdrop { position: absolute; inset: 0; background: rgba(35, 24, 19, .55); opacity: 0; transition: opacity .35s var(--ease); }
@supports (backdrop-filter: blur(3px)) { .reader-backdrop { backdrop-filter: blur(3px); } }
.reader.open .reader-backdrop { opacity: 1; }
.reader-panel {
  --read-size: 1.08rem;
  position: absolute; top: 0; right: 0; height: 100%; width: min(780px, 100%); display: flex; flex-direction: column;
  background: var(--paper); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .55); outline: none;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.reader.open .reader-panel { transform: none; }
.reader-progress { height: 3px; background: var(--line); flex: none; }
.reader-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--maroon)); transform-origin: left; transform: scaleX(0); }
.reader-bar { flex: none; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--line); }
.reader-tools { display: flex; gap: .4rem; }
.reader-tool { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .9rem; transition: all .2s var(--ease); }
.reader-tool.icon { width: 38px; height: 38px; padding: 0; justify-content: center; gap: 0; font-family: var(--ff-display); }
.reader-tool small { font-size: .7em; }
.reader-tool:hover:not(:disabled), .reader-tool[aria-expanded="true"] { border-color: var(--maroon); color: var(--maroon); }
.reader-tool:disabled { opacity: .35; }
.reader-close { background: var(--ink); border-color: var(--ink); color: #fff; }
.reader-close:hover { background: var(--maroon) !important; border-color: var(--maroon) !important; color: #fff !important; }
.reader-toc { flex: none; max-height: 55%; overflow-y: auto; border-bottom: 1px solid var(--line); background: var(--surface); padding: .5rem; }
.reader-toc ol { list-style: none; margin: 0; padding: 0; }
.reader-toc button { width: 100%; text-align: left; border: 0; background: none; padding: .55rem .85rem; border-radius: var(--radius-sm); border-left: 3px solid transparent; font-size: .95rem; color: var(--ink); line-height: 1.45; }
.reader-toc button:hover { background: var(--sand); }
.reader-toc li.active button { border-left-color: var(--saffron); background: var(--sand); color: var(--maroon); font-weight: 600; }
.toc-no { display: block; font-size: .75rem; color: var(--saffron); font-weight: 600; }
.reader-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.reader-content { padding: 2.25rem clamp(1.25rem, 5vw, 3.5rem) 3rem; }
.reader-content.swap { animation: readerIn .5s var(--ease); }
.reader-kicker { color: var(--saffron); font-weight: 600; font-size: .85rem; margin: 0 0 .5rem; }
.reader-title { font-size: clamp(1.55rem, 3.4vw, 2.2rem); margin-bottom: .8rem; }
.reader-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--muted); font-size: .86rem; padding-bottom: 1.25rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.reader-meta i { color: var(--gold); margin-right: .2rem; }
.reader-body { font-size: var(--read-size); transition: font-size .2s var(--ease); }
.reader-body p { line-height: 1.95; margin-bottom: 1.15em; }
.reader-body h3 { font-size: 1.3em; margin: 2rem 0 .9rem; }
.reader-body .dropcap::first-letter { font-family: var(--ff-display); float: left; font-size: 3.2em; line-height: .9; margin: .25rem .55rem 0 0; color: var(--maroon); }
.reader-quote { font-family: var(--ff-display); font-size: 1.18em; line-height: 1.65; color: var(--maroon); margin: 1.75rem 0; padding: .6rem 0 .6rem 1.25rem; border-left: 3px solid var(--saffron); background: linear-gradient(90deg, rgba(217, 119, 6, .08), transparent 70%); }
.reader-list { list-style: none; padding: 0; margin: 1rem 0 1.75rem; display: grid; gap: .65rem; }
.reader-list li { display: flex; gap: .9rem; padding: .95rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; animation: listIn .5s var(--ease) both; animation-delay: calc(var(--i) * 55ms); transition: border-color .2s, transform .2s var(--ease); }
.reader-list li:hover { border-color: #D8C7AE; transform: translateX(3px); }
.rl-no { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--maroon); font-family: var(--ff-display); }
.reader-list strong { display: block; font-weight: 600; color: var(--ink); }
.reader-list p { margin: .15rem 0 0; font-size: .95em; line-height: 1.7; color: var(--ink-2); }
.reader-scenes { display: grid; gap: .55rem; margin-bottom: 1.5rem; }
.scene { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.scene summary { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; cursor: pointer; list-style: none; }
.scene summary::-webkit-details-marker { display: none; }
.scene summary:hover { background: var(--sand); }
.scene-no { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: #fff; font-size: .85rem; }
.scene-title { flex: 1; font-family: var(--ff-display); font-size: 1.05em; }
.scene summary .bi-chevron-down { color: var(--muted); transition: transform .3s var(--ease); }
.scene[open] summary .bi-chevron-down { transform: rotate(180deg); }
.scene-body { padding: 0 1rem 1rem 3.4rem; animation: listIn .35s var(--ease); }
.scene-body p { margin: .4rem 0 0; font-size: .95em; line-height: 1.75; }
.scene-visual { color: var(--ink-2); }
.scene-talk { color: var(--ink); }
.scene-body i { color: var(--saffron); margin-right: .25rem; }
.scene-actions { text-align: right; }
.reader-cta { margin-top: 2rem; }
.reader-pager { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager-card { display: flex; flex-direction: column; gap: .25rem; text-align: left; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.pager-card.next { text-align: right; align-items: flex-end; grid-column: 2; }
.pager-card:hover { border-color: var(--maroon); transform: translateY(-2px); box-shadow: var(--shadow); }
.pager-card small { color: var(--saffron); font-weight: 600; font-size: .8rem; }
.pager-card span { font-family: var(--ff-display); color: var(--ink); line-height: 1.4; }
@keyframes readerIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes listIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Story journey (orange economy) */
.stack-block .read-excerpt { max-width: none; }
.closing .read-excerpt, .campaign .read-excerpt { max-width: 860px; }
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.journey-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.25rem; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.journey-step:hover { border-color: #D8C7AE; transform: translateY(-3px); box-shadow: var(--shadow); }
.journey-step .j-no { position: absolute; top: 1rem; right: 1.1rem; font-family: var(--ff-display); font-size: 1.35rem; color: var(--gold); line-height: 1; }
.journey-step h3 { font-size: 1.15rem; margin: .95rem 0 .35rem; }
.journey-step p { margin: 0; font-size: .93rem; line-height: 1.65; color: var(--ink-2); text-align: left; }
.journey-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -.95rem; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--saffron); color: #fff; font-size: .85rem; box-shadow: 0 0 0 4px var(--sand);
}
.roles-card { margin-top: 1.5rem; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.roles-card h3 { font-size: 1.2rem; margin: 0; flex: none; }

.waves-uses .card-flat h3 { margin-top: 1rem; font-size: 1.2rem; }
.waves-uses .card-flat p { text-align: left; }

/* About page: question cards, pillar tiles, dark cards */
.q-card { height: 100%; position: relative; overflow: hidden; padding: 1.5rem 1.4rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.q-card:hover { border-color: #D8C7AE; transform: translateY(-3px); box-shadow: var(--shadow); }
.q-mark { display: block; font-family: var(--ff-display); font-size: 3rem; line-height: 1; color: var(--saffron); margin-bottom: .6rem; }
.q-card p { margin: 0; font-family: var(--ff-display); font-size: 1.15rem; line-height: 1.55; color: var(--ink); text-align: left; }
.pillar-tile { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; padding: 1.25rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.pillar-tile:hover { border-color: var(--maroon); transform: translateY(-2px); }
.pillar-tile i { font-size: 1.5rem; color: var(--maroon); }
.dark-card { height: 100%; padding: 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); }
.dark-card > i { font-size: 1.5rem; color: var(--gold); }
.dark-card p { margin: .7rem 0 0; font-family: var(--ff-display); font-size: 1.15rem; line-height: 1.55; color: #fff; text-align: left; }
.dark-card-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.dark-card-title { font-weight: 600; color: #fff; }
.dark-card-title i { color: var(--gold); margin-right: .3rem; }

/* Ankmitra mascot (ankmitra page header) */
.page-header-mascot { padding-bottom: 1.5rem; overflow: hidden; }
.mascot { position: relative; display: inline-block; }
.mascot::before { content: ""; position: absolute; left: 50%; bottom: 2.2rem; width: 78%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(217, 119, 6, .16), rgba(196, 154, 69, .06) 60%, transparent 72%); z-index: 0; }
.mascot img { position: relative; z-index: 1; width: auto; max-height: 380px; height: auto; filter: drop-shadow(0 14px 18px rgba(42, 30, 24, .18)); animation: mascotFloat 5s ease-in-out infinite; }
.mascot figcaption { position: relative; z-index: 1; margin-top: .4rem; font-size: .85rem; font-weight: 600; color: var(--maroon); text-align: center; }
@keyframes mascotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* अंकमित्र chatbot ------------------------------------------------------- */
.back-to-top { bottom: 6.6rem; right: 1.6rem; }
.am-widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1065; font-family: var(--ff-body); }
.am-fab { position: relative; width: 72px; height: 72px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: #F8EFDC; overflow: visible; box-shadow: 0 10px 26px -10px rgba(100, 30, 22, .65); transition: transform .25s var(--ease); }
.am-fab img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.am-fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(217, 119, 6, .55); animation: amPulse 2.4s ease-out infinite; }
.am-fab:hover { transform: translateY(-3px) scale(1.04); }
.am-fab.is-open::before { animation: none; opacity: 0; }
.am-fab-badge { position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--saffron); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.am-fab.is-open .am-fab-badge { display: none; }
@keyframes amPulse { 0% { transform: scale(.95); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

.am-hello { position: absolute; right: 0; bottom: 86px; width: 230px; padding: .8rem 2rem .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow); cursor: pointer; font-size: .9rem; line-height: 1.45; animation: amIn .4s var(--ease); }
.am-hello strong { display: block; color: var(--maroon); }
.am-hello span { color: var(--ink-2); }
.am-hello-close { position: absolute; top: .25rem; right: .45rem; border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--muted); }

.am-panel { position: absolute; right: 0; bottom: 86px; width: min(380px, calc(100vw - 2.5rem)); height: min(560px, calc(100vh - 8rem)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(42, 30, 24, .55); opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.am-panel.open { opacity: 1; transform: none; }
.am-head { display: flex; align-items: center; gap: .65rem; padding: .75rem .8rem .75rem 1rem; background: var(--maroon); color: #fff; }
.am-head img { width: 44px; height: 44px; border-radius: 50%; background: #F8EFDC; border: 2px solid rgba(255, 255, 255, .7); object-fit: cover; }
.am-head div { flex: 1; min-width: 0; }
.am-head h2 { margin: 0; color: #fff; font-size: 1.2rem; line-height: 1.2; }
.am-head p { margin: 0; font-size: .78rem; color: #F2DCCB; text-align: left; }
.am-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7CD992; margin-right: .2rem; }
.am-icon { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.am-icon:hover { background: rgba(255, 255, 255, .25); }
.am-body { flex: 1; overflow-y: auto; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .7rem; overscroll-behavior: contain; }
.am-msg { display: flex; gap: .5rem; align-items: flex-end; animation: amIn .3s var(--ease); }
.am-msg > img { width: 28px; height: 28px; border-radius: 50%; background: #F8EFDC; flex: none; object-fit: cover; }
.am-bubble { max-width: 86%; padding: .65rem .85rem; border-radius: 14px; font-size: .93rem; line-height: 1.6; text-align: left; }
.am-bot .am-bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.am-user { justify-content: flex-end; }
.am-user .am-bubble { background: var(--maroon); color: #fff; border-bottom-right-radius: 4px; }
.am-chips { display: flex; flex-direction: column; gap: .35rem; margin-top: .65rem; }
.am-chip { text-align: left; border: 1px solid rgba(100, 30, 22, .25); background: var(--paper); color: var(--maroon); border-radius: 10px; padding: .42rem .7rem; font-size: .86rem; font-weight: 600; line-height: 1.4; transition: background .2s, color .2s, border-color .2s; }
.am-chip:hover, .am-chip:focus-visible { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.am-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.am-act { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: var(--saffron); color: #fff; border-radius: 999px; padding: .38rem .8rem; font-size: .84rem; font-weight: 600; }
.am-act:hover { background: var(--maroon); color: #fff; }
.am-act-go { background: var(--ink); }
.am-more { margin-top: .5rem; border: 0; background: none; padding: 0; color: var(--saffron); font-size: .84rem; font-weight: 600; text-decoration: underline; }
.am-typing .am-bubble { display: inline-flex; gap: 4px; padding: .8rem .9rem; }
.am-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: amDot 1s infinite ease-in-out; }
.am-typing i:nth-child(2) { animation-delay: .15s; }
.am-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes amDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes amIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) {
  .am-widget { right: .9rem; bottom: .9rem; }
  .am-fab { width: 60px; height: 60px; }
  .am-panel, .am-hello { bottom: 74px; }
  .am-panel { position: fixed; left: .6rem; right: .6rem; bottom: 5.4rem; width: auto; height: min(70vh, 520px); }
  .back-to-top { bottom: 5.6rem; right: 1.15rem; }
}

/* 10. Motion --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
