/* ============================================================
   DWELLANT - Bespoke Zendesk Help Centre theme
   Hand-built to match the 2026 dwellant.com redesign.
   Mona Sans, warm near-black + orange, cream surfaces,
   expanded uppercase headings, soft depth, orange line motif.

   HOW THIS FILE IS LOADED
   Zendesk injects this stylesheet into every page automatically. Nothing in
   templates/ links to it, and you should not add a link: the theme would then
   load it twice.

   ORDER MATTERS
   Sections run roughly in page order and the SITE-MATCH PASS at the very bottom
   deliberately comes last, so it wins specificity ties. If a change here appears
   to do nothing, search that block first - it is probably being overridden there.

   Bootstrap 5.3.3 loads BEFORE this file (see templates/document_head.hbs), so
   anything here beats Bootstrap at equal specificity. The functional pages
   (requests, community, search, profile) are built on Bootstrap's grid and
   components; restyle them here rather than editing their markup, because
   Zendesk's own JavaScript hooks into those classes.

   COLOUR AND ACCESSIBILITY
   --orange #ef8935 is 2.53:1 on white, below the WCAG AA 4.5:1 minimum for body
   text. Use it for fills, borders and large UI only. For text, use
   --orange-text (5.08:1) and --orange-text-dk (6.54:1). See MAINTENANCE.md.

   Full documentation: MAINTENANCE.md in this folder.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --ink:        #1b1815;   /* warm near-black */
  --ink-soft:   #383530;   /* warm dark panel */
  --orange:     #ef8935;   /* primary — fills, borders, large UI */
  --orange-dk:  #d97826;   /* hover/active on orange fills */
  --orange-sf:  #f1a55f;   /* soft accent */

  /* Text-safe oranges. #ef8935 is 2.53:1 on white, well under the 4.5:1 WCAG AA
     minimum for body text, so it must not be used for link or label TEXT. These
     two are the same hue darkened until they clear AA (5.08:1 and 6.54:1). The
     fill colours above are unchanged, so the brand look is intact. */
  --orange-text:    #a85a14;
  --orange-text-dk: #8f4c10;
  --cream:      #f2ede9;   /* surface / cards */
  --cream-2:    #f8f7f7;   /* lightest tint */
  --beige:      #ded3c9;   /* warm border accent */
  --green:      #6fb440;   /* secondary accent */
  --border:     #e3ded9;   /* hairlines */
  --white:      #ffffff;
  --muted:      #575756;   /* grey body-muted (site 'secondary') */

  /* Typography — matches the dwellant.com redesign */
  --font:       'Cabin', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* body */
  --font-head:  'Archivo', 'Mona Sans', sans-serif;   /* h1/h2 display */
  --font-sub:   'Mona Sans', 'Archivo', sans-serif;   /* h3–h6 */
  --h-stretch:  75%;       /* condensed/narrow cut for headings */
  --h-wdth:     "wdth" 62.5;   /* variable width axis for display headings */

  /* Exact type scale lifted from the dwellant.com redesign (Ollie theme.json) */
  --fs-x-small:  clamp(.825rem, 0.825rem + ((1vw - 0.2rem) * 0.213), .95rem);
  --fs-small:    clamp(.9rem, 0.9rem + ((1vw - 0.2rem) * 0.255), 1.05rem);
  --fs-base:     clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.281), 1.165rem);
  --fs-medium:   clamp(1.2rem, 1.2rem + ((1vw - 0.2rem) * 0.766), 1.65rem);
  --fs-large:    clamp(1.5rem, 1.5rem + ((1vw - 0.2rem) * 1.447), 2.35rem);
  --fs-x-large:  clamp(1.875rem, 1.875rem + ((1vw - 0.2rem) * 1.745), 2.9rem);
  --fs-xx-large: clamp(2.25rem, 2.25rem + ((1vw - 0.2rem) * 2.553), 3.75rem);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 100px;

  /* Shadows (warm-tinted, soft) */
  --sh-sm: 0 2px 8px rgba(27,24,21,.06);
  --sh-md: 0 6px 20px rgba(27,24,21,.08);
  --sh-lg: 0 18px 48px rgba(27,24,21,.14);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t: .25s var(--ease);

  /* Rhythm */
  --gut: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1260px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

/* Link TEXT must use the text-safe oranges. --orange-dk is 3.15:1 on white and
   --orange is 2.53:1, both below the WCAG AA 4.5:1 minimum. */
a { color: var(--orange-text); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--orange-text-dk); }

::selection { background: var(--orange); color: #fff; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Headings — condensed uppercase, matching the redesign.
   h1/h2 = Archivo (display), h3–h6 = Mona Sans narrow. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sub);
  font-stretch: var(--h-stretch);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1, h2 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  font-variation-settings: var(--h-wdth);
}
h1 { font-size: var(--fs-x-large); }
h2 { font-size: var(--fs-large); }
h3 { font-size: var(--fs-medium); }
h4 { font-size: var(--fs-base); }
h5 { font-size: var(--fs-small); }
h6 { font-size: var(--fs-x-small); }

p { margin: 0 0 1rem; }

/* The signature two-tone accent: one word in orange */
.dw-accent { color: var(--orange); }

/* Eyebrow / kicker label */
.dw-kicker {
  display: inline-block;
  font-stretch: var(--h-stretch);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.dw-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.dw-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.dw-section--tint { background: var(--cream-2); }
.dw-section--cream { background: var(--cream); }

/* ============================================================
   HEADER
   ============================================================ */
.dw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(27,24,21,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(239,137,53,.9);
}
.dw-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.dw-brand { display: inline-flex; align-items: center; gap: .6rem; }
.dw-brand img { height: 38px; width: auto; display: block; }
.dw-brand__name { color: #fff; font-stretch: var(--h-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }

.dw-nav { display: flex; align-items: center; gap: .35rem; }
.dw-nav a:not(.dw-btn) {
  color: rgba(255,255,255,.82);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .82rem;
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.dw-nav a:not(.dw-btn):hover { color: #fff; background: rgba(255,255,255,.07); }

/* Header / primary buttons */
.dw-btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;   /* white text on orange — matches site brand buttons (.is-style-button-brand) */
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: var(--fs-small);
  line-height: 1;
  padding: .8rem 1.3rem;
  border: 1px solid var(--btn-bg);
  border-radius: 5px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform .12s var(--ease), box-shadow var(--t);
}
.dw-btn:hover { background: var(--orange-dk); border-color: var(--orange-dk); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-md); }
.dw-btn:active { transform: translateY(0); }
.dw-btn svg { width: 1em; height: 1em; }
.dw-btn--lg { font-size: .95rem; padding: .95rem 1.7rem; }
.dw-btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.dw-btn--dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }
.dw-btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.4); }
.dw-btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; box-shadow: none; }
.dw-btn--arrow svg { transition: transform var(--t); }
.dw-btn--arrow:hover svg { transform: translateX(3px); }

/* Mobile toggle */
.dw-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.dw-burger span { width: 22px; height: 2px; background: #fff; transition: transform var(--t), opacity var(--t); }
.dw-header.is-open .dw-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dw-header.is-open .dw-burger span:nth-child(2) { opacity: 0; }
.dw-header.is-open .dw-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* User dropdown */
.dw-menu { position: relative; }
.dw-menu__btn { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.85); font: inherit; font-size: .82rem; font-weight: 600; padding: .5rem .6rem; border-radius: var(--r-sm); }
.dw-menu__btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.dw-menu__btn img { width: 30px; height: 30px; border-radius: 50%; }
.dw-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 220px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.dw-menu.is-open .dw-menu__panel { opacity: 1; visibility: visible; transform: translateY(0); }

/* The panel sits INSIDE .dw-nav, so `.dw-nav a:not(.dw-btn)` above (specificity
   0,2,1) beats a plain `.dw-menu__panel a` (0,1,1) and paints these links the
   header's translucent white. On the panel's white background that is invisible,
   and its uppercase/letter-spacing leak in too. These selectors are deliberately
   scoped through .dw-nav to outrank it. Do not simplify them back.

   Zendesk's {{contact_details}} and {{change_password}} render as <button>, not
   <a>, so they need matching separately or they show as an unstyled browser
   button. */
.dw-nav .dw-menu__panel a:not(.dw-btn),
.dw-nav .dw-menu__panel button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: .55rem .7rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.dw-nav .dw-menu__panel a:not(.dw-btn):hover,
.dw-nav .dw-menu__panel button:hover {
  background: var(--cream);
  color: var(--orange-text);
}
.dw-menu__panel hr { border: 0; border-top: 1px solid var(--border); margin: .4rem 0; }

@media (max-width: 880px) {
  .dw-burger { display: flex; }
  .dw-nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--ink); padding: 1rem var(--gut) 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .dw-header.is-open .dw-nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .dw-nav a:not(.dw-btn) { padding: .8rem; font-size: 1rem; }
  .dw-nav .dw-btn { justify-content: center; padding: .9rem; }
  .dw-menu, .dw-menu__panel { width: 100%; }
  .dw-menu__panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0; }
  /* On mobile the panel is transparent on the dark header, so links go light
     again. Scoped through .dw-nav to match the desktop rules above, which are
     more specific than a bare .dw-menu__panel a and would otherwise win. */
  .dw-nav .dw-menu__panel a:not(.dw-btn),
  .dw-nav .dw-menu__panel button { color: rgba(255,255,255,.85); }
  .dw-nav .dw-menu__panel a:not(.dw-btn):hover,
  .dw-nav .dw-menu__panel button:hover { background: rgba(255,255,255,.08); color: #fff; }
}

/* ============================================================
   HERO  (home page)
   ============================================================ */
.dw-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.dw-hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background-size: cover; background-position: center;
  opacity: .18;
}
.dw-hero__mesh { /* dynamic orange line-blend motif, mirrors dwellant.com hero */
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%);
  width: min(880px, 78%); aspect-ratio: 682 / 447; z-index: -1;
  background-repeat: no-repeat; background-position: right center; background-size: contain;
  opacity: .85; pointer-events: none;
}
@media (max-width: 760px) { .dw-hero__mesh { opacity: .5; right: -20%; width: 120%; } }
.dw-hero::after { /* warm vignette */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(239,137,53,.16), transparent 60%),
    linear-gradient(180deg, rgba(27,24,21,.55), rgba(27,24,21,.92));
}
.dw-hero__line { /* flowing orange line motif, bottom-right */
  position: absolute; right: -4%; bottom: -18%; width: min(620px, 70%); z-index: -1;
  opacity: .5; pointer-events: none;
}
.dw-hero__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(3.5rem,8vw,6.5rem) var(--gut) clamp(3rem,6vw,5rem);
}
.dw-hero__copy { max-width: 720px; }
.dw-hero h1 { color: #fff; margin-bottom: .5em; font-size: clamp(2.629rem, 2.629rem + ((1vw - 0.2rem) * 4.036), 5rem); }
.dw-hero__sub { font-size: var(--fs-medium); color: rgba(255,255,255,.78); max-width: 38ch; margin-bottom: 2rem; }

/* Search */
.dw-search { position: relative; max-width: 640px; }
.dw-search form { position: relative; display: flex; margin: 0; }
.dw-search input[type="search"],
.dw-search input[type="text"],
.dw-search input.form-control,
.dw-search .search-input {
  width: 100%;
  font-family: var(--font);
  font-size: 1.1rem;
  padding: 1.05rem 1.4rem 1.05rem 3.2rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-lg);
  transition: border-color var(--t), box-shadow var(--t);
}
.dw-search input::placeholder { color: var(--muted); }
.dw-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(239,137,53,.25), var(--sh-lg); }
.dw-search::before { /* magnifier */
  content: ""; position: absolute; z-index: 2; pointer-events: none; margin: 1.15rem 0 0 1.3rem; width: 20px; height: 20px;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Quick links / popular actions under search */
.dw-quicklinks { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; align-items: center; }
.dw-quicklinks span { color: rgba(255,255,255,.7); font-size: 1rem; font-weight: 600; align-self: center; margin-right: .3rem; }
.dw-quicklinks a { /* white on orange — matches site brand buttons */
  color: #fff; font-size: var(--fs-small); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  padding: .7rem 1.2rem; border: 1px solid var(--orange); border-radius: 5px;
  background: var(--orange);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.dw-quicklinks a:hover { background: var(--orange-dk); color: #fff; border-color: var(--orange-dk); }

/* ============================================================
   CATEGORY / SECTION CARDS
   ============================================================ */
.dw-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.dw-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.dw-card::before { /* top accent bar reveal */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-sf));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t);
}
.dw-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.dw-card:hover::before { transform: scaleX(1); }
.dw-card__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: rgba(239,137,53,.12); color: var(--orange-dk);
  transition: background var(--t), color var(--t);
}
.dw-card:hover .dw-card__icon { background: var(--orange); color: #fff; }
.dw-card__icon svg { width: 26px; height: 26px; }
.dw-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.dw-card h3 a { color: var(--ink); }
.dw-card:hover h3 a { color: var(--orange-dk); }
.dw-card__desc { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.dw-card__more { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-dk); }
.dw-card__more svg { width: 1em; height: 1em; transition: transform var(--t); }
.dw-card:hover .dw-card__more svg { transform: translateX(3px); }
.dw-card__count { position: absolute; top: 1.5rem; right: 1.6rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
/* stretched link so whole card is clickable */
.dw-card__link::after { content: ""; position: absolute; inset: 0; }

/* Section heading block */
.dw-head { margin-bottom: 2.4rem; max-width: 640px; }
.dw-head--center { margin-inline: auto; text-align: center; }
.dw-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ============================================================
   PROMOTED ARTICLES / ARTICLE LISTS
   ============================================================ */
.dw-list { display: grid; gap: .6rem; }
.dw-list__item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--ink); font-weight: 500;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.dw-list__item:hover { border-color: var(--orange); transform: translateX(4px); box-shadow: var(--sh-sm); color: var(--ink); }
.dw-list__mark { color: var(--green); flex: 0 0 auto; display: inline-flex; }
.dw-list__mark svg { width: 20px; height: 20px; }
.dw-list__arrow { margin-left: auto; color: var(--muted); display: inline-flex; transition: transform var(--t), color var(--t); }
.dw-list__item:hover .dw-list__arrow { color: var(--orange); transform: translateX(3px); }

/* ============================================================
   CTA BAND (orange) — mirrors marketing site
   ============================================================ */
.dw-cta { /* dark textured band — matches site pre-footer band */
  position: relative; overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.dw-cta__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: .5; filter: grayscale(1); }
.dw-cta::before { /* ~90% main-colour wash over the grayscale honeycomb, matching the site */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(27,24,21,.88);
}
.dw-cta__inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(2.8rem,6vw,4.5rem) var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.dw-cta h2 { color: #fff; margin: 0 0 .3rem; max-width: 22ch; }
.dw-cta p { color: rgba(255,255,255,.8); margin: 0; font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.dw-footer {
  position: relative;
  background: var(--ink);
  color: var(--main-accent, #ded3c9);
  overflow: hidden;
}
.dw-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.dw-footer__inner {
  position: relative; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(4rem,7vw,6rem) var(--gut) 3rem;
  display: grid; gap: 2.5rem 3rem;
  grid-template-columns: 3fr 1fr 1fr 1fr;
}
.dw-footer__brand img { height: 40px; margin-bottom: 1.2rem; }
.dw-footer__brand p { font-size: var(--fs-small); line-height: 1.7; max-width: 46ch; }
.dw-footer h4 { color: #fff; font-family: var(--font); font-size: var(--fs-base); font-weight: 600; text-transform: none; letter-spacing: 0; font-stretch: 100%; margin-bottom: 1.1rem; }
.dw-footer a { color: #ded3c9; }
.dw-footer a:hover { color: var(--orange); }
.dw-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; font-size: var(--fs-small); }
.dw-footer__contacts { display: grid; gap: .55rem; font-size: .92rem; }
.dw-footer__contacts a { display: inline-flex; align-items: center; gap: .6rem; }
.dw-footer__contacts svg { width: 16px; height: 16px; color: var(--orange); flex: 0 0 auto; }
.dw-socials { display: flex; gap: .7rem; margin-top: 1.4rem; }
.dw-socials a { /* white-filled circles, dark glyph — matches site footer */
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #150e29; border: 0;
  transition: background var(--t), color var(--t), transform var(--t);
}
.dw-socials a:hover { background: var(--orange); color: var(--ink); transform: translateY(-2px); }
.dw-socials svg { width: 18px; height: 18px; }
.dw-footer__bar {
  position: relative; max-width: var(--maxw); margin-inline: auto;
  padding: 2rem var(--gut); border-top: 1px solid #66503d; margin-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--fs-small); color: #ded3c9;
}
.dw-footer__legal { display: flex; gap: 1.6rem; }
.dw-footer__bar a { color: #ded3c9; }
.dw-footer__bar a:hover { color: var(--orange); }
@media (max-width: 760px) {
  .dw-footer__inner { grid-template-columns: 1fr 1fr; }
  .dw-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .dw-footer__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTENT PAGES (article / category / section / search)
   ============================================================ */
.dw-page { max-width: var(--maxw); margin-inline: auto; padding: 2.2rem var(--gut) 4rem; }
.dw-breadcrumbs { font-size: .85rem; margin-bottom: 1.4rem; color: var(--muted); }
.dw-breadcrumbs a { color: var(--muted); font-weight: 600; }
.dw-breadcrumbs a:hover { color: var(--orange-dk); }
.dw-breadcrumbs ol, .dw-breadcrumbs ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.dw-breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--beige); }

.dw-pagehead { margin-bottom: 2.2rem; }
.dw-pagehead h1 { margin-bottom: .4rem; }
.dw-pagehead p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* Article layout */
.dw-article-wrap { display: grid; gap: 2.5rem; grid-template-columns: 260px 1fr; align-items: start; }
@media (max-width: 900px) { .dw-article-wrap { grid-template-columns: 1fr; } }
.dw-aside {
  position: sticky; top: 100px;
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.2rem;
}
.dw-aside h2 { font-size: .8rem; letter-spacing: .1em; color: var(--muted); margin-bottom: .8rem; }
.dw-aside a { display: block; padding: .5rem .6rem; border-radius: var(--r-sm); color: var(--ink); font-weight: 500; font-size: .92rem; text-transform: none; }
.dw-aside a:hover { background: #fff; color: var(--orange-dk); }
.dw-aside a.is-active { background: var(--orange); color: #fff; }
@media (max-width: 900px) { .dw-aside { position: static; } }

.dw-article {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.8rem); box-shadow: var(--sh-sm);
}
.dw-article h1 { text-transform: none; letter-spacing: -.015em; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.dw-article__meta { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.dw-article__meta img { width: 42px; height: 42px; border-radius: 50%; }
.dw-article__meta .nm { font-weight: 700; }
.dw-article__meta .dt { color: var(--muted); font-size: .85rem; }

/* Prose */
.dw-prose { font-size: 1.08rem; line-height: 1.8; }
.dw-prose > * + * { margin-top: 1.1rem; }
.dw-prose h2, .dw-prose h3, .dw-prose h4 { text-transform: none; font-stretch: 100%; font-variation-settings: "wdth" 100; letter-spacing: -.01em; margin-top: 2rem; }
.dw-prose h2 { font-size: 1.6rem; } .dw-prose h3 { font-size: 1.3rem; }
.dw-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--beige); }
.dw-prose a:hover { text-decoration-color: var(--orange); }
.dw-prose img { border-radius: var(--r-md); }
.dw-prose blockquote { margin: 1.5rem 0; padding: .6rem 1.4rem; border-left: 4px solid var(--orange); background: var(--cream); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.dw-prose code { background: var(--cream); padding: .12em .4em; border-radius: 4px; font-size: .9em; }
.dw-prose pre { background: var(--ink); color: #f4efe9; padding: 1.2rem; border-radius: var(--r-md); overflow: auto; }
.dw-prose pre code { background: none; padding: 0; color: inherit; }
.dw-prose table { width: 100%; border-collapse: collapse; }
.dw-prose th, .dw-prose td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
.dw-prose th { background: var(--cream); }

/* Panels reused on article page */
.dw-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--sh-sm); }
.dw-vote { text-align: center; }
.dw-vote h2 { text-transform: none; font-stretch: 100%; font-variation-settings: "wdth" 100; font-size: 1.25rem; margin-bottom: 1rem; }

/* Search results */
.dw-result { padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.dw-result h3 { text-transform: none; font-stretch: 100%; font-variation-settings: "wdth" 100; font-size: 1.2rem; margin-bottom: .35rem; }
.dw-result p { color: var(--muted); margin: 0; }
.dw-result__meta { font-size: .8rem; color: var(--beige); margin-top: .4rem; }

/* Search input on inner pages (light) */
.dw-search--inline { max-width: 100%; margin-bottom: 2rem; }
.dw-search--inline input { box-shadow: var(--sh-sm); border: 2px solid var(--border); }
.dw-search--inline::before { background: var(--muted); }

/* ============================================================
   BOOTSTRAP OVERRIDES — keep functional pages on-brand
   (requests, forms, community, profile, etc.)
   ============================================================ */
.container { max-width: var(--maxw) !important; }
.btn { border-radius: 5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: var(--fs-small); padding: .7rem 1.2rem; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--orange-dk); border-color: var(--orange-dk); color: #fff; }
.btn-outline-primary { color: var(--orange-dk); border-color: var(--orange); }
.btn-outline-primary:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-outline-secondary { color: var(--ink); border-color: var(--border); }
.btn-outline-secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-outline-success { color: #4d8a25; border-color: var(--green); }
.btn-outline-success:hover { background: var(--green); border-color: var(--green); }

.card { border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card-header { background: var(--cream); border-bottom: 1px solid var(--border); border-radius: var(--r-lg) var(--r-lg) 0 0 !important; font-weight: 700; }
.card-footer { background: #fff; border-top: 1px solid var(--border); }

.list-group-item { border-color: var(--border); }
.list-group-item-action:hover { background: var(--cream); color: var(--orange-dk); }
.list-group-item.active { background: var(--orange); border-color: var(--orange); }

.badge.bg-secondary { background: var(--ink-soft) !important; }
.badge.bg-info { background: var(--green) !important; }
.badge.bg-warning { background: var(--orange) !important; color: #fff !important; }

.alert-info { background: var(--cream); border-color: var(--beige); color: var(--ink); border-radius: var(--r-md); }

.form-control, .form-select {
  border: 2px solid var(--border); border-radius: var(--r-sm); padding: .6rem .9rem; font-family: var(--font);
}
.form-control:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(239,137,53,.18); }
.form-label { font-weight: 600; }

.breadcrumb { font-size: .85rem; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--orange-dk); }

/* Zendesk new-request form web component — brand its accents */
:root {
  --zd-host-color-primary: var(--orange);
  --zd-color-primary: var(--orange);
}

/* ============================================================
   MOTION — page-load reveal (respectful of reduced motion)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .dw-reveal { opacity: 0; transform: translateY(16px); animation: dwReveal .7s var(--ease) forwards; }
  .dw-reveal-1 { animation-delay: .05s; }
  .dw-reveal-2 { animation-delay: .15s; }
  .dw-reveal-3 { animation-delay: .25s; }
  .dw-reveal-4 { animation-delay: .35s; }
  .dw-grid .dw-card { opacity: 0; transform: translateY(16px); animation: dwReveal .6s var(--ease) forwards; }
  .dw-grid .dw-card:nth-child(1){animation-delay:.05s}
  .dw-grid .dw-card:nth-child(2){animation-delay:.12s}
  .dw-grid .dw-card:nth-child(3){animation-delay:.19s}
  .dw-grid .dw-card:nth-child(4){animation-delay:.26s}
  .dw-grid .dw-card:nth-child(5){animation-delay:.33s}
  .dw-grid .dw-card:nth-child(6){animation-delay:.40s}
  @keyframes dwReveal { to { opacity: 1; transform: none; } }
}

/* Utilities */
.dw-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.dw-mt { margin-top: 2.5rem; }

/* ============================================================
   SITE-MATCH PASS (26/06/2026)
   Pulls the Bootstrap-scaffolded pages (community, requests,
   forms) into the landing-page design language, and fixes the
   footer-collision / whitespace layout issues.
   Matches wordpress-1372737-6416762.cloudwaysapps.com
   ============================================================ */

/* --- Sticky-footer layout: content never collides with footer --- */
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.dw-footer { margin-top: auto; }
/* breathing room above the footer on Bootstrap-scaffolded pages */
.container.mt-4 { padding-bottom: clamp(3rem, 6vw, 5rem); }

/* --- Kill default Bootstrap link blue; brand everything orange ---
   Link TEXT uses the darkened text-safe orange (5.08:1 on white). The previous
   #d97826 was 3.15:1, below AA. --bs-primary stays the true brand orange
   because it fills buttons rather than colouring text. */
:root {
  --bs-link-color: #a85a14;
  --bs-link-color-rgb: 168, 90, 20;
  --bs-link-hover-color: #8f4c10;
  --bs-link-hover-color-rgb: 143, 76, 16;
  --bs-primary: #ef8935;
  --bs-primary-rgb: 239, 137, 53;
}

/* Orange button fills keep the brand colour; their LABEL flips to the warm
   near-black ink, which is 6.99:1 on #ef8935. White was 2.53:1. */
.btn-primary {
  --bs-btn-color: #1b1815;
  --bs-btn-hover-color: #1b1815;
  --bs-btn-active-color: #1b1815;
}
.text-primary { color: var(--orange-dk) !important; }
a.text-decoration-none,
.card-title a,
.list-group-item a,
aside a { color: var(--ink); }
a.text-decoration-none:hover,
.card-title a:hover,
.list-group-item a:hover,
aside a:hover { color: var(--orange-dk); }
.text-muted, .lead.text-muted { color: var(--muted) !important; }

/* --- Community hero band → branded dark, condensed caps --- */
.hero.bg-light { background: var(--ink) !important; color: #fff; border-bottom: 1px solid var(--orange); }
.hero.bg-light h1 { color: #fff; }

/* --- Cards: match landing rounding, depth, hover --- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.row.g-4 .card:hover,
.col-md-6 > .card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: transparent; }
.card-title a { font-family: var(--font-sub); font-stretch: var(--h-stretch); text-transform: uppercase; letter-spacing: -.005em; }

/* --- "Numbered list of links" → landing-style button rows --- */
.list-group { display: grid; gap: .6rem; border: 0; }
.list-group-item,
.list-group-item-action {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  background: #fff;
  padding: 1.05rem 1.3rem;
  color: var(--ink);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.list-group-item-action:hover {
  border-color: var(--orange) !important;
  transform: translateX(4px);
  box-shadow: var(--sh-sm);
  background: #fff;
  color: var(--ink);
}
.list-group-item-action:hover h2 { color: var(--orange-dk); }
/* request-details flush list stays plain */
.list-group-flush { display: block; }
.list-group-flush .list-group-item {
  border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important;
  transform: none;
}
.list-group-flush .list-group-item:hover { transform: none; box-shadow: none; border-color: var(--border) !important; }

/* --- Pagination → branded pills --- */
.pagination { gap: .35rem; flex-wrap: wrap; }
.page-link { border-radius: var(--r-sm) !important; border: 1px solid var(--border); color: var(--orange-dk); font-weight: 600; }
.page-link:hover { background: var(--cream); color: var(--orange-dk); }
.page-item.active .page-link { background: var(--orange); border-color: var(--orange); color: #fff; }

/* --- Inner search → match the landing pill, always clickable --- */
.dw-search--inline input,
.dw-search--inline input.form-control { box-shadow: var(--sh-sm); border: 2px solid var(--border); }

/* --- Follow / subscribe → landing button style (green when following) --- */
.dw-follow button,
.dw-follow a,
.dw-follow [role="button"] {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: .82rem; line-height: 1;
  padding: .72rem 1.2rem; border: 1px solid var(--orange);
  border-radius: 5px; background: var(--orange); color: var(--ink);
  cursor: pointer; transition: background var(--t), border-color var(--t);
}
.dw-follow button:hover, .dw-follow a:hover { background: var(--orange-dk); border-color: var(--orange-dk); color: var(--ink); }
.dw-follow button[aria-pressed="true"], .dw-follow .following { background: var(--green); border-color: var(--green); }

/* --- Submit-a-request form: lift off white → tinted panel --- */
.dw-formwrap {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--sh-sm);
  margin-bottom: 2rem;
}
.dw-formwrap .form-control,
.dw-formwrap .form-select,
.dw-formwrap input,
.dw-formwrap textarea,
.dw-formwrap select { background: #fff; }

/* --- Green + orange accents on functional pages --- */
.badge.bg-info, .badge.bg-success { background: var(--green) !important; }
.alert-info { border-left: 4px solid var(--orange); }
.card-header { border-top: 3px solid var(--green); }

/* --- Force off Bootstrap reboot's blanket <a> underline ---------------
   Reboot's `a { text-decoration: underline }` was winning the cascade
   across the whole theme (popular buttons, card titles, article rows,
   nav, footer, breadcrumbs). Force off site-wide; keep underlines only
   inside article prose for readability. --- */
a { text-decoration: none !important; }
.dw-prose a { text-decoration: underline !important; }

/* ============================================================
   BROWSE BY TOPIC → clean icon grid, matching the site's
   "Capabilities that scale with you": green outline icons with
   no box, bold sentence-case headings, grey descriptions.
   Tiles stay fully clickable with a clear hover. (26/06/2026)
   ============================================================ */
.dw-grid { gap: 2.6rem 2rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dw-card { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; overflow: visible; }
.dw-card::before { content: none; }
.dw-card:hover { transform: none; box-shadow: none; border-color: transparent; }
.dw-card__icon { width: auto; height: auto; margin-bottom: 1.05rem; background: none; border-radius: 0; color: var(--green); }
.dw-card__icon svg { width: 38px; height: 38px; }
.dw-card:hover .dw-card__icon { background: none; color: var(--green); }
.dw-card h3 { text-transform: none; font-stretch: 90%; letter-spacing: 0; font-size: 1.18rem; }
.dw-card h3 a { color: var(--ink); }
.dw-card:hover h3 a { color: var(--orange-dk); }
.dw-card__count { display: none; }
