:root {
  --brand-green: #123b35; /* dark green from logo tone */
  --brand-green-700: #0f332e;
  --brand-green-100: #c5e3ca; /* subtle tint for sections */
  --brand-accent: #00cc66; /* jade accent used in brand assets */
  --brand-orange: #cc460a; /* newly added accent orange */
  --brand-text: #0b1f1c; /* near-black text */
  --brand-muted: #6c757d;
  --brand-border: #e9ecef;
  --brand-bg: #f7f7f7; /* adjusted to match original investor site light gray */
}

@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1240px;
  }
}

/* sections general style*/

.content-section {
  margin-top: 2rem;
}

/* --------------------------------------------------
   Background utility helpers (brand / accent / orange)
   Usage: add class .bg-brand, .bg-brand-90, .bg-accent, .bg-accent-90,
   .bg-orange, .bg-orange-90, .bg-green-90 (alias of brand), etc.
   -------------------------------------------------- */
.bg-brand {
  background-color: var(--brand-green) !important;
}
.bg-brand-90 {
  background-color: rgba(18, 59, 53, 0.9) !important;
}
.bg-brand-30 {
  background-color: rgba(18, 59, 53, 0.3) !important;
}
.bg-brand-50 {
  background-color: rgba(18, 59, 53, 0.5) !important;
}
.bg-brand-20 {
  background-color: rgba(18, 59, 53, 0.2) !important;
}
.bg-brand-40 {
  background-color: rgba(18, 59, 53, 0.4) !important;
}
.bg-accent {
  background-color: var(--brand-accent) !important;
}
.bg-accent-90 {
  background-color: rgba(0, 204, 102, 0.9) !important;
}
.bg-accent-50 {
  background-color: rgba(0, 204, 102, 0.5) !important;
}
.bg-green {
  background-color: var(--brand-green) !important;
}
.bg-green-90 {
  background-color: rgba(18, 59, 53, 0.9) !important;
}
.bg-orange {
  background-color: var(--brand-orange) !important;
}
.bg-orange-90 {
  background-color: rgba(204, 70, 10, 0.9) !important;
}
.bg-orange-50 {
  background-color: rgba(204, 70, 10, 0.5) !important;
}
/* (Recovered) background opacity utilities already defined below; removed corrupted duplication. */
/* Fully transparent background helper */
/* Fully transparent background helper */
.bg-transparent {
  background-color: transparent !important;
}

/* Text color helpers for dark/light backgrounds */
.bg-brand,
.bg-brand-90,
.bg-green,
.bg-orange,
.bg-orange-90 {
  color: #fff;
}

.bg-accent,
.bg-accent-90 {
  color: #062d1a;
}
html,
body {
  font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--brand-text);
  background: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------
   General Link Styling
   -------------------------------------------------- */
a {
  color: var(--brand-green);
  text-decoration: underline;
  text-decoration-color: rgba(18, 59, 53, 0.3);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--brand-accent);
  text-decoration-color: var(--brand-accent);
}

/* Visited links maintain brand consistency */
a:visited {
  text-decoration-color: rgba(15, 51, 46, 0.3);
}

a:visited:hover,
a:visited:focus {
  color: var(--brand-accent);
  text-decoration-color: var(--brand-accent);
}

/* Focus ring for accessibility */
a:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Links in navigation and special contexts keep their specific styling */
.navbar a,
.btn a,
button a {
  text-decoration: none !important;
}

.navbar a:hover,
.navbar a:focus {
  text-decoration: none !important;
}

/* Anchor scroll offset for in-page section links (Template2Page) */
:root {
  --nav-height: 72px;
}
@media (max-width: 992px) {
  :root {
    --nav-height: 66px;
  }
}
/* Ensure section anchors are scrolled below the fixed navbar */
[id^="content-section-"] {
  scroll-margin-top: var(--nav-height);
}
/* Smooth scrolling if user hasn't opted out of animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.badge {
  background-color: var(--brand-accent);
}
/* Bootstrap theming */
.btn-primary {
  --bs-btn-bg: var(--brand-green);
  --bs-btn-border-color: var(--brand-green);
  --bs-btn-hover-bg: var(--brand-green-700);
  --bs-btn-hover-border-color: var(--brand-green-700);
}
.btn-outline-secondary {
  --bs-btn-color: var(--brand-green);
  --bs-btn-border-color: var(--brand-green);
  --bs-btn-hover-bg: var(--brand-green);
  --bs-btn-hover-border-color: var(--brand-green);
  --bs-btn-hover-color: #fff;
}
.text-secondary {
  color: var(--brand-muted) !important;
}
.border-bottom {
  border-color: var(--brand-border) !important;
}

.navbar {
  background: var(--brand-green);
  border-bottom: 1px solid var(--brand-border);
}
.navbar .nav-link {
  font-weight: 600;
  color: var(--brand-green-100);
}
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:hover {
  color: var(--brand-accent);
}
/* Make the toggler icon visible on custom backgrounds */
.navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Split-caret alignment and subtle sizing */
.navbar .dropdown-toggle-split::after {
  vertical-align: 0.1em;
}

/* Desktop dropdown polish */
.navbar .dropdown-menu {
  border-radius: 0.5rem;
  border: 1px solid var(--brand-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 0.25rem;
  margin-top: 0.25rem;
  background: #fff;
  min-width: 14rem;
}
.navbar .dropdown-item {
  border-radius: 0.35rem;
  color: var(--brand-text);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: #f1f5f4;
  color: var(--brand-green);
}
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  background: var(--brand-green);
  color: #fff;
}

/* Better focus visibility for keyboard users */
.navbar .nav-link:focus,
.navbar .dropdown-item:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 30px; /* align with toggle */
  }
}

/* Mobile/collapsed nav improvements */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
  }
  .navbar .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .navbar .nav-item:last-child {
    border-bottom: 0;
  }
  .navbar .nav-link {
    padding: 0.6rem 0.25rem;
  }
  /* Let dropdowns be part of the flow instead of overlapping */
  .navbar .dropdown-menu {
    position: static;
    float: none;
    box-shadow: none;
    margin: 0; /* tuck under parent */
    padding: 0; /* remove inner padding so items align to list */
    border-radius: 0;
    background: transparent; /* inherit dark navbar bg */
    border: 0;
    width: 100%;
    min-width: 0;
  }
  .navbar .dropdown-item {
    padding: 0.6rem 0.25rem 0.6rem 1rem; /* indent for hierarchy */
    color: var(--brand-green-100);
    font-weight: 600;
    text-transform: uppercase;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand-accent);
  }
  .navbar .dropdown-menu li:last-child .dropdown-item {
    border-bottom: 0;
  }
}

.hero {
  background: var(--brand-green-100);
  border-bottom: 1px solid var(--brand-border);
}
.hero h1,
.hero h2,
.hero h3 .hero h4 {
  color: var(--brand-green);
  font-weight: 800;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-green);
}

.report-card {
  border-left: 4px solid var(--brand-green);
}

/* Document list styling */
.document-list {
  margin-bottom: 2rem;
}

.document-list p strong {
  color: var(--brand-green);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.document-list ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.document-list li {
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--brand-border);
}

.document-list li:last-child {
  border-bottom: none;
}

.document-list a {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.timeline {
  position: relative;
  margin-left: 1rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dfe5e3;
}
.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.1rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--brand-accent);
}

footer {
  border-top: 1px solid gray;
  padding: 2rem 0 2rem 0;
  margin-top: 2rem;
}

footer img {
  max-width: 100%;
}
footer a {
  text-decoration: none;
}

footer .logo img {
  width: 142px;
  margin-bottom: 1rem;
}

.press-filters label {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.press-card {
  border-left: 4px solid var(--brand-green);
}
.press-card h2 {
  color: var(--brand-green);
}
.press-card .collapse {
  transition: height 0.25s ease;
}
.hero-sm {
  background: var(--brand-green-100);
}

/* Financial Reports Page Styles */
.report-feature-placeholder .card-body {
  min-height: 120px;
}
.reports-archive .year-toggle {
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
  background: #fff;
}
.reports-archive .year-toggle:focus {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}
.reports-archive .report-year + .report-year {
  margin-top: 1rem;
}
.reports-archive ul {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
}
.reports-archive li {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.reports-archive li:last-child {
  border-bottom: 0;
}
.text-brand {
  color: var(--brand-green);
}
.report-esef-link {
  color: var(--brand-green);
}
.report-esef-link:hover,
.report-esef-link:focus-visible {
  color: var(--brand-accent);
}
.report-esef-icon {
  display: block;
}
.micro {
  font-size: 0.75rem;
}
.toggle-icon {
  font-size: 0.75rem;
  width: 1rem;
  display: inline-block;
  text-align: center;
}
/* --------------------------------------------------
   Financial Info Tables
   Matches MFN widget table styling for consistency
   -------------------------------------------------- */

.financial-info {
  background: #fff;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}
.financial-info div {
  overflow-x: auto;
}

.financial-info table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.financial-info th,
.financial-info td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
  border-top: 1px solid var(--brand-border);
  background: #fff;
}

.financial-info thead th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
  background: var(--brand-green);
  color: #fff;
  border-top: 0;
  border-bottom: 0;
}

/* First column accent bar */
.financial-info tbody tr td:first-child {
  border-left: 3px solid transparent;
}

.financial-info tbody tr:hover td:first-child {
  border-left-color: var(--brand-accent);
}

/* Zebra striping */
.financial-info tbody tr:nth-child(odd) td {
  background: #fcfcfc;
}

/* Hover effects */
.financial-info tbody tr:hover td {
  background: #f1f5f4;
}

/* Numeric alignment - automatic detection */
.financial-info td,
.financial-info th {
  white-space: nowrap;
}

/* Auto-detect numeric content and align right */
.financial-info td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.financial-info th:not(:first-child) {
  text-align: right;
}

/* First column (usually labels) stays left-aligned */
.financial-info td:first-child,
.financial-info th:first-child {
  text-align: left;
}

/* Links in table cells */
.financial-info td a {
  color: var(--brand-green);
  text-decoration: none;
}

.financial-info td a:hover,
.financial-info td a:focus {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* Responsive overflow */
@media (max-width: 991px) {
  .financial-info {
    overflow-x: auto;
  }
}
/* --------------------------------------------------
   Contact Card Component Styling
   Matches MySafety Group brand identity and website design system
   -------------------------------------------------- */

.contact-bubble {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-bubble:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Photo styling */
.contact-bubble .contact-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.contact-bubble.has-image .contact-photo {
  border-bottom: 3px solid var(--brand-accent);
}

/* Content area */
.contact-bubble .contact-content {
  padding: 0;
}

/* Header section with name/title */
.contact-bubble .text-container {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--brand-border);
  background: #fff;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.25rem;
}

.contact-bubble .text-container h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--brand-green);
  line-height: 1.2;
}

.contact-bubble .text-container .preamble {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--brand-text);
  line-height: 1.3;
}

.contact-bubble .text-container .title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Contact info section */
.contact-bubble .paragraph {
  padding: 1rem 1.25rem 1.25rem;
  background: #fff;
  margin: 0;
}

.contact-bubble .paragraph > div {
  margin-bottom: 0.625rem;
}

.contact-bubble .paragraph > div:last-child {
  margin-bottom: 0;
}

/* Contact links styling */
.contact-bubble .paragraph a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  color: var(--brand-green);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}

.contact-bubble .paragraph a:hover,
.contact-bubble .paragraph a:focus {
  color: var(--brand-accent);
}

.contact-bubble .paragraph a.link-none {
  color: var(--brand-text);
}

.contact-bubble .paragraph a.link-none:hover {
  color: var(--brand-green);
}

/* Add icons before contact info */
.contact-bubble .phone a::before {
  content: "📞";
  font-size: 0.875rem;
  margin-right: 0.375rem;
}

.contact-bubble .email a::before {
  content: "✉️";
  font-size: 0.875rem;
  margin-right: 0.375rem;
}

.contact-bubble .web a::before {
  content: "🌐";
  font-size: 0.875rem;
  margin-right: 0.375rem;
}

/* Cards without photos */
.contact-bubble:not(.has-image) .card-header {
  background: var(--brand-green-100);
  border-bottom: 3px solid var(--brand-accent);
  padding: 1.25rem 1.25rem 1rem;
}

.contact-bubble:not(.has-image) .card-header h3 {
  color: var(--brand-green);
  font-size: 1.375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-bubble .text-container {
    padding: 0.875rem 1rem 0.625rem;
  }

  .contact-bubble .paragraph {
    padding: 0.875rem 1rem 1rem;
  }

  .contact-bubble .text-container h3 {
    font-size: 1.125rem;
  }

  .contact-bubble .contact-photo {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .contact-bubble {
    margin-bottom: 1rem;
  }

  .contact-bubble .contact-photo {
    height: 160px;
  }

  .contact-bubble .text-container {
    padding: 0.75rem 0.875rem 0.5rem;
  }

  .contact-bubble .paragraph {
    padding: 0.75rem 0.875rem 0.875rem;
  }
}

/* --------------------------------------------------
   Datablocks (MFN) Widget Table Theming
   --------------------------------------------------
   Goal: Harmonize third‑party widget tables with site branding + Bootstrap 5.
   Assumptions: Each injected widget container gets class .mfn-widget plus a
   specific modifier (added in mfn-widgets.js). The remote HTML typically
   renders a <table>. We avoid heavy specificity so future upstream changes are
   still picked up. All rules are purely cosmetic (no layout breakage).
*/
.mfn-widget-placeholder > div {
  width: 100% !important;
}
/* Generic container polish */
.mfn-widget {
  background: #fff;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
@media (max-width: 991px) {
  .mfn-widget {
    overflow-x: auto; /* horizontal scroll safeguard on narrow screens */
  }
}
.mfn-widget .mfn-widget {
  width: 100% !important;
}
/* Base table look */
.mfn-widget table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem; /* slightly compact */
  margin-bottom: 0.5rem;
}

.mfn-widget th,
.mfn-widget td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
  border-top: 1px solid var(--brand-border);
  background: #fff;
}

.mfn-widget thead th {
  position: sticky; /* helpful when tall lists scroll horizontally */
  top: 0;
  z-index: 2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
  background: var(--brand-green);
  color: #fff;
  border-top: 0;
  border-bottom: 0;
}
[data-widget="number-of-votes"] thead th {
  text-align: center;
}

[data-widget="number-of-votes"] thead th:nth-child(n + 3) {
  text-align: right;
}

/* First column accent bar (optional subtle brand stripe) */
.mfn-widget tbody tr td:first-child {
  border-left: 3px solid transparent;
}
.mfn-widget tbody tr:hover td:first-child {
  border-left-color: var(--brand-accent);
}

/* Zebra striping */
.mfn-widget tbody tr:nth-child(odd) td {
  background: #fcfcfc;
}

/* Hover */
.mfn-widget tbody tr:hover td {
  background: #f1f5f4;
}

/* Numeric alignment heuristics: right-align numbers */
.mfn-widget td,
.mfn-widget th {
  white-space: nowrap;
}
.mfn-widget td[data-type="number"],
.mfn-widget td.num,
.mfn-widget th[data-type="number"],
.mfn-widget th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Positive / negative coloring if widget outputs semantic classes */
.mfn-widget .positive {
  color: #1f7a4d; /* deeper green for contrast */
  font-weight: 600;
}
.mfn-widget .negative {
  color: #c62828;
  font-weight: 600;
}

/* Sorting indicators (if upstream adds .sortable or aria-sort) */
.mfn-widget th[aria-sort] {
  cursor: pointer;
}
.mfn-widget th[aria-sort="ascending"],
.mfn-widget th.sort-asc {
  background: linear-gradient(var(--brand-green), var(--brand-green-700));
}
.mfn-widget th[aria-sort="descending"],
.mfn-widget th.sort-desc {
  background: linear-gradient(var(--brand-green-700), var(--brand-green));
}
.mfn-widget th[aria-sort]::after {
  content: attr(data-sort-indicator);
  font-size: 0.55rem;
  margin-left: 0.35rem;
  opacity: 0.85;
}

/* Compact header cells that only house icons */
.mfn-widget th.icon-col,
.mfn-widget td.icon-col {
  width: 1%;
  text-align: center;
  white-space: nowrap;
}

/* Link styling inside cells */
.mfn-widget td a {
  color: var(--brand-green);
  text-decoration: none;
}
.mfn-widget td a:hover,
.mfn-widget td a:focus {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* Small helper text */
.mfn-widget .meta,
.mfn-widget .small,
.mfn-widget small {
  color: var(--brand-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer / legend row */
.mfn-widget tfoot td {
  background: #f0f4f3;
  font-size: 0.7rem;
  color: var(--brand-muted);
  border-top: 1px solid var(--brand-border);
}

/* Responsive stacking hint (opt-in via data-break-stack="true") */
@media (max-width: 640px) {
  .mfn-widget[data-break-stack="true"] table,
  .mfn-widget[data-break-stack="true"] thead,
  .mfn-widget[data-break-stack="true"] tbody,
  .mfn-widget[data-break-stack="true"] th,
  .mfn-widget[data-break-stack="true"] td,
  .mfn-widget[data-break-stack="true"] tr {
    display: block;
  }
  .mfn-widget[data-break-stack="true"] thead {
    display: none;
  }
  .mfn-widget[data-break-stack="true"] tr {
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.75rem;
    background: #fff;
  }
  .mfn-widget[data-break-stack="true"] td {
    border: 0;
    padding: 0.25rem 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .mfn-widget[data-break-stack="true"] td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--brand-green);
  }
}

/* Loading / error placeholders (mirror markup inserted in JS) */
.mfn-widget .text-muted.small {
  font-size: 0.7rem;
}

/* Reduce visual noise when multiple widgets in a row */
.mfn-widget + .mfn-widget {
  margin-top: -0.25rem; /* tighten vertical rhythm */
}

/* Dedicated variants (example: stock table) */
.mfn-widget-stock-table table tbody tr:hover td {
  background: #eef6f4;
}

/* Subtle highlight for today / current row if upstream marks it */
.mfn-widget tr.is-today td {
  background: #e3f4ef !important;
  font-weight: 600;
}

/* --------------------------------------------------
   MFN Subscription (mfn-subscribe) compact card styling
   Assumes widget container id="mfn-subscribe" and wrapper class .mfn-widget-subscribe
   -------------------------------------------------- */
.mfn-widget-subscribe {
  max-width: 460px;
  padding: 0.75rem 0.9rem 0.9rem;
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-accent);
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
}
.mfn-widget-subscribe h1,
.mfn-widget-subscribe h2,
.mfn-widget-subscribe h3,
.mfn-widget-subscribe h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--brand-green);
}
.mfn-widget-subscribe .mfn-info-main {
  font-weight: bolder;
  font-size: 0.9rem;
  display: none;
}
.mfn-widget-subscribe > h2 {
  padding: 0 !important;
}
.mfn-widget-subscribe form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}
.mfn-widget-subscribe form .form-row,
.mfn-widget-subscribe form .row,
.mfn-widget-subscribe form p {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}
.mfn-widget-subscribe label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: var(--brand-green);
}
.mfn-widget-subscribe input[type="text"],
.mfn-widget-subscribe input[type="email"],
.mfn-widget-subscribe input[type="tel"],
.mfn-widget-subscribe select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 0.4rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  line-height: 1.2;
}
.mfn-widget-subscribe input:focus,
.mfn-widget-subscribe select:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 1px;
  border-color: var(--brand-accent);
}
.mfn-widget-subscribe .checkbox,
.mfn-widget-subscribe .form-check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  margin: 0.1rem 0;
}
.mfn-widget-subscribe input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.mfn-widget-subscribe button,
.mfn-widget-subscribe input[type="submit"] {
  --btn-bg: var(--brand-green);
  background: var(--btn-bg);
  border: 1px solid var(--brand-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0.4rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.mfn-widget-subscribe button:hover,
.mfn-widget-subscribe button:focus,
.mfn-widget-subscribe input[type="submit"]:hover,
.mfn-widget-subscribe input[type="submit"]:focus {
  background: var(--brand-green-700);
  box-shadow: 0 0 0 2px var(--brand-green-100), 0 2px 4px rgba(0, 0, 0, 0.15);
}
.mfn-widget-subscribe .help,
.mfn-widget-subscribe small,
.mfn-widget-subscribe .hint {
  font-size: 0.6rem;
  color: var(--brand-muted);
  line-height: 1.1;
  margin-top: -0.2rem;
}
.mfn-widget-subscribe .error,
.mfn-widget-subscribe .validation-summary-errors {
  color: #b02a37;
  background: #fdecea;
  border: 1px solid #f5c2c7;
  padding: 0.4rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.65rem;
  margin: 0.25rem 0 0.35rem;
}
.mfn-widget-subscribe .success-message {
  color: #0f5132;
  background: #daf5e7;
  border: 1px solid #a9e5c9;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.65rem;
  margin-top: 0.4rem;
}
@media (min-width: 520px) {
  .mfn-widget-subscribe .two-col {
    display: flex;
    gap: 0.5rem;
  }
  .mfn-widget-subscribe .two-col > * {
    flex: 1 1 0;
  }
}

/* --------------------------------------------------
   Subscription Card Dark Variant Adjustments
   User request: remove left accent border, make full card dark green,
   put checkbox items in a row, remove list bullets, add small title (h6).
   -------------------------------------------------- */
/* Dark background + remove left border */
.mfn-widget-subscribe {
  background: var(--brand-green);
  border-left: none;
  border-color: var(--brand-green-700);
  color: #ffffff;
}
/* Headings & new h6 title */
.mfn-widget-subscribe h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}
.mfn-widget-subscribe h1,
.mfn-widget-subscribe h2,
.mfn-widget-subscribe h3,
.mfn-widget-subscribe h4 {
  color: #ffffff;
}
/* Labels / helper text lighten */
.mfn-widget-subscribe label {
  color: #ffffff;
}
.mfn-widget-subscribe .help,
.mfn-widget-subscribe small,
.mfn-widget-subscribe .hint {
  color: var(--brand-green-100);
}
/* Inputs on dark background */
.mfn-widget-subscribe input[type="text"],
.mfn-widget-subscribe input[type="email"],
.mfn-widget-subscribe input[type="tel"],
.mfn-widget-subscribe select {
  background: #ffffff;
  color: var(--brand-text);
}
.mfn-widget-subscribe input::placeholder,
.mfn-widget-subscribe select::placeholder {
  color: #6c757d;
}
/* Inline checkbox row layout */
.mfn-widget-subscribe ul,
.mfn-widget-subscribe ol {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.mfn-widget-subscribe ul li,
.mfn-widget-subscribe ol li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mfn-widget-subscribe .checkbox,
.mfn-widget-subscribe .form-check {
  display: inline-flex;
  flex-direction: row;
  gap: 0.35rem;
  margin: 0;
}
/* Button on dark card */
.mfn-widget-subscribe button,
.mfn-widget-subscribe input[type="submit"] {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #062d1a;
}
.mfn-widget-subscribe button:hover,
.mfn-widget-subscribe button:focus,
.mfn-widget-subscribe input[type="submit"]:hover,
.mfn-widget-subscribe input[type="submit"]:focus {
  background: #00b85c;
  border-color: #00b85c;
  box-shadow: 0 0 0 2px rgba(0, 204, 102, 0.35), 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #062d1a;
}
/* Feedback boxes keep readable contrast */
.mfn-widget-subscribe .error,
.mfn-widget-subscribe .validation-summary-errors {
  background: #fdecea;
  color: #b02a37;
}
.mfn-widget-subscribe .success-message {
  background: #daf5e7;
  color: #0f5132;
}
/* Focus outlines remain visible on dark */
.mfn-widget-subscribe input:focus,
.mfn-widget-subscribe select:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 1px;
  border-color: var(--brand-accent);
}

/* --------------------------------------------------
   Cookie Consent (CMP) — banner + modal
   Matches site branding; buttons mimic BS5 variants.
   -------------------------------------------------- */
.cookie-settings-link {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1080;
}
.cookie-settings-link a {
  color: var(--brand-green-100);
  text-decoration: underline;
}
.cookie-settings-link a:hover,
.cookie-settings-link a:focus {
  color: var(--brand-accent);
}

.cmp-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1090;
  background: var(--brand-green);
  color: #fff;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cmp-banner p {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}
.cmp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cmp-btn-primary,
.cmp-btn-secondary,
.cmp-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.cmp-btn-primary {
  background: var(--brand-accent);
  color: #062d1a;
  border-color: var(--brand-accent);
}
.cmp-btn-primary:hover,
.cmp-btn-primary:focus {
  background: #00b85c;
  border-color: #00b85c;
}
.cmp-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.cmp-btn-secondary:hover,
.cmp-btn-secondary:focus {
  background: rgba(255, 255, 255, 0.08);
}
.cmp-btn-link {
  background: transparent;
  color: #fff;
  border: 0;
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
}
.cmp-btn-link:hover,
.cmp-btn-link:focus {
  color: var(--brand-green-100);
}

/* Modal overlay */
.cmp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.cmp-modal__dialog {
  width: min(720px, 100%);
  background: #fff;
  color: var(--brand-text);
  border-radius: 0.6rem;
  border: 1px solid var(--brand-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  padding: 1rem 1rem 1.25rem;
}
.cmp-modal__dialog h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--brand-green);
  font-weight: 800;
}
.cmp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--brand-border);
}
.cmp-row:last-of-type {
  border-bottom: 0;
}

/* Toggle (switch) control */
.cmp-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
}
.cmp-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.cmp-toggle span {
  display: block;
  width: 100%;
  height: 100%;
  background: #cfd8d4;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}
.cmp-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.cmp-toggle input:checked + span {
  background: var(--brand-accent);
}
.cmp-toggle input:checked + span::after {
  transform: translateX(18px);
}
.cmp-toggle input:focus + span {
  box-shadow: 0 0 0 3px rgba(0, 204, 102, 0.25);
}
.cmp-toggle input:disabled + span {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .cmp-banner {
    left: 1rem;
    right: 1rem;
    border-radius: 0.6rem 0.6rem 0 0;
  }
}
@media (max-width: 576px) {
  .cmp-actions {
    gap: 0.4rem;
  }
  .cmp-btn-primary,
  .cmp-btn-secondary,
  .cmp-btn-link {
    flex: 1 1 auto;
  }
}
