/* ═══════════════════════════════════════════════════════════════
   BaseFrame → Bulma Adapter
   Maps bf-* semantic classes to Bulma's visual system.
   Requires: lib/bulma.min.css loaded before this file.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bf-accent: #00d1b2;
  --bf-bg: #fff;
  --bf-text: #4a4a4a;
  --bf-text-soft: #7a7a7a;
  --bf-border: #dbdbdb;
  --bf-hover-bg: #f5f5f5;
  --bf-topbar-hover: #00d1b2;
  --bf-mark-bg: #d1fff8;
  --bf-mark-text: #009e86;
  --bf-topbar-bg: #f2faf8;
  --bf-topbar-border: #e0f0ec;
  --bulma-family-primary: "Inter", system-ui, sans-serif;
  --bulma-radius: 0.5rem;
}

/* ─── Header ────────────────────────────────────────────────── */
.bf-header {
  background: #fff;
  box-shadow: 0 2px 3px rgba(10,10,10,.1);
}
.bf-logo-label { color: #00d1b2; }
.bf-logo-site { color: #363636; }

.bf-nav .nav-item > a,
.bf-nav .mod-menu__toggle-sub { color: #4a4a4a; }
.bf-nav .nav-item > a:hover,
.bf-nav .mod-menu__toggle-sub:hover {
  background: #fafafa;
  color: #00d1b2;
}
.bf-nav .mod-menu__sub { border-color: #dbdbdb; }
.bf-nav .mod-menu__sub .nav-item > a { color: #4a4a4a; }
.bf-nav .mod-menu__sub .nav-item > a:hover { background: #d1fff8; color: #009e86; }
.bf-nav .nav-item.current > a,
.bf-nav .nav-item.active > a {
  color: #00d1b2;
  font-weight: 600;
  border-bottom: 3px solid #00d1b2;
  padding-bottom: calc(.5rem - 3px);
}
.bf-hamburger span { background: #4a4a4a; }

@media (max-width: 768px) {
  .bf-nav { background: #fff; }
}

/* ─── Hero — Bulma's signature title+subtitle pairing ──────── */
.bf-hero {
  background: #00d1b2;
  color: #fff;
}
.bf-hero .title { color: #fff; font-size: 2.5rem; font-weight: 700; margin-bottom: 0; }
.bf-hero .subtitle { color: rgba(255,255,255,.85); margin-top: .75rem; font-size: 1.25rem; font-weight: 400; }
.bf-hero .title + .subtitle { margin-top: .5rem; }

/* Bulma fan-favorite: title/subtitle rhythm on page headings */
.page-header h1 + p,
.com-content-article__body h2 + p:first-of-type {
  color: #7a7a7a; font-size: 1.1rem; margin-top: -.25rem; font-weight: 400;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.bf-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.bf-card {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 .5em 1em -.125em rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.02);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.bf-card:hover {
  box-shadow: 0 .5em 1em -.125em rgba(10,10,10,.15);
  transform: translateY(-2px);
}
.bf-card-image img {
  width: 100%; height: 200px; object-fit: cover; display: block;
}
.bf-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.bf-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.bf-tag {
  display: inline-block; padding: .2rem .6rem; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
  background: #d1fff8; color: #009e86;
  border-radius: 9999px;
}
.bf-card-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 .4rem; }
.bf-card-title a { color: #363636; text-decoration: none; }
.bf-card-title a:hover { color: #00d1b2; }
.bf-card-date { font-size: .8rem; color: #7a7a7a; margin-bottom: .5rem; display: block; }
.bf-card-text { font-size: .9rem; color: #4a4a4a; flex: 1; }
.bf-card-readmore {
  display: inline-block; margin-top: auto; padding-top: .75rem;
  font-size: .85rem; font-weight: 600; color: #00d1b2;
  text-decoration: none; border-top: 1px solid #dbdbdb;
}
.bf-card-readmore:hover { text-decoration: underline; }

/* Leading card — wider */
.bf-blog-leading { margin-bottom: 2rem; }
.bf-blog-leading .bf-card { flex-direction: row; }
.bf-blog-leading .bf-card-image { flex: 0 0 50%; }
.bf-blog-leading .bf-card-image img { height: 100%; min-height: 280px; }
.bf-blog-leading .bf-card-title { font-size: 1.5rem; }
@media (max-width: 768px) {
  .bf-blog-leading .bf-card { flex-direction: column; }
  .bf-blog-leading .bf-card-image { flex: none; }
  .bf-blog-leading .bf-card-image img { height: 200px; min-height: auto; }
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.bf-module {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 .5em 1em -.125em rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.02);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.bf-module-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #7a7a7a; border-bottom: 2px solid #dbdbdb;
  padding-bottom: .5rem; margin-bottom: .75rem;
}

/* Sidebar article lists */
.bf-sidebar .mod-articles-items { list-style: none; padding: 0; margin: 0; }
.bf-sidebar .mod-articles-item {
  margin: 0 !important; padding: 0 !important;
  background: none !important; box-shadow: none !important; border-radius: 0 !important;
}
.bf-sidebar .mod-articles-item-content { display: contents; }
.bf-sidebar .mod-articles-title { font-size: .88rem !important; font-weight: 400 !important; margin: 0 !important; }
.bf-sidebar .mod-articles-link {
  display: block; padding: .45rem .5rem; text-decoration: none;
  color: #4a4a4a; border-radius: .5rem; transition: all .15s;
}
.bf-sidebar .mod-articles-link:hover { background: #d1fff8; color: #009e86; }

/* Sidebar tags */
.bf-sidebar .tagspopular ul { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; }

/* ─── Content — text color and headings ─────────────────────── */
body.bf { color: #4a4a4a; }
.bf-content { color: #4a4a4a; }

/* Page title */
.page-header h1 {
  font-size: 2.5rem; font-weight: 700; line-height: 1.2;
  color: #363636; margin-bottom: 1rem;
}

/* Article headings */
.com-content-article__body h2 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; color: #363636; }
.com-content-article__body h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .4rem; color: #363636; }
.com-content-article__body hgroup { margin-bottom: 1.5rem; }
.com-content-article__body hgroup p { color: #7a7a7a; }
.com-content-article__body section + section {
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #dbdbdb;
}
.com-content-article__body .grid > article,
.com-content-article__body .home-grid > article {
  background: #fff; color: #363636; border-radius: .75rem;
  box-shadow: 0 .5em 1em -.125em rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.02);
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.com-content-article__body .grid > article:hover,
.com-content-article__body .home-grid > article:hover {
  box-shadow: 0 .5em 1em -.125em rgba(10,10,10,.15); transform: translateY(-2px);
}
/* Lists inside cards — Bulma resets list-style */
.com-content-article__body .grid > article ul,
.com-content-article__body .home-grid > article ul {
  list-style: disc; padding-left: 1.25rem; margin: .75rem 0 1rem;
}
.com-content-article__body .grid > article li,
.com-content-article__body .home-grid > article li {
  margin-bottom: .25rem;
}
.com-content-article__body .grid > article > header,
.com-content-article__body .home-grid > article > header {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #00d1b2; margin-bottom: .75rem; padding-bottom: .5rem;
  border-bottom: 2px solid #d1fff8;
}
.com-content-article__body .grid > article > h3,
.com-content-article__body .home-grid > article > h3 {
  margin-top: 0; color: #00d1b2; font-size: 1.5rem;
}
.com-content-article__body .grid > article > hgroup > h3,
.com-content-article__body .home-grid > article > hgroup > h3 {
  margin-top: 0; color: #00d1b2; font-size: 2rem; font-weight: 700;
}
.com-content-article__body .grid > div > h3 {
  font-size: 2rem; font-weight: 700; color: #00d1b2; margin-bottom: .25rem;
}

/* Button-like links */
.com-content-article__body a[role="button"] {
  display: inline-flex; padding: .65rem 1.5rem; font-weight: 600; font-size: .9rem;
  text-decoration: none !important; border-radius: .5rem; transition: all .2s;
  background: #00d1b2; color: #fff !important; border: 2px solid #00d1b2;
}
.com-content-article__body a[role="button"]:hover {
  background: #009e86; border-color: #009e86;
}
.com-content-article__body a[role="button"].secondary {
  background: transparent; color: #00d1b2 !important;
}

/* Blockquote */
blockquote {
  background: #f5f5f5; border-left: 4px solid #00d1b2;
  border-radius: 0 .5rem .5rem 0;
  padding: 1.5rem 2rem; margin: 1.5rem 0; font-style: italic;
}
blockquote footer { font-style: normal; margin-top: .75rem; background: none; padding: 0; }
blockquote cite { font-weight: 600; color: #009e86; }

/* FAQ accordion — explicit light colors */
details {
  border: 1px solid #dbdbdb; border-radius: .5rem;
  margin-bottom: .75rem; overflow: hidden; background: #fff; color: #363636;
}
details summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; color: #363636; }
details summary:hover { background: #f5f5f5; }
details[open] summary { border-bottom: 1px solid #dbdbdb; background: #00d1b2; color: #fff; }
details > *:not(summary) { padding: 0 1.25rem; }
details > p:last-child { padding-bottom: 1rem; }

/* Mark */
mark { background: #d1fff8; color: #009e86; padding: .1em .3em; border-radius: .25rem; }

/* Tags (Joomla output) */
.tags .btn-info {
  display: inline-block; padding: .25rem .65rem; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  background: #d1fff8; color: #009e86;
  border-radius: 9999px; border: none;
}
.tags .btn-info:hover { background: #00d1b2; color: #fff; }

/* Read more */
.readmore .btn-secondary {
  display: inline-block; padding: .4rem .8rem; font-size: .8rem; font-weight: 600;
  text-decoration: none; color: #00d1b2; border: 2px solid #00d1b2;
  border-radius: .5rem;
}
.readmore .btn-secondary:hover { background: #00d1b2; color: #fff; }
.readmore .icon-chevron-right { display: none; }

/* Pagination */
.bf-pagination .pagination { display: flex; gap: .25rem; list-style: none; padding: 0; justify-content: center; }
.bf-pagination .page-link {
  display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
  padding: 0 .75rem; border: 1px solid #dbdbdb; border-radius: 9999px;
  text-decoration: none; font-size: .85rem; color: #4a4a4a; transition: all .15s;
}
.bf-pagination .page-link:hover { border-color: #00d1b2; color: #00d1b2; }
.bf-pagination .active .page-link { background: #00d1b2; color: #fff; border-color: #00d1b2; }
.bf-pagination .disabled .page-link { opacity: .3; pointer-events: none; }
.pagination__wrapper { display: contents; }

/* Contact form — explicit light colors to override Bulma's dark defaults */
.com-contact input[type="text"], .com-contact input[type="email"],
.com-contact textarea, .com-contact select {
  width: 100%; padding: .625rem .75rem; font-size: 1rem;
  border: 1px solid #dbdbdb; border-radius: .5rem;
  background: #fff; color: #4a4a4a; transition: border-color .15s;
}
.com-contact input:focus, .com-contact textarea:focus, .com-contact select:focus {
  border-color: #00d1b2; outline: none;
  box-shadow: 0 0 0 .125em rgba(0,209,177,.25);
}
.control-group { margin-bottom: 1rem; }
.control-label label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; }
.com-contact .btn-primary, .com-contact button[type="submit"] {
  display: inline-flex; padding: .65rem 1.5rem; font-weight: 600; font-size: .9rem;
  background: #00d1b2; color: #fff; border: 2px solid #00d1b2;
  border-radius: .5rem; cursor: pointer; transition: all .2s;
}

/* Footer */
.bf-footer { background: #fafafa; border-top: 1px solid #dbdbdb; }
.bf-footer-bottom { color: #7a7a7a; }
.bf-footer a { color: #4a4a4a; text-decoration: none; }
.bf-footer a:hover { color: #00d1b2; }
.bf-footer .bf-module-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #7a7a7a; margin-bottom: .75rem;
}
.bf-footer ul { list-style: none; padding: 0; }
.bf-footer ul li { padding: .15rem 0; }
.bf-footer ul a { font-size: .9rem; }

/* Alerts */
.alert { padding: 1.25rem 1.5rem; border-radius: .5rem; margin: 1rem 0; }
.alert-info { background: #eff5fb; color: #296fa8; }
.alert-success { background: #effaf5; color: #257953; }
.alert-warning { background: #fffaeb; color: #946c00; }
.alert-danger { background: #feecf0; color: #cc0f35; }

/* Article image */
.com-content-article figure.item-image { margin: 0 0 1.5rem; }
.com-content-article figure.item-image img { width: 100%; max-height: 480px; object-fit: cover; border-radius: .5rem; }

/* Tag results */
.com-tags-tag__category.list-group { list-style: none; padding: 0; }
.com-tags-tag__category .list-group-item { padding: 0; border: none; background: none; }
.com-tags-tag__category .list-group-item h3 a {
  display: block; padding: .65rem .75rem; text-decoration: none;
  border-radius: .5rem; transition: all .15s;
}
.com-tags-tag__category .list-group-item h3 a:hover {
  background: #d1fff8; color: #009e86;
}
