/*!
 * 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);
}

/* 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; }

/* ================================================== 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; }
}

/* 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; }

/* ================================================== 15. Helpdesk Pro demo guide (home article) */
.jd-intro { max-width: 60rem; margin-bottom: 1.75rem; }
.jd-intro p { font-size: 1.05rem; color: var(--jd-text); }
.jd-roles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); margin-bottom: 2.25rem; }
.jd-role {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius-lg);
  box-shadow: var(--jd-shadow-sm);
}
.jd-role h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .35rem; font-size: 1.15rem; }
.jd-role h2 .fa-solid { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; font-size: .95rem; color: var(--jd-blue); background: var(--jd-tint); border-radius: var(--jd-radius); }
.jd-role > p { margin: 0 0 .75rem; color: var(--jd-muted); font-size: .92rem; }
.jd-role ul { margin: 0 0 1.1rem; padding-left: 1.1rem; font-size: .92rem; color: var(--jd-text); }
.jd-role li { margin-bottom: .25rem; }
.jd-role .jd-creds { margin-top: auto; }
.jd-subhead { margin: 0 0 1rem; font-size: 1.25rem; }
.jd-role 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-subhead ~ .jd-notice { display: flex; }
.jd-role .jd-creds > div { grid-template-columns: 4.6rem minmax(0, 1fr); }
.jd-role .jd-creds code { font-size: .82rem; padding-inline: .4rem; }

/* ================================================== 16. Helpdesk Pro (front end) */
#hdp-container { padding-bottom: 1rem; }
.jd-content label.radio, .jd-content label.checkbox { display: flex; align-items: center; gap: .55rem; margin: 0 0 .35rem; font-weight: 500; cursor: pointer; }
.jd-content label.radio .form-check-input, .jd-content label.checkbox .form-check-input { float: none; margin: 0; flex: none; }
/* Knowledge base: categories as cards */
.hdp-categories-list > .row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 0; }
.hdp-categories-list > .row::before, .hdp-categories-list > .row::after, .hdp-categories-list::after { display: none; }
@media (min-width: 768px) { .hdp-categories-list > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hdp-categories-list .hpd-category-wrapper {
  width: auto; max-width: none; margin: 0; padding: 1.25rem 1.35rem;
  background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-lg); box-shadow: var(--jd-shadow-sm);
}
.hdp-categories-list .hpd-category-wrapper h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .4rem; font-size: 1.15rem; }
.hdp-categories-list .hpd-category-wrapper h3 a { color: var(--jd-ink); text-decoration: none; }
.hdp-categories-list .hpd-category-wrapper h3 a:hover { color: var(--jd-blue); text-decoration: underline; }
.hdp-categories-list .hdp-svg-icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--jd-blue); }
.hdp-categories-list .hdp-articles-count { margin-left: auto; padding: .2rem .55rem; font-size: .75rem; font-weight: 700; color: var(--jd-blue-dark); background: var(--jd-tint); border-radius: 999px; }
.hdp-categories-list .hdp-category-description { margin-bottom: .75rem; color: var(--jd-muted); font-size: .92rem; }
.hdp-categories-list .hdp-category-description p { margin: 0; }
.hdp-categories-list ul.hp-category-articles { margin: 0 !important; padding: 0 !important; list-style: none; border-top: 1px solid var(--jd-line); }
.hp-category-articles li { display: flex; align-items: flex-start; gap: .55rem; padding: .55rem 0; border-bottom: 1px solid var(--jd-line); font-size: .93rem; }
.hp-category-articles li:last-child { border-bottom: 0; }
.hp-category-articles .hdp-svg-icon { flex: none; width: 1rem; height: 1rem; margin-top: .2rem; color: var(--jd-muted); }
.hp-category-articles a { color: var(--jd-text); text-decoration: none; }
.hp-category-articles a:hover { color: var(--jd-blue); text-decoration: underline; }
/* Ticket and article lists: dates stay on one line */
.hdp-container table td { vertical-align: middle; }

/* Count badges (comments, articles): brand tint with readable blue text */
.jd-content .hdp-number-comments-badge,
.jd-content .hdp-container .badge {
  display: inline-block;
  min-width: 1.6rem;
  padding: .2rem .55rem;
  margin-left: .35rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--jd-blue-dark);
  background: var(--jd-tint);
  border: 1px solid var(--jd-edge);
  border-radius: 999px;
  vertical-align: .12em;
}
.jd-content .hdp-categories-list .hdp-articles-count { margin-left: auto; }

/* ================================================== 17. Knowledge base */
.jd-kb { --kb-gap: 1.25rem; }
.jd-kb .hdp-page-title { margin: 0 0 .5rem; }

/* Hero with search */
.jd-kb-hero {
  margin: 0 0 2rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(135deg, var(--jd-navy) 0%, #14456f 100%);
  border-radius: var(--jd-radius-lg);
  color: #fff;
}
.jd-kb-hero .jd-eyebrow { color: #9cc4ea; }
.jd-kb-hero .hdp-page-title { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.jd-kb-hero__lead { max-width: 40rem; margin: 0 0 1.5rem; color: var(--jd-on-navy); font-size: 1.05rem; }

.jd-kb-search { position: relative; display: flex; gap: .5rem; max-width: 40rem; }
.jd-kb-search__icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--jd-muted); pointer-events: none; }
.jd-kb-search__input {
  flex: 1; min-width: 0; min-height: 3rem; padding: .6rem 1rem .6rem 2.6rem;
  font: inherit; color: var(--jd-ink); background: #fff;
  border: 1px solid var(--jd-line-strong); border-radius: var(--jd-radius-md);
}
.jd-kb-search__input:focus { outline: 3px solid rgba(var(--jd-blue-rgb), .35); outline-offset: 1px; border-color: var(--jd-blue); }
.jd-kb-search .btn { min-height: 3rem; padding-inline: 1.4rem; }
.jd-kb-search--compact { margin-bottom: 1rem; max-width: none; }
.jd-kb-search--compact .jd-kb-search__input { min-height: 2.75rem; }
.jd-kb-search--compact .btn { min-height: 2.75rem; }

/* Topic cards */
.jd-kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--kb-gap); margin-bottom: 2.5rem; }
.jd-kb-card {
  display: flex; flex-direction: column; padding: 1.25rem 1.35rem;
  background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-lg); box-shadow: var(--jd-shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.jd-kb-card:hover { border-color: var(--jd-edge); box-shadow: var(--jd-shadow-md); }
.jd-kb-card__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.jd-kb-card__icon { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; color: var(--jd-blue); background: var(--jd-tint); border-radius: var(--jd-radius); font-size: 1rem; }
.jd-kb-card__title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.jd-kb-card__title a { color: var(--jd-ink); text-decoration: none; }
.jd-kb-card__title a:hover { color: var(--jd-blue); text-decoration: underline; }
.jd-kb-card__count { margin-left: auto; padding: .15rem .6rem; font-size: .78rem; font-weight: 700; color: var(--jd-blue-dark); background: var(--jd-tint); border: 1px solid var(--jd-edge); border-radius: 999px; }
.jd-kb-card__desc { margin: 0 0 .75rem; color: var(--jd-muted); font-size: .92rem; }
.jd-kb-card__list { margin: 0 0 1rem; padding: 0; list-style: none; border-top: 1px solid var(--jd-line); }
.jd-kb-card__list li { padding: .5rem 0; border-bottom: 1px solid var(--jd-line); font-size: .93rem; }
.jd-kb-card__list a { color: var(--jd-text); text-decoration: none; }
.jd-kb-card__list a:hover { color: var(--jd-blue); text-decoration: underline; }
.jd-kb-card__more { margin-top: auto; font-size: .9rem; font-weight: 600; text-decoration: none; }
.jd-kb-card__more .fa-solid { font-size: .75rem; transition: translate .15s ease; }
.jd-kb-card__more:hover .fa-solid { translate: 3px 0; }

/* Most read */
.jd-kb-popular { margin-bottom: 2.5rem; }
.jd-kb-popular h2 { margin-bottom: 1rem; font-size: 1.3rem; }
.jd-kb-popular__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 0 var(--kb-gap); margin: 0; padding: 0; list-style: none; counter-reset: kb; }
.jd-kb-popular__list li { display: flex; align-items: baseline; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--jd-line); counter-increment: kb; }
.jd-kb-popular__list li::before { content: counter(kb); flex: none; width: 1.6rem; font-weight: 700; color: var(--jd-blue); }
.jd-kb-popular__list a { flex: 1; min-width: 0; color: var(--jd-ink); font-weight: 500; text-decoration: none; }
.jd-kb-popular__list a:hover { color: var(--jd-blue); text-decoration: underline; }
.jd-kb-popular__hits { flex: none; font-size: .82rem; color: var(--jd-muted); }

/* Call to action */
.jd-kb-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1rem; padding: 1.5rem 1.75rem; background: var(--jd-tint); border: 1px solid var(--jd-edge); border-radius: var(--jd-radius-lg); }
.jd-kb-help h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.jd-kb-help p { margin: 0; color: var(--jd-text); }
.jd-kb-help--inline { margin-top: 2.5rem; padding: 1.15rem 1.35rem; }
.jd-kb-help--inline h2 { font-size: 1.05rem; }

/* Article list */
.jd-kb-head { margin-bottom: 1rem; }
.jd-kb-head__count { margin: 0; color: var(--jd-muted); }
.jd-kb-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.jd-kb-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; font-size: .88rem; font-weight: 600; color: var(--jd-text); text-decoration: none; background: #fff; border: 1px solid var(--jd-line-strong); border-radius: 999px; }
.jd-kb-pill span { font-size: .75rem; font-weight: 700; color: var(--jd-muted); }
.jd-kb-pill:hover { color: var(--jd-blue); border-color: var(--jd-blue); }
.jd-kb-pill.is-active { color: #fff; background: var(--jd-blue); border-color: var(--jd-blue); }
.jd-kb-pill.is-active span { color: #d7e6f6; }
.jd-kb-articles { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.jd-kb-article { padding: 1.15rem 1.35rem; background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-md); transition: border-color .15s ease, box-shadow .15s ease; }
.jd-kb-article:hover { border-color: var(--jd-edge); box-shadow: var(--jd-shadow-sm); }
.jd-kb-article__title { margin: 0 0 .35rem; font-size: 1.12rem; }
.jd-kb-article__title a { color: var(--jd-ink); text-decoration: none; }
.jd-kb-article__title a:hover { color: var(--jd-blue); text-decoration: underline; }
.jd-kb-article__excerpt { margin: 0 0 .6rem; color: var(--jd-text); font-size: .95rem; }
.jd-kb-article__meta, .jd-article__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0; font-size: .82rem; color: var(--jd-muted); }
.jd-kb-article__meta .fa-regular, .jd-article__meta .fa-regular { margin-right: .25rem; }
.jd-kb-empty { padding: 2rem; text-align: center; color: var(--jd-muted); background: var(--jd-soft); border-radius: var(--jd-radius-md); }
.jd-kb-pagination { margin-top: 1.5rem; }

/* Article page */
.jd-article-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 992px) { .jd-article-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; } }
.jd-article__head { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--jd-line); }
.jd-article__topic { display: inline-block; margin-bottom: .6rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
.jd-article__head .hdp-page-title { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.25; }
.jd-article__body { font-size: 1.05rem; line-height: 1.7; color: var(--jd-text); }
.jd-article__body h2 { margin: 2rem 0 .75rem; font-size: 1.3rem; }
.jd-article__body h3 { margin: 1.5rem 0 .5rem; font-size: 1.1rem; }
.jd-article__body ol, .jd-article__body ul { padding-left: 1.4rem; }
.jd-article__body li { margin-bottom: .45rem; }
.jd-article__body li::marker { color: var(--jd-blue); font-weight: 700; }
.jd-article__body code { padding: .1rem .4rem; font-size: .9em; color: var(--jd-ink); background: var(--jd-soft); border: 1px solid var(--jd-line); border-radius: 6px; }
.jd-article__body table { width: 100%; margin: 1.25rem 0; font-size: .95rem; border-collapse: separate; border-spacing: 0; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-md); overflow: hidden; }
.jd-article__body th { padding: .6rem .85rem; text-align: left; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--jd-muted); background: var(--jd-soft); border-bottom: 1px solid var(--jd-line); }
.jd-article__body td { padding: .6rem .85rem; border-top: 1px solid var(--jd-line); vertical-align: top; }
.jd-article__body tbody tr:first-child td { border-top: 0; }
.jd-note { margin: 1.25rem 0; padding: .85rem 1.1rem; color: var(--jd-blue-dark); background: var(--jd-tint); border-left: 4px solid var(--jd-blue); border-radius: 0 var(--jd-radius) var(--jd-radius) 0; }
.jd-article__pager { display: grid; gap: .75rem; margin-top: 2.5rem; }
@media (min-width: 576px) { .jd-article__pager { grid-template-columns: 1fr 1fr; } .jd-article__pager-link--next { grid-column: 2; text-align: right; } }
.jd-article__pager-link { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 1.1rem; text-decoration: none; background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-md); }
.jd-article__pager-link small { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--jd-muted); }
.jd-article__pager-link span { font-weight: 600; color: var(--jd-ink); }
.jd-article__pager-link:hover { border-color: var(--jd-blue); }
.jd-article__pager-link:hover span { color: var(--jd-blue); }

/* Sidebar */
.jd-article-aside { display: grid; gap: 1rem; }
@media (min-width: 992px) { .jd-article-aside { position: sticky; top: 6rem; } }
.jd-article-aside__card { padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-md); box-shadow: var(--jd-shadow-sm); }
.jd-article-aside__card h2 { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jd-muted); }
.jd-article-aside__card ul { margin: 0; padding: 0; list-style: none; }
.jd-article-aside__card li { border-top: 1px solid var(--jd-line); }
.jd-article-aside__card li:first-child { border-top: 0; }
.jd-article-aside__card a { display: block; padding: .5rem .6rem; margin-inline: -.6rem; font-size: .9rem; color: var(--jd-text); text-decoration: none; border-radius: var(--jd-radius-sm); }
.jd-article-aside__card a:hover { color: var(--jd-blue); background: var(--jd-soft); }
.jd-article-aside__card .is-current a { font-weight: 700; color: var(--jd-blue-dark); background: var(--jd-tint); }
.jd-article-aside__back { font-size: .9rem; font-weight: 600; text-decoration: none; }
.jd-kb-search .jd-kb-search__input { padding-left: 2.9rem; }
.jd-kb-search__icon { z-index: 1; }

/* ================================================== 18. Tickets list and submit form */
/* Intro text under the page title (menu item option) */
.hdp-container .hdp-intro-text { max-width: 60rem; margin: 0 0 1.25rem; font-size: 1rem; color: var(--jd-text); }
.hdp-container .hdp-intro-text p { margin: 0; }

/* Filters: one tidy row */
.hdp-tickets-filters { margin-bottom: 1rem; }

/* Ticket table: flat rows, quiet header, readable cells */
.jd-ticket-table { --bs-table-striped-bg: transparent; margin-bottom: 1rem; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-md); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
.jd-ticket-table > :not(caption) > * > * { padding: .85rem 1rem; border-width: 0 0 1px; border-color: var(--jd-line); background: transparent; box-shadow: none; vertical-align: middle; }
.jd-ticket-table > tbody > tr:last-child > * { border-bottom: 0; }
.jd-ticket-table > thead > tr > * { padding-block: .7rem; background: var(--jd-soft); white-space: nowrap; }
.jd-ticket-table thead a { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--jd-muted); text-decoration: none; }
.jd-ticket-table thead a:hover { color: var(--jd-blue); }
.jd-ticket-table > tbody > tr:hover > * { background: var(--jd-tint); }
.jd-ticket-table td { text-align: left; }
.jd-cell-title { min-width: 15rem; }
.jd-cell-title > a { font-weight: 600; color: var(--jd-ink); text-decoration: none; }
.jd-cell-title > a:hover { color: var(--jd-blue); text-decoration: underline; }
.jd-ticket-cat { display: inline-block; margin-top: .3rem; padding: .1rem .55rem; font-size: .75rem; font-weight: 600; color: var(--jd-muted); background: var(--jd-soft); border: 1px solid var(--jd-line); border-radius: 999px; }
.jd-cell-date { white-space: nowrap; }
.jd-cell-date .jd-date { font-weight: 500; color: var(--jd-ink); }
.jd-cell-date .jd-time { display: block; color: var(--jd-muted); font-size: .78rem; }
.jd-cell-id { color: var(--jd-muted); white-space: nowrap; }
.jd-muted { color: var(--jd-muted); }

/* Status and priority badges */
.jd-status, .jd-priority { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; border-radius: 999px; color: var(--jd-muted); background: var(--jd-soft); border: 1px solid var(--jd-line); }
.jd-status::before, .jd-priority::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.jd-status--1 { color: var(--jd-blue-dark); background: var(--jd-tint); border-color: var(--jd-edge); }
.jd-status--2 { color: #8a3b00; background: #fff4e5; border-color: #f6d3a6; }
.jd-status--3 { color: #5a3a9e; background: #f1ecfb; border-color: #d9ccf3; }
.jd-status--4 { color: #566375; background: #eef1f5; border-color: #d9dfe7; }
.jd-priority { text-transform: none; font-weight: 600; letter-spacing: 0; color: var(--jd-text); background: #fff; }
.jd-priority--1, .jd-priority--2 { color: var(--jd-muted); }
.jd-priority--4 { color: #8a3b00; }
.jd-priority--6 { color: var(--jd-danger); font-weight: 700; }

/* Phones: each ticket becomes a card */
@media (max-width: 767.98px) {
  .jd-ticket-table { border: 0; background: transparent; overflow: visible; }
  .jd-ticket-table thead { display: none; }
  .jd-ticket-table, .jd-ticket-table tbody, .jd-ticket-table tr, .jd-ticket-table td { display: block; width: 100%; }
  .jd-ticket-table tbody tr { margin-bottom: .85rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-md); box-shadow: var(--jd-shadow-sm); }
  .jd-ticket-table > tbody > tr:hover > * { background: transparent; }
  .jd-ticket-table > :not(caption) > * > * { padding: .3rem 0; border: 0; }
  .jd-ticket-table td[data-label] { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: right; }
  .jd-ticket-table td[data-label]::before { content: attr(data-label); flex: none; font-size: .78rem; font-weight: 600; color: var(--jd-muted); text-align: left; }
  .jd-cell-title { min-width: 0; padding-bottom: .5rem !important; font-size: 1.05rem; }
  .jd-cell-date .jd-time { display: inline; margin-left: .35rem; }
}

/* Submit ticket: a focused card instead of a full-width form */
#hdp-new-ticket-page { max-width: 58rem; }
#hdp-new-ticket-page .hdp-page-title { margin-bottom: .5rem; }
#hdp-new-ticket-page #hdp_form { padding: clamp(1.1rem, 3vw, 2rem); background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-lg); box-shadow: var(--jd-shadow-sm); }
#hdp-new-ticket-page #hdp_form .form-group.row { margin-bottom: 1.15rem; }
#hdp-new-ticket-page #hdp_form .control-label, #hdp-new-ticket-page #hdp_form label { font-weight: 600; color: var(--jd-ink); }
#hdp-new-ticket-page #hdp_form .form-text, #hdp-new-ticket-page #hdp_form .hint { color: var(--jd-muted); font-size: .85rem; }
#hdp-new-ticket-page #hdp_form .btn-primary { min-height: 2.9rem; padding-inline: 1.6rem; font-weight: 700; }
#hdp-new-ticket-page #hdp_form .dropzone { background: var(--jd-soft); border: 2px dashed var(--jd-edge); border-radius: var(--jd-radius-md); }
#hdp-new-ticket-page #hdp_form .dropzone:hover { background: var(--jd-tint); border-color: var(--jd-blue); }

/* Intro panel above the submit form */
.jd-form-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin: 0 0 1.25rem; padding: 1rem 1.25rem; background: var(--jd-tint); border: 1px solid var(--jd-edge); border-radius: var(--jd-radius-md); }
.jd-form-intro p { flex: 1 1 22rem; margin: 0; color: var(--jd-text); }
.jd-ticket-table.table-striped > tbody > tr:nth-of-type(n) > * { background-color: transparent; }
.jd-ticket-table.table-striped > tbody > tr:nth-of-type(n):hover > * { background-color: var(--jd-tint); }
@media (max-width: 575.98px) {
  .hdp-tickets-filters #hdp-filter-selects { display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; margin-top: .5rem; }
  #hdp-filter-selects .hdp-tickets-filter, #hdp-filter-selects select { width: 100%; min-width: 0; max-width: none; }
  .hdp-tickets-search { width: 100%; }
}

/* ================================================== 19. Demo quick login */
/* Topbar dropdown */
.jd-demo-switch { position: relative; }
.jd-demo-switch__menu > summary {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .75rem;
  color: #c4d3e3; cursor: pointer; list-style: none; user-select: none;
}
.jd-demo-switch__menu > summary::-webkit-details-marker { display: none; }
.jd-demo-switch__menu > summary::after { content: "\f078"; font: var(--fa-font-solid, 900 .6rem "Font Awesome 6 Free"); font-size: .6rem; opacity: .7; }
.jd-demo-switch__menu[open] > summary::after { content: "\f077"; }
.jd-demo-switch__menu > summary:hover, .jd-demo-switch__menu[open] > summary { color: #fff; }
.jd-demo-switch__current { padding: .05rem .55rem; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .16); border-radius: 999px; }
.jd-demo-switch__panel {
  position: absolute; z-index: 1000; top: calc(100% + .35rem); right: 0; width: min(21rem, calc(100vw - 1.5rem));
  padding: .85rem; white-space: normal; color: var(--jd-text);
  background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius-md); box-shadow: var(--jd-shadow-lg);
}
.jd-demo-switch__intro { margin: 0 0 .6rem; font-size: .82rem; color: var(--jd-muted); }
.jd-demo-switch__item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem .75rem; width: 100%; margin: 0 0 .35rem; padding: .6rem .75rem;
  font: inherit; text-align: left; color: var(--jd-ink); background: #fff; border: 1px solid var(--jd-line); border-radius: var(--jd-radius); cursor: pointer;
}
.jd-demo-switch__item:last-child { margin-bottom: 0; }
.jd-demo-switch__item:hover { border-color: var(--jd-blue); background: var(--jd-tint); }
.jd-demo-switch__item.is-current { background: var(--jd-tint); border-color: var(--jd-edge); cursor: default; }
.jd-demo-switch__label { font-weight: 700; font-size: .92rem; }
.jd-demo-switch__desc { grid-column: 1; font-size: .78rem; color: var(--jd-muted); }
.jd-demo-switch__badge { grid-row: 1 / span 2; grid-column: 2; padding: .1rem .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--jd-blue-dark); background: #fff; border: 1px solid var(--jd-edge); border-radius: 999px; }
@media (max-width: 575.98px) {
  .jd-demo-switch { position: static; }
  .jd-demo-switch__panel { position: fixed; top: calc(var(--jd-topbar-h, 2.25rem) + .25rem); left: .75rem; right: .75rem; width: auto; }
}

/* Buttons on the role cards */
.jd-demo-login { margin: 1rem 0 0; }
.jd-demo-login__btn { width: 100%; }
.jd-demo-login--current { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .55rem .75rem; font-size: .9rem; font-weight: 700; color: var(--jd-success); background: #eaf6ee; border: 1px solid #b9dfc6; border-radius: var(--jd-radius); }
.jd-role .jd-creds { margin-top: auto; }
@media (max-width: 575.98px) {
  .jd-demo-switch__menu > summary { font-size: 0; padding-inline: .5rem; }
  .jd-demo-switch__menu > summary > * { font-size: .8rem; }
  .jd-demo-switch__menu > summary::after { font-size: .6rem; }
}
@media (max-width: 575.98px) {
  .jd-topbar .jd-account__hello { display: none; }
}

/* Ticket form embedded in an article (Content - Helpdesk Pro): the article already has the page title */
.jd-embed .hdp-page-title { display: none; }
.jd-embed #hdp-new-ticket-page { max-width: none; }
.jd-embed-steps { max-width: 60rem; }
.jd-article-body h2, main > .com-content-article h2 { margin-top: 2rem; }

/* Greeting in the topbar is a link to the profile page */
.jd-topbar a.jd-account__hello { text-decoration: none; }
.jd-topbar a.jd-account__hello strong { font-weight: 700; }
.jd-topbar a.jd-account__hello:hover strong, .jd-topbar a.jd-account__hello:focus-visible strong { text-decoration: underline; }

/* Home page: "Want to receive the emails?" */
.jd-email-help { display: block; margin: 0 0 1rem; }
.jd-email-help h2 { margin-bottom: .4rem; }
.jd-email-help p { max-width: 60rem; }
.jd-email-help__note { margin-top: .6rem !important; font-size: .9rem; color: var(--jd-muted); }
