/*!
 * Cassiopeia JoomDonation - child template stylesheet (theme.css; named so it cannot shadow the parent's template.css)
 *
 * Loaded after Cassiopeia's template.css, so it only has to override. Plain CSS (custom
 * properties, :has(), logical properties): no build step, no preprocessor.
 *
 *  0. Fonts            6. Header, topbar, navigation     12. Footer
 *  1. Tokens           7. Layout                         13. Joomla: users, content
 *  2. Base type        8. Cards, alerts, tables, tabs    14. Error page, utilities, print
 *  3. Buttons          9. Home: steps and FAQ
 *  4. Forms           10. Breadcrumbs
 *  4. Forms
 *  5. Badges, links
 */

/* ========================================================================== 0. Fonts */
/* Plus Jakarta Sans, variable weight 200-800, self-hosted (latin is preloaded by assets.php) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ======================================================================== 1. Tokens */
:root,
[data-bs-theme="light"] {
  /* Palette: the JoomDonation logo blue does the work; orange is kept for "buy" actions only.
     Neutrals are a cool slate so the blue looks intentional rather than tinted everywhere. */
  --jd-blue: #1769b5;          /* links, primary buttons, focus of attention: 5.6:1 on white */
  --jd-blue-rgb: 23, 105, 181;
  --jd-blue-dark: #11528f;
  --jd-navy: #0c2a47;          /* topbar, footer */
  --jd-orange: #e8621c;        /* the logo orange, for small accents only */
  --jd-cta: #c2410c;           /* purchase button fill: 5.2:1 with white text */
  --jd-cta-dark: #9a3412;
  --jd-ink: #16202c;           /* headings and body */
  --jd-text: #2b3644;          /* long-form text, a step softer than headings */
  --jd-muted: #566375;         /* secondary text: 6.1:1 on white */
  --jd-line: #e2e7ee;
  --jd-line-strong: #c9d2dd;   /* form borders */
  --jd-soft: #f6f8fa;
  --jd-tint: #edf4fb;
  --jd-edge: #bfd5ec;
  --jd-footer: #0b2136;
  --jd-footer-chip: #15324f;
  --jd-on-navy: #cfdbe7;
  --jd-success: #16803c;
  --jd-danger: #b42318;
  --jd-warning: #b54708;
  --jd-focus: #1769b5;

  /* Shape and depth: smaller radii and quieter shadows read as "tool", not "landing page" */
  --jd-radius-sm: 6px;
  --jd-radius: 8px;
  --jd-radius-md: 10px;
  --jd-radius-lg: 14px;
  --jd-shadow-sm: 0 1px 2px rgba(16, 32, 48, .06);
  --jd-shadow-md: 0 4px 12px rgba(16, 32, 48, .08);
  --jd-shadow-lg: 0 12px 32px rgba(16, 32, 48, .12);

  /* Layout */
  --jd-container: 1320px;
  --jd-gutter: clamp(1rem, 3vw, 1.5rem);
  --jd-topbar-h: 2.5rem;
  --jd-bar-h: 4.5rem;

  --jd-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Hooks into Cassiopeia's own variables, so every parent rule picks up the palette */
  --cassiopeia-color-primary: var(--jd-blue);
  --cassiopeia-color-hover: var(--jd-blue-dark);
  --cassiopeia-color-link: var(--jd-blue);
  --cassiopeia-font-family-body: var(--jd-font);
  --cassiopeia-font-family-headings: var(--jd-font);
  --cassiopeia-font-weight-headings: 700;
  --link-color: var(--jd-blue);
  --link-color-rgb: var(--jd-blue-rgb);
  --link-hover-color: var(--jd-blue-dark);
  --link-hover-color-rgb: 15, 76, 133;
  --primary: var(--jd-blue);
  --primary-rgb: var(--jd-blue-rgb);
  --primary-text-emphasis: var(--jd-blue-dark);
  --primary-bg-subtle: var(--jd-tint);
  --primary-border-subtle: var(--jd-edge);
  --success: var(--jd-success);
  --success-rgb: 22, 128, 60;
  --body-color: var(--jd-ink);
  --body-font-family: var(--jd-font);
  --body-bg: #fff;
  --border-color: var(--jd-line);
  --border-radius: var(--jd-radius-sm);
  --border-radius-lg: var(--jd-radius-md);
  --template-bg-light: var(--jd-soft);
  --template-text-dark: var(--jd-ink);
  --template-special-color: var(--jd-navy);
}

/* =================================================================== 2. Base type */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--jd-bar-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--jd-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--jd-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Short pages keep the footer at the bottom of the window */
body.site { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.jd-main { flex: 1 0 auto; }

/* Mobile menu open: stop the page behind it from scrolling */
html.jd-nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--jd-font);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--jd-ink);
  text-wrap: balance;
  margin-block: 0 .6em;
}
/* A modest scale (about 1.2): the demo is a working app, the headings should not shout */
h1, .h1 { font-size: clamp(1.75rem, 2.6vw, 2.15rem); letter-spacing: -.02em; line-height: 1.2; }
h2, .h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -.015em; }
h3, .h3 { font-size: 1.2rem; font-weight: 650; }
h4, .h4 { font-size: 1.05rem; font-weight: 650; }
h5, .h5 { font-size: 1rem; font-weight: 650; }
h6, .h6 { font-size: .85rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }

p { margin-block: 0 1rem; text-wrap: pretty; }
strong, b { font-weight: 700; }
small, .small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--jd-line); opacity: 1; margin-block: 2rem; }
img { max-width: 100%; height: auto; }
code, kbd, samp { font-size: .9em; }

::selection { background: rgba(var(--jd-blue-rgb), .18); }

:focus-visible {
  outline: 3px solid var(--jd-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.lead, .jd-lead { font-size: 1.125rem; color: var(--jd-muted); font-weight: 400; }
.text-muted, .text-body-secondary { color: var(--jd-muted) !important; }

.jd-eyebrow {
  display: block;
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--jd-blue);
}
.jd-eyebrow--light { color: #9cc4ea; }

/* Compact notice, e.g. "Sandbox demo: no real charges" under a page intro */
.jd-notice {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: .45rem .8rem;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--jd-blue-dark);
  background: var(--jd-tint);
  border: 1px solid var(--jd-edge);
  border-radius: var(--jd-radius);
}
.jd-notice .fa-solid { flex: none; color: var(--jd-success); }
.osm-page-intro-text { margin-bottom: 1.25rem; }
.osm-page-intro-text p:has(+ .jd-notice) { margin-bottom: .75rem; }
.osm-page-intro-text .jd-notice:last-child { margin-bottom: 0; }

/* Skip link */
.jd-skip {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 1rem;
  z-index: 2000;
  padding: .75rem 1.1rem;
  font-weight: 700;
  color: var(--jd-ink);
  background: #fff;
  border: 2px solid var(--jd-focus);
  border-radius: 0 0 var(--jd-radius) var(--jd-radius);
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform .15s;
}
.jd-skip:focus { transform: none; }

/* =================================================================== 3. Buttons */
.btn {
  --btn-border-radius: var(--jd-radius);
  font-family: var(--jd-font);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.25;
  min-height: 42px;
  padding: .6rem 1.1rem;
  border-radius: var(--jd-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  text-decoration: none;
  transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn-sm { min-height: 36px; padding: .4rem .85rem; font-size: .9rem; border-radius: var(--jd-radius-sm); }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.05rem; }

.btn-primary {
  --btn-bg: var(--jd-blue);
  --btn-border-color: var(--jd-blue);
  --btn-hover-bg: var(--jd-blue-dark);
  --btn-hover-border-color: var(--jd-blue-dark);
  --btn-active-bg: var(--jd-blue-dark);
  --btn-active-border-color: var(--jd-blue-dark);
  --btn-color: #fff;
  --btn-hover-color: #fff;
  --btn-active-color: #fff;
  background-color: var(--btn-bg);
  border-color: var(--btn-border-color);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible, .btn-primary:active {
  background-color: var(--jd-blue-dark);
  border-color: var(--jd-blue-dark);
  color: #fff;
}

/* Purchase / call-to-action: the orange */
.btn-buy, .btn-cta {
  color: #fff;
  background-color: var(--jd-cta);
  border: 1px solid var(--jd-cta);
}
.btn-buy:hover, .btn-buy:focus-visible, .btn-cta:hover, .btn-cta:focus-visible {
  color: #fff;
  background-color: var(--jd-cta-dark);
  border-color: var(--jd-cta-dark);
}

/* Quiet buttons: white with a hairline border */
.btn-secondary, .btn-outline-secondary, .btn-ghost, .btn-light {
  --btn-bg: #fff;
  --btn-color: var(--jd-ink);
  color: var(--jd-ink);
  background-color: #fff;
  border: 1px solid var(--jd-line-strong);
}
.btn-secondary:hover, .btn-secondary:focus-visible, .btn-outline-secondary:hover, .btn-ghost:hover, .btn-light:hover {
  color: var(--jd-blue);
  background-color: #fff;
  border-color: var(--jd-blue);
}

.btn-outline-primary {
  --btn-color: var(--jd-blue);
  --btn-border-color: var(--jd-blue);
  --btn-hover-bg: var(--jd-blue);
  --btn-hover-border-color: var(--jd-blue);
  --btn-hover-color: #fff;
  border-width: 1px;
}
.btn-success { --btn-bg: var(--jd-success); --btn-border-color: var(--jd-success); --btn-hover-bg: #11692f; --btn-hover-border-color: #11692f; }
.btn-danger { --btn-bg: var(--jd-danger); --btn-border-color: var(--jd-danger); }
.btn-link { font-weight: 600; text-decoration: none; }

.btn[disabled], .btn.disabled { opacity: .55; box-shadow: none; transform: none; }

/* Light outline button for dark backgrounds (hero band, footer CTA) */
.jd-btn-light-outline {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
}
.jd-btn-light-outline:hover, .jd-btn-light-outline:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

/* ===================================================================== 4. Forms */
label, .form-label { font-weight: 500; color: var(--jd-ink); }

.form-control, .form-select, .custom-select, .inputbox,
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="tel"], input[type="url"], input[type="number"], input[type="date"], textarea, select {
  font-family: var(--jd-font);
  font-size: 1rem;
  color: var(--jd-ink);
  background-color: #fff;
  border: 1px solid var(--jd-line-strong);
  border-radius: var(--jd-radius-sm);
  min-height: 42px;
  padding: .5rem .75rem;
  box-shadow: var(--jd-shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
textarea.form-control, textarea { min-height: 7rem; }
select.form-select, select { padding-inline-end: 2.25rem; }

.form-control:hover, .form-select:hover, textarea:hover, select:hover { border-color: #a4b2c2; }
.form-control:focus, .form-select:focus, textarea:focus, select:focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus {
  border-color: var(--jd-blue);
  box-shadow: 0 0 0 3px rgba(var(--jd-blue-rgb), .18);
  outline: 0;
}
::placeholder { color: #7a8a9c; opacity: 1; }
.form-control[readonly], input[readonly] { background-color: var(--jd-soft); }
.form-control:disabled, .form-select:disabled { background-color: var(--jd-soft); color: #7a8a9c; }

.form-check-input, input[type="checkbox"], input[type="radio"] { accent-color: var(--jd-blue); }
.form-check-input { width: 1.1rem; height: 1.1rem; margin-top: .22rem; border: 1px solid #98a7b8; box-shadow: none; min-height: 0; }
.form-check-input:checked { background-color: var(--jd-blue); border-color: var(--jd-blue); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(var(--jd-blue-rgb), .16); border-color: var(--jd-blue); }

.input-group-text {
  font-weight: 500;
  color: var(--jd-muted);
  background: var(--jd-soft);
  border: 1px solid var(--jd-line-strong);
  border-radius: var(--jd-radius-sm);
}
.input-group > .form-control, .input-group > .form-select { min-width: 0; }
.input-group > :not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }
.input-group > :not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend {
  float: none;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0 0 .6rem;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--jd-ink);
  border-bottom: 1px solid var(--jd-line);
}

/* Membership Pro forms: section headings get room to breathe and a clear rule */
.osm-container .osm-heading { margin: 2.25rem 0 1.25rem; padding-bottom: .6rem; border-bottom: 1px solid var(--jd-line); }
.osm-container h2.osm-heading { font-size: 1.35rem; }
.osm-container h3.osm-heading { font-size: 1.1rem; font-weight: 650; }
.osm-container h2.osm-heading + h3.osm-heading { margin-top: 0; border-bottom: 0; padding-bottom: 0; color: var(--jd-muted); }
.osm-container .osm-page-title { margin-bottom: .5rem; }
.osm-container .form-group, .osm-container .control-group { margin-bottom: 1rem; }

/* ---- Membership Pro: subscription form (#osm-signup-page) ----
   Fields use form-control / form-select (set per field in Custom Fields), so they fill their
   column; the form itself is capped so that column stays a comfortable reading width. */
#osm-signup-page { max-width: 52rem; }
:is(#osm-signup-page, #osm-signup-page-columns) .form-control-label { font-weight: 500; color: var(--jd-ink); }
:is(#osm-signup-page, #osm-signup-page-columns) .form-control-label:is(label, div) { padding-top: .55rem; }
:is(#osm-signup-page, #osm-signup-page-columns) textarea.form-control { min-height: 6rem; }
/* The extension sizes a few built-in controls with input-* widths: let them follow the column */
:is(#osm-signup-page, #osm-signup-page-columns) :is(input, select, textarea):is(.input-small, .input-medium, .input-large, .input-xlarge, .input-xxlarge):not(.input-group > *) { width: 100% !important; }
:is(#osm-signup-page, #osm-signup-page-columns) .input-group > :is(.input-small, .input-medium, .input-large, .input-xlarge, .input-xxlarge):not([readonly]) { width: 1% !important; flex: 1 1 auto; }
:is(#osm-signup-page, #osm-signup-page-columns) .password-group .input-group { flex-wrap: nowrap; }
:is(#osm-signup-page, #osm-signup-page-columns) #tr_exp_date select { width: auto !important; min-width: 6.5rem; display: inline-block; margin-inline-end: .5rem; }

/* Existing user? A compact login row: Username | Password | Login */
#osm_login_form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 0 1rem;
  align-items: end;
}
#osm_login_form > :not(.form-group) { grid-column: 1 / -1; }
#osm_login_form > .form-group { margin: 0 0 .25rem; }
#osm_login_form > .form-group > [class*="col-"] { flex: 0 0 100%; max-width: 100%; width: 100%; padding-inline: 0; }
#osm-signup-page #osm_login_form > .form-group > .form-control-label { padding-top: 0; margin-bottom: .35rem; }
#osm_login_form > .form-group > .form-control-label:empty { display: none; }
#osm_login_form .input-group { flex-wrap: nowrap; }
@media (max-width: 767.98px) {
  #osm_login_form { grid-template-columns: minmax(0, 1fr); }
}

/* Calculated amounts are read-only inputs: show them as an order summary, not as fields */
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly]) { flex-wrap: nowrap; gap: 1rem; margin-inline: 0; margin-bottom: 0; padding-block: .55rem; border-bottom: 1px dashed var(--jd-line-strong); align-items: center; }
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly]) > .form-control-label { flex: 1 1 auto; width: auto; max-width: none; padding-top: 0; color: var(--jd-muted); }
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly]) > .form-control-label label { font-weight: 400; color: inherit; margin: 0; }
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly]) > .eb-form-control { flex: 0 0 auto; width: auto; max-width: none; }
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly]) > * { padding-inline: 0; }
:is(#osm-signup-page, #osm-signup-page-columns) .input-group:has(input[readonly]) { justify-content: flex-end; flex-wrap: nowrap; }
:is(#osm-signup-page, #osm-signup-page-columns) .input-group:has(input[readonly]) > .input-group-text {
  min-height: 0;
  padding: 0 .15rem 0 0;
  line-height: 1.5;
  font-weight: 500;
  color: var(--jd-ink);
  background: none;
  border: 0;
}
:is(#osm-signup-page, #osm-signup-page-columns) .input-group > input[readonly].form-control,
:is(#osm-signup-page, #osm-signup-page-columns) .input-group > input[readonly] {
  flex: 0 1 auto;
  width: 5.5rem !important;  /* beats the extension's input-small width, also !important */
  min-width: 3ch;
  min-height: 0;
  line-height: 1.5;
  padding: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--jd-ink);
  background: none;
  border: 0;
  box-shadow: none;
}
/* The total: bigger, bolder, a solid rule above */
/* (matched on the input: gross_amount, regular_gross_amount, trial_gross_amount...) */
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly][id$="gross_amount"]) {
  margin-top: .25rem;
  padding-block: .8rem;
  border-top: 2px solid var(--jd-ink);
  border-bottom: 0;
}
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly][id$="gross_amount"]) > .form-control-label,
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly][id$="gross_amount"]) > .form-control-label label { font-weight: 650; color: var(--jd-ink); }
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly][id$="gross_amount"]) :is(input[readonly], .input-group-text) { font-size: 1.3rem; font-weight: 700; }
:is(#osm-signup-page, #osm-signup-page-columns) .form-group:has(.input-group input[readonly]) + .form-group:not(:has(.input-group input[readonly])) { margin-top: 1.25rem; }

/* Payment methods: full-width tiles with a generous click area */
#osm-payment-method-list { display: grid; gap: .5rem; margin: 0; }
#osm-payment-method-list .osm-payment-method-item { margin: 0; float: none; }
#osm-payment-method-list .osm-payment-method-item > label {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: .6rem .9rem;
  font-weight: 500;
  color: var(--jd-ink);
  background: #fff;
  border: 1px solid var(--jd-line-strong);
  border-radius: var(--jd-radius);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
#osm-payment-method-list .osm-payment-method-item > label:hover { border-color: #a4b2c2; }
#osm-payment-method-list .osm-payment-method-item > label:has(input:checked) {
  border-color: var(--jd-blue);
  background: var(--jd-tint);
  box-shadow: 0 0 0 1px var(--jd-blue);
}
#osm-payment-method-list input[type="radio"] { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; }
#osm-payment-method-list img { max-height: 24px; width: auto; margin-inline-start: auto; }

/* Submit */
:is(#osm-signup-page, #osm-signup-page-columns) .form-actions { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--jd-line); }
:is(#osm-signup-page, #osm-signup-page-columns) .form-actions .btn { min-width: 14rem; min-height: 48px; }

/* Joomla login page (Member Login): the demo-account hint reads as a notice */
.com-users-login__description {
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
  font-size: .95rem;
  color: var(--jd-blue-dark);
  background: var(--jd-tint);
  border: 1px solid var(--jd-edge);
  border-radius: var(--jd-radius);
}

.form-text, .form-control-feedback, .hasPopover { color: var(--jd-muted); font-size: .875rem; }
.star, .required, span.star { color: var(--jd-danger); }
.invalid, .is-invalid, .form-control.invalid, .form-control-danger { border-color: var(--jd-danger) !important; }
.invalid:focus, .is-invalid:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .16); }
.invalid-feedback, label.invalid, span.error, .text-error { color: var(--jd-danger); }

/* ================================================================== 5. Badges, links */
a { text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s, background-color .2s, border-color .2s; }

.badge {
  font-weight: 600;
  border-radius: 999px;
  padding: .35em .75em;
  line-height: 1.2;
}
.badge.bg-info, .badge.bg-secondary, .badge.bg-light, .badge.badge-info, .badge.badge-secondary {
  background-color: var(--jd-tint) !important;
  color: var(--jd-blue-dark) !important;
}
.badge.bg-success { background-color: #dff3e6 !important; color: #0e5a29 !important; }
.badge.bg-danger { background-color: #fde7e4 !important; color: #8f1b11 !important; }
.badge.bg-warning { background-color: #fdf0d7 !important; color: #7a3a06 !important; }

/* ================================================== 6. Header, topbar, navigation */
.jd-container {
  width: 100%;
  max-width: calc(var(--jd-container) + var(--jd-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--jd-gutter);
}
.wrapper-fluid .jd-container { max-width: none; }

.jd-header {
  position: relative;
  z-index: 1030;
}
/* Sticky: the topbar scrolls away, the main bar stays */
.jd-header.is-sticky {
  position: sticky;
  top: 0;
}
.jd-header.is-sticky:has(.jd-topbar) { top: calc(var(--jd-topbar-h) * -1); }

/* Topbar */
.jd-topbar {
  height: var(--jd-topbar-h);
  background: var(--jd-navy);
  color: #a9bacb;
  font-size: .82rem;
}
.jd-topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  white-space: nowrap;
}
.jd-topbar .mod-custom, .jd-topbar .custom { display: contents; }
.jd-topbar__msg { margin: 0 auto 0 0; overflow: hidden; text-overflow: ellipsis; }
.jd-topbar__msg .fa-solid { margin-inline-end: .4rem; color: #9cc4ea; }
.jd-topbar__links { display: flex; align-items: center; margin: 0 0 0 auto; padding: 0; list-style: none; }
.jd-topbar a, .jd-account__button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  color: #c4d3e3;
  text-decoration: none;
}
.jd-topbar a:hover, .jd-topbar a:focus-visible, .jd-account__button:hover { color: #fff; }
.jd-topbar .jd-account {
  display: flex;
  align-items: center;
  margin-inline-start: .35rem;
  padding-inline-start: .6rem;
  border-inline-start: 1px solid rgba(255, 255, 255, .16);
}
.jd-account__hello { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; color: #fff; }
.jd-account__button { background: none; border: 0; font: inherit; cursor: pointer; }

/* Main bar: plain white with a hairline. The logo sits on its natural background and the
   extension's own colours (pricing tables, forms) don't have to compete with a loud header. */
.jd-bar {
  position: relative;
  color: var(--jd-ink);
  background: #fff;
  border-bottom: 1px solid var(--jd-line);
  transition: box-shadow .25s;
}
.jd-header.is-scrolled .jd-bar { box-shadow: 0 4px 16px rgba(16, 32, 48, .08); }

.jd-bar__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--jd-bar-h);
}

/* Brand */
/* Brand: the square mark plus the product name as live text (sharp at any size, uses the site font) */
.jd-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: none;
  color: var(--jd-ink);
  text-decoration: none;
}
.jd-brand:hover { color: var(--jd-ink); }
.jd-brand__logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: none;
  object-fit: contain;
}
.jd-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.jd-brand__name { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.jd-brand__tag { margin-top: .2rem; font-size: .72rem; font-weight: 500; color: var(--jd-muted); white-space: nowrap; }

/* Navigation container */
.jd-nav { display: flex; align-items: center; gap: .75rem; flex: 1 1 auto; min-width: 0; }
.jd-nav__menu { flex: 1 1 auto; min-width: 0; }
.jd-nav__actions { flex: none; margin-inline-start: auto; }
.jd-nav__actions .mod-custom { display: flex; gap: .5rem; }
.jd-nav__actions .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; white-space: nowrap; }

/* Menu list (Joomla's core mod_menu "default" layout) */
.jd-nav .mod-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jd-nav .mod-menu > li { position: relative; display: flex; flex: none; align-items: center; border-radius: var(--jd-radius-sm); }

.jd-nav .mod-menu a,
.jd-nav .mod-menu .mod-menu__heading,
.jd-nav .mod-menu .mod-menu__toggle-sub {
  font-family: var(--jd-font);
  font-size: .9rem;
  font-weight: 500;
  color: var(--jd-text);
  text-decoration: none;
}

/* Top-level items are pills; a parent's link and its chevron behave as one pill */
.jd-nav .mod-menu > li > a,
.jd-nav .mod-menu > li > .mod-menu__heading,
.jd-nav .mod-menu > li > button.mod-menu__toggle-sub:has(> .mod-menu__heading),
.jd-nav .mod-menu > li > .mod-menu__separator {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem .6rem;
  white-space: nowrap;
  border-radius: var(--jd-radius-sm);
}
.jd-nav .mod-menu > li > button.mod-menu__toggle-sub {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .5rem;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  border-radius: var(--jd-radius-sm);
}
/* Heading items: the button wraps the label and the chevron */
.jd-nav .mod-menu > li > button.mod-menu__toggle-sub > .mod-menu__heading { padding: 0; }
/* Link items: button holds only the chevron */
.jd-nav .mod-menu > li.parent > a { padding-inline-end: .2rem; }
.jd-nav .mod-menu > li.parent > a + button.mod-menu__toggle-sub { padding-inline: .1rem .55rem; }

.jd-nav .mod-menu [class^="icon-"], .jd-nav .mod-menu [class*=" icon-"] {
  font-size: .62rem;
  transition: transform .2s;
}
.jd-nav .mod-menu .mod-menu__toggle-sub[aria-expanded="true"] [class^="icon-"] { transform: rotate(180deg); }

/* Cassiopeia underlines every aria-current link; in the bar that stacked with our own state */
.jd-nav .mod-menu a[aria-current],
.jd-nav .mod-menu a:hover { text-decoration: none; }

/* Hover: a neutral wash. Active section: the same shape in the brand tint, blue text.
   No rules or underlines, so nothing competes with the bar's bottom border. */
.jd-nav .mod-menu > li:hover,
.jd-nav .mod-menu > li:focus-within { background: var(--jd-soft); }
.jd-nav .mod-menu > li:hover > *,
.jd-nav .mod-menu > li:focus-within > * { color: var(--jd-ink); }
.jd-nav .mod-menu > li.active { background: var(--jd-tint); }
.jd-nav .mod-menu > li.active > a,
.jd-nav .mod-menu > li.active > button { color: var(--jd-blue-dark); font-weight: 600; }

/* Dropdown panel */
.jd-nav .mod-menu__sub {
  display: none;
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  z-index: 40;
  min-width: 15rem;
  margin: .5rem 0 0;
  padding: .5rem;
  list-style: none;
  font-size: .95rem;
  background: #fff;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius-md);
  box-shadow: var(--jd-shadow-lg);
}
/* Invisible bridge so the pointer can travel from the pill to the panel */
.jd-nav .mod-menu__sub::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: -.6rem;
  height: .6rem;
}
.jd-nav .mod-menu__sub a,
.jd-nav .mod-menu__sub .mod-menu__heading {
  display: block;
  padding: .55rem .8rem;
  font-weight: 500;
  color: var(--jd-ink);
  border-radius: var(--jd-radius-sm);
  line-height: 1.35;
}
.jd-nav .mod-menu__sub a:hover,
.jd-nav .mod-menu__sub a:focus-visible { background: var(--jd-tint); color: var(--jd-blue); }
.jd-nav .mod-menu__sub li.current > a { background: var(--jd-tint); color: var(--jd-blue); font-weight: 600; }
.jd-nav .mod-menu__sub li { position: static; }

/* Links that leave the demo get a small arrow */
.jd-nav .mod-menu__sub a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-inline-start: .35em;
  background: currentColor;
  opacity: .55;
  -webkit-mask: var(--jd-icon-external) center / contain no-repeat;
  mask: var(--jd-icon-external) center / contain no-repeat;
}
:root {
  --jd-icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E");
}

/* Mobile toggle: three bars that turn into a cross */
.jd-nav-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  padding: 0;
  background: #fff;
  border: 1px solid var(--jd-line-strong);
  border-radius: var(--jd-radius);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.jd-nav-toggle:hover { border-color: #a4b2c2; background: var(--jd-soft); }
.jd-nav-toggle__bars,
.jd-nav-toggle__bars::before,
.jd-nav-toggle__bars::after {
  position: absolute;
  inset-inline-start: 50%;
  width: 18px;
  height: 2px;
  background: var(--jd-ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.jd-nav-toggle__bars { top: 50%; margin: -1px 0 0 -9px; }
.jd-nav-toggle__bars::before, .jd-nav-toggle__bars::after { content: ""; margin: 0; inset-inline-start: 0; }
.jd-nav-toggle__bars::before { top: -6px; }
.jd-nav-toggle__bars::after { top: 6px; }
.jd-nav-toggle[aria-expanded="true"] .jd-nav-toggle__bars { background: transparent; }
.jd-nav-toggle[aria-expanded="true"] .jd-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.jd-nav-toggle[aria-expanded="true"] .jd-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Desktop: open dropdowns on hover and keyboard focus, as well as on click (core menu script) */
@media (min-width: 1280px) {
  .jd-nav .mod-menu li.parent:hover > .mod-menu__sub,
  .jd-nav .mod-menu li.parent:focus-within > .mod-menu__sub,
  .jd-nav .mod-menu .mod-menu__sub.show-menu { display: block; }

  /* Long submenus flow into two columns, filled top to bottom so related items stay together */
  .jd-nav .mod-menu li.parent:hover > .mod-menu__sub:has(> li:nth-child(9)),
  .jd-nav .mod-menu li.parent:focus-within > .mod-menu__sub:has(> li:nth-child(9)),
  .jd-nav .mod-menu .mod-menu__sub.show-menu:has(> li:nth-child(9)) {
    display: block;
    column-count: 2;
    column-gap: .5rem;
    min-width: 34rem;
  }
  .jd-nav .mod-menu .mod-menu__sub:has(> li:nth-child(9)) > li { break-inside: avoid; }

  /* The last parents open towards the left so the panel never leaves the viewport */
  .jd-nav .mod-menu > li.parent:nth-last-child(-n+3) > .mod-menu__sub { inset-inline-start: auto; inset-inline-end: 0; }
}

/* Laptops (1280-1399px): the whole menu stays visible, exploring the demo depends on it.
   Slightly smaller text, pills and button make the logo, six dropdowns and the buy button fit. */
@media (min-width: 1280px) and (max-width: 1399.98px) {
  .jd-bar__inner { gap: 1rem; }
  .jd-nav { gap: .5rem; }
  .jd-nav .mod-menu { gap: 0; }
  .jd-nav .mod-menu a,
  .jd-nav .mod-menu .mod-menu__heading,
  .jd-nav .mod-menu .mod-menu__toggle-sub { font-size: .875rem; }
  .jd-nav .mod-menu > li > a,
  .jd-nav .mod-menu > li > button.mod-menu__toggle-sub:has(> .mod-menu__heading) { padding-inline: .45rem; }
  .jd-nav .mod-menu > li.parent > a { padding-inline-end: .15rem; }
  .jd-nav .mod-menu > li.parent > a + button.mod-menu__toggle-sub { padding-inline: .05rem .4rem; }
  .jd-nav__actions .btn { padding-inline: .85rem; font-size: .875rem; }
  .jd-brand__name { font-size: 1.05rem; }
  .jd-brand__logo { height: 32px; }
}

/* Phones, tablets and small laptops: a full-width panel under the bar */
@media (max-width: 1279.98px) {
  .jd-nav-toggle { display: block; }

  .jd-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-height: calc(100vh - var(--jd-bar-h) - var(--jd-topbar-h));
    max-height: calc(100dvh - var(--jd-bar-h) - var(--jd-topbar-h));
    overflow-y: auto;
    padding: .75rem var(--jd-gutter) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--jd-line);
    box-shadow: 0 24px 40px rgba(10, 37, 64, .14);
    overscroll-behavior: contain;
  }
  .jd-nav.is-open { display: flex; }

  .jd-nav .mod-menu a,
  .jd-nav .mod-menu .mod-menu__heading,
  .jd-nav .mod-menu .mod-menu__toggle-sub { color: var(--jd-ink); }
  .jd-nav .mod-menu > li:hover > *, .jd-nav .mod-menu > li:focus-within > * { color: var(--jd-ink); }
  .jd-nav .mod-menu > li.active > a, .jd-nav .mod-menu > li.active > button, .jd-nav .mod-menu > li.current > a { color: var(--jd-blue); }
  .jd-nav .mod-menu > li, .jd-nav .mod-menu > li.active { box-shadow: none; }
  .jd-nav .mod-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .jd-nav .mod-menu > li {
    flex-wrap: wrap;
    border-radius: 0;
    border-bottom: 1px solid var(--jd-line);
  }
  .jd-nav .mod-menu > li:hover, .jd-nav .mod-menu > li:focus-within, .jd-nav .mod-menu > li.active { background: none; box-shadow: none; }
  .jd-nav .mod-menu > li > a { flex: 1 1 0; min-width: 0; padding: .9rem .25rem; }
  .jd-nav .mod-menu > li > button.mod-menu__toggle-sub { padding: .9rem .75rem; min-width: 44px; justify-content: center; }
  .jd-nav .mod-menu > li > button.mod-menu__toggle-sub:has(> .mod-menu__heading) { flex: 1 1 100%; justify-content: space-between; padding-inline: .25rem; }
  .jd-nav .mod-menu > li.parent > a { padding-inline-end: .25rem; }

  /* Sub-menus open inline */
  .jd-nav .mod-menu__sub {
    position: static;
    flex: 1 0 100%;
    min-width: 0;
    margin: 0 0 .75rem;
    padding: 0 0 0 .75rem;
    background: none;
    border: 0;
    border-inline-start: 2px solid var(--jd-tint);
    border-radius: 0;
    box-shadow: none;
  }
  .jd-nav .mod-menu__sub::before { display: none; }
  .jd-nav .mod-menu__sub.show-menu { display: block; }
  .jd-nav .mod-menu__sub a { padding: .6rem .5rem; }

  .jd-nav__actions { margin-inline-start: 0; }
  .jd-topbar__links li:not(:first-child) { display: none; }
  .jd-topbar__msg { display: none; }
  .jd-topbar__inner { justify-content: flex-end; }
  .jd-nav__actions .mod-custom, .jd-nav__actions .btn { width: 100%; }

}
@media (max-width: 575.98px) {
  :root { --jd-bar-h: 4rem; }
  .jd-brand__logo { height: 32px; }
  .jd-brand__name { font-size: 1.05rem; }
  .jd-brand__tag { display: none; }
  .jd-topbar__links { display: none; }
}

/* ===================================================================== 7. Layout */
.jd-main { padding-block: 2.5rem 3.5rem; }
.jd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.jd-content { min-width: 0; }
.jd-aside { min-width: 0; }
.jd-block { margin-block: 4.5rem 0; }
.jd-block:first-child { margin-block-start: 0; }
.jd-layout + .jd-block { margin-block-start: 4.5rem; }

@media (min-width: 992px) {
  .has-sidebar-right .jd-layout { grid-template-columns: minmax(0, 1fr) 20rem; }
  .has-sidebar-left .jd-layout { grid-template-columns: 20rem minmax(0, 1fr); }
  .has-sidebar-left.has-sidebar-right .jd-layout { grid-template-columns: 18rem minmax(0, 1fr) 18rem; }
  .jd-aside { align-self: start; }
}
@media (max-width: 575.98px) { .jd-main { padding-block: 1.5rem 3rem; } .jd-block { margin-block-start: 3rem; } }

main:focus { outline: 0; }

.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================================================== 8. Cards, alerts, tables, tabs */
.card {
  --card-border-color: var(--jd-line);
  --card-border-radius: var(--jd-radius-md);
  --card-cap-bg: var(--jd-soft);
  background: #fff;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius-md);
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.card-header {
  background: var(--jd-soft);
  border-bottom: 1px solid var(--jd-line);
  font-weight: 650;
  color: var(--jd-ink);
  padding: .9rem 1.25rem;
}
.card-body { padding: 1.4rem; }
.card-title { font-size: 1.1rem; margin-bottom: .75rem; }
.jd-aside .card-header {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jd-muted);
}

.alert { border-radius: var(--jd-radius-md); border-width: 1px; padding: 1rem 1.25rem; }
joomla-alert { border-radius: var(--jd-radius-md); }

.table { --table-bg: transparent; --table-border-color: var(--jd-line); margin-bottom: 1.5rem; }
.table > :not(caption) > * > * { padding: .85rem 1rem; vertical-align: middle; }
.table thead th, .table > thead > tr > th {
  background: var(--jd-soft);
  color: var(--jd-muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--jd-line);
  white-space: nowrap;
}
.table-hover > tbody > tr:hover > * { background-color: var(--jd-tint); --table-accent-bg: var(--jd-tint); }
.table-striped > tbody > tr:nth-of-type(odd) > * { --table-accent-bg: transparent; background-color: transparent; }
.table-striped > tbody > tr:nth-of-type(even) > * { background-color: var(--jd-soft); }
.table-responsive, .osm-table-responsive { -webkit-overflow-scrolling: touch; }

.page-link {
  border-radius: var(--jd-radius-sm) !important;
  border: 1px solid var(--jd-line);
  margin-inline: .15rem;
  color: var(--jd-ink);
  font-weight: 600;
}
.page-link:hover { background: var(--jd-tint); color: var(--jd-blue); }
.page-item.active .page-link { background: var(--jd-blue); border-color: var(--jd-blue); color: #fff; }

.nav-tabs { border-bottom: 1px solid var(--jd-line); gap: .25rem; }
.nav-tabs .nav-link {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: var(--jd-radius-sm) var(--jd-radius-sm) 0 0;
  padding: .75rem 1.1rem;
  font-weight: 700;
  color: var(--jd-muted);
}
.nav-tabs .nav-link:hover { color: var(--jd-blue); }
.nav-tabs .nav-link.active { color: var(--jd-blue); border-bottom-color: var(--jd-blue); background: none; }
.nav-pills .nav-link.active { background: var(--jd-tint); color: var(--jd-blue); font-weight: 700; }
joomla-tab [role="tablist"] { border-bottom: 1px solid var(--jd-line); gap: .25rem; }
joomla-tab button[role="tab"] { font-weight: 700; color: var(--jd-muted); border-radius: var(--jd-radius-sm) var(--jd-radius-sm) 0 0; }
joomla-tab button[role="tab"][aria-expanded="true"] { color: var(--jd-blue); border-bottom: 3px solid var(--jd-blue); background: none; }

.accordion {
  --accordion-active-bg: var(--jd-tint);
  --accordion-active-color: var(--jd-blue);
  --accordion-border-color: var(--jd-line);
  --accordion-border-radius: var(--jd-radius-md);
  --accordion-inner-border-radius: var(--jd-radius-md);
  --accordion-btn-focus-box-shadow: 0 0 0 4px rgba(var(--jd-blue-rgb), .2);
}
.accordion-item { border-radius: var(--jd-radius-md) !important; margin-bottom: .75rem; border: 1px solid var(--jd-line); overflow: hidden; }
.accordion-button { font-weight: 600; min-height: 56px; }

/* Membership Pro pricing tables: the extension draws a grey glow and 5px corners; align them
   with the template's cards. Colours stay configurable from the menu item. */
.osm-container .osm-plan {
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius-lg);
  box-shadow: var(--jd-shadow-md);
  overflow: hidden;
}
.osm-container .osm-plan-recommended { box-shadow: var(--jd-shadow-lg); }

/* Type and rules inside the table (its colours come from the menu item; these are not settings) */
.osm-pricing-table .osm-plan .osm-plan-header h2 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: .06em;
}
/* Price: the amount large, the billing period on its own line under it (the extension renders
   "$10<sub>/2 Months</sub>", which reads cramped as a subscript) */
.osm-pricing-table .osm-plan-price { padding: .85rem 1rem .8rem; }
.osm-pricing-table .osm-plan-price h2 { margin: 0; color: #fff; }
.osm-pricing-table .osm-plan-price .price {
  display: block;
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.osm-pricing-table .osm-plan-price .price sub {
  display: block;
  margin-top: .15rem;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  vertical-align: baseline;
  opacity: .9;
}

/* Membership Pro adds 30px above its container; the template's own top padding is enough */
.jd-content > main > .osm-container:first-child { margin-top: 0; padding-top: 0; }
/* Equal-height cards with the buttons on one line, whatever each plan lists
   (all three pricing layouts: table, flat, circle) */
:is(.osm-pricing-table, .osm-pricing-table-flat, .osm-pricing-table-circle) > [class*="col"] { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
:is(.osm-pricing-table, .osm-pricing-table-flat, .osm-pricing-table-circle) .osm-plan { flex: 1 1 auto; display: flex; flex-direction: column; margin-bottom: 0; }
:is(.osm-pricing-table, .osm-pricing-table-flat, .osm-pricing-table-circle) .osm-plan-short-description { flex: 1 1 auto; display: flex; flex-direction: column; }
:is(.osm-pricing-table, .osm-pricing-table-flat, .osm-pricing-table-circle) ul.osm-signup-container { margin-top: auto; }
.osm-pricing-table .osm-plan { background: #fff; }

/* Flat and Circle layouts: the homepage price treatment (amount large, period on its own line),
   white plan titles on the coloured headers. Each layout keeps its own shape. */
:is(.osm-pricing-table-flat, .osm-pricing-table-circle) .osm-plan-price .price {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
:is(.osm-pricing-table-flat, .osm-pricing-table-circle) .osm-plan-price .price sub {
  display: block;
  position: static;
  margin-top: .3rem;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  vertical-align: baseline;
  opacity: .9;
}
.osm-pricing-table-circle .osm-plan-price .price { font-size: 1.85rem; }
.osm-pricing-table-circle .osm-plan-price .price sub { font-size: .8rem; margin-top: .15rem; }
.osm-pricing-table-circle .osm-plan-header .osm-plan-title,
.osm-pricing-table-flat .osm-plan-header .osm-plan-title { color: #fff; }
.osm-pricing-table-circle .osm-plan,
.osm-pricing-table-flat .osm-plan { border-radius: var(--jd-radius-lg); overflow: hidden; }

/* ---- Default and Columns plan lists: clean white cards ---- */
.osm-container .osm-item-wrapper {
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius-lg);
  box-shadow: var(--jd-shadow-sm);
}
.osm-container .osm-item-heading-box { margin: 0 0 1rem; padding: 0; background: none; border: 0; }
.osm-container .osm-item-title { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.osm-container .osm-item-title a { color: var(--jd-ink); text-decoration: none; }
.osm-container .osm-item-title a:hover { color: var(--jd-blue); }
.osm-container .osm-item-description { padding: 0; border: 0; background: none; }
.osm-container .osm-item-description p { color: var(--jd-text); line-height: 1.65; }
.osm-container img.osm-thumb-left {
  float: left;
  width: 64px;
  height: 64px;
  margin: .15rem 1.1rem .5rem 0;
  padding: 0;
  object-fit: contain;
  border: 0;
  border-radius: var(--jd-radius-md);
  background: none;
}
/* Plan facts (duration, price...) as label/value rows instead of a striped, bordered table */
.osm-container .osm-item-description .table {
  margin: 0;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.osm-container .osm-item-description .table > tbody > tr > * {
  padding: .6rem .9rem;
  background: none;
  border: 0;
  border-top: 1px solid var(--jd-line);
  box-shadow: none;
}
.osm-container .osm-item-description .table > tbody > tr:first-child > * { border-top: 0; }
.osm-container .osm-plan-property-label { width: 40%; font-weight: 400; color: var(--jd-muted); }
.osm-container .osm-plan-property-value { font-weight: 600; color: var(--jd-ink); }

/* Actions in one row, with the price beside them (price added by the columns template override) */
.osm-container .osm-taskbar { clear: both; margin-top: 1rem; }
.osm-container .osm-taskbar ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.osm-container .osm-taskbar li { margin: 0; }
.osm-container .osm-taskbar .btn { min-height: 38px; padding: .45rem .95rem; font-size: .9rem; }
.osm-item-price { display: flex; align-items: baseline; gap: .4rem; clear: both; margin: 1rem 0 0; }
.osm-item-price__amount { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--jd-ink); }
.osm-item-price__period { font-size: .9rem; color: var(--jd-muted); }

/* ---- Members directory (columns layout): member cards with label/value rows ---- */
.osm-user-profile-wrapper {
  height: calc(100% - 1.25rem);
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius-lg);
  box-shadow: var(--jd-shadow-sm);
}
.osm-user-profile-wrapper .profile-name { margin-bottom: .6rem; font-size: 1.1rem; font-weight: 700; }
.osm-user-profile-wrapper .profile-name a { color: var(--jd-ink); text-decoration: none; }
.osm-user-profile-wrapper .profile-name a:hover { color: var(--jd-blue); }
.osm-user-profile-wrapper img.oms-avatar { width: 96px; height: 96px; padding: 0; object-fit: cover; border: 0; }
.osm-user-profile-wrapper .table { margin: 0; --table-accent-bg: transparent; }
.osm-user-profile-wrapper .table > tbody > tr > * {
  padding: .4rem 0;
  font-size: .9rem;
  background: none !important;
  border: 0;
  border-top: 1px solid var(--jd-line);
  box-shadow: none !important;
  overflow-wrap: anywhere;
}
.osm-user-profile-wrapper .table > tbody > tr:first-child > * { border-top: 0; }
.osm-user-profile-wrapper .osm-profile-field-title { width: 42%; padding-inline-end: .75rem !important; font-weight: 400; color: var(--jd-muted); }
#osm-members-map { border: 1px solid var(--jd-line); border-radius: var(--jd-radius-lg); }

/* Members List (table layout): small avatars so a screen shows more than three members */
#osm-members-list table img.oms-avatar { width: 56px; height: 56px; padding: 0; object-fit: cover; border: 0; }
#osm-members-list table td:has(> img.oms-avatar),
#osm-members-list table td:has(> a > img.oms-avatar) { width: 80px; }
#osm-members-list table > :not(caption) > * > * { vertical-align: middle; }

/* My Subscriptions / Subscription History: a date never breaks in the middle;
   the cell may break only around "To" */
:is(#my-subscriptions-page, #subscription-history-page) td strong,
:is(#my-subscriptions-page, #subscription-history-page) td.center { white-space: nowrap; }
:is(#my-subscriptions-page, #subscription-history-page) td:has(> strong + strong) { white-space: normal; min-width: 8.5rem; }

/* Columns layout: equal cards; the description-height script is no longer needed for alignment */
.osm-container .row:has(> .osm-item-wrapper) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin: 0 0 1.25rem;
}
/* clearfix pseudo-elements would take grid cells */
.osm-container .row:has(> .osm-item-wrapper)::before,
.osm-container .row:has(> .osm-item-wrapper)::after { display: none; }
.osm-container .row > .osm-item-wrapper { display: flex; flex-direction: column; width: auto; max-width: none; margin: 0; }
.osm-container .row > .osm-item-wrapper > .osm-item-description { display: flex; flex-direction: column; flex: 1 1 auto; }
/* The extension's equal-height script sets a 180px minimum; the grid already keeps buttons aligned */
/* Columns layout: the icon sits above the text, so give it room */
.osm-container .row > .osm-item-wrapper img.osm-thumb-left { margin-bottom: 1.1rem !important; }
.osm-container .row > .osm-item-wrapper .osm-item-description-text { height: auto !important; min-height: 0 !important; flex: 1 1 auto; }
.osm-container .row > .osm-item-wrapper .osm-taskbar { margin-top: .75rem; }
.osm-pricing-table .osm-plan ul li.plan-feature { padding: .55rem 1rem; border-top: 1px solid var(--jd-line); color: var(--jd-text); }
.osm-pricing-table .osm-plan ul li.plan-feature:nth-child(2n) { background: var(--jd-soft); }
.osm-pricing-table .osm-plan ul.osm-signup-container { padding: .9rem 1rem 1.1rem; border-top: 1px solid var(--jd-line); }
.osm-pricing-table .osm-plan .btn { min-width: 9rem; }
.osm-pricing-table .osm-plan-recommended .btn-primary { --btn-bg: var(--jd-cta); background-color: var(--jd-cta); border-color: var(--jd-cta); }
.osm-pricing-table .osm-plan-recommended .btn-primary:hover { background-color: var(--jd-cta-dark); border-color: var(--jd-cta-dark); }
/* "Recommended": a pill in the header instead of the diagonal corner ribbon (which the
   rounded card clips). Its colour is still the menu item's badge colour. */
.osm-pricing-table .osm-plan { position: relative; }
.osm-pricing-table .osm-plan-recommended .plan-recommended {
  inset-inline: auto .75rem;
  top: .7rem;
  z-index: 1;
  margin: 0;
  padding: .1rem .6rem;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
  text-shadow: none;
  border-radius: 999px;
  transform: none;
}

/* ================================================== 9. Home sections: bands, steps and FAQ */
/* Full-width bands for bottom-a / bottom-b: they alternate the page between white and tint,
   so each section reads as its own block instead of one long white column. */
.jd-band { padding-block: 3.5rem; }
.jd-band--tint { background: var(--jd-soft); border-block: 1px solid var(--jd-line); }
.jd-band--tint + .jd-band { border-top: 0; }
@media (max-width: 575.98px) { .jd-band { padding-block: 3rem; } }

/* Section heads are left-aligned, like the page title above them */
.jd-section-head { max-width: 40rem; margin: 0 0 2.25rem; }
.jd-section-head h2 { margin-bottom: .5rem; font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
.jd-section-head__lead { margin: 0; color: var(--jd-muted); font-size: 1.05rem; }

/* Numbered steps */
.jd-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: jd-step;
}
.jd-step { padding: 1.5rem; background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-lg); box-shadow: var(--jd-shadow-sm); }
.jd-step::before {
  counter-increment: jd-step;
  content: counter(jd-step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--jd-blue-dark);
  background: var(--jd-tint);
  border-radius: 50%;
}
.jd-step h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.jd-step p { margin-bottom: .9rem; font-size: .95rem; color: var(--jd-muted); }
.jd-step p:last-child { margin-bottom: 0; }
.jd-step code { padding: .15rem .5rem; font-size: .9rem; color: var(--jd-ink); background: var(--jd-soft); border: 1px solid var(--jd-line); border-radius: 6px; overflow-wrap: anywhere; }
.jd-creds { margin: 0; }
.jd-creds > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem; align-items: center; padding-block: .45rem; border-top: 1px solid var(--jd-line); font-size: .9rem; }
.jd-creds dt { font-weight: 600; color: var(--jd-muted); }
.jd-creds dd { display: flex; align-items: center; gap: .3rem; margin: 0; min-width: 0; }
.jd-creds dd code { min-width: 0; }

/* Copy button added by theme.js next to each credential */
.jd-copy {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: .8rem;
  color: var(--jd-muted);
  background: #fff;
  border: 1px solid var(--jd-line-strong);
  border-radius: var(--jd-radius-sm);
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.jd-copy:hover { color: var(--jd-blue); border-color: var(--jd-blue); }
.jd-copy.is-copied { color: #fff; background: var(--jd-success); border-color: var(--jd-success); }
.jd-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }

/* FAQ: native details elements, one open at a time. On wide screens the heading sits in a
   left column and the questions in a ruled list beside it, so the section is not one tall stack. */
.jd-faq__list { max-width: 52rem; }
@media (min-width: 992px) {
  .jd-faq { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .jd-faq .jd-section-head { margin-bottom: 0; position: sticky; top: calc(var(--jd-bar-h) + 2rem); }
}
.jd-faq__item { margin: 0; background: none; border: 0; border-bottom: 1px solid var(--jd-line); border-radius: 0; }
.jd-faq__item:first-child { border-top: 1px solid var(--jd-line); }
.jd-faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1.1rem .25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--jd-ink);
  cursor: pointer;
  list-style: none;
}
.jd-faq__item > summary:hover { color: var(--jd-blue); }
.jd-faq__item > summary::-webkit-details-marker { display: none; }
.jd-faq__item > summary::after {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background:
    linear-gradient(currentColor, currentColor) center / .75rem 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px .75rem no-repeat;
  transition: transform .2s;
}
.jd-faq__item[open] > summary::after {
  background: linear-gradient(currentColor, currentColor) center / .75rem 1.5px no-repeat;
}
.jd-faq__answer { padding: 0 .25rem 1.25rem; color: var(--jd-muted); line-height: 1.7; max-width: 46rem; }
.jd-faq__answer p:last-child { margin: 0; }
.jd-faq__answer strong { color: var(--jd-ink); }

/* ====================================================================== 10. Breadcrumbs */
.jd-content .mod-breadcrumbs__wrapper { margin: 0 0 1.5rem; }
.jd-content .breadcrumb {
  --breadcrumb-divider-color: #8fa2b7;
  margin: 0;
  padding: 0;
  font-size: .85rem;
  background: none;
  flex-wrap: wrap;
}
.jd-content .breadcrumb a { color: var(--jd-muted); font-weight: 500; text-decoration: none; }
.jd-content .breadcrumb a:hover { color: var(--jd-blue); text-decoration: underline; }
.jd-content .breadcrumb-item.active { color: var(--jd-ink); font-weight: 600; }

/* ======================================================================== 12. Footer */
.jd-footer {
  position: relative;
  margin-top: 0;
  padding-block: 4rem 0;
  color: #9fb1c3;
  background: var(--jd-footer);
}
.jd-footer a { color: #c9d6e3; text-decoration: none; }
.jd-footer a:hover, .jd-footer a:focus-visible { color: #fff; text-decoration: underline; }
.jd-footer :focus-visible { outline-color: #9cc4ea; }

/* Call-to-action band: one flat panel, a hairline lighter than the footer */
.jd-footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-bottom: 3.5rem;
  padding: 2.25rem 2.5rem;
  color: #fff;
  background: var(--jd-footer-chip);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--jd-radius-lg);
}
.jd-footer__cta .mod-custom, .jd-footer__cta .custom { display: contents; }
.jd-cta__text { max-width: 40rem; }
.jd-cta__text h2 { margin-bottom: .5rem; font-size: clamp(1.35rem, 2.2vw, 1.65rem); color: #fff; }
.jd-cta__text p:last-child { margin: 0; color: var(--jd-on-navy); }
.jd-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
/* Buttons keep white text: the footer link colour (.jd-footer a) would otherwise win and drop
   the orange button to 3.5:1 */
.jd-footer a.btn,
.jd-footer a.btn:hover,
.jd-footer a.btn:focus-visible { color: #fff; text-decoration: none; }

/* Brand and link columns: as many as are published, sharing the row */
.jd-footer__cols { display: flex; flex-wrap: wrap; gap: 2.5rem 5rem; padding-bottom: 4rem; }
.jd-footer__brand { flex: 1.6 1 18rem; }
.jd-footer__col { flex: 1 1 11rem; }

.jd-footer .jd-footer__logo { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.jd-footer .jd-footer__logo:hover { text-decoration: none; color: #fff; }
.jd-footer__logo img { display: block; height: 28px; width: auto; }
.jd-footer__brand p { max-width: 22rem; margin: 0; line-height: 1.7; }

.jd-footer__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
}
.jd-footer .mod-menu, .jd-footer ul.mod-list { margin: 0; padding: 0; list-style: none; }
.jd-footer .mod-menu a, .jd-footer ul.mod-list a, .jd-footer .mod-menu .mod-menu__heading {
  display: inline-block;
  padding: .4rem 0;
  min-height: 32px;
}
.jd-footer .mod-menu { display: block; }
.jd-footer .jd-footer__split { columns: 2; column-gap: 2rem; }
.jd-footer .jd-footer__split li { break-inside: avoid; }
.jd-footer a[target="_blank"]:not(.btn)::after {
  content: "";
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-inline-start: .35em;
  background: currentColor;
  opacity: .55;
  -webkit-mask: var(--jd-icon-external) center / contain no-repeat;
  mask: var(--jd-icon-external) center / contain no-repeat;
}

/* Legal row */
.jd-footer__legal { padding-block: 1.75rem 2.25rem; font-size: .875rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.jd-footer__cta + .jd-footer__legal { border-top: 0; padding-top: 0; }
.jd-footer__legal .mod-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; line-height: 1.5; }
.jd-footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 575.98px) {
  .jd-footer { padding-top: 3rem; }
  .jd-footer__cta { padding: 1.5rem; margin-bottom: 2.5rem; }
  .jd-cta__actions { width: 100%; }
  .jd-cta__actions .btn { flex: 1 1 100%; }
  .jd-footer .jd-footer__split { columns: 1; }
  .jd-footer__legal .mod-footer { flex-direction: column; align-items: flex-start; }
}

/* Back to top */
.back-to-top-link {
  background: var(--jd-blue);
  color: #fff;
  border-radius: var(--jd-radius);
  box-shadow: var(--jd-shadow-md);
}
.back-to-top-link:hover { background: var(--jd-blue-dark); color: #fff; }

/* ================================================= 13. Joomla: users, content, modules */
/* com_users: login, registration, reset, remind */
.com-users-login,
.com-users-reset,
.com-users-remind,
.com-users-registration,
.com-users-reset-confirm,
.com-users-reset-complete,
.com-users-profile__edit {
  max-width: 34rem;
  margin-inline: auto;
}
.com-users-registration, .com-users-profile__edit { max-width: 44rem; }

.com-users-login__form,
.com-users-reset .form-validate,
.com-users-remind .form-validate,
.com-users-registration__form,
.com-users-reset-confirm .form-validate,
.com-users-reset-complete .form-validate,
.com-users-profile__edit-form {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius-lg);
  box-shadow: var(--jd-shadow-sm);
}
.com-users-login .control-group,
.com-users-registration .control-group,
.com-users-reset .control-group,
.com-users-remind .control-group { margin-bottom: 1.25rem; }
.com-users-login .control-label label,
.com-users-registration .control-label label,
.com-users-reset .control-label label,
.com-users-remind .control-label label { display: block; margin-bottom: .4rem; }
.com-users-login .input-group { flex-wrap: nowrap; }
.com-users-login .input-group > .btn {
  border: 1.5px solid #cbd7e4;
  border-inline-start: 0;
  background: var(--jd-soft);
  color: var(--jd-muted);
}
.com-users-login .btn-primary,
.com-users-registration .btn-primary,
.com-users-reset .btn-primary,
.com-users-remind .btn-primary { width: 100%; min-height: 48px; }
.com-users-login__options.list-group {
  margin-top: 1.25rem;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius-md);
  overflow: hidden;
}
.com-users-login__options .list-group-item { border: 0; border-bottom: 1px solid var(--jd-line); padding: .8rem 1.1rem; font-weight: 500; text-decoration: none; color: var(--jd-ink); }
.com-users-login__options .list-group-item:last-child { border-bottom: 0; }
.com-users-login__options .list-group-item:hover { background: var(--jd-tint); color: var(--jd-blue); }

/* com_content: articles (the content-restriction demo pages) */
.com-content-article, .item-page { max-width: 52rem; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1, .page-header h2 { margin-bottom: .5rem; }
.article-info { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .88rem; color: var(--jd-muted); }
.com-content-article__body, .com-content-article [itemprop="articleBody"] { font-size: 1.05rem; line-height: 1.75; }
.com-content-article__body img, .item-page img { border-radius: var(--jd-radius-md); }
.com-content-article__body ul, .com-content-article__body ol { padding-inline-start: 1.4rem; margin-bottom: 1rem; }
.com-content-article__body li { margin-bottom: .35rem; }
blockquote { margin: 1.5rem 0; padding: .75rem 1.25rem; color: var(--jd-muted); border-inline-start: 4px solid var(--jd-edge); background: var(--jd-soft); border-radius: 0 var(--jd-radius) var(--jd-radius) 0; }

/* Login module (kept for sites that still publish it in a sidebar) */
.mod-login .mod-login__options { margin: 1rem 0 0; padding: 0; font-size: .9rem; }
.mod-login .mod-login__options li { margin-bottom: .35rem; }
.mod-login .btn-primary { width: 100%; }

/* ================================================ 14. Error page, utilities, print */
.jd-error { max-width: 40rem; margin: 0 auto; padding: 4rem 0 5rem; text-align: center; }
.jd-error__code {
  margin: 0 0 .5rem;
  font-size: clamp(5.5rem, 18vw, 9.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--jd-edge);
}
.jd-error__title { margin-bottom: .75rem; }
.jd-error__text { margin-bottom: 1.75rem; font-size: 1.1rem; color: var(--jd-muted); }
.jd-error__details { margin-top: 2.5rem; font-size: .9rem; color: var(--jd-muted); text-align: start; }
.jd-error__details summary { cursor: pointer; font-weight: 700; }
.jd-error__debug { margin-top: 2rem; text-align: start; overflow: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn-buy:hover { transform: none; }
}

@media print {
  .jd-topbar, .jd-bar, .jd-banner, .jd-footer__cta, .jd-footer__cols, .back-to-top-link, .jd-nav-toggle { display: none !important; }
  .jd-footer { padding: 0; color: #000; background: none; }
  .jd-main { padding: 0; }
  a { color: inherit; text-decoration: underline; }
}

/* Membership status module (template override) */
.jd-status { list-style: none; margin: 0; padding: 0; }
.jd-status__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; align-items: center; padding-block: .6rem; border-top: 1px solid var(--jd-line); }
.jd-status__item:first-child { border-top: 0; padding-top: 0; }
.jd-status__plan { font-weight: 700; color: var(--jd-ink); overflow-wrap: anywhere; }
.jd-status__detail { grid-column: 1 / -1; font-size: .875rem; color: var(--jd-muted); }
.jd-status__badge { font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: #e6f4ea; color: var(--jd-success); white-space: nowrap; }
.jd-status__badge--soon { background: #fdf0e3; color: var(--jd-warning); }
.jd-status__badge--expired { background: #fdeceb; color: var(--jd-danger); }

/* Circle pricing table: the extension centres each card with auto margins, which makes flex items
   shrink to their content, so cards end up different widths. Fill the column instead. */
.osm-pricing-table-circle .osm-plan { width: 100%; max-width: none; margin-inline: 0; }
/* Circle pricing table: the circle hangs 75px below the header; trim the extra air that follows it */
.osm-pricing-table-circle .osm-plan-header { margin-bottom: 85px; }
.osm-pricing-table-circle .osm-plan-short-description { margin-top: 10px; }

/* Plan detail pages: "Why use this plan / Try it" notes */
.jd-plan-notes { clear: both; margin-top: 1.5rem; padding: 1.1rem 1.25rem .2rem; background: var(--jd-tint); border: 1px solid var(--jd-edge); border-radius: var(--jd-radius-md); }
/* When the plan text is shorter than the icon, the box clears the icon; keep a gap under it */
#osm-plan-item .osm-description-details img.osm-thumb-left { margin-bottom: 1.25rem !important; }
.jd-plan-notes h3 { margin: 0 0 .2rem; font-size: 1rem; font-weight: 700; color: var(--jd-ink); }
.jd-plan-notes p { margin: 0 0 1rem; }

/* Content restriction: the "members only" panel shown in place of the protected part of an article */
#restricted_info { position: relative; margin: 2.75rem 0 1.5rem; padding: 0; min-height: 0; background: none; border: 0; font-weight: 400; }
#restricted_info::before { content: ""; position: absolute; left: 0; right: 0; top: -2.75rem; height: 2.75rem; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.jd-lock { padding: 1.5rem; text-align: center; background: var(--jd-tint); border: 1px solid var(--jd-edge); border-radius: var(--jd-radius-lg); }
.jd-lock p { margin: 0 0 .9rem; }
.jd-lock__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jd-blue); }
.jd-lock__title { margin: 0 0 .5rem; font-size: 1.35rem; color: var(--jd-ink); }
.jd-lock__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.jd-lock__note { margin: 0; font-size: .85rem; color: var(--jd-muted); }

/* Renew / upgrade options: selectable tiles, matching the payment method list */
.jd-choices { list-style: none; display: grid; gap: .6rem; max-width: 640px; margin: 0 0 1.5rem; padding: 0; }
.jd-choice { position: relative; margin: 0; }
.jd-choice > input[type="radio"] { position: absolute; top: 50%; left: 1rem; width: 1.1rem; height: 1.1rem; margin: 0; transform: translateY(-50%); }
.jd-choices .jd-choice > label.jd-choice__body {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; margin: 0; padding: .85rem 1.1rem .85rem 3rem;
  background: #fff; border: 1px solid var(--jd-line-strong); border-radius: var(--jd-radius);
  cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.jd-choices .jd-choice > label.jd-choice__body:hover { border-color: #a4b2c2; }
.jd-choices .jd-choice:has(input:checked) > label.jd-choice__body { border-color: var(--jd-blue); background: var(--jd-tint); box-shadow: 0 0 0 1px var(--jd-blue); }
.jd-choices .jd-choice > input:focus-visible + label.jd-choice__body { outline: 2px solid var(--jd-focus); outline-offset: 2px; }
.jd-choice__text { display: grid; gap: .1rem; min-width: 0; }
.jd-choice__title { font-weight: 650; color: var(--jd-ink); }
.jd-choice__meta { font-size: .875rem; color: var(--jd-muted); }
.jd-choice__price { font-size: 1.2rem; font-weight: 700; color: var(--jd-ink); white-space: nowrap; }

/* Membership profile: table alignment by data type. The extension marks several columns "center", which the
   theme turns into left; keep text and dates left, numbers right, and icon/action columns centered. */
#tab_2 :is(th, td):nth-child(3), #tab_3 :is(th, td):nth-child(2) { text-align: right; }
#tab_2 :is(th, td):nth-child(4), #tab_3 :is(th, td):nth-child(3), #my-subscriptions-page :is(th, td):nth-child(4) { text-align: center; }
/* Plain-text labels (avatar, username, passwords) should look like the <label> ones */
.osm-container .form-control-label:not(label) { font-weight: 500; color: var(--jd-ink); }

/* Download IDs page */
.jd-dlid-intro { max-width: 46rem; margin: 0 0 1.25rem; color: var(--jd-text); }
.jd-dlid-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1rem; padding: .75rem 1rem; background: var(--jd-soft); border: 1px solid var(--jd-line); border-radius: var(--jd-radius-md); }
.jd-dlid-generate { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.jd-dlid-bar .btn-toolbar { margin: 0; }
.jd-dlid-table code.jd-copyable { color: var(--jd-ink); background: var(--jd-soft); padding: .15rem .45rem; border-radius: var(--jd-radius-sm); font-size: .9rem; letter-spacing: .02em; word-break: break-all; }
.jd-dlid-table td:has(> code.jd-copyable) { white-space: nowrap; }
.jd-dlid-table td:has(> code.jd-copyable) .jd-copy { margin-inline-start: .5rem; vertical-align: middle; }
.jd-dlid-table .jd-muted { color: var(--jd-muted); }
.jd-dlid-table :is(th, td).jd-dlid-status { text-align: center; }
.jd-dlid-table :is(th, td).jd-dlid-check { width: 2.5rem; text-align: center; }
.jd-dlid-table .icon-publish, .jd-dlid-table .fa-check { color: var(--jd-success); }

/* Members documents page (Title, Document, File Size, Download): same alignment as the profile tabs */
table:has(> thead th.title:first-child + th.title + th.center + th.center:last-child) :is(th, td):nth-child(3) { text-align: right; }
table:has(> thead th.title:first-child + th.title + th.center + th.center:last-child) :is(th, td):nth-child(4) { text-align: center; }

/* Front-end list toolbars (group members, download IDs...): one primary action, the rest quiet */
.osm-container #toolbar { gap: .5rem; flex-wrap: wrap; }
.osm-container #toolbar .btn { background: #fff; color: var(--jd-ink); border: 1px solid var(--jd-line-strong); }
.osm-container #toolbar .btn:hover:not(.disabled), .osm-container #toolbar .btn:focus-visible { color: var(--jd-blue); border-color: var(--jd-blue); background: #fff; }
.osm-container #toolbar .btn.button-new { color: #fff; background: var(--jd-blue); border-color: var(--jd-blue); }
.osm-container #toolbar .btn.button-new:hover:not(.disabled) { color: #fff; background: var(--jd-blue-dark); border-color: var(--jd-blue-dark); }
.osm-container #toolbar .btn.button-delete { color: var(--jd-danger); }
.osm-container #toolbar .btn.button-delete:hover:not(.disabled) { color: var(--jd-danger); border-color: var(--jd-danger); background: #fdeceb; }

/* List search: box, Search (primary) and Clear as one joined control */
.osm-container fieldset.filters { margin: 1rem 0; padding: 0; border: 0; }
.jd-searchgroup { display: flex; align-items: stretch; width: 100%; max-width: 30rem; }
.jd-searchgroup > * { margin: 0; }
.jd-searchgroup > input { flex: 1 1 auto; min-width: 0; min-height: 42px; border-radius: var(--jd-radius) 0 0 var(--jd-radius); }
.jd-searchgroup > .btn { border-radius: 0; }
.jd-searchgroup > .btn + .btn { margin-inline-start: -1px; border-radius: 0 var(--jd-radius) var(--jd-radius) 0; }
.jd-searchgroup > input:focus, .jd-searchgroup > .btn:focus-visible { position: relative; z-index: 1; }

/* Membership profile: Renew and Upgrade side by side on wide screens */
@media (min-width: 992px) {
  #osm-profile-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
  #osm-profile-page > :not(#osm_form_renew, #osm_form_update_membership) { grid-column: 1 / -1; }
  #osm-profile-page > #osm_form_cancel_subscription, #osm-profile-page > #osm_logout_form { display: contents; }
  #osm-profile-page .jd-choices { max-width: none; }
}

/* Group size / price table on the custom-size group plan */
.jd-size-table { max-width: 28rem; margin: 1.25rem 0 0; }
.jd-size-table :is(th, td):not(:first-child) { text-align: right; }

/* Part-of-article restriction demo: promo shown only to non-members */
.jd-promo { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--jd-tint); border: 1px solid var(--jd-edge); border-left: 4px solid var(--jd-blue); border-radius: var(--jd-radius-md); }
.jd-promo p { margin: 0 0 .75rem; }
.jd-promo p:last-child { margin-bottom: 0; }
.jd-promo__title { font-size: 1.1rem; font-weight: 700; color: var(--jd-ink); }
.jd-lock__plans { color: var(--jd-ink); }

/* Whole-article restriction: the extension puts the panel in a .text-info box after the teaser */
.text-info:has(> .jd-lock) { margin-top: 1.5rem; color: inherit; }
.text-info:has(> .jd-lock) .jd-lock__plans { color: var(--jd-ink); }

/* Menu item option "Link Class: jd-col-break" ends a column in a two-column dropdown */
.jd-nav .mod-menu__sub li:has(> a.jd-col-break) { break-after: column; }

/* Group headings inside a dropdown (menu items of type "Heading"): small labels, not links */
.jd-nav .mod-menu__sub li > .mod-menu__heading {
  display: block;
  margin: 0 .8rem .3rem;
  padding: .45rem 0 .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--jd-blue-dark);
  border-bottom: 2px solid var(--jd-tint);
  cursor: default;
  pointer-events: none;
}
.jd-nav .mod-menu__sub li:has(> .mod-menu__heading) { margin-top: .75rem; }
.jd-nav .mod-menu__sub li:first-child:has(> .mod-menu__heading),
.jd-nav .mod-menu__sub li:has(> a.jd-col-break) + li:has(> .mod-menu__heading) { margin-top: 0; }

/* Columns checkout: the account column is narrow, so give its labels a little more room (36/64 instead of 25/75)
   to avoid wrapped labels and a lone "*" on its own line. */
@media (min-width: 768px) {
  #osm-columns-subscription-information .form-group.row > .col-md-3 { flex: 0 0 auto; width: 36%; max-width: 36%; }
  #osm-columns-subscription-information .form-group.row > .col-md-9 { flex: 0 0 auto; width: 64%; max-width: 64%; }
}
