/*
Theme Name: Careers Mitihani Child
Theme URI: https://careers.mitihani.co.tz/
Description: Careers Mitihani Tanzania - reversible, WordPress-native redesign with compact job cards, deadline badges, sidebar, apply box, saved posts, mobile-first UX and a full theme-based ad manager.
Author: Careers Mitihani Tanzania
Version: 1.4.2
Template: lightning
Text Domain: careers-mitihani-child
*/

:root {
  --cmt-ink: #17283d;
  --cmt-navy: #102d4f;
  --cmt-navy-deep: #0a2039;
  --cmt-blue: #2468a2;
  --cmt-teal: #138b8b;
  --cmt-gold: #e7a33b;
  --cmt-paper: #f5f7fa;
  --cmt-white: #fff;
  --cmt-muted: #637184;
  --cmt-line: #dce4eb;
  --cmt-soft-blue: #eaf2f8;
  --cmt-radius: 14px;
  --cmt-content-width: 1160px;
}

html {
  scroll-behavior: smooth;
}

body,
body .site-body {
  background: var(--cmt-paper);
  color: var(--cmt-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body *,
body *::before,
body *::after {
  box-sizing: border-box;
}

a {
  color: var(--cmt-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cmt-teal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--cmt-gold);
  outline-offset: 3px;
}

.cmt-skip-link {
  position: absolute;
  z-index: 10000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--cmt-navy-deep);
  color: var(--cmt-white);
  padding: 10px 14px;
}

.cmt-skip-link:focus {
  transform: translateY(0);
}

.cmt-site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--cmt-line);
  background: var(--cmt-white);
}

.cmt-header-inner,
.cmt-content-shell,
.cmt-footer-inner {
  width: min(calc(100% - 40px), var(--cmt-content-width));
  margin-inline: auto;
}

.cmt-header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cmt-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cmt-navy);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration: none;
}

.cmt-brand:hover {
  color: var(--cmt-navy);
}

.cmt-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--cmt-navy);
  color: var(--cmt-white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.cmt-brand-name {
  display: grid;
  gap: 2px;
}

.cmt-brand-name small {
  color: var(--cmt-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cmt-brand img {
  display: block;
  max-width: 230px;
  max-height: 54px;
  width: auto;
  height: auto;
}

.cmt-menu-toggle {
  display: none;
  border: 1px solid var(--cmt-line);
  border-radius: 9px;
  background: var(--cmt-white);
  color: var(--cmt-navy);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}

.cmt-primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cmt-primary-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 9px;
  color: #35455a;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.cmt-primary-nav a:hover,
.cmt-primary-nav .current-menu-item > a {
  background: var(--cmt-soft-blue);
  color: var(--cmt-navy);
}

.cmt-saved-nav {
  display: inline-flex;
  flex: none;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--cmt-line);
  border-radius: 9px;
  color: var(--cmt-navy);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.cmt-saved-nav:hover {
  border-color: var(--cmt-teal);
  color: var(--cmt-teal);
}

.cmt-saved-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--cmt-soft-blue);
  color: var(--cmt-navy);
  font-size: 10px;
}

.cmt-saved-count[hidden] {
  display: none;
}

.cmt-header-search {
  display: flex;
  width: min(100% - 40px, var(--cmt-content-width));
  margin: 0 auto;
  padding: 0 0 16px;
}

.cmt-header-search form {
  display: flex;
  width: min(100%, 460px);
  gap: 8px;
}

.cmt-search-input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--cmt-line);
  border-radius: 9px;
  background: var(--cmt-white);
  color: var(--cmt-ink);
  font: inherit;
  padding: 10px 13px;
}

.cmt-button,
.cmt-header-search button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cmt-navy);
  border-radius: 9px;
  background: var(--cmt-navy);
  color: var(--cmt-white);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.cmt-button:hover,
.cmt-header-search button:hover {
  transform: translateY(-1px);
  background: var(--cmt-teal);
  border-color: var(--cmt-teal);
  color: var(--cmt-white);
}

.cmt-main {
  min-height: 65vh;
  padding: 30px 0 68px;
}

.cmt-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e5ef;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 93% 9%, rgb(19 139 139 / 12%), transparent 33%),
    linear-gradient(135deg, #fff 0%, #eff5f9 100%);
  padding: clamp(30px, 6vw, 66px);
}

.cmt-hero::after {
  position: absolute;
  right: -65px;
  bottom: -120px;
  width: 310px;
  height: 310px;
  border: 1px solid rgb(16 45 79 / 10%);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgb(16 45 79 / 3%),
    0 0 0 48px rgb(19 139 139 / 4%);
  content: "";
  pointer-events: none;
}

.cmt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cmt-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cmt-eyebrow::before {
  width: 22px;
  height: 2px;
  background: var(--cmt-gold);
  content: "";
}

.cmt-hero h1 {
  max-width: 760px;
  margin: 15px 0 13px;
  color: var(--cmt-navy-deep);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.cmt-hero p {
  max-width: 680px;
  margin: 0;
  color: #52647a;
  font-size: clamp(16px, 2vw, 19px);
}

.cmt-hero-search {
  display: flex;
  width: min(100%, 680px);
  gap: 9px;
  margin-top: 27px;
}

.cmt-hero-search .cmt-search-input {
  min-height: 52px;
  border-color: #c8d6e2;
  font-size: 15px;
  padding-inline: 16px;
}

.cmt-hero-search .cmt-button {
  min-height: 52px;
  padding-inline: 21px;
}

.cmt-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 19px;
}

.cmt-quick-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #d6e1e9;
  border-radius: 999px;
  background: rgb(255 255 255 / 75%);
  color: #33475c;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background-color 150ms ease;
}

.cmt-quick-links a:hover {
  border-color: var(--cmt-teal);
  background: var(--cmt-white);
  color: var(--cmt-teal);
}

.cmt-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 28px;
  margin-top: 34px;
}

.cmt-section {
  margin-top: 34px;
}

.cmt-section:first-child {
  margin-top: 0;
}

.cmt-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.cmt-section-heading h2 {
  margin: 0;
  color: var(--cmt-navy);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.cmt-section-heading p {
  margin: 5px 0 0;
  color: var(--cmt-muted);
  font-size: 14px;
}

.cmt-text-link {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.cmt-post-list {
  display: grid;
  gap: 14px;
}

.cmt-post-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--cmt-line);
  border-radius: var(--cmt-radius);
  background: var(--cmt-white);
  box-shadow: 0 4px 18px rgb(18 39 62 / 3%);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.cmt-post-card:hover {
  transform: translateY(-2px);
  border-color: #c2d3df;
  box-shadow: 0 12px 28px rgb(18 39 62 / 8%);
}

.cmt-post-media {
  min-height: 172px;
  background:
    linear-gradient(135deg, rgb(16 45 79 / 8%), rgb(19 139 139 / 10%)),
    var(--cmt-soft-blue);
}

.cmt-post-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 172px;
  object-fit: cover;
}

.cmt-post-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.cmt-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  color: var(--cmt-muted);
  font-size: 12px;
}

.cmt-category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--cmt-soft-blue);
  color: var(--cmt-navy);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
}

.cmt-post-card h3 {
  margin: 9px 0 7px;
  color: var(--cmt-navy);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.32;
}

.cmt-post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.cmt-post-card h3 a:hover {
  color: var(--cmt-teal);
}

.cmt-post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #5b6978;
  font-size: 14px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cmt-post-facts {
  display: grid;
  gap: 6px 16px;
  margin: 14px 0 0;
  border-top: 1px solid var(--cmt-line);
  padding-top: 13px;
  color: #495a6d;
  font-size: 13px;
}

.cmt-post-facts--compact {
  margin-top: 11px;
  padding-top: 10px;
  font-size: 12px;
}

.cmt-post-facts > div {
  display: grid;
  grid-template-columns: minmax(100px, 145px) minmax(0, 1fr);
  gap: 8px;
}

.cmt-post-facts dt,
.cmt-post-facts dd {
  margin: 0;
}

.cmt-post-facts dt,
.cmt-post-facts strong {
  color: var(--cmt-navy);
  font-weight: 800;
}

.cmt-post-facts--compact > span {
  display: block;
}

.cmt-deadline--past,
.cmt-deadline--past strong {
  color: #9a3a35;
}

.cmt-deadline--today,
.cmt-deadline--today strong {
  color: #8b5d09;
}

.cmt-post-action {
  margin-top: auto;
  padding-top: 15px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cmt-post-actions {
  position: relative;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

.cmt-post-actions .cmt-post-action {
  margin-top: 0;
  padding-top: 0;
}

.cmt-save-button,
.cmt-copy-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--cmt-line);
  border-radius: 8px;
  background: var(--cmt-white);
  color: var(--cmt-navy);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.cmt-save-button:hover,
.cmt-copy-link:hover,
.cmt-save-button.is-saved {
  border-color: var(--cmt-teal);
  background: #f1f9f8;
  color: var(--cmt-teal);
}

.cmt-save-status,
.cmt-copy-status {
  color: var(--cmt-muted);
  font-size: 11px;
}

.cmt-saved-page {
  padding-top: 34px;
}

.cmt-saved-page-heading {
  margin-bottom: 24px;
}

.cmt-saved-page-heading h1 {
  margin: 6px 0 8px;
  color: var(--cmt-navy);
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.cmt-saved-page-heading p {
  margin: 0;
  color: var(--cmt-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cmt-saved-list {
  display: grid;
  gap: 14px;
}

.cmt-saved-empty {
  margin: 0;
  border: 1px dashed var(--cmt-line);
  border-radius: var(--cmt-radius);
  background: var(--cmt-white);
  color: var(--cmt-muted);
  line-height: 1.65;
  padding: 26px;
}

.cmt-saved-note {
  margin: 0;
  color: var(--cmt-muted);
  font-size: 12px;
}

.cmt-sidebar {
  display: grid;
  gap: 16px;
}

.cmt-sidebar-panel {
  border: 1px solid var(--cmt-line);
  border-radius: var(--cmt-radius);
  background: var(--cmt-white);
  padding: 19px;
}

.cmt-sidebar-panel h2 {
  margin: 0 0 13px;
  color: var(--cmt-navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cmt-topic-list,
.cmt-recent-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cmt-topic-list a,
.cmt-recent-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  color: #3d4d60;
  font-size: 13px;
  padding: 8px 9px;
  text-decoration: none;
}

.cmt-topic-list a:hover,
.cmt-recent-list a:hover {
  background: var(--cmt-paper);
  color: var(--cmt-teal);
}

.cmt-recent-list a {
  align-items: flex-start;
  justify-content: flex-start;
}

.cmt-resource-note {
  border-left: 3px solid var(--cmt-gold);
  border-radius: 0 9px 9px 0;
  background: #fff8eb;
  color: #586678;
  font-size: 13px;
  padding: 13px 14px;
}

.cmt-resource-note p {
  margin: 0;
}

.cmt-empty-state {
  border: 1px dashed #c5d2de;
  border-radius: var(--cmt-radius);
  background: var(--cmt-white);
  color: var(--cmt-muted);
  padding: 24px;
}

.cmt-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.cmt-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cmt-line);
  border-radius: 9px;
  background: var(--cmt-white);
  color: var(--cmt-navy);
  font-weight: 700;
  padding: 6px 11px;
  text-decoration: none;
}

.cmt-pagination .page-numbers.current,
.cmt-pagination .page-numbers:hover {
  border-color: var(--cmt-navy);
  background: var(--cmt-navy);
  color: var(--cmt-white);
}

.cmt-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
  color: var(--cmt-muted);
  font-size: 13px;
}

.cmt-breadcrumbs a {
  text-decoration: none;
}

.cmt-article {
  max-width: 850px;
  margin-inline: auto;
  border: 1px solid var(--cmt-line);
  border-radius: 18px;
  background: var(--cmt-white);
  padding: clamp(22px, 5vw, 52px);
}

.cmt-article-header {
  margin-bottom: 25px;
}

.cmt-article h1 {
  margin: 11px 0 15px;
  color: var(--cmt-navy-deep);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.cmt-article-featured {
  overflow: hidden;
  margin: 24px 0;
  border-radius: 12px;
  background: var(--cmt-soft-blue);
}

.cmt-article-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.cmt-article-content {
  color: #26384d;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.cmt-article-content > *:first-child {
  margin-top: 0;
}

.cmt-article-content h2,
.cmt-article-content h3,
.cmt-article-content h4 {
  margin-top: 1.8em;
  color: var(--cmt-navy);
  font-weight: 800;
  line-height: 1.3;
}

.cmt-article-content img,
.cmt-article-content video,
.cmt-article-content iframe {
  max-width: 100%;
}

.cmt-article-content img {
  height: auto;
}

.cmt-article-content a {
  overflow-wrap: anywhere;
}

.cmt-article-content blockquote {
  margin-inline: 0;
  border-left: 3px solid var(--cmt-teal);
  color: #52647a;
  padding: 8px 20px;
}

.cmt-article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--cmt-line);
}

.cmt-share-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--cmt-line);
  border-radius: 8px;
  color: var(--cmt-navy);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  text-decoration: none;
}

.cmt-share-link:hover {
  border-color: var(--cmt-teal);
  color: var(--cmt-teal);
}

.cmt-article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.cmt-article-navigation a {
  min-width: 0;
  border: 1px solid var(--cmt-line);
  border-radius: 12px;
  background: var(--cmt-white);
  color: var(--cmt-navy);
  padding: 14px;
  text-decoration: none;
}

.cmt-article-navigation small {
  display: block;
  margin-bottom: 4px;
  color: var(--cmt-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.cmt-related {
  margin-top: 30px;
}

.cmt-related .cmt-post-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cmt-related .cmt-post-card {
  grid-template-columns: 1fr;
}

.cmt-related .cmt-post-media,
.cmt-related .cmt-post-media img {
  min-height: 145px;
  max-height: 190px;
}

.cmt-site-footer {
  border-top: 1px solid var(--cmt-line);
  background: var(--cmt-navy-deep);
  color: #dbe6ef;
  padding: 34px 0;
}

.cmt-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cmt-footer-brand {
  color: var(--cmt-white);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.cmt-footer-inner p {
  margin: 0;
  color: #b9c9d8;
  font-size: 13px;
}

.cmt-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.cmt-footer-links a {
  color: #dbe6ef;
  font-size: 13px;
  text-decoration: none;
}

.cmt-footer-links a:hover {
  color: var(--cmt-white);
  text-decoration: underline;
}

.cmt-404 {
  max-width: 720px;
  margin: 30px auto;
  border: 1px solid var(--cmt-line);
  border-radius: 18px;
  background: var(--cmt-white);
  padding: clamp(25px, 5vw, 50px);
  text-align: center;
}

.cmt-404 h1 {
  margin: 0 0 10px;
  color: var(--cmt-navy);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
}

@media (min-width: 1100px) {
  .cmt-header-search {
    display: none;
  }
}

@media (max-width: 1099px) {
  .cmt-header-inner {
    flex-wrap: wrap;
    min-height: 70px;
  }

  .cmt-saved-nav {
    order: 2;
    margin-left: auto;
  }

  .cmt-menu-toggle {
    order: 3;
    display: inline-flex;
    margin-left: 0;
  }

  .cmt-primary-nav {
    order: 4;
    display: none;
    width: 100%;
    padding: 0 0 13px;
  }

  .cmt-primary-nav.is-open {
    display: block;
  }

  .cmt-primary-nav ul {
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
  }

  .cmt-primary-nav li {
    flex: 1 1 150px;
  }

  .cmt-primary-nav a {
    width: 100%;
    justify-content: flex-start;
    background: var(--cmt-paper);
  }
}

@media (max-width: 820px) {
  .cmt-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cmt-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cmt-header-inner,
  .cmt-content-shell,
  .cmt-footer-inner {
    width: min(calc(100% - 28px), var(--cmt-content-width));
  }

  .cmt-header-inner {
    gap: 12px;
  }

  .cmt-saved-nav {
    min-height: 38px;
    padding: 8px;
  }

  .cmt-saved-nav-label {
    display: none;
  }

  .cmt-brand {
    font-size: 18px;
  }

  .cmt-brand-mark {
    width: 34px;
    height: 34px;
  }

  .cmt-brand-name small {
    font-size: 9px;
  }

  .cmt-header-search {
    width: min(calc(100% - 28px), var(--cmt-content-width));
    padding-bottom: 12px;
  }

  .cmt-main {
    padding: 16px 0 42px;
  }

  .cmt-hero {
    border-radius: 15px;
    padding: 28px 21px;
  }

  .cmt-hero h1 {
    font-size: clamp(32px, 10vw, 45px);
  }

  .cmt-hero-search {
    flex-direction: column;
  }

  .cmt-hero-search .cmt-button {
    width: 100%;
  }

  .cmt-content-grid {
    gap: 22px;
    margin-top: 26px;
  }

  .cmt-post-card {
    grid-template-columns: 1fr;
  }

  .cmt-saved-card .cmt-post-media {
    min-height: 150px;
  }

  .cmt-post-media,
  .cmt-post-media img {
    min-height: 190px;
    max-height: 240px;
  }

  .cmt-post-copy {
    padding: 17px;
  }

  .cmt-sidebar {
    grid-template-columns: 1fr;
  }

  .cmt-related .cmt-post-list {
    grid-template-columns: 1fr;
  }

  .cmt-article-navigation {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =====================================================================
   v1.1 refresh: job-board look. Later rules intentionally override above.
   ===================================================================== */
a:hover { color: var(--cmt-navy); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.cmt-icon { flex: none; vertical-align: -3px; }
.cmt-eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* Header: slimmer, header search hidden where the hero already has one */
.cmt-header-inner { min-height: 68px; }
.cmt-site-header { box-shadow: 0 1px 0 var(--cmt-line); }
.home:not(.paged) .cmt-header-search { display: none; }
.cmt-primary-nav a { font-size: 13.5px; }
.cmt-primary-nav a:hover,
.cmt-primary-nav .current-menu-item > a { background: var(--cmt-soft-blue); box-shadow: inset 0 -2px 0 var(--cmt-gold); }

/* Buttons */
.cmt-button--gold,
.cmt-hero-search .cmt-button { background: var(--cmt-gold); border-color: var(--cmt-gold); color: var(--cmt-navy-deep); gap: 8px; }
.cmt-button--gold:hover,
.cmt-hero-search .cmt-button:hover { background: #f2b95a; border-color: #f2b95a; color: var(--cmt-navy-deep); transform: none; }

/* Hero: navy panel, white type, gold action */
.cmt-hero { border: 0; border-radius: 18px; background: linear-gradient(135deg, var(--cmt-navy-deep) 0%, #17406b 100%); padding: clamp(28px, 5vw, 56px); }
.cmt-hero::after { border-color: rgb(255 255 255 / 12%); box-shadow: 0 0 0 24px rgb(255 255 255 / 3%), 0 0 0 48px rgb(255 255 255 / 3%); }
.cmt-hero h1 { margin-top: 0; color: #fff; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.04em; }
.cmt-hero p { color: #d3e0ee; }
.cmt-hero-search .cmt-search-input { border: 2px solid #fff; background: #fff; }
.cmt-quick-links a { border-color: rgb(255 255 255 / 40%); background: transparent; color: #fff; min-height: 38px; font-size: 13px; }
.cmt-quick-links a:hover { background: rgb(255 255 255 / 14%); color: #fff; border-color: #fff; }
@media (max-width: 560px) {
  .cmt-hero-search { flex-direction: column; }
  .cmt-hero-search .cmt-button { width: 100%; }
}

/* Section headings: ruled, like a job board */
.cmt-section-heading { padding-bottom: 10px; border-bottom: 2px solid var(--cmt-navy); align-items: flex-end; }
.cmt-section-heading h2 { font-size: clamp(20px, 2.6vw, 25px); }
.cmt-content-grid { gap: 32px; }
.cmt-main { padding-top: 26px; }

/* Job card: employer logo on the left, details on the right */
.cmt-post-list { gap: 12px; }
.cmt-post-card { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 12px; box-shadow: none; }
.cmt-post-card:hover { transform: none; border-color: var(--cmt-navy); box-shadow: 0 2px 12px rgb(16 45 79 / 8%); }
.cmt-post-card.is-closed h3 a { color: var(--cmt-muted); }
.cmt-post-media { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; min-height: 0; border: 1px solid var(--cmt-line); border-radius: 10px; background: #fff; color: var(--cmt-muted); overflow: hidden; }
.cmt-post-media img { width: 100%; height: 100%; min-height: 0; padding: 5px; object-fit: contain; }
.cmt-post-media .cmt-icon { width: 28px; height: 28px; }
.cmt-post-copy { padding: 0; }
.cmt-post-card h3 { margin: 6px 0 6px; font-size: clamp(16px, 1.9vw, 19px); }
.cmt-job-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; padding: 0; list-style: none; color: #44566a; font-size: 13px; }
.cmt-job-meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.cmt-post-excerpt { -webkit-line-clamp: 2; line-clamp: 2; }
.cmt-post-actions { padding-top: 12px; }
.cmt-post-action { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; background: var(--cmt-navy); color: #fff; font-size: 13px; }
.cmt-post-actions .cmt-post-action { padding-top: 0; }
.cmt-post-action:hover { background: var(--cmt-blue); color: #fff; }
.cmt-save-button, .cmt-copy-link, .cmt-share-link { min-height: 40px; }
@media (max-width: 560px) {
  .cmt-post-card { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .cmt-post-media { width: 52px; height: 52px; border-radius: 8px; }
  .cmt-post-media .cmt-icon { width: 22px; height: 22px; }
  .cmt-job-meta { flex-direction: column; gap: 3px; }
}

/* Deadline badges and states */
.cmt-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 800; line-height: 1.5; }
.cmt-badge--past { background: #fbe9e7; color: #9a3a35; }
.cmt-badge--today, .cmt-badge--soon { background: #fff1d6; color: #7a4f00; }
.cmt-deadline--past, .cmt-deadline--past strong { color: #9a3a35; }
.cmt-deadline--soon, .cmt-deadline--today { color: #7a4f00; }
.cmt-closed-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fbe9e7; color: #8a2f2a; font-weight: 700; }

/* Article page */
.cmt-single-grid { margin-top: 0; }
.cmt-single-main { min-width: 0; }
.cmt-article { max-width: none; margin: 0; border-radius: 14px; padding: clamp(18px, 3.5vw, 36px); }
.cmt-article h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.035em; }
.cmt-post-facts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; margin: 18px 0 0; padding: 16px; border: 1px solid var(--cmt-line); border-radius: 12px; background: var(--cmt-paper); }
.cmt-post-facts > div { display: block; }
.cmt-post-facts dt { display: flex; align-items: center; gap: 6px; color: var(--cmt-muted); font-size: 12px; font-weight: 700; }
.cmt-post-facts dd { margin: 3px 0 0; color: var(--cmt-ink); font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.cmt-apply { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid var(--cmt-gold); border-left-width: 6px; border-radius: 12px; background: #fff8eb; }
.cmt-apply p { margin: 0; font-size: 14px; line-height: 1.5; }
.cmt-apply span { color: var(--cmt-muted); font-size: 13px; }
.cmt-article-featured img { width: auto; max-width: 100%; max-height: 420px; margin-inline: auto; object-fit: contain; }
.cmt-article-featured { background: #fff; border: 1px solid var(--cmt-line); }
.cmt-article-content { max-width: 76ch; font-size: 17px; }
.cmt-article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.cmt-article-content td, .cmt-article-content th { border: 1px solid var(--cmt-line); padding: 8px 10px; }
.cmt-article-content ul, .cmt-article-content ol { padding-left: 1.3em; }
.cmt-share-label { align-self: center; font-weight: 700; font-size: 13px; color: var(--cmt-navy); }
.cmt-article-navigation small { text-transform: none; font-size: 12px; }
.cmt-related .cmt-post-list { grid-template-columns: minmax(0, 1fr); }
.cmt-related .cmt-post-card { grid-template-columns: 76px minmax(0, 1fr); }
.cmt-related .cmt-post-media, .cmt-related .cmt-post-media img { min-height: 0; max-height: none; }
.cmt-archive-note { margin-top: 6px; color: var(--cmt-muted); font-size: 14px; }
@media (max-width: 560px) { .cmt-related .cmt-post-card { grid-template-columns: 52px minmax(0, 1fr); } .cmt-apply .cmt-button { width: 100%; } }

/* Sidebar */
.cmt-sidebar { gap: 14px; }
.cmt-sidebar-panel { border-radius: 12px; padding: 16px; }
.cmt-sidebar-panel h2 { margin-bottom: 10px; padding-bottom: 9px; border-bottom: 2px solid var(--cmt-gold); font-size: 16px; }
.cmt-sidebar-panel--accent { background: var(--cmt-navy); border-color: var(--cmt-navy); }
.cmt-sidebar-panel--accent h2 { color: #fff; border-bottom-color: var(--cmt-gold); }
.cmt-topic-list a, .cmt-recent-list a { min-height: 40px; font-size: 14px; line-height: 1.4; }
.cmt-topic-list .cmt-count { color: var(--cmt-muted); font-size: 12px; font-weight: 700; }
.cmt-recent-list a { flex-direction: column; align-items: flex-start; gap: 2px; }
.cmt-recent-list time { color: var(--cmt-muted); font-size: 12px; }
@media (max-width: 820px) { .cmt-sidebar { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 821px) { .cmt-content-grid { grid-template-columns: minmax(0, 1fr) 320px; } }

/* Footer */
.cmt-site-footer { padding: 40px 0 22px; }
.cmt-footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: start; gap: 28px; }
.cmt-footer-about p { margin: 8px 0 14px; max-width: 34ch; }
.cmt-footer-col { display: grid; gap: 4px; align-content: start; }
.cmt-footer-col h2 { margin: 0 0 6px; color: #fff; font-size: 15px; }
.cmt-footer-col a { display: block; padding: 6px 0; color: #dbe6ef; font-size: 14px; text-decoration: none; }
.cmt-footer-col a:hover { color: #fff; text-decoration: underline; }
.cmt-footer-legal { width: min(calc(100% - 40px), var(--cmt-content-width)); margin: 26px auto 0; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 14%); color: #b9c9d8; font-size: 12.5px; }
@media (max-width: 700px) { .cmt-footer-inner { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =====================================================================
   v1.2: logo, sticky header, category tiles, closing soon, New badge, back to top
   ===================================================================== */
body, body .site-body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html { scroll-padding-top: 84px; }

.cmt-logo-mark { display: block; flex: none; width: 40px; height: 40px; }
.cmt-brand-name > span { font-size: 19px; }
.cmt-footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.cmt-footer-brand .cmt-logo-mark { width: 34px; height: 34px; }

/* Sticky header */
.cmt-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .cmt-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cmt-site-header { top: 46px; } }
.cmt-search-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--cmt-line); border-radius: 9px; background: #fff; color: var(--cmt-navy); cursor: pointer; }
.cmt-search-toggle .cmt-icon { width: 20px; height: 20px; }
@media (max-width: 1099px) {
  .cmt-header-inner { flex-wrap: wrap; row-gap: 0; min-height: 64px; }
  .cmt-search-toggle { display: inline-flex; order: 1; margin-left: auto; }
  .cmt-saved-nav { order: 2; margin-left: 0; }
  .cmt-header-search { display: none; padding-top: 2px; }
  .cmt-header-search.is-open { display: flex; }
  .cmt-primary-nav.is-open { max-height: calc(100vh - 120px); overflow-y: auto; }
  .home:not(.paged) .cmt-search-toggle { display: none; }
  .home:not(.paged) .cmt-saved-nav { margin-left: auto; }
}

/* Category tiles */
.cmt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.cmt-tile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--cmt-line); border-radius: 12px; background: #fff; color: var(--cmt-navy); text-decoration: none; }
.cmt-tile:hover { border-color: var(--cmt-navy); color: var(--cmt-navy); box-shadow: 0 2px 12px rgb(16 45 79 / 8%); }
.cmt-tile-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--cmt-soft-blue); color: var(--cmt-navy); }
.cmt-tile-icon .cmt-icon { width: 20px; height: 20px; }
.cmt-tile-text { display: grid; line-height: 1.3; }
.cmt-tile-text strong { font-size: 15px; }
.cmt-tile-text small { color: var(--cmt-muted); font-size: 12px; }
@media (max-width: 520px) { .cmt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmt-tile { padding: 10px; gap: 9px; } .cmt-tile-icon { width: 34px; height: 34px; } }

/* Closing soon */
.cmt-closing-list { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--cmt-line); border-left: 5px solid var(--cmt-gold); border-radius: 12px; background: #fff; overflow: hidden; }
.cmt-closing-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--cmt-line); margin: 0; }
.cmt-closing-list li:first-child { border-top: 0; }
.cmt-closing-list a { min-width: 0; color: var(--cmt-navy); font-size: 14.5px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.cmt-closing-list a:hover { text-decoration: underline; }
.cmt-closing-list .cmt-badge { flex: none; }
@media (max-width: 520px) { .cmt-closing-list li { align-items: flex-start; flex-direction: column; gap: 6px; } }

/* New badge */
.cmt-badge--new { background: #def3f1; color: #0b5f5f; }

/* Back to top */
.cmt-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--cmt-navy); color: #fff; box-shadow: 0 4px 14px rgb(16 45 79 / 30%); cursor: pointer; }
.cmt-to-top[hidden] { display: none; }
.cmt-to-top:hover { background: var(--cmt-blue); }

/* Ads (theme ad manager) */
.cmt-ad { clear: both; margin: 18px 0; text-align: center; overflow: hidden; max-width: 100%; }
.cmt-ad-label { display: block; margin-bottom: 4px; color: var(--cmt-muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.cmt-ad-inner { min-height: 1px; }
.cmt-ad--header-below, .cmt-ad--above-footer { max-width: var(--cmt-content-width); margin-left: auto; margin-right: auto; padding: 0 16px; }
.cmt-post-list > .cmt-ad { grid-column: 1 / -1; margin: 6px 0; }
.cmt-sidebar > .cmt-ad { margin: 0; }
@media (max-width: 820px) { .cmt-ad--desktop { display: none; } }
@media (min-width: 821px) { .cmt-ad--mobile { display: none; } }

/* =====================================================================
   v1.4: mobile-first UX pass + extra ad positions. Additive only.
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { -webkit-tap-highlight-color: rgb(16 45 79 / 12%); }
a, button, .cmt-button, input { touch-action: manipulation; }

/* Header: hide on scroll down, menu button with icon */
.cmt-site-header { transition: transform 220ms ease; }
.cmt-site-header.is-hidden { transform: translateY(-100%); }
.cmt-menu-icon { position: relative; display: inline-block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: background-color 150ms ease; }
.cmt-menu-icon::before, .cmt-menu-icon::after { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; content: ""; transition: transform 200ms ease; }
.cmt-menu-icon::before { top: -6px; }
.cmt-menu-icon::after { top: 6px; }
.cmt-menu-toggle[aria-expanded="true"] .cmt-menu-icon { background: transparent; }
.cmt-menu-toggle[aria-expanded="true"] .cmt-menu-icon::before { transform: translateY(6px) rotate(45deg); }
.cmt-menu-toggle[aria-expanded="true"] .cmt-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .cmt-menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; }
  .cmt-primary-nav.is-open { padding: 10px 0 14px; border-top: 1px solid var(--cmt-line); }
  .cmt-primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cmt-primary-nav li { flex: none; }
  .cmt-primary-nav a { min-height: 48px; border: 1px solid var(--cmt-line); border-radius: 10px; background: #fff; font-size: 14.5px; padding: 8px 14px; }
}
@media (max-width: 420px) { .cmt-primary-nav ul { grid-template-columns: minmax(0, 1fr); } }

/* Phones */
@media (max-width: 620px) {
  .cmt-search-input, .cmt-hero-search .cmt-search-input { font-size: 16px; } /* stops iOS zoom on focus */
  .cmt-header-search form { width: 100%; }
  .cmt-header-search button { min-height: 44px; }

  .cmt-hero { padding: 22px 18px; border-radius: 14px; }
  .cmt-hero h1 { margin-bottom: 10px; font-size: clamp(25px, 7.6vw, 32px); line-height: 1.16; }
  .cmt-hero p { font-size: 15px; line-height: 1.55; }
  .cmt-hero-search { margin-top: 18px; gap: 10px; }
  .cmt-hero-search .cmt-search-input, .cmt-hero-search .cmt-button { min-height: 50px; }
  .cmt-quick-links { flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding: 2px 18px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cmt-quick-links::-webkit-scrollbar { display: none; }
  .cmt-quick-links a { flex: none; min-height: 40px; padding-inline: 14px; white-space: nowrap; scroll-snap-align: start; }

  .cmt-tiles { display: flex; gap: 10px; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cmt-tiles::-webkit-scrollbar { display: none; }
  .cmt-tile { flex: 0 0 auto; min-width: 172px; scroll-snap-align: start; }

  .cmt-section-heading { flex-wrap: wrap; gap: 6px 14px; }

  .cmt-breadcrumbs { flex-wrap: nowrap; margin-bottom: 12px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .cmt-breadcrumbs::-webkit-scrollbar { display: none; }
  .cmt-breadcrumbs [aria-current] { min-width: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }

  .cmt-article { margin-inline: -14px; padding: 18px 16px 26px; border-right: 0; border-left: 0; border-radius: 0; }
  .cmt-article h1 { font-size: clamp(24px, 7vw, 30px); line-height: 1.2; }
  .cmt-article-content { font-size: 17px; line-height: 1.75; }
  .cmt-article-content h2 { font-size: 22px; }
  .cmt-article-content h3 { font-size: 19px; }
  .cmt-post-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .cmt-post-facts > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .cmt-post-facts dd { margin: 0; }
  .cmt-apply { padding: 14px; }
  .cmt-apply .cmt-button { min-height: 50px; }

  .cmt-article-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cmt-share-label, .cmt-article-footer .cmt-save-button { grid-column: 1 / -1; }
  .cmt-article-footer .cmt-save-button, .cmt-article-footer .cmt-share-link, .cmt-article-footer .cmt-copy-link { width: 100%; min-height: 46px; justify-content: center; }
  .cmt-copy-status, .cmt-save-status { grid-column: 1 / -1; }
  .cmt-copy-status:empty, .cmt-save-status:empty { display: none; }

  .cmt-pagination { justify-content: center; }
  .cmt-pagination .page-numbers { min-width: 44px; min-height: 44px; }
  .cmt-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
}

/* Job cards: whole card is tappable, bigger action buttons */
@media (max-width: 820px) {
  .cmt-post-card { position: relative; }
  .cmt-post-card h3 a::after { position: absolute; z-index: 1; inset: 0; content: ""; }
  .cmt-post-actions { z-index: 2; }
  .cmt-post-card:active { background: #f8fafc; border-color: var(--cmt-navy); }
}
@media (max-width: 560px) {
  .cmt-post-actions { gap: 8px; }
  .cmt-post-actions .cmt-post-action { flex: 1 1 auto; min-height: 44px; justify-content: center; }
  .cmt-post-actions .cmt-save-button { flex: none; min-width: 44px; min-height: 44px; padding: 0 12px; }
  .cmt-post-actions .cmt-save-button [data-cmt-save-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .cmt-save-status { flex-basis: 100%; }
  .cmt-save-status:empty { display: none; }
}

/* Footer */
@media (max-width: 700px) {
  .cmt-site-footer { padding: 30px 0 20px; }
  .cmt-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .cmt-footer-about { grid-column: 1 / -1; }
  .cmt-footer-col a { display: flex; min-height: 44px; align-items: center; padding: 4px 0; }
  .cmt-footer-legal { width: min(calc(100% - 28px), var(--cmt-content-width)); }
}
@media (max-width: 360px) { .cmt-footer-inner { grid-template-columns: minmax(0, 1fr); } }

/* Mobile action bar (single posts): Save, Share, Apply */
.cmt-action-bar { display: none; }
@media (max-width: 820px) {
  .cmt-action-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; align-items: stretch; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--cmt-line); background: rgb(255 255 255 / 96%); box-shadow: 0 -6px 20px rgb(16 45 79 / 10%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .cmt-bar-btn { display: inline-flex; min-width: 58px; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--cmt-line); border-radius: 10px; background: #fff; color: var(--cmt-navy); cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; line-height: 1.1; padding: 4px 8px; text-decoration: none; }
  .cmt-bar-btn.is-saved { border-color: var(--cmt-teal); background: #f1f9f8; color: var(--cmt-teal); }
  .cmt-bar-primary { display: inline-flex; min-height: 48px; flex: 1; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: var(--cmt-gold); color: var(--cmt-navy-deep); font-size: 15px; font-weight: 800; text-decoration: none; }
  .cmt-bar-primary:hover { background: #f2b95a; color: var(--cmt-navy-deep); }
  body.cmt-has-sticky { padding-bottom: var(--cmt-bottom-space, 0px); }
  .cmt-to-top { bottom: calc(var(--cmt-bottom-space, 0px) + 16px + env(safe-area-inset-bottom, 0px)); }
}

/* Ads: new positions */
.cmt-ad--header-above { max-width: var(--cmt-content-width); margin: 10px auto 0; padding: 0 16px; }
.cmt-ad--before-post { margin: 0 0 14px; }
.cmt-ad--after-post { margin: 18px 0; }
.cmt-article-content .cmt-ad { margin: 26px 0; }
.cmt-site-footer > .cmt-ad { width: min(calc(100% - 28px), var(--cmt-content-width)); max-width: none; padding: 0; margin: 0 auto; }
.cmt-ad--footer-top { margin-bottom: 24px; }
.cmt-ad--footer-bottom { margin-top: 20px; }
.cmt-site-footer .cmt-ad-label { color: #9fb3c6; }

/* Mobile sticky ad (hidden on desktop by the .cmt-ad--mobile rule above) */
.cmt-ad--mobile-sticky { display: none; }
@media (max-width: 820px) {
  .cmt-ad.cmt-ad--mobile-sticky { position: fixed; right: 0; bottom: var(--cmt-bar-h, 0px); left: 0; z-index: 58; display: block; margin: 0; padding: 14px 8px calc(4px + env(safe-area-inset-bottom, 0px)); overflow: visible; border-top: 1px solid var(--cmt-line); background: #fff; box-shadow: 0 -4px 16px rgb(16 45 79 / 10%); }
  body.cmt-has-bar .cmt-ad.cmt-ad--mobile-sticky { padding-bottom: 4px; }
  .cmt-ad--mobile-sticky .cmt-ad-label { position: absolute; top: 2px; left: 8px; margin: 0; font-size: 9px; }
  .cmt-ad--mobile-sticky .cmt-ad-inner { max-height: 104px; overflow: hidden; }
  .cmt-sticky-close { position: absolute; top: -30px; right: 10px; width: 44px; height: 30px; border: 1px solid var(--cmt-line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #fff; color: var(--cmt-navy); cursor: pointer; font-size: 20px; line-height: 1; }
}
@media (min-width: 821px) { .cmt-ad--mobile-sticky, .cmt-action-bar { display: none !important; } }

/* v1.4.1: previous / next article boxes (link was inline, so border and background broke across lines) */
.cmt-article-navigation > div { min-width: 0; }
.cmt-article-navigation a { display: block; height: 100%; min-height: 64px; padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
.cmt-article-navigation a:hover { border-color: var(--cmt-navy); box-shadow: 0 2px 12px rgb(16 45 79 / 8%); }
.cmt-article-navigation a:active { background: #f8fafc; }
.cmt-article-navigation small { display: block; margin-bottom: 6px; color: var(--cmt-teal); font-size: 12px; font-weight: 800; }
.cmt-article-navigation > div:first-child small::before { content: "\2190  "; }
.cmt-article-navigation > div:last-child small::after { content: "  \2192"; }
.cmt-article-navigation > div:last-child a { text-align: right; }
@media (max-width: 620px) { .cmt-article-navigation > div:last-child a { text-align: left; } .cmt-article-navigation > div:empty { display: none; } }

/* v1.4.2: mobile bottom action bar removed from posts */
.cmt-action-bar { display: none !important; }
