/* Duty public website typography — 26 October 2026.
 * Shared by the PHP templates; no WordPress hook or JavaScript dependency.
 * Preserve component colours, icon fonts, navigation spacing and carousel geometry.
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --duty-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --duty-color-heading: #172c43;
  --duty-color-body: #334155;
  --duty-color-muted: #596b7d;
  --duty-color-link: #154e78;
}

body, button, input, select, textarea {
  font-family: var(--duty-font-main) !important;
}
body {
  color: var(--duty-color-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Text elements only. Never apply a universal font rule to icon elements. */
h1, h2, h3, h4, h5, h6,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
p, .entry-content, .entry-main, .product-title,
.duty-de, #duty-germany-slider, #duty-program-search, #duty-trust-home,
.yamm .nav > li > a, .dropdown-menu > li > a, .light-font,
.btn, .button, .fot-title {
  font-family: var(--duty-font-main) !important;
}
b:not([class]), strong:not([class]) {
  font-family: inherit;
  font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

/* Editorial hierarchy. UI widgets and hero panels keep their own sizes/colours. */
.main-content h1, .entry-content h1 {
  font-size: clamp(28px, 3.5vw, 40px) !important;
  line-height: 1.22 !important;
  letter-spacing: -.025em;
  text-transform: none !important;
  margin: 0 0 20px;
}
.main-content .entry-title, .main-content .product-title {
  font-size: clamp(26px, 3vw, 34px) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: var(--duty-color-heading);
  margin: 0 0 20px;
}
.entry-content h2, .product-info h2, .tab-pane h2,
.duty-de h2, .main-content .product-description h2 {
  font-size: clamp(23px, 2.5vw, 28px) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-transform: none !important;
  margin-top: 30px;
  margin-bottom: 14px;
}
.entry-content h3, .product-info h3:not(.product-title), .tab-pane h3,
.duty-de h3, .main-content .product-description h3 {
  font-size: clamp(18px, 2vw, 21px) !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  text-transform: none !important;
  margin-top: 24px;
  margin-bottom: 10px;
}
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-size: 17px !important;
  line-height: 1.45 !important;
  font-weight: 700;
  text-transform: none;
  margin: 22px 0 10px;
}
.entry-content, .product-info, .tab-pane, .duty-de {
  color: var(--duty-color-body);
}
.entry-content p, .product-info p, .product-description p, .tab-pane p {
  font-size: 16px !important;
  line-height: 1.8 !important;
  margin: 0 0 18px;
  max-width: 78ch;
}
.entry-content p:empty { margin: 0; }
.entry-content [style*='font-family']:not(i):not([class*='icon']):not(.fa) {
  font-family: var(--duty-font-main) !important;
}
.entry-content :is(h1,h2,h3,h4,h5,h6), .tab-pane :is(h2,h3),
.product-description :is(h2,h3) {
  color: var(--duty-color-heading);
}
.entry-content ul:not([class]), .entry-content ol:not([class]),
.product-description ul:not([class]), .product-description ol:not([class]) {
  padding-left: 24px;
  margin: 0 0 20px;
}
.entry-content li:not([class]), .product-description li:not([class]) {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 8px;
}
.entry-content a:not(.btn):not(.button),
.product-description a:not(.btn):not(.button) {
  color: var(--duty-color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.entry-content a:not(.btn):not(.button):hover,
.product-description a:not(.btn):not(.button):hover { color: #0c3657; }

/* Explicit component roles prevent inherited editorial headings from swelling cards. */
.duty-de .de-card h3 {
  font-size: 18px !important;
  margin: 0 0 8px;
  line-height: 1.4 !important;
}
.main-content .post-grid .entry-title {
  font-size: 20px !important;
  margin: 0 0 12px;
}
.main-content .post-grid .entry-content p { font-size: 15px !important; }
.testi-title h4 { font-size: 18px; line-height: 1.5; font-weight: 700; }
.person-text > :is(h1,h2,h3) {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  margin: 12px 0;
}
.person-text p { font-size: 15px; line-height: 1.75; }
.btn, .button, input[type='submit'] { font-weight: 700; letter-spacing: .01em; }
input, select, textarea { font-size: 16px; }
/* The legacy school callback form nests a Bootstrap row without a column. */
#comment-reply-form .row .row { margin-left: 0; margin-right: 0; }

@media (max-width: 600px) {
  .entry-content p, .product-info p, .product-description p, .tab-pane p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
  .entry-content h2, .product-info h2, .tab-pane h2, .duty-de h2 {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-content a, .product-description a { transition: none; }
}
