/* =====================================================================
   Sub Minimal – demo design layer
   Loaded after style.css. Colours come from the theme options
   (--g primary, --gold accent, --bg/--s/--ink/--mu/--ln palette).
   ===================================================================== */

:where(:root) {
   /* fallbacks only – the real values are generated from the theme options (theme-variables.js) */
   --g: #14A44D;
   --gd: #0c8239;
   --gt: #0b7a36;
   --hd: #0a4d25;
   --gold: #f2b01e;
   --bg: #f4f8f5;
   --s: #fff;
   --ink: #14241d;
   --mu: #52665c;
   --ln: #d7e3dc;
   --page-width: 1100px;
   --entry-width: 784px;
}

:root {
   --r: 14px;
   --r-s: 8px;
   --radius-card: var(--r);
   --line: var(--ln);
   --tint: var(--bg);
   --color-deep: var(--gt);
   --hero-from: var(--g);
   --hero-to: var(--gd);
   --w: calc(var(--entry-width) + 36px);
}

/* one container for everything: same edges as the header */
.wrapper {
   box-sizing: border-box;
   max-width: var(--page-width);
   padding-left: 18px;
   padding-right: 18px;
}

html { scroll-padding-top: 5rem; }

body {
   background: var(--bg);
   color: var(--ink);
   font-family: var(--body-font), "Noto Sans Bengali", "Nirmala UI", "Siyam Rupali", Kalpurush, system-ui, sans-serif;
   line-height: 1.85;
}

h1, h2, h3, h4, h5, h6 {
   color: var(--ink);
   font-family: var(--heading-font), "Noto Sans Bengali", "Nirmala UI", "Siyam Rupali", Kalpurush, system-ui, sans-serif;
}

a { color: var(--gt); }
a:hover { color: var(--gd); }

:focus-visible { outline: 3px solid var(--gold) !important; outline-offset: 1px; }

::selection { background: var(--g); color: #fff; }

/* ---------------------------------------------------------------------
   Buttons (demo: .btn.pr = filled, .btn.gh = outlined)
   --------------------------------------------------------------------- */
.btn, [type=button], [type=submit], button {
   background: var(--g);
   border: 0;
   border-radius: var(--r-s);
   color: #fff;
   font-family: inherit;
   font-size: 1rem;
   font-variation-settings: normal;
   font-weight: 600;
   padding: .65rem 1.05rem;
   text-decoration: none;
   transition: background .2s ease, color .2s ease, border-color .2s ease;
   width: auto;
}
.btn:hover, [type=button]:hover, [type=submit]:hover, button:hover,
.btn:focus, [type=button]:focus, [type=submit]:focus, button:focus {
   background: var(--gd);
   border-color: var(--gd);
   color: #fff;
}
.btn.gh, .btn--ghost {
   background: transparent;
   border: 1.5px solid var(--g);
   color: var(--gt);
}
.btn.gh:hover, .btn--ghost:hover { background: var(--g); color: #fff; }

/* ---------------------------------------------------------------------
   Header  (white bar, 3px green line, sticky)
   --------------------------------------------------------------------- */
.top, .top.sticky {
   background: var(--s);
   border-bottom: 3px solid var(--g);
   box-shadow: none;
   color: var(--ink);
   position: sticky;
   top: 0;
   z-index: 50;
}
.top__inner {
   align-items: center;
   box-sizing: border-box;
   display: flex;
   gap: 12px;
   height: auto;
   justify-content: space-between;
   margin: 0 auto;
   max-width: var(--page-width);
   min-height: calc(var(--navbar-height, 3.75rem) - 3px);
   padding: 10px 18px;
}
.logo {
   align-items: center;
   color: var(--ink);
   display: flex;
   font-size: 1.1rem;
   font-weight: 700;
   gap: 10px;
   margin: 0;
   min-width: 0;
   order: 0;
   text-decoration: none;
   white-space: nowrap;
}
.logo > img { display: block; height: 36px; padding: 0; width: auto; max-width: 160px; }
.logo__name { color: var(--ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }

/* menu */
.mainnav { align-items: center; display: flex; gap: 4px; margin-left: auto; order: 1; }
.mainnav__list { align-items: center; display: flex; gap: 4px; margin: 0; padding: 0; }
.mainnav li { list-style: none; margin: 0; padding: 0; position: relative; }
.mainnav a,
.mainnav .is-separator {
   border-radius: var(--r-s);
   color: var(--ink);
   display: block;
   font-family: var(--menu-font), "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif;
   font-size: .97rem;
   font-weight: 500;
   padding: 8px 12px;
   text-decoration: none;
}
.mainnav li > a:hover,
.mainnav li:hover > a,
.mainnav li:focus-within > a { background: var(--bg); color: var(--gt); }
.mainnav li.active > a,
.mainnav li.active-parent > a,
.mainnav li.active-item > a { background: var(--bg); color: var(--gt); font-weight: 700; }
.mainnav a.lang {
   background: transparent;
   border: 1.5px solid var(--g);
   color: var(--gt);
   margin-left: 8px;
   padding: 6px 12px;
}
.mainnav a.lang:hover { background: var(--g); color: #fff; }

/* sub menus (desktop dropdown) */
.sub-toggle { display: none; }
.mainnav__sub {
   background: var(--s);
   border: 1px solid var(--ln);
   border-radius: 12px;
   box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
   display: none;
   left: 0;
   margin: 0;
   min-width: 13rem;
   padding: 6px;
   position: absolute;
   top: 100%;
   z-index: 60;
}
.mainnav__sub .mainnav__sub { left: 100%; top: 0; }
.mainnav li:hover > .mainnav__sub,
.mainnav li:focus-within > .mainnav__sub,
.mainnav li.is-open > .mainnav__sub { display: block; }
.mainnav li.has-submenu > a::after {
   border-bottom: 2px solid currentColor;
   border-right: 2px solid currentColor;
   content: "";
   display: inline-block;
   height: 5px;
   margin: 0 0 3px 8px;
   transform: rotate(45deg);
   width: 5px;
}
.mainnav__sub li > a { padding: 8px 12px; white-space: nowrap; }

/* header tools */
.top__tools { align-items: center; display: flex; gap: 8px; flex-shrink: 0; order: 2; }
.search { order: 0; }
.search__btn {
   align-items: center;
   background: var(--s);
   border: 1.5px solid var(--ln);
   border-radius: var(--r-s);
   color: var(--ink);
   height: 38px;
   justify-content: center;
   margin: 0;
   padding: 0;
   width: 40px;
}
.search__btn:hover, .search__btn:focus { background: var(--bg); border-color: var(--g); color: var(--gt); }
.search__btn svg { stroke: currentColor; }
.search__overlay { background: var(--s); border-bottom: 3px solid var(--g); }
.search__input { border-bottom: 2px solid var(--g); color: var(--ink); }

/* hamburger (mobile) */
.menu-btn {
   background: var(--s);
   border: 1.5px solid var(--ln);
   border-radius: var(--r-s);
   color: var(--ink);
   cursor: pointer;
   display: none;
   line-height: 0;
   padding: 9px 10px;
   width: auto;
}
.menu-btn:hover { background: var(--bg); color: var(--ink); }
.menu-btn span {
   background: currentColor;
   border-radius: 2px;
   display: block;
   height: 2px;
   transition: transform .2s, opacity .2s;
   width: 20px;
}
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
   .js .menu-btn { display: block; }
   .top__inner { flex-wrap: wrap; }
   .logo { margin-right: auto; }
   .top__tools { order: 1; }

   .js .mainnav {
      background: var(--s);
      border-bottom: 3px solid var(--g);
      box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
      display: none;
      flex-direction: column;
      gap: 0;
      left: 0;
      margin: 0;
      max-height: calc(100vh - 4.5rem);
      order: 3;
      overflow-y: auto;
      padding: 6px 18px 14px;
      position: absolute;
      right: 0;
      top: 100%;
      width: 100%;
   }
   .js .mainnav.open { display: flex; }
   .mainnav { align-items: stretch; flex-direction: column; gap: 0; width: 100%; }
   .mainnav__list { align-items: stretch; flex-direction: column; gap: 0; width: 100%; }
   .mainnav li { width: 100%; }
   .mainnav a, .mainnav .is-separator {
      border-bottom: 1px solid var(--ln);
      border-radius: 0;
      font-size: 1.02rem;
      padding: 13px 6px;
   }
   .mainnav a.lang {
      border: 1.5px solid var(--g);
      border-radius: var(--r-s);
      margin: 12px 0 0;
      text-align: center;
   }
   .mainnav li.has-submenu > a::after { display: none; }
   .mainnav li.has-submenu { position: relative; }
   .mainnav li.has-submenu > a { padding-right: 46px; }
   .sub-toggle {
      background: transparent;
      border: 0;
      border-radius: 0;
      color: var(--ink);
      display: block;
      height: 46px;
      padding: 0;
      position: absolute;
      right: 0;
      top: 0;
      width: 44px;
   }
   .sub-toggle:hover { background: transparent; color: var(--gt); }
   .sub-toggle::after {
      border-bottom: 2px solid currentColor;
      border-right: 2px solid currentColor;
      content: "";
      display: block;
      height: 7px;
      margin: -4px auto 0;
      transform: rotate(45deg);
      transition: transform .2s;
      width: 7px;
   }
   .is-open > .sub-toggle::after { margin-top: 2px; transform: rotate(-135deg); }
   .mainnav__sub {
      border: 0;
      border-radius: 0;
      box-shadow: none;
      display: none;
      left: auto;
      min-width: 0;
      padding: 0 0 0 14px;
      position: static;
   }
   .mainnav li:hover > .mainnav__sub, .mainnav li:focus-within > .mainnav__sub { display: none; }
   .mainnav li.is-open > .mainnav__sub { display: block; }
   .mainnav__sub .mainnav__sub { left: auto; top: auto; }
   .mainnav__sub li > a { color: var(--mu); white-space: normal; }
}

/* ---------------------------------------------------------------------
   Hero  (green gradient, centred, white text)
   --------------------------------------------------------------------- */
.hero {
   background: linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 100%);
   border: 0;
   color: #fff;
   padding: 34px 0 58px;
   text-align: center;
}
.hero--noimage::after { display: none; }
.hero h1,
.hero__content h1 {
   color: #fff;
   font-size: clamp(1.65rem, 5vw, 2.4rem);
   font-weight: 700;
   line-height: 1.3;
   margin: 0 0 12px;
}
.hero h1::after { display: none; }
.hero__content { padding: 0; }
.hero__content .wrapper { margin-left: auto; margin-right: auto; max-width: var(--w); }
.hero__content.hero__content--centered .wrapper,
.hero__content .wrapper { text-align: center; }
.hero p,
.hero__content p,
.hero .page__desc,
.hero .page__desc p,
.hero__intro {
   color: #fff;
   font-size: 1.02rem;
   line-height: 1.8;
   margin: 0 auto 12px;
   max-width: 62ch;
}
.hero a { color: #fff; }
.hero a:hover { color: var(--gold); }
.hero sup { color: #e6f7ec; font-size: .5em; font-weight: 500; }
.hero__intro > *:first-child { margin-top: 0; }
.hero__intro > *:last-child { margin-bottom: 0; }

.hero .crumb {
   color: #f0fbf4;
   font-size: .9rem;
   margin-bottom: 10px;
}
.hero .crumb a { color: #fff; text-decoration: none; }
.hero .crumb a:hover { text-decoration: underline; }

.hero .content__meta,
.hero .feed__meta {
   align-items: center;
   color: #f0fbf4;
   display: flex;
   flex-wrap: wrap;
   font-size: .9rem;
   gap: 4px 14px;
   justify-content: center;
   margin: 14px 0 0;
}
.hero .feed__author, .hero .feed__date { color: #f0fbf4; }
.hero .feed__author-thumb { border-radius: 50%; height: 28px; width: 28px; }

.hero__image { margin: 22px auto 0; max-width: var(--w); padding: 0 18px; }
.hero__image img, .hero__image-wrapper img { border-radius: var(--r); }
.hero__image > figcaption { color: #f0fbf4; }
.hero__cta { background: var(--gold); color: #2b1f00; margin-top: 14px; }
.hero__cta:hover { background: #fff; color: var(--gd); }

.page--author__wrapper { align-items: center; justify-content: center; }
.page--author__avatar { border: 3px solid rgba(255, 255, 255, .6); margin-top: 0; }

/* Post hero: wrap + extra area (items with class .to-hero land here) */
.hero--post .hero__wrap { box-sizing: border-box; margin: 0 auto; max-width: var(--w); padding: 0 18px; }
.hero--post .hero__intro { margin-top: 0 !important; }
.hero__extra { margin-top: 4px; }
.hero__extra:empty { display: none; }
.hero__extra > * { margin-left: auto; margin-right: auto; max-width: 62ch; }
.hero__extra p, .hero__extra li { color: #fff; }
.hero__extra ul, .hero__extra ol {
   display: inline-block;
   margin-bottom: 12px;
   padding-left: 1.3rem;
   text-align: left;
}
.hero__extra li::marker { color: var(--gold); }
.hero__extra > .to-hero { font-size: 1.02rem; margin-top: 0; padding: 0; }

/* the two editor classes, before they are moved (and when JS is off) */
.js .content__entry .to-hero,
.js .content__entry .to-card { display: none; }

/* ---------------------------------------------------------------------
   Card that overlaps the hero  (demo: .tool)  – summary / form / .to-card
   --------------------------------------------------------------------- */
.hero-card-wrap { box-sizing: border-box; margin: 0 auto; max-width: var(--w); padding: 0 18px; position: relative; z-index: 2; }
.hero-card,
.tool {
   background: var(--s);
   border: 1px solid var(--ln);
   border-radius: var(--r);
   box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
   color: var(--ink);
   margin: -34px 0 26px;
   min-width: 0;
   padding: 20px;
}
.hero-card__title,
.tool > h2:first-child,
.hero-card__extra > h2:first-child {
   align-items: center;
   background: none;
   border: 0;
   color: var(--ink);
   display: flex;
   font-size: 1.35rem;
   font-weight: 700;
   gap: .55rem;
   line-height: 1.4;
   margin: 0 0 .75rem;
   padding: 0;
}
.hero-card__title::before {
   background: linear-gradient(var(--gold), var(--g));
   border-radius: 3px;
   content: "";
   flex-shrink: 0;
   height: 1.2rem;
   width: .3rem;
}
.hero-card__extra:empty { display: none; }
.hero-card__summary + .hero-card__extra:not(:empty),
.hero-form + .hero-card__extra:not(:empty) { margin-top: 1rem; }

.hero-card__extra > *:first-child { margin-top: 0; }
.hero-card__extra > *:last-child { margin-bottom: 0; }
.hero-card__extra > .to-card { max-width: none; }
.hero-card__extra h2,
.hero-card__extra h3 {
   border: 0;
   color: var(--ink);
   font-size: 1.15rem;
   margin: 1.1rem 0 .5rem;
   padding: 0;
}
.hero-card__extra > h2:first-child, .hero-card__extra > h3:first-child { margin-top: 0; }
.hero-card__extra p { color: var(--ink); margin: 0 0 .7rem; }
.hero-card__extra p.to-card:first-of-type { margin-top: 0; }
.hero-card__extra blockquote {
   background: #fff7e0;
   border: 0;
   border-left: 5px solid var(--gold);
   border-radius: 6px;
   color: #3b2d00;
   margin: .9rem 0;
   padding: 12px 16px;
}
.hero-card__extra .sc, .hero-card__extra table { margin: .8rem 0; }

/* lists inside the card: bullets, or "Label | Value" rows */
.hero-card__extra ul,
.hero-card__extra ol,
.hero-card__list { margin: 0 0 .5rem; padding: 0; }
.hero-card__extra li,
.hero-card__list li {
   border-top: 1px solid var(--ln);
   font-size: .98rem;
   line-height: 1.6;
   list-style: none;
   margin: 0;
   padding: .6rem 0 .6rem 1.15rem;
   position: relative;
}
.hero-card__extra li:first-child, .hero-card__list li:first-child { border-top: 0; padding-top: 0; }
.hero-card__extra li:last-child, .hero-card__list li:last-child { padding-bottom: 0; }
.hero-card__extra li::before,
.hero-card__list li:not(.is-row)::before {
   background: var(--g);
   border-radius: 50%;
   content: "";
   height: .45rem;
   left: 0;
   position: absolute;
   top: 1.15rem;
   width: .45rem;
}
.hero-card__extra li:first-child::before, .hero-card__list li:first-child::before { top: .55rem; }
.hero-card__extra ol { counter-reset: hc; }
.hero-card__extra ol li { counter-increment: hc; padding-left: 2rem; }
.hero-card__extra ol li::before {
   background: var(--g);
   border-radius: 50%;
   color: #fff;
   content: counter(hc);
   font-size: .75rem;
   font-weight: 700;
   height: 1.35rem;
   left: 0;
   line-height: 1.35rem;
   text-align: center;
   top: .62rem;
   width: 1.35rem;
}
.hero-card__extra ol li:first-child::before { top: 0; }
.hero-card__extra li.is-row,
.hero-card__list li.is-row {
   align-items: baseline;
   display: flex;
   gap: 1rem;
   justify-content: space-between;
   padding-left: 0;
}
.hero-card__extra li.is-row::before, .hero-card__list li.is-row::before { display: none; }
.hero-card__label { color: var(--mu); }
.hero-card__value { color: var(--ink); font-weight: 700; text-align: right; }

/* summary box from post settings */
.js-hero-summary { white-space: pre-line; }
.hero-card__list { white-space: normal; }

/* form card (settings form builder) */
.hero-form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hf-field { border: 0; display: grid; gap: 3px; margin: 0; min-width: 0; padding: 0; }
.hf-field--radio, .hf-submit, .hf-result { grid-column: 1 / -1; }
.hf-label { color: var(--ink); font-size: .92rem; font-weight: 600; }
.hero-form input[type=text], .hero-form input[type=tel], .hero-form select,
input[type=search], input[type=text], input[type=email], input[type=number], input[type=tel], select, textarea {
   background: var(--bg);
   border: 1.5px solid var(--ln);
   border-radius: var(--r-s);
   color: var(--ink);
   font: inherit;
   padding: 10px 12px;
   width: 100%;
}
.hero-form input:focus, .hero-form select:focus { border-color: var(--g); outline: 3px solid var(--gold); outline-offset: 1px; }
.hf-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-radio span {
   background: var(--bg);
   border: 1.5px solid var(--ln);
   border-radius: 999px;
   color: var(--ink);
   padding: 7px 16px;
}
.hf-radio input:checked + span { background: var(--g); border-color: var(--g); color: #fff; }
.hf-submit { justify-self: start; }
.hf-result {
   background: var(--bg);
   border: 1px dashed var(--g);
   border-radius: 10px;
   padding: 14px;
}
.hf-result__text { display: block; font-size: 1.2rem; font-weight: 700; word-break: break-all; }
.hf-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hf-copy { background: var(--g); }
.hf-open {
   background: transparent;
   border: 1.5px solid var(--g);
   border-radius: var(--r-s);
   color: var(--gt);
   font-weight: 600;
   padding: 9px 16px;
   text-decoration: none;
}
@media (max-width: 600px) {
   .hero-form { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Article body  (demo typography: gold-topped H2, green H3, boxes)
   --------------------------------------------------------------------- */
.entry-wrapper {
   box-sizing: border-box;
   max-width: var(--w);
   padding-left: 18px;
   padding-right: 18px;
}
.content__entry { color: var(--ink); }
.content__entry > *:first-child { margin-top: 24px; }
.content__entry p { margin: 0 0 14px; }
.content__entry h2 {
   border-top: 3px solid var(--gold);
   font-size: 1.5rem;
   line-height: 1.4;
   margin: 36px 0 10px;
   padding-top: 6px;
}
.content__entry h3 { color: var(--gt); font-size: 1.15rem; margin: 22px 0 4px; }
.content__entry h4 { margin: 18px 0 4px; }
.content__entry ul, .content__entry ol { margin: 0 0 14px; padding-left: 22px; }
.content__entry ul li { list-style: disc; }
.content__entry ol li { list-style: decimal; }
.content__entry li { margin-bottom: 6px; padding: 0; }
.content__entry img, .content__entry figure img { border-radius: 10px; height: auto; max-width: 100%; }
.content__entry a:not(.btn):not(button) { color: var(--gt); text-decoration: underline; text-underline-offset: .18em; }
.content__entry a:not(.btn):not(button):hover { color: var(--gd); }
.content__entry hr { border: 0; border-top: 1px solid var(--ln); margin: 28px 0; }
.content__entry blockquote {
   background: var(--s);
   border: 1px solid var(--ln);
   border-left: 5px solid var(--g);
   border-radius: 8px;
   margin: 18px 0;
   padding: 12px 16px;
}
.content__entry blockquote p:last-child { margin-bottom: 0; }
.content__entry code { background: var(--s); border: 1px solid var(--ln); border-radius: 5px; font-size: .92em; padding: .05em .4em; }
.content__entry pre { background: var(--s); border: 1px solid var(--ln); border-radius: 10px; overflow-x: auto; padding: 14px 16px; }
.content__entry pre code { background: none; border: 0; padding: 0; }

/* tables */
.content__entry table, table {
   background: var(--s);
   border-collapse: collapse;
   display: table;
   margin: 14px 0;
   width: 100%;
}
@media (max-width: 700px) {
   .content__entry table, table { display: block; max-width: 100%; overflow-x: auto; }
}
.content__entry table th, .content__entry table td, th, td {
   border: 1px solid var(--ln);
   padding: 8px 12px;
   text-align: left;
}
.content__entry table th, th { background: var(--gd); color: #fff; }
.content__entry table.table-striped tbody tr:nth-child(even) td { background: var(--bg); }
.content__entry table.table-title caption { color: var(--mu); font-size: .9rem; }

/* message boxes (editor Format ▸ Info / Highlight / Success / Warning / CTA) */
.msg {
   background: var(--s);
   border: 0;
   border-left: 5px solid var(--ln);
   border-radius: 6px;
   font-size: 1rem;
   margin: 16px 0;
   padding: 12px 16px;
}
.msg--highlight { background: #fff7e0; border-left-color: var(--gold); color: #3b2d00; }
.msg--info { background: #eaf3fc; border-left-color: #2f80c9; color: #0f2c47; }
.msg--success { background: #e8f7ee; border-left-color: var(--g); color: #0b3a1d; }
.msg--warning { background: #fdecea; border-left-color: #c0392b; color: #4a120c; }
.msg--cta { background: var(--s); border: 1px solid var(--ln); border-left: 5px solid var(--g); color: var(--ink); }
.msg a { color: inherit; font-weight: 700; }

/* table of contents (demo: .toc – two columns) */
.entry-wrapper > .toc, .toc {
   background: var(--s);
   border: 1px solid var(--ln);
   border-radius: 12px;
   margin: 1.6rem 0 0;
   padding: 12px 20px;
}
.toc__title { color: var(--ink); font-weight: 700; margin: 0 0 4px; }
.toc__list { columns: 2; column-gap: 26px; display: block; margin: 6px 0 0; padding: 0 0 0 22px; }
.toc__list li { break-inside: avoid; display: list-item; font-size: 1rem; gap: 0; list-style: decimal; margin-bottom: 6px; }
.toc__list li::before { display: none; }
.toc__list a { color: var(--gt); }
@media (max-width: 600px) { .toc__list { columns: 1; } }

/* footer area of a post */
.content__footer { margin-top: 36px; }
.content__updated { color: var(--mu); font-size: .9rem; font-style: normal; }
.content__tag > li > a {
   background: var(--s);
   border: 1.5px solid var(--ln);
   border-radius: 999px;
   color: var(--gt);
   font-size: .85rem;
   padding: 3px 12px;
}
.content__tag > li > a:hover { background: var(--g); border-color: var(--g); color: #fff; }
.content__share-button { background: transparent; border: 1.5px solid var(--g); color: var(--gt); }
.content__share-button:hover { background: var(--g); color: #fff; }
.content__share-popup { background: var(--s); border: 1px solid var(--ln); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }
.content__share-popup > a { color: var(--ink); }
.content__share-popup > a:hover { background: var(--bg); }
.content__bio {
   background: var(--s);
   border: 1px solid var(--ln);
   border-radius: var(--r);
   padding: 16px 18px;
}
.content__bio::before { display: none; }
.bio__avatar { height: 3.6rem; margin-right: 1.1rem; width: 3.6rem; }
.content__nav-inner { border: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; padding: 0; }
.content__nav-prev + .content__nav-next { margin-top: 0; }
.content__nav-prev, .content__nav-next { margin: 0; }
.content__nav-next { text-align: right; }
.content__nav-prev:only-child { grid-column: 1; }
.content__nav-next:only-child { grid-column: 2; }
.content__nav-link {
   background: var(--s);
   border: 1px solid var(--ln);
   border-radius: 12px;
   font-family: inherit;
   font-style: normal;
   font-weight: 600;
   gap: 1rem;
   padding: 12px 14px;
}
.content__nav-link:hover { border-color: var(--g); color: var(--gt); }
.content__nav-image { flex-basis: 4.5rem; height: 4.5rem; }
.content__nav-link span { color: var(--mu); font-weight: 400; }
@media (max-width: 600px) { .content__nav-inner { grid-template-columns: 1fr; } .content__nav-next { text-align: left; } }
.content__related { background: transparent; margin-top: 36px; padding: 0 0 8px; }
.related__title { border-top: 3px solid var(--gold); font-size: 1.5rem; margin: 0 0 14px; padding-top: 6px; }

/* ---------------------------------------------------------------------
   Home / archive / tag / author / search – layout
   --------------------------------------------------------------------- */
.layout { margin-top: -34px; padding-bottom: 8px; position: relative; z-index: 2; }
.page--tags .wrapper > .feed, .posts .wrapper.feed { margin-top: -34px; position: relative; z-index: 2; }
.layout__main { min-width: 0; }
.layout--has-sidebar { gap: 24px; grid-template-columns: minmax(0, 1fr) 19rem; }
@media (max-width: 1024px) { .layout--has-sidebar { grid-template-columns: minmax(0, 1fr); } }

.section-title {
   border-top: 3px solid var(--gold);
   font-size: 1.5rem;
   line-height: 1.4;
   margin: 0 0 16px;
   padding-top: 6px;
}
.layout--titled { margin-top: 0; padding-top: 36px; }
.layout--titled .section-title { margin-top: 0; }

.feed-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .feed-grid { grid-template-columns: minmax(0, 1fr); } }
.layout:not(.layout--has-sidebar) .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .layout:not(.layout--has-sidebar) .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .layout:not(.layout--has-sidebar) .feed-grid { grid-template-columns: minmax(0, 1fr); } }

/* post cards */
.card {
   background: var(--s);
   border: 1px solid var(--ln);
   border-radius: var(--r);
   box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
   display: flex;
   flex-direction: column;
   overflow: hidden;
   position: relative;
   transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover, .card:focus-within {
   border-color: var(--g);
   box-shadow: 0 14px 30px -14px rgba(12, 130, 57, .45);
   transform: translateY(-3px);
}
.card__image {
   aspect-ratio: 16 / 9;
   background: var(--bg);
   border-bottom: 3px solid var(--g);
   display: block;
   overflow: hidden;
}
.card__image--empty {
   background:
      radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .22) 0 11%, transparent 12%),
      radial-gradient(circle at 12% 90%, rgba(255, 255, 255, .14) 0 16%, transparent 17%),
      linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 100%);
}
.card__image img { height: 100%; object-fit: cover; transition: transform .4s ease; width: 100%; }
.card:hover .card__image img { transform: scale(1.04); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.card__meta { align-items: center; color: var(--mu); display: flex; flex-wrap: wrap; font-size: .82rem; gap: 4px 12px; }
.card__tag {
   background: #e8f7ee;
   border-radius: 999px;
   color: var(--gt);
   font-weight: 700;
   line-height: 1.6;
   padding: 0 12px;
}
.card__tag:hover { background: var(--g); color: #fff; }
.card__author, .card__date { color: var(--mu); }
.card__author:hover { color: var(--gt); }
.card__title { font-size: 1.15rem; line-height: 1.5; margin: 0; }
.card__title a { color: var(--ink); }
.card__title a:hover, .card__title a:focus-visible { color: var(--gt); }
.card__title a::after { content: ""; inset: 0; position: absolute; z-index: 1; } /* whole card clickable */
.card__tag, .card__author { position: relative; z-index: 2; }
.card__excerpt {
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 3;
   color: var(--mu);
   display: -webkit-box;
   font-size: .95rem;
   line-height: 1.75;
   overflow: hidden;
}
.card__more {
   align-self: flex-start;
   background: transparent;
   border: 1.5px solid var(--g);
   color: var(--gt);
   font-size: .9rem;
   margin-top: auto;
   padding: 6px 14px;
}
.card__more::after { content: " →"; }
.card:hover .card__more { background: var(--g); color: #fff; }
.card__body > .card__excerpt + .card__more { margin-top: 6px; }

/* sidebar widgets */
.sidebar { min-width: 0; }
@media (min-width: 1025px) { .sidebar { align-self: start; position: sticky; top: 5rem; } }
.widget {
   background: var(--s);
   border: 1px solid var(--ln);
   border-radius: var(--r);
   box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
   margin-bottom: 20px;
   padding: 18px 20px 20px;
}
.widget__title {
   border: 0;
   border-top: 3px solid var(--gold);
   color: var(--ink);
   font-size: 1.1rem;
   margin: 0 0 12px;
   padding: 6px 0 0;
}
.widget__title::after { display: none; }
.author-box { text-align: center; }
.author-box__avatar { border: 3px solid var(--g); border-radius: 50%; height: 88px; margin: 0 auto 10px; object-fit: cover; width: 88px; }
.author-box__name { font-size: 1.15rem; margin: 0 0 6px; }
.author-box__bio { color: var(--mu); font-size: .95rem; line-height: 1.7; }
.author-box__bio > :first-child { margin-top: 0; }
.author-box__bio > :last-child { margin-bottom: 0; }
.author-box__link { margin-top: 12px; }

.recent { margin: 0; padding: 0; }
.recent__item { list-style: none; margin: 0; padding: 0; }
.recent__title { color: var(--ink); font-weight: 600; line-height: 1.5; }
.recent__link:hover .recent__title { color: var(--gt); }
.recent__date { color: var(--mu); }
.recent__ph { background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); display: block; height: 100%; width: 100%; }

.widget--tags a, .widget .tag-list a, .widget .cats a { color: var(--ink); }
.widget--tags li, .widget .cats li { border-top: 1px solid var(--ln); list-style: none; }
.widget--tags li:first-child, .widget .cats li:first-child { border-top: 0; }
.widget--tags a:hover, .widget .cats a:hover { color: var(--gt); }

/* pagination */
.pagination { gap: 10px; margin-top: 28px; }
.pagination .btn {
   background: var(--s);
   border: 1.5px solid var(--g);
   color: var(--gt);
}
.pagination .btn:hover, .pagination .btn:focus { background: var(--g); color: #fff; }
.pagination .btn svg { stroke: currentColor; }

/* tag list page */
.feed--grid { gap: 20px; }
.feed--grid .feed__item {
   background: var(--s);
   border: 1px solid var(--ln);
   border-radius: var(--r);
   box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
   padding: 18px;
   transition: border-color .2s ease, transform .2s ease;
}
.feed--grid .feed__item:hover { border-color: var(--g); transform: translateY(-3px); }

/* search page */
.page--search .content__entry { margin-top: 24px; }
.sx__form { display: flex; gap: 10px; }
.sx__form .btn { flex-shrink: 0; }
.sx__results a, .search__results a { color: var(--ink); }
.sx__results a:hover, .search__results a:hover { color: var(--gt); }

/* static pages (about, contact...) */
.page > .content > .wrapper.content__entry,
.page-template .wrapper.content__entry { max-width: var(--w); }
.page .hero { padding: 26px 0 30px; }
.page .hero h1 { margin: 0; }
.page--error .hero { padding: 48px 0 56px; }

/* ---------------------------------------------------------------------
   Footer  (dark green, centred menu, divider + copyright)
   --------------------------------------------------------------------- */
.footer, .footer--glued {
   background: var(--hd);
   border: 0;
   color: #d5ecdd;
   font-size: .95rem;
   margin: 44px 0 0;
   padding: 28px 0 24px;
   text-align: center;
}
.footer__inner { box-sizing: border-box; margin: 0 auto; max-width: var(--w); padding: 0 18px; position: relative; }
.footer__nav ul, .fm {
   align-items: center;
   display: flex;
   flex-wrap: wrap;
   gap: 10px 22px;
   justify-content: center;
   margin: 0 0 16px;
   padding: 0;
}
.footer__nav ul ul { display: none; }
.footer__nav li { list-style: none; margin: 0; padding: 0; }
.footer__nav a, .footer a { color: #fff; font-weight: 500; text-decoration: none; }
.footer__nav a:hover, .footer a:hover { color: #fff; text-decoration: underline; }
.footer__social { align-items: center; display: flex; gap: 14px; justify-content: center; margin: 0 0 16px; }
.footer__social svg { fill: #fff; height: 22px; width: 22px; }
.footer__social svg:hover { fill: var(--gold); }
.footer__copyright, .footer .cp {
   border-top: 1px solid rgba(255, 255, 255, .2);
   color: #d5ecdd;
   font-size: .9rem;
   line-height: 1.7;
   margin: 0;
   padding-top: 16px;
}
.footer__copyright p { margin: 0; }
.footer__nav:empty + .footer__copyright, .footer__inner > .footer__copyright:first-child { border-top: 0; padding-top: 0; }
.footer__bttop {
   background: var(--g);
   border: 0;
   border-radius: 50%;
   bottom: 18px;
   box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
   color: #fff;
   height: 42px;
   padding: 0;
   position: fixed;
   right: 18px;
   width: 42px;
}
.footer__bttop:hover { background: var(--gd); }
.footer__bttop svg { fill: #fff; stroke: #fff; }

/* lazy images keep the demo look */
img { border-radius: 0; }
.content__entry img, .card__image img { border-radius: 10px; }
.card__image img { border-radius: 0; }

@media (max-width: 600px) {
   body { font-size: 1rem; }
   .hero { padding: 26px 0 52px; }
   .hero-card, .tool { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
   html { scroll-behavior: auto; }
   .card, .card:hover { transform: none; transition: none; }
}

/* ---------------------------------------------------------------------
   Dark mode refinements (palette itself is set in theme-variables.js)
   --------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
   .msg--highlight, .hero-card__extra blockquote { background: #2d2610; color: #f6e7b4; }
   .msg--info { background: #14283a; color: #cfe4f7; }
   .msg--success { background: #12301f; color: #cdeedb; }
   .msg--warning { background: #3a1a17; color: #ffd6d1; }
   .card__tag { background: #12301f; color: #7fe0a8; }
   .card, .widget, .feed--grid .feed__item { box-shadow: none; }
   .hero-card, .tool { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
   .footer { background: var(--hd); }
}
