/* meb.co.th — public site styles */
:root {
  /* meb brand (mebmarket.com: --main-color #00bf6c, gradient #00af70 -> #37c13d, text #1d6548) */
  --green: #00bf6c;
  --green-600: #00af70;
  --lime: #37c13d;
  --green-700: #008550;          /* green text/links on white */
  --green-800: #1d6548;          /* meb dark green */
  --green-900: #144a35;
  --green-50: #effbf4;
  --green-100: #d4f5e3;
  --brand-grad: linear-gradient(120deg, #00af70 0%, #00bf6c 45%, #37c13d 100%);
  --ink: #26332d;
  --ink-2: #4b5952;
  --muted: #74807a;
  --line: #e4ebe7;
  --bg: #ffffff;
  --bg-soft: #f5f9f7;
  --up: #00a35c;
  --down: #d23f3f;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29, 101, 72, .05), 0 6px 20px rgba(29, 101, 72, .07);
  --shadow-lg: 0 20px 50px rgba(20, 74, 53, .16);
  --font: 'Noto Sans Thai', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'meb cloudloop', 'Noto Sans Thai', 'Noto Sans', system-ui, sans-serif;
  --container: 1200px;
  --header-h: 112px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.35; color: var(--green-800); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--green-800); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.section { padding-block: 88px; }
.section--tint { background: var(--bg-soft); }
@media (max-width: 760px) { .section { padding-block: 56px; } }
.container.section { padding-block: 56px 24px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--green-700); margin: 0 0 10px; letter-spacing: .02em; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); }
.display { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.3; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- buttons, panels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 24px; background: var(--brand-grad); color: #fff; font: 600 .98rem var(--font); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); box-shadow: 0 6px 16px rgba(0, 175, 112, .25); }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 175, 112, .32); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: #fff; color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--green-100); }
.btn--ghost:hover { color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn--light { background: #fff; color: var(--green-800); box-shadow: 0 6px 16px rgba(20, 74, 53, .15); }
.btn--light:hover { color: var(--green-900); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert--ok { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.alert--error { background: #fdeeee; color: #9b2222; border: 1px solid #f6caca; }
.empty { color: var(--muted); padding: 20px 0; }
.note { color: var(--muted); font-size: .88rem; margin-top: 20px; }
.narrow { max-width: 680px; }
.is-up { color: var(--up); }
.is-down { color: var(--down); }
.is-flat { color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(20, 74, 53, .08); }
.topbar { background: var(--brand-grad); color: #fff; font-size: .85rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.ticker { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.ticker:hover { color: #fff; }
.ticker__sym { opacity: .9; letter-spacing: .03em; }
.ticker__last { font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker__chg { font-variant-numeric: tabular-nums; font-weight: 500; }
.ticker__chg.is-up, .ticker__chg.is-down, .ticker__chg.is-flat { color: #fff; }
.topbar__tools { display: flex; align-items: center; gap: 12px; }
.search-mini { display: flex; align-items: center; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 1px 4px 1px 12px; }
.search-mini input[type=search] { background: transparent; border: 0; border-radius: 0; color: #fff; width: 160px; font: inherit; padding: 4px 0; box-shadow: none; }
.search-mini input::placeholder { color: rgba(255, 255, 255, .85); }
.search-mini input:focus { outline: none; }
.search-mini button { background: none; border: 0; padding: 4px 6px; cursor: pointer; display: grid; }
.search-mini svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.lang { display: flex; gap: 2px; }
.lang a { color: #fff; text-decoration: none; padding: 1px 9px; border-radius: 999px; font-weight: 600; font-size: .82rem; }
.lang a[aria-current] { background: #fff; color: var(--green-800); }
@media (max-width: 640px) { .search-mini { display: none; } }
.nav__search { display: none; }
@media (max-width: 640px) {
  .nav__search { display: flex; align-items: center; gap: 4px; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 16px; }
  .nav__search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: 8px 0; box-shadow: none; }
  .nav__search input:focus { outline: none; }
  .nav__search:focus-within { border-color: var(--green); }
  .nav__search button { background: var(--green-50); border: 0; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
  .nav__search svg { width: 18px; height: 18px; fill: none; stroke: var(--green-800); stroke-width: 2; }
}

.mainbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 78px; height: auto; display: block; transition: filter .25s; }
.brand__name { font: 600 .95rem var(--font); color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; letter-spacing: .02em; transition: color .25s, border-color .25s; }

.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { position: relative; display: flex; align-items: center; gap: 4px; background: none; border: 0; font: 500 .95rem var(--font); color: var(--ink); padding: 10px 10px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.nav__link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .6; transition: transform .2s; }
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--green-700); background: var(--green-50); }
.nav__item.is-active > .nav__link { color: var(--green-700); font-weight: 600; }
.nav__link--cta { background: var(--brand-grad); color: #fff !important; padding: 9px 18px; margin-left: 8px; font-weight: 600; }
.nav__link--cta:hover { background: var(--brand-grad); filter: brightness(1.05); }
.sub { position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 10px; display: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .94rem; line-height: 1.5; }
.sub a:hover { background: var(--green-50); color: var(--green-800); }
.nav__item.is-open > .sub { display: block; animation: drop .18s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.sub--mega { position: fixed; left: 50%; top: var(--header-h); width: min(1100px, calc(100vw - 32px)); padding: 24px 28px; translate: -50% 0; }
.sub__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 28px; }
.sub__col--lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 6px; }
.sub__lead { font: 700 1.05rem var(--font) !important; color: var(--green-800) !important; }
.sub__head { font: 600 .8rem var(--font); letter-spacing: .03em; color: var(--muted); margin: 10px 12px 2px; }

/* home: header floats over the brand film until the page scrolls */
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header--overlay:not(.is-scrolled) .topbar { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-header--overlay:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
.site-header--overlay:not(.is-scrolled) .brand__name { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .3); }
.site-header--overlay:not(.is-scrolled) .nav__item > .nav__link:not(.nav__link--cta) { color: #fff; }
.site-header--overlay:not(.is-scrolled) .nav__item > .nav__link:not(.nav__link--cta):hover,
.site-header--overlay:not(.is-scrolled) .nav__item.is-open > .nav__link { background: rgba(255, 255, 255, .14); }
.site-header--overlay:not(.is-scrolled) .nav__link--cta { background: #fff; color: var(--green-800) !important; }
.site-header--overlay.is-scrolled { background: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--green-50); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span:not(.sr) { width: 20px; height: 2px; background: var(--green-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header--overlay:not(.is-scrolled) .burger { background: rgba(255, 255, 255, .18); }
.site-header--overlay:not(.is-scrolled) .burger span:not(.sr) { background: #fff; }

@media (max-width: 1140px) {
  .burger { display: flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 12px 16px 40px; display: none; border-top: 1px solid var(--line); }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 6px; border-radius: 0; font-size: 1.02rem; }
  .nav__link:hover { background: none; }
  .nav__link--cta { justify-content: center; margin: 16px 0 0; border-radius: 999px; }
  .nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
  .sub, .sub--mega { position: static; translate: none; width: auto; box-shadow: none; border: 0; padding: 0 0 12px 8px; min-width: 0; animation: none !important; }
  .sub__grid { grid-template-columns: 1fr; }
  .site-header--overlay:not(.is-scrolled) .nav .nav__link:not(.nav__link--cta) { color: var(--ink); }
}
@media (max-width: 420px), (min-width: 1141px) and (max-width: 1380px) { .brand__name { display: none; } }

/* ---------- inner page head ---------- */
.pagehead { position: relative; overflow: hidden; background: var(--brand-grad); color: #fff; padding: 44px 0 52px; isolation: isolate; }
.pagehead::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 12% 120%, rgba(255, 255, 255, .16) 0 120px, transparent 121px),
  radial-gradient(circle at 46% -40%, rgba(255, 255, 255, .12) 0 160px, transparent 161px); }
.pagehead h1 { margin: 0; color: #fff; max-width: 760px; position: relative; }
.pagehead__art { position: absolute; right: max(16px, calc((100vw - var(--container)) / 2)); bottom: -6px; width: min(440px, 36vw); pointer-events: none; filter: drop-shadow(0 12px 18px rgba(20, 74, 53, .25)); }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .85); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; position: relative; max-width: 760px; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .pagehead__art { display: none; } .pagehead { padding: 32px 0 36px; } }

/* ---------- home hero (meb brand film) ---------- */
.hero { position: relative; height: max(42.6vw, 520px); max-height: 860px; overflow: hidden; background: #0b1d16; color: #fff; display: grid; place-items: center; padding-top: 80px; }
/* the brand film is letterboxed (2.35:1 inside 16:9); the hero box matches 2.35:1 so the bars fall outside it */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a few shots are letterboxed wider than 2.35:1; a mild zoom hides most of the bars without cropping too much */
.hero__video { transform: scale(1.3); }
@media (max-width: 700px) { .hero { height: 78svh; min-height: 480px; } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 22, 15, .55) 0%, rgba(4, 22, 15, .1) 30%, rgba(4, 22, 15, .1) 60%, rgba(4, 22, 15, .65) 100%); }
.hero__center { position: relative; text-align: center; padding: 0 24px; }
.hero__logo { margin: 0; display: grid; justify-items: center; gap: 6px; color: #fff; }
.hero__logo img { width: clamp(190px, 24vw, 340px); filter: brightness(0) invert(1) drop-shadow(0 6px 30px rgba(0, 0, 0, .35)); }
.hero__logo span { font: 500 clamp(.9rem, 1.5vw, 1.2rem) var(--font); letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.hero__tag { margin-top: 18px; font-size: 1.1rem; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.hero__tag p { margin: 0; }
.hero__pause { position: absolute; right: 24px; bottom: 84px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .25); color: #fff; font-size: .7rem; cursor: pointer; backdrop-filter: blur(6px); }
.hero__pause.is-paused span { display: none; }
.hero__pause.is-paused::after { content: '▶'; font-size: .8rem; }

/* investor strip overlapping the hero */
.irstrip { position: relative; z-index: 3; margin-top: -64px; }
.irstrip__card { display: grid; grid-template-columns: auto 200px minmax(0, 1fr) auto; align-items: center; gap: 28px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 22px 28px; border: 1px solid var(--line); }
.irstrip__quote { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; text-decoration: none; color: var(--ink); }
.irstrip__label { grid-column: 1 / -1; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.irstrip__price b { font: 700 2.1rem/1.15 var(--font-head); color: var(--green-800); font-variant-numeric: tabular-nums; }
.irstrip__price small { color: var(--muted); font-weight: 600; }
.irstrip__chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.irstrip__time { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }
.irstrip__spark { height: 64px; min-width: 0; }
.irstrip__docs { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.irstrip__docs a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; color: var(--ink); min-width: 0; }
.irstrip__docs a:hover .irstrip__doctitle { color: var(--green-700); }
.irstrip__doccat { flex-shrink: 0; font-size: .74rem; font-weight: 600; color: var(--green-700); background: var(--green-50); padding: 1px 8px; border-radius: 999px; }
.irstrip__doctitle { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1080px) { .irstrip__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .irstrip__docs { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } .irstrip__cta { grid-column: 1 / -1; } }
@media (max-width: 560px) { .irstrip__card { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 16px; } .irstrip__spark { display: none; } }

/* about + highlights */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.about__art img { width: 100%; filter: drop-shadow(0 20px 30px rgba(20, 74, 53, .12)); }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 32px; } }
.highlights { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.highlights li { padding: 22px 0 0; border-top: 2px solid var(--green-100); display: grid; gap: 6px; align-content: start; }
.highlights b { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.25 var(--font-head); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.highlights span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .highlights { grid-template-columns: 1fr; margin-top: 40px; } }

/* businesses */
.brandgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1180px) { .brandgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .brandgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .brandgrid { grid-template-columns: 1fr; } }
.brandcard { position: relative; display: grid; grid-template-rows: 190px auto; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.brandcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.brandcard__img { position: relative; background: var(--tint, var(--green-50)); overflow: hidden; }
.brandcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px 20px; transition: transform .4s var(--ease); }
.brandcard__img--cover img { object-fit: cover; object-position: var(--pos, 50% 50%); padding: 0; }
.brandcard:hover .brandcard__img img { transform: scale(1.04); }
.brandcard__body { padding: 18px 22px 22px; display: grid; gap: 4px; }
.brandcard__name { font: 700 1.2rem var(--font-head); color: var(--green-800); }
.brandcard__desc { font-size: .93rem; color: var(--ink-2); line-height: 1.6; }
.brandcard__go { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--green-800); font-weight: 700; box-shadow: var(--shadow); }

.appstrip { margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.appstrip__track { display: flex; gap: 20px; width: max-content; animation: marquee 70s linear infinite; }
.appstrip:hover .appstrip__track { animation-play-state: paused; }
.appstrip img { width: 210px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* news */
.news__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; }
@media (max-width: 960px) { .news__grid { grid-template-columns: 1fr; gap: 40px; } }
.news__posts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news__posts > :first-child { grid-column: 1 / -1; }
.news__posts > :first-child .post-card__img { aspect-ratio: 2 / 1; }
.news__posts > :first-child h3 { font-size: 1.2rem; }
@media (max-width: 560px) { .news__posts { grid-template-columns: 1fr; } }

/* ---------- stock quote ---------- */
.quote { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 26px 30px; }
.quote__sym { margin: 0; color: var(--muted); font-size: .9rem; }
.quote__sym strong { color: var(--green-800); font-size: 1.05rem; margin-left: 4px; }
.quote__last { margin: 4px 0 0; font: 700 2.7rem/1.1 var(--font-head); color: var(--green-800); font-variant-numeric: tabular-nums; }
.quote__last small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.quote__chg { margin: 6px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.quote__time { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.quote--big { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 32px; align-items: center; }
.quote__grid { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.quote__grid div { background: #fff; padding: 12px 14px; }
.quote__grid dt { font-size: .8rem; color: var(--muted); }
.quote__grid dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .quote--big { grid-template-columns: 1fr; } .quote__grid { grid-template-columns: repeat(2, 1fr); } }
.stock-chart { margin-top: 24px; }
.stock-chart__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; font: 500 .88rem var(--font); padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--green-800); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); font-weight: 600; }
.chart { width: 100%; height: 300px; }
.chart--tall { height: 440px; }
.chart--donut { height: 340px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 32px; }
.chart-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 8px; box-shadow: var(--shadow); }
.chart-card figcaption { font-weight: 700; color: var(--green-800); }
.chart-card figcaption small { font-weight: 400; font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) { .chart--tall { height: 340px; } .charts { grid-template-columns: 1fr; } }

/* ---------- IR home ---------- */
.ir-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-bottom: 16px; }
@media (max-width: 1000px) { .ir-top { grid-template-columns: 1fr; } }
.keydocs { list-style: none; margin: 0; padding: 0; }
.keydocs li + li { border-top: 1px solid var(--line); }
.keydocs a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
.keydocs a:hover .keydocs__title { color: var(--green-700); }
.keydocs__cat { display: block; font-size: .78rem; font-weight: 600; color: var(--green-700); }
.keydocs__title { font-weight: 500; }

/* ---------- documents ---------- */
.docs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.doc:hover { border-color: var(--green-100); box-shadow: var(--shadow); }
.doc__icon { flex-shrink: 0; width: 44px; height: 52px; display: grid; place-items: end center; padding-bottom: 7px; border-radius: 6px 14px 6px 6px; background: var(--green-50); color: var(--green-800); font: 700 .66rem var(--font); letter-spacing: .03em; }
.doc__icon--pdf { background: #fdecec; color: #b42f2f; }
.doc__icon--xlsx, .doc__icon--xls { background: #e7f6ea; color: #1d7a3a; }
.doc__icon--docx, .doc__icon--doc { background: #e8f0fd; color: #2456b0; }
.doc__icon--link { background: #eef0ff; color: #4b4bc4; }
.doc__body { flex: 1; min-width: 0; }
.doc__title { display: block; font-weight: 500; line-height: 1.5; }
.doc__meta { font-size: .82rem; color: var(--muted); }
.doc__btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--green-50); color: var(--green-800); text-decoration: none; font-weight: 600; font-size: .88rem; transition: background .15s, color .15s; }
.doc__btn:hover { background: var(--green-600); color: #fff; }
.doc__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .doc__btn span { display: none; } .doc { gap: 12px; padding: 12px; } }
.docs--compact .doc { border: 0; padding: 8px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.docs--compact .doc:hover { box-shadow: none; }
.docs--compact .doc__icon { width: 34px; height: 40px; font-size: .58rem; padding-bottom: 5px; }
.year-group { margin-bottom: 36px; }
.year-group__title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.year-group__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.rc { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.rc .doc { flex-wrap: wrap; row-gap: 8px; }
.rc .doc__body { flex: 1 1 180px; }
.rc__group h2 { font-size: 1.15rem; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pills a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; font-variant-numeric: tabular-nums; }
.pills a:hover { border-color: var(--green); color: var(--green-700); }
.pills a[aria-current] { background: var(--brand-grad); border-color: transparent; color: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 32px 0 8px; color: var(--muted); }
.pager a { text-decoration: none; font-weight: 600; }
.filterbar { display: flex; gap: 10px; margin-bottom: 20px; max-width: 560px; }
.filterbar input { flex: 1; }

/* ---------- news cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__img { display: block; aspect-ratio: 16 / 9; background: var(--green-50); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .post-card__img img { transform: scale(1.04); }
.post-card__ph { display: block; width: 100%; height: 100%; background: url('/static/img/brand/meb-cat-dots.svg') center / 38% no-repeat, linear-gradient(135deg, var(--green-50), var(--green-100)); }
.post-card__body { padding: 16px 20px 22px; }
.post-card__body time { font-size: .82rem; color: var(--muted); }
.post-card__body h3 { font-size: 1.02rem; margin: 4px 0 0; line-height: 1.55; color: var(--ink); }
.post-card__body h3 a { color: inherit; text-decoration: none; }
.post-card__body h3 a:hover { color: var(--green-700); }
.article { max-width: 820px; }
.article__date { color: var(--muted); display: block; margin-bottom: 16px; }
.article__cover { border-radius: var(--radius); margin-bottom: 24px; width: 100%; }
.more { margin-top: 56px; }

.anns { list-style: none; margin: 0; padding: 0; }
.ann { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ann time { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.ann a { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.55; }
.ann a:hover { color: var(--green-700); text-decoration: underline; }
@media (max-width: 560px) { .ann { grid-template-columns: 1fr; gap: 2px; } }

.events { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.event { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.event__date { flex-shrink: 0; width: 76px; text-align: center; background: var(--green-50); border-radius: 12px; padding: 8px 4px; color: var(--green-800); }
.event__date b { display: block; font: 700 1.6rem/1.1 var(--font-head); }
.event__date small { font-size: .78rem; }
.event__body { display: grid; gap: 2px; }
.event__title { font-weight: 600; }
.event__meta { color: var(--muted); font-size: .88rem; }
.event__links { display: flex; gap: 16px; font-size: .9rem; font-weight: 500; }
.events--compact .event { padding: 10px 12px; align-items: center; }
.events--compact .event__date { width: 60px; padding: 4px; }
.events--compact .event__date b { font-size: 1.3rem; }

/* ---------- people ---------- */
.people-group { margin-bottom: 48px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 24px; }
.person { text-align: center; }
.person__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--green-50), var(--green-100)); margin-bottom: 14px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.person h3 { margin: 0 0 4px; font-size: 1.05rem; }
.person__pos { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.person__bio { text-align: left; font-size: .92rem; }
.person__bio summary { cursor: pointer; color: var(--green-700); font-weight: 600; text-align: center; }

/* ---------- tables ---------- */
.table-title { margin-top: 36px; font-size: 1.25rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 24px; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--green-50); color: var(--green-800); font-weight: 600; font-size: .86rem; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: #fafdfb; }
.table .num, .table--num td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table--num thead th:not(:first-child) { text-align: right; }
.table tbody th { font-weight: 500; }
.table small { color: var(--muted); font-weight: 400; }
.asof { color: var(--muted); font-size: .9rem; }
.holders { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .holders { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .94rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=search], input[type=number], input[type=date], input:not([type]), textarea, select {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 15%, transparent); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: .94rem; margin-bottom: 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.radio-row legend { width: 100%; }
.radio-row label, .check-col label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check-col { display: grid; gap: 6px; }
input[type=checkbox], input[type=radio] { accent-color: var(--green-600); width: 18px; height: 18px; }
.consent { display: flex !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: .9rem !important; color: var(--ink-2); }
.consent input { margin-top: 4px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.contact-form { margin-top: 40px; max-width: 820px; }
.calc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.kv { margin: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.kv div { display: flex; justify-content: space-between; gap: 16px; background: #fff; padding: 12px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.kv__big dd { font: 700 1.6rem var(--font-head); }
.kv__big.is-up dd { color: var(--up); }
.kv__big.is-down dd { color: var(--down); }
.message { text-align: center; max-width: 560px; margin: 24px auto; }
.big404 { font: 700 4rem var(--font-head); color: var(--green); margin: 0; }

/* ---------- content (rich text) ---------- */
.prose { max-width: 860px; }
.page-body--art { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.page-art { width: 100%; height: auto; position: sticky; top: 140px; }
@media (max-width: 900px) { .page-body--art { grid-template-columns: 1fr; gap: 24px; } .page-art { position: static; max-width: 280px; order: -1; } }
.page-posts { margin-top: 56px; }
.prose.intro { margin-bottom: 32px; }
.prose img { border-radius: var(--radius-sm); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 4px solid var(--green); background: var(--green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--green-50); }
.prose iframe, .prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .grid-2, .prose .grid-3 { display: grid; gap: 20px; }
.prose .grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.prose .grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.prose .card { padding: 20px; }
.prose .card:hover { transform: none; }

/* ---------- search, sitemap ---------- */
.results { list-style: none; margin: 0; padding: 0; }
.results li { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.results__kind { font-size: .82rem; color: var(--muted); }
.results time { color: var(--muted); font-size: .85rem; white-space: nowrap; }
@media (max-width: 640px) { .results li { grid-template-columns: 1fr; gap: 2px; } }
.sitemap { columns: 3 280px; column-gap: 40px; }
.sitemap section { break-inside: avoid; margin-bottom: 28px; }
.sitemap h2 { font-size: 1.1rem; }
.sitemap h2 a { color: var(--green-800); text-decoration: none; }
.sitemap ul { list-style: none; padding-left: 0; margin: 0; }
.sitemap ul ul { padding-left: 16px; border-left: 2px solid var(--green-100); margin: 4px 0 8px; }
.sitemap li { padding: 3px 0; }
.sitemap span { color: var(--muted); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; color: #f1fff7; }
.is-home .site-footer { margin-top: 0; }
.site-footer__wave { display: block; width: 100%; height: 64px; margin-bottom: -1px; }
.site-footer__body { background: var(--brand-grad); padding: 28px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-co__name { font-weight: 600; color: #fff; }
.footer-co p { font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .btn--light { color: var(--green-800); }
.site-footer .btn--light:hover { text-decoration: none; color: var(--green-900); }
.footer-head { font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.footer-note { font-size: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 18px; padding-bottom: 22px; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- cookie ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px; background: #fff; color: var(--ink); padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: .9rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; } }

/* Home announcement pop-up (<dialog>) */
.popup { padding: 0; border: 0; border-radius: 14px; width: min(92vw, 760px); max-width: none; max-height: 92vh; overflow: visible; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.popup::backdrop { background: rgba(12, 28, 20, .62); }
.popup__close { position: absolute; top: -14px; right: -14px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-lg); }
.popup__close:hover { color: var(--green-700); }
.popup__slide { margin: 0; }
.popup__slide[hidden] { display: none; }
.popup__slide img { display: block; width: 100%; height: auto; max-height: calc(92vh - 60px); object-fit: contain; border-radius: 14px; }
.popup__nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 0 10px; font-size: .9rem; color: var(--ink-2); }
.popup__nav button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.popup__nav button:hover { border-color: var(--green-700); color: var(--green-700); }
@media (max-width: 560px) { .popup__close { top: 6px; right: 6px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .appstrip { overflow-x: auto; }
}
@media print {
  .site-header, .site-footer, .cookie, .pills, .pager, .pagehead__art { display: none !important; }
  .pagehead { background: none; color: var(--ink); }
  .pagehead h1 { color: var(--ink); }
}

/* SET Standard Package price snippet */
.set-embed__frame { overflow-x: auto; }
.set-embed__frame iframe { max-width: 100%; border: 0; }
.set-embed__note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.set-embed__note a { color: var(--green-700); }
.irstrip__embed { grid-column: span 2; min-width: 0; }
.set-embed--compact .set-embed__note { margin-top: 6px; }
@media (max-width: 560px) { .irstrip__embed { grid-column: auto; } }

/* link to the live price on set.or.th (no SET data service yet) */
.setprice { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.setprice__label { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.setprice__title { font: 700 1.35rem/1.3 var(--font-head); color: var(--green-800); }
.setprice__title span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 6px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: .95rem; vertical-align: middle; }
.setprice small { color: var(--muted); font-size: .9rem; }
.setprice:hover .setprice__title { color: var(--green-700); }
.setprice--compact .setprice__title { font-size: 1.15rem; }

/* link out to live SET announcements */
.setnews { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--green-50); color: var(--green-800); text-decoration: none; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.setnews:hover { border-color: var(--green); background: #fff; }
.setnews__text { display: grid; gap: 2px; }
.setnews__text b { font-weight: 600; }
.setnews__text small { color: var(--muted); font-size: .86rem; }
.setnews__arrow { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 700; }
.setnews--big { margin: 0 0 32px; padding: 22px 26px; }
.setnews--big .setnews__text b { font: 700 1.25rem/1.3 var(--font-head); }
.setnews--big .setnews__arrow { width: 46px; height: 46px; font-size: 1.2rem; }
.anns__archive { font-size: 1.15rem; margin: 0 0 14px; color: var(--ink); }

/* IR home: announcements next to the calendar */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split.section { padding-block: 56px 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* shareholder table: colour key for the donut; share count hidden on phones */
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; background: transparent; }
@media (max-width: 560px) { .hide-sm { display: none; } }
a.event__title { color: var(--ink); text-decoration: none; } a.event__title:hover { color: var(--green-700); }
.ir-top > .panel:has(> .setprice) { display: grid; align-content: center; }
html[lang="en"] .brand__name { display: none; } @media (min-width: 1481px) { html[lang="en"] .brand__name { display: inline; } }
.holders td { vertical-align: top; }
.fn { margin-left: 3px; color: var(--muted); font-size: .72em; }
.footnotes { list-style: none; margin: -12px 0 24px; padding: 0; font-size: .85rem; color: var(--muted); }

/* imported pages: app-store badges in a row, brand logos at a sensible size */
.prose p:has(> a[href*="apps.apple.com"]:only-child), .prose p:has(> a[href*="play.google.com"]:only-child), .prose p:has(> a[href*="appgallery.huawei.com"]:only-child) { display: inline-block; margin: 0 10px 12px 0; vertical-align: middle; }
.prose a[href*="apps.apple.com"] img, .prose a[href*="play.google.com"] img, .prose a[href*="appgallery.huawei.com"] img { height: 44px; width: auto; margin: 0; }
.prose img[src*="logo" i] { max-height: 64px; width: auto; }
.prose img.is-zoomable { cursor: zoom-in; }
.prose img { max-height: 560px; width: auto; }

/* recorded webcast page */
.webcast { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.webcast__video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.webcast__chapters { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.webcast__head { font-weight: 700; margin: 0 0 8px; color: var(--green-800); }
.webcast__chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.webcast__chapters button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.webcast__chapters button:hover { background: var(--green-50); }
.webcast__chapters button[aria-current] { background: var(--green-50); color: var(--green-800); font-weight: 600; }
.webcast__chapters time { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .webcast { grid-template-columns: minmax(0, 1fr); } }
