/* Blog: listing, post, video, editor. Brand: teal / coral / black / white; contrast-checked text colours. */
.bl { max-width: 1100px; margin: 0 auto; }
.bl-crumbs { font-size: 13px; margin: 6px 0 10px; color: var(--muted-dark); }
.bl-crumbs a { color: var(--teal-300); }
body.light .bl-crumbs { color: var(--muted-light); } body.light .bl-crumbs a { color: var(--teal-700); }
.bl-h1 { font-family: 'Cinzel', serif; font-size: clamp(26px, 4.5vw, 40px); line-height: 1.15; margin: 4px 0 10px; }
.bl-intro { font-size: 17px; line-height: 1.6; color: var(--muted-dark); margin: 0 0 14px; max-width: 760px; }
body.light .bl-intro { color: var(--muted-light); }
.bl-head { margin-bottom: 18px; }
.bl-search { display: flex; gap: 8px; max-width: 520px; margin: 10px 0; }
.bl-search input { flex: 1; min-width: 0; }
.bl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bl-cats a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--teal-800); color: inherit; text-decoration: none; font-size: 14px; }
.bl-cats a small { opacity: .75; }
.bl-cats a[aria-current] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
body.light .bl-cats a { border-color: var(--teal-200); background: #fff; }
body.light .bl-cats a[aria-current] { background: var(--teal-700); color: #fff; }
.bl-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.bl-featured { margin: 0 0 18px; }
.bl-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #14313A; border: 1px solid rgba(127,179,192,.14);
  transition: transform .2s ease, box-shadow .2s ease; }
body.light .bl-card { background: #fff; border-color: var(--soft-line, #DDE7EA); }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.25); }
.bl-card.is-big { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .bl-card.is-big { grid-template-columns: 1.2fr 1fr; } .bl-card.is-big .bl-card-title { font-size: 26px; } }
.bl-card-img { display: block; aspect-ratio: 16 / 9; background: var(--teal-800); overflow: hidden; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-card-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 42px; color: var(--teal-300); }
.bl-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.bl-cat { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-300); text-decoration: none; }
body.light .bl-cat { color: var(--teal-700); }
.bl-card-title { font-size: 19px; line-height: 1.3; margin: 0; }
.bl-card-title a { color: inherit; text-decoration: none; }
.bl-card-title a:hover { text-decoration: underline; text-decoration-color: var(--coral); }
.bl-card-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted-dark); }
body.light .bl-card-text { color: var(--muted-light); }
.bl-meta { font-size: 13px; color: var(--muted-dark); }
body.light .bl-meta { color: var(--muted-light); }
.bl-meta a { color: var(--teal-300); } body.light .bl-meta a { color: var(--teal-700); }
.bl-pages { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 24px 0; }
.bl-empty, .bl-found { color: var(--muted-dark); } body.light .bl-empty, body.light .bl-found { color: var(--muted-light); }
.bl-rss { text-align: center; font-size: 13px; } .bl-rss a { color: var(--teal-300); } body.light .bl-rss a { color: var(--teal-700); }
/* Post */
.bl-post { max-width: 1000px; }
.bl-post-head { max-width: 780px; }
.bl-cover { margin: 14px 0 22px; } .bl-cover img { width: 100%; height: auto; border-radius: 16px; display: block; }
.bl-hero-video { margin: 14px 0 22px; }
.bl-layout { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .bl-layout { grid-template-columns: 230px minmax(0, 1fr); } .bl-toc { position: sticky; top: 90px; align-self: start; } }
.bl-toc { font-size: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(127,179,192,.25); }
body.light .bl-toc { background: #fff; border-color: var(--soft-line, #DDE7EA); }
.bl-toc ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.bl-toc ol ol { margin-top: 4px; }
.bl-toc a { color: inherit; text-decoration: none; } .bl-toc a:hover { text-decoration: underline; }
.bl-body { font-size: 17.5px; line-height: 1.75; max-width: 720px; overflow-wrap: anywhere; }
.bl-body h2 { font-family: 'Cinzel', serif; font-size: 26px; margin: 34px 0 10px; scroll-margin-top: 90px; }
.bl-body h3 { font-size: 20px; margin: 26px 0 8px; scroll-margin-top: 90px; }
.bl-body p, .bl-body ul, .bl-body ol { margin: 0 0 16px; }
.bl-body a { color: var(--teal-300); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.light .bl-body a { color: var(--teal-700); }
.bl-body img { max-width: 100%; height: auto; border-radius: 12px; }
.bl-body blockquote { margin: 18px 0; padding: 10px 18px; border-left: 4px solid var(--coral); background: rgba(255,111,97,.08); border-radius: 0 12px 12px 0; }
.bl-body code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: rgba(127,179,192,.15); padding: 1px 5px; border-radius: 5px; }
.bl-body pre { overflow-x: auto; padding: 14px; border-radius: 12px; background: #0E1D22; color: #E6F0F2; }
.blog-table { overflow-x: auto; margin: 0 0 16px; }
.bl-body table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.bl-body th, .bl-body td { border: 1px solid rgba(127,179,192,.3); padding: 8px 10px; text-align: left; }
.bl-body th { background: var(--teal-700); color: #fff; }
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.bl-tags a { font-size: 13.5px; padding: 4px 10px; border-radius: 999px; background: rgba(127,179,192,.15); color: inherit; text-decoration: none; }
.bl-cta { margin: 28px 0; padding: 22px; border-radius: 16px; text-align: center; background: linear-gradient(135deg, rgba(47,95,106,.55), rgba(20,49,58,.9)); color: #fff; }
.bl-cta b { font-size: 20px; display: block; } .bl-cta p { margin: 6px 0 14px; }
body.light .bl-cta { background: linear-gradient(135deg, #E8F3F5, #DCEDF0); color: var(--black, #111); }
.bl-share { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 14px; }
.bl-share a, .bl-copy { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid var(--teal-300); color: inherit; background: none; cursor: pointer; font-size: 16px; text-decoration: none; }
.bl-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.bl-prevnext a { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(127,179,192,.25); color: inherit; text-decoration: none; }
.bl-prevnext a[rel="next"] { text-align: right; }
.bl-prevnext small { display: block; font-size: 12px; color: var(--muted-dark); }
.bl-related { margin-top: 20px; }
/* Video placeholder (the player loads on click) */
.blog-video { margin: 20px 0; }
.bv-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: #0E1D22; cursor: pointer; }
.bv-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bv-thumb-empty { position: absolute; inset: 0; background: linear-gradient(135deg, #2F5F6A, #14313A); }
.bv-icon { position: absolute; left: 50%; top: 50%; width: 74px; height: 52px; transform: translate(-50%, -50%); border-radius: 14px; background: #FF6F61;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.bv-icon::after { content: ""; position: absolute; left: 30px; top: 15px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #111; }
.bv-play:hover .bv-icon, .bv-play:focus-visible .bv-icon { transform: translate(-50%, -50%) scale(1.08); }
.blog-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; display: block; }
.blog-video figcaption { font-size: 13px; margin-top: 6px; }
.blog-video figcaption a { color: var(--teal-300); } body.light .blog-video figcaption a { color: var(--teal-700); }
@media (prefers-reduced-motion: reduce) { .bl-card, .bl-card:hover { transition: none; transform: none; } }
/* Staff editor */
.be { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) { .be { grid-template-columns: minmax(0, 1fr) 340px; } .be-side { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; } }
.be-main, .be-side { display: grid; gap: 14px; min-width: 0; }
.be-field { display: grid; gap: 4px; }
.be-field input[type=text], .be-field input[type=url], .be-field input[type=datetime-local], .be-field textarea, .be-field select {
  width: 100%; padding: 10px 12px; border-radius: 10px; font: 15px/1.5 'Inter', sans-serif; }
.be-field textarea#blogBody { font: 15px/1.6 ui-monospace, Consolas, monospace; min-height: 420px; }
.be-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 10px 10px 0 0; background: rgba(127,179,192,.12); }
.be-toolbar button { min-width: 36px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: none; color: inherit; cursor: pointer; font-size: 15px; }
.be-toolbar button:hover, .be-toolbar button:focus-visible { border-color: var(--teal-300); }
.be-help { font-size: 12.5px; color: var(--muted-dark); margin: 0; }
body.light .be-help { color: var(--muted-light); }
.be-count { font-size: 12px; justify-self: end; color: var(--muted-dark); } .be-count.is-over { color: #FF6F61; font-weight: 700; }
.be-box { padding: 14px; border-radius: 14px; border: 1px solid rgba(127,179,192,.25); display: grid; gap: 10px; }
body.light .be-box { background: #fff; border-color: var(--soft-line, #DDE7EA); }
.be-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.be-cover { width: 100%; border-radius: 10px; }
.be-preview-wrap { border-radius: 14px; border: 1px dashed var(--teal-300); padding: 14px 18px; }
.be-preview-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.be-preview { max-width: none; font-size: 16px; }
.be-serp { display: grid; gap: 2px; padding: 12px; border-radius: 10px; background: #fff; font-family: Arial, sans-serif; }
.be-serp-url { font-size: 12px; color: #202124; } .be-serp-title { font-size: 18px; color: #1a0dab; line-height: 1.3; }
.be-serp-desc { font-size: 13px; color: #4d5156; line-height: 1.45; }
.be-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.be-checks li { padding-left: 22px; position: relative; } .be-checks li::before { content: "\25CB"; position: absolute; left: 0; color: #e0a020; font-weight: 900; }
.be-checks li.is-ok::before { content: "\2713"; color: var(--ok-dark, #3FBF8A); }
.be-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.be-thumb { padding: 0; border: 1px solid rgba(127,179,192,.3); border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: none; }
.be-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-st { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(127,179,192,.2); margin-left: 6px; vertical-align: middle; }
.bl-st.is-live { background: #2a8a6a; color: #000; } .bl-st.is-sched { background: #e0a020; color: #000; }
.bl-badge { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(255,111,97,.2); }
.be-ask { padding: 10px; border: 1px solid var(--teal-300); border-top: 0; display: grid; gap: 6px; }
.be-ask-row { display: flex; gap: 8px; } .be-ask-row input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; }
/* Editor: format switch, AI panel */
.be-fmt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.be-fmt { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.be-fmt select { padding: 6px 10px; border-radius: 8px; }
.be-toolbar.is-off button:not([data-md="video"]) { opacity: .45; }
.be-ai { border-color: rgba(255,111,97,.55) !important; }
.be-ai textarea, .be-ai input[type=number] { width: 100%; padding: 8px 10px; border-radius: 8px; font: 14px 'Inter', sans-serif; }
.be-ai-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.be-ai-actions .auth-btn { padding: 7px 11px; font-size: 13px; }
.be-ai-out { display: grid; gap: 8px; border-top: 1px dashed var(--teal-300); padding-top: 10px; }
.be-ai-text { max-height: 280px; overflow: auto; font-size: 13px; }
.be-ai-text pre { white-space: pre-wrap; margin: 0; font: 13px/1.5 ui-monospace, Consolas, monospace; }
.be-ai-title { display: block; width: 100%; text-align: left; margin: 0 0 6px; padding: 7px 9px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(127,179,192,.35); background: none; color: inherit; font: 600 13.5px 'Inter', sans-serif; }
.be-ai-title:hover { border-color: var(--coral); }
#beAiInfo.is-warn { color: #FF6F61; font-weight: 700; }
.be-settings textarea, .be-settings input { width: 100%; }

/* Listing layouts: grid (default), list, magazine, timeline; category tabs. Columns on desktop, stacked on phones. */
.bl-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid rgba(127,179,192,.25); margin-top: 12px; scrollbar-width: thin; }
.bl-tabs a { flex: none; padding: 9px 14px; color: inherit; text-decoration: none; font-weight: 600; font-size: 14.5px;
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.bl-tabs a small { opacity: .7; font-weight: 500; }
.bl-tabs a:hover { border-bottom-color: var(--teal-300); }
.bl-tabs a[aria-current] { border-bottom-color: #FF6F61; color: var(--teal-300); }
body.light .bl-tabs a[aria-current] { color: var(--teal-700); }
.bl-views { display: flex; gap: 6px; justify-content: flex-end; margin: 12px 0 4px; }
.bl-views a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; color: inherit; text-decoration: none;
  font-size: 13px; border: 1px solid rgba(127,179,192,.3); }
.bl-views a[aria-current] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
@media (max-width: 560px) { .bl-views a span { display: none; } .bl-views { justify-content: flex-start; } }
.bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bl-grid { grid-template-columns: 1fr; } }
/* list and timeline rows: picture left, text right; stacked on phones */
.bl-card.is-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.bl-card.is-row .bl-card-img { aspect-ratio: auto; height: 100%; min-height: 140px; }
.bl-card.is-small { grid-template-columns: 120px minmax(0, 1fr); }
.bl-card.is-small .bl-card-img { min-height: 90px; } .bl-card.is-small .bl-card-title { font-size: 16px; }
.bl-card.is-small .bl-card-text { display: none; }
@media (max-width: 640px) { .bl-card.is-row, .bl-card.is-small { grid-template-columns: 1fr; } .bl-card.is-row .bl-card-img { aspect-ratio: 16 / 9; min-height: 0; } }
.bl-list { display: grid; gap: 14px; }
/* magazine: two lead stories, then a compact two-column list */
.bl-mag-lead { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.bl-mag-rest { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .bl-mag-lead, .bl-mag-rest { grid-template-columns: 1fr; } }
/* timeline: grouped by month along a line */
.bl-timeline, .bl-timeline ol { list-style: none; margin: 0; padding: 0; }
.bl-tl-month { margin-bottom: 18px; }
.bl-tl-label { font-family: 'Cinzel', serif; font-size: 18px; margin: 0 0 10px; color: var(--teal-300); }
body.light .bl-tl-label { color: var(--teal-700); }
.bl-tl-month > ol { border-left: 3px solid rgba(127,179,192,.35); padding-left: 22px; display: grid; gap: 14px; }
.bl-tl-item { position: relative; }
.bl-tl-dot { position: absolute; left: -31px; top: 18px; width: 15px; height: 15px; border-radius: 50%; background: #FF6F61; border: 3px solid #0E1D22; }
body.light .bl-tl-dot { border-color: #fff; }
/* Blog controls win over the general link style (it made the active layout button teal on teal) */
.bl .bl-views a, .bl .bl-views a:visited, .bl .bl-tabs a, .bl .bl-tabs a:visited { color: inherit; text-decoration: none; font-weight: 600; }
.bl .bl-views a[aria-current], .bl .bl-views a[aria-current]:visited { color: #fff; }
.bl .bl-tabs a[aria-current] { color: var(--teal-300); }
body.light .bl .bl-tabs a[aria-current] { color: var(--teal-700); }
.bl .bl-crumbs a { text-decoration: none; }
.bl-search input { padding: 10px 14px; border-radius: 12px; font: 15px 'Inter', sans-serif; border: 1px solid rgba(127,179,192,.35);
  background: #0E1D22; color: #fff; }
body.light .bl-search input { background: #fff; color: var(--black, #111); border-color: var(--soft-line, #DDE7EA); }
.bl-search input:focus { outline: none; border-color: var(--teal-300); box-shadow: 0 0 0 3px rgba(127,179,192,.25); }
.bl-search .auth-btn { padding: 0 16px; }
