/* ============================================================
   TCD Bermuda — DNN Skin Stylesheet
   Companion to TCD_Default.ascx
   Self-contained (no Tailwind CDN, no external template).
   Primary palette:
     Navy (header/hero/sections): #001840
     Navy (footer, deeper):       #00102b
     Orange (primary):            #FF5722
     Orange (hover):               #E64A19
   ============================================================ */

/* ----- Reset / Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keep focused/scrolled-to fields (e.g. form validation errors) clear of the sticky header */
  scroll-padding-top: 6rem;
}
/* Inter is loaded from Google Fonts in TCD_Default.ascx (400 + 800, same as tcd.bm).
   Bootstrap loads after this file and resets the body font through
   --bs-body-font-family on :root; html:root out-specifies it. */
html:root {
  --bs-body-font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                         'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #111827;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* DNN's default.css sets h1–h6 to Arial; inherit Inter instead */
body h1, body h2, body h3, body h4, body h5, body h6 { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ----- Defensive: kill underlines on header, nav, + footer links ------
   DNN's Default.css/portal.css and Bootstrap's reboot load AFTER this
   skin and re-add `text-decoration: underline` (especially on :hover).
   These scoped rules use higher specificity to beat them, and cover
   every link state (default, hover, focus, active, visited). */
.tcd-header a,
.tcd-header a:link,
.tcd-header a:visited,
.tcd-header a:hover,
.tcd-header a:focus,
.tcd-header a:active,
.tcd-nav a,
.tcd-nav a:link,
.tcd-nav a:visited,
.tcd-nav a:hover,
.tcd-nav a:focus,
.tcd-nav a:active,
.tcd-footer a,
.tcd-footer a:link,
.tcd-footer a:visited,
.tcd-footer a:hover,
.tcd-footer a:focus,
.tcd-footer a:active {
  text-decoration: none;
}

/* Sticky-footer scaffold: DNN wraps the skin inside <form runat="server">.
   Make that form a flex column so .tcd-main can grow and push the footer down. */
body > form { display: flex; flex-direction: column; flex: 1 0 auto; min-height: 0; }
body > form > .tcd-main,
body > form .tcd-main { flex: 1 0 auto; }
body > form > .tcd-footer,
body > form .tcd-footer { flex-shrink: 0; margin-top: auto; }

/* Accessibility helper for visually-hidden labels */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ----- Layout container — shared max-width for header/nav/hero/main/footer.
   80rem (1280px) matches Tailwind's `max-w-7xl`, which is the width used
   by the live tcd.bm site, so the header logo, nav, hero edge, and footer
   columns all sit at the same horizontal inset as the production page. */
.tcd-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .tcd-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .tcd-container { padding-left: 2rem; padding-right: 2rem; }
}

/* ----- Header ---------------------------------------------- */
.tcd-header {
  background-color: #001840;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.tcd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.tcd-logo a { display: inline-block; line-height: 0; }
.tcd-logo img {
  height: 3rem;         /* 48px — tcd.bm `h-12` */
  width: auto;
  display: block;
  /* If the header gets tight (narrow phones, DNN's admin sidebar), max-width
     shrinks the width but not the height — scale the image instead of squashing it */
  object-fit: contain;
  object-position: left center;
  transition: transform .2s;
}
@media (min-width: 640px) {
  .tcd-logo img { height: 3.5rem; } /* 56px — `sm:h-14` */
}
@media (min-width: 1024px) {
  .tcd-logo img { height: 4rem; }   /* 64px — `lg:h-16` */
}
@media (hover: hover) {
  .tcd-logo a:hover img { transform: scale(1.05); }
}
.tcd-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
/* Social icons + Contact/Help; hidden on phones (they move into the menu panel) */
.tcd-header-extras {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
/* Group the three social icons together with a thin right divider before
   the Contact / Help util links. Matches tcd.bm: 32px tinted squares that
   fill orange on hover (YouTube fills red). */
.tcd-social-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}
.tcd-header .tcd-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 2px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color .3s, color .3s;
}
.tcd-social-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.tcd-header .tcd-social-icon:hover { background: #FF5722; color: #fff; }
.tcd-header .tcd-social-icon:nth-child(3):hover { background: #FF0000; }
.tcd-util-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .2s;
}
.tcd-util-link:hover { color: #FF5722; }
.tcd-util-icon {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.75;
}

/* DNN Login / User controls placed in header.
   These may render as a plain <a> (LegacyMode=true) or as a nested
   <ul> with avatar / notifications (LegacyMode=false). Style both. */
.tcd-header-right a.LoginLink,
.tcd-header-right a.UserLink,
.tcd-header-right a.tcd-util-link {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .2s;
}
.tcd-header-right a.LoginLink:hover,
.tcd-header-right a.UserLink:hover,
.tcd-header-right a.tcd-util-link:hover { color: #FF5722; }

/* Neutralize DNN's modern User control <ul> so it flows inline */
.tcd-header-right ul,
.tcd-header-right .userControl,
.tcd-header-right .navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: static !important;
}
.tcd-header-right ul li,
.tcd-header-right .navbar-nav > li {
  list-style: none;
  position: static;
}
.tcd-header-right ul li a {
  color: #fff;
  font-size: 0.875rem;
  white-space: nowrap;
}
.tcd-header-right ul li a:hover { color: #FF5722; }

/* User avatar / profile image — make it small and inline */
.tcd-header-right img,
.tcd-header-right .userImage img,
.tcd-header-right .avatar,
.tcd-header-right img.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Hamburger button — phones only */
.tcd-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -0.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff;
}
.tcd-menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.tcd-nav-open .tcd-menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tcd-nav-open .tcd-menu-toggle-bar:nth-child(2) { opacity: 0; }
.tcd-nav-open .tcd-menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.tcd-menu-toggle:focus-visible { outline: 2px solid #FF5722; outline-offset: 2px; }

/* ----- Navigation (DDRMenu output) --------------------------- */
.tcd-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  min-height: 3.25rem;   /* stays visible even if DDRMenu emits an empty UL */
}
.tcd-nav-inner { }
/* Mobile-only pieces injected into the nav */
.tcd-nav-extras,
.tcd-submenu-toggle { display: none; }

.tcd-nav ul,
.tcd-nav ul.tcd-menu-root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.tcd-nav ul li { position: relative; }
.tcd-nav ul li a {
  display: block;
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #001840;
  transition: color .2s, border-color .2s;
  border-bottom: 4px solid transparent;
}
/* First nav link has no left padding so it aligns flush with container edge,
   matching the breadcrumb and footer column start positions. */
.tcd-nav .tcd-menu-root > li:first-child > a { padding-left: 0; }
.tcd-nav ul li a:hover,
.tcd-nav ul li.selected > a,
.tcd-nav ul li.current > a,
.tcd-nav ul li.active > a {
  color: #FF5722;
  border-bottom-color: #FF5722;
}

/* Submenus — square dropdown with thick orange top border, per Provided */
.tcd-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #FF5722;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  min-width: 240px;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.5rem 0;
  z-index: 100;
}
.tcd-nav ul li:hover > ul,
.tcd-nav ul li:focus-within > ul { display: flex; }
.tcd-nav ul li ul li a {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: #4b5563;
  border-bottom: none;
  border-left: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, padding-left .2s;
}
.tcd-nav ul li ul li a:hover {
  background: #f9fafb;
  color: #FF5722;
  border-left-color: #FF5722;
  padding-left: 1.5rem;
}

/* ----- Notification bar ------------------------------------ */
.tcd-notification {
  background: #001840;
  border-left: 4px solid #FF5722;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tcd-notice-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tcd-notice-label {
  color: #FF5722;
  background: rgba(255, 87, 34, 0.10);
  border: 1px solid rgba(255, 87, 34, 0.30);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
}
.tcd-notice-text {
  color: #fff;
  font-size: 0.875rem;
}
.tcd-notice-close {
  background: transparent;
  border: none;
  color: #fff;
  opacity: 0.5;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: opacity .15s;
}
.tcd-notice-close:hover { opacity: 1; }

/* ----- Hero pane (navy band with breadcrumb + page title) ---
   No min-height — collapses to fit its content so an empty page
   doesn't produce a giant blue void.                            */
.tcd-hero-pane {
  position: relative;
  overflow: hidden;
  background: #001840;
}
.tcd-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Breadcrumb inside hero — light text on navy */
.tcd-hero-breadcrumb {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}
.tcd-hero-breadcrumb a,
.tcd-hero-breadcrumb .tcd-breadcrumb-inner,
.tcd-hero-breadcrumb .tcd-breadcrumb-inner a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color .15s;
}
/* Current page: white + bold */
.tcd-hero-breadcrumb [itemprop="itemListElement"]:last-of-type a {
  color: #fff;
  font-weight: 700;
}
/* Chevron separator (the BREADCRUMB Separator renders this empty span) */
.tcd-bc-sep {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 0.6rem 0 0.4rem;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  border-right: 1.5px solid rgba(255, 255, 255, 0.6);
  transform: translateY(-1px) rotate(45deg);
}
.tcd-hero-breadcrumb a:hover,
.tcd-hero-breadcrumb .tcd-breadcrumb-inner a:hover {
  color: #FF5722;
}

/* Page title from [PAGETITLE] token */
.tcd-hero-title {
  font-size: 2.25rem;           /* text-4xl */
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.025em;     /* tracking-tight */
  line-height: 1;
  margin: 0;
}
@media (min-width: 1024px) {
  .tcd-hero-title { font-size: 3rem; }   /* lg:text-5xl */
}
/* Orange accent stripe directly beneath the page title — matches the
   `<div class="h-1.5 w-24 bg-[#FF5722]">` pattern repeated across Provided. */
.tcd-hero-title::after {
  content: "";
  display: block;
  width: 6rem;
  height: 6px;                  /* h-1.5 */
  background: #FF5722;
  margin-top: 0.75rem;
}

/* Optional content pane for per-page hero extras (subtitle, badge, etc.) */
.tcd-hero-extra { margin-top: 1.5rem; }
.tcd-hero-extra .DnnModule:last-child { margin-bottom: 0; }
.tcd-hero-extra:empty { margin-top: 0; }
.tcd-badge-official {
  display: inline-block;
  background: #FF5722;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.5rem;
}
.tcd-hero-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.tcd-hero-heading span { color: #9ca3af; }
.tcd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FF5722;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 2px solid #FF5722;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.20);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tcd-btn-primary:hover {
  background: #E64A19;
  border-color: #E64A19;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 87, 34, 0.28);
}
.tcd-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #001840;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 2px solid #001840;
  transition: background-color .2s, color .2s;
}
.tcd-btn-secondary:hover {
  background: #001840;
  color: #fff;
}

/* ----- Main content area ----------------------------------- */
.tcd-main {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.tcd-content-full { }
.tcd-content-main { margin-top: 2.5rem; }
.tcd-content-main:empty { margin-top: 0; }

/* ----- Section helpers ------------------------------------- */
.tcd-section-dark  { background: #001840; color: #fff; padding: 5rem 0; }
.tcd-section-light { background: #fff;    color: #111827; padding: 5rem 0; }
.tcd-section-gray  { background: #f9fafb; color: #111827; padding: 5rem 0; }
.tcd-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #FF5722; margin-bottom: 0.5rem;
}
.tcd-section-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; color: inherit; letter-spacing: -.01em; margin: 0 0 1rem;
}

/* ----- Quick-action cards ---------------------------------- */
.tcd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.tcd-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid transparent;
  padding: 1.75rem 1.5rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  cursor: pointer;
}
.tcd-card:hover {
  border-top-color: #FF5722;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
  transform: translateY(-2px);
}
.tcd-card-icon  { color: #FF5722; margin-bottom: 1rem; font-size: 1.5rem; }
.tcd-card-title { font-size: 0.9375rem; font-weight: 700; color: #001840; margin-bottom: 0.25rem; }
.tcd-card-desc  { font-size: 0.8125rem; color: #6b7280; }

/* ----- News / article cards -------------------------------- */
.tcd-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.tcd-news-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.tcd-news-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
  transform: translateY(-2px);
}
.tcd-news-card-body  { padding: 1.5rem; }
.tcd-news-date       { font-size: 0.75rem; color: #9ca3af; margin-bottom: 0.25rem; }
.tcd-news-category   { font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FF5722; margin-bottom: 0.5rem; }
.tcd-news-title      { font-size: 1.0625rem; font-weight: 700; color: #001840; margin-bottom: 0.75rem; }
.tcd-news-excerpt    { font-size: 0.875rem; color: #6b7280; line-height: 1.6; margin-bottom: 1rem; }
.tcd-news-readmore   { font-size: 0.8125rem; font-weight: 700; color: #FF5722; text-transform: uppercase; letter-spacing: .04em; }
.tcd-news-readmore:hover { color: #E64A19; }

/* ----- Footer ---------------------------------------------- */
.tcd-footer {
  background: #00102b;
  color: #fff;
  border-top: 1px solid #1f2937;
  padding: 4rem 0;
}
.tcd-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .tcd-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .tcd-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
/* Footer brand block: a horizontal row with a 40x40 white-tinted "TCD"
   square next to the uppercase department title, then the description
   and attribution stacked beneath it. Mirrors the Provided
   `<div class="space-y-6"> ... <div class="flex items-center gap-3"> ... </div>`
   structure. */
.tcd-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tcd-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tcd-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.10);
  font-size: 1.25rem;          /* text-xl */
  font-weight: 700;
  color: #fff;
  margin: 0;
  flex-shrink: 0;
}
.tcd-footer .tcd-footer-tagline,
.tcd-footer div.tcd-footer-tagline {
  font-size: 1.125rem;          /* text-lg */
  font-weight: 700;
  letter-spacing: -0.025em;     /* tracking-tight */
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffffff !important;
  margin: 0;
}
/* Chained selectors + !important so DNN/module CSS can't win the cascade on these */
.tcd-footer .tcd-footer-desc,
.tcd-footer p.tcd-footer-desc {
  color: #9ca3af !important;
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 20rem;
  margin: 0;
}
.tcd-footer .tcd-footer-attribution,
.tcd-footer div.tcd-footer-attribution {
  color: #6b7280 !important;     /* text-gray-500 */
  font-size: 0.75rem;             /* text-xs */
  font-weight: 700;               /* font-bold */
  letter-spacing: .1em;           /* tracking-widest */
  line-height: 1.6;
  text-transform: uppercase;
  margin: 0;
}
.tcd-footer-heading {
  font-size: 0.875rem;            /* text-sm */
  font-weight: 700;               /* font-bold */
  letter-spacing: .1em;           /* tracking-widest */
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.5rem;             /* mb-6 */
}
.tcd-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}
.tcd-footer-links li { list-style: none; }
.tcd-footer-links li + li { margin-top: 1rem; }   /* space-y-4 */
.tcd-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;                 /* text-gray-400 */
  font-size: 0.875rem;
  transition: color .15s;
}
/* 4px square bullet, orange on hover — tcd.bm `w-1 h-1 bg-gray-600` */
.tcd-footer-links a::before {
  content: "";
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  background: #4b5563;
  transition: background-color .15s;
}
.tcd-footer-links a:hover { color: #FF5722; }
.tcd-footer-links a:hover::before { background: #FF5722; }

.tcd-footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}
@media (min-width: 768px) {
  .tcd-footer-bottom { flex-direction: row; }
}
.tcd-footer-utils { display: flex; gap: 1rem; }
.tcd-footer-util-link { color: #6b7280; font-size: 0.8125rem; transition: color .2s; }
.tcd-footer-util-link:hover { color: #fff; }
.tcd-copyright { color: #6b7280; font-size: 0.75rem; font-weight: 500; }

/* ----- DNN-specific overrides — make panes & modules fill width ----
   DNN's edit-mode wrappers and per-version stylesheets often apply
   inline-block, max-width, or auto margins that shrink-wrap content.
   We force everything inside our content panes to occupy the full
   available width with high specificity + !important.                 */

/* The main container itself: full of its 90rem cap */
.tcd-main-inner { display: block; width: 100%; }

/* Every content pane (ContentPane, ContentPane_Hero, ContentPane_Left, etc.) */
.tcd-main [id*="ContentPane"],
.tcd-hero-pane [id*="ContentPane"],
div[id*="ContentPane"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  box-sizing: border-box;
}

/* Direct module children of a content pane — drop inline-block
   shrink-wrapping that DNN injects */
[id*="ContentPane"] > .DnnModule,
[id*="ContentPane"] > div,
[id*="ContentPane"] > table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

/* Module wrappers in any pane / version */
.DnnModule,
div.DnnModule,
[class^="DnnModule-"],
[class*=" DnnModule-"],
.dnnModule {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 1rem;
  text-align: left;
  float: none !important;
}

/* Inner module rendering: ModuleTable, dnnContainer, ModuleContent */
.DnnModule > *,
table.ModuleTable,
.dnnContainer,
.ModuleContent {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Our own container is inside the pane — shouldn't add a max-width either */
.tcd-main .tcd-module-container { max-width: 100%; width: 100%; }

#ControlBar_ControlPanel { z-index: 9999; position: relative; }

/* Signature pads (ActionForm): stop the page scrolling while signing with a finger */
canvas.touch-signature-canvas { touch-action: none; }

/* ----- Bootstrap 5 button color overrides -------------------
   Override both the Bootstrap CSS custom properties AND the raw
   background/border properties — PlantAnApp's .form-button /
   .btn-normal styles set background-color directly and bypass
   Bootstrap's --bs-btn-bg variable, so we have to win on the
   actual property as well. */
.btn-primary,
.btn.btn-primary,
button.btn-primary,
.form-button.btn-primary,
.btn-normal.btn-primary {
  --bs-btn-bg: #FF5722;
  --bs-btn-border-color: #FF5722;
  --bs-btn-hover-bg: #E64A19;
  --bs-btn-hover-border-color: #E64A19;
  --bs-btn-active-bg: #E64A19;
  --bs-btn-active-border-color: #E64A19;
  --bs-btn-disabled-bg: #FF5722;
  --bs-btn-disabled-border-color: #FF5722;
  --bs-btn-focus-shadow-rgb: 255, 87, 34;
  background-color: #FF5722 !important;
  border-color: #FF5722 !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn.btn-primary:hover,
button.btn-primary:hover,
.form-button.btn-primary:hover,
.btn-normal.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: #E64A19 !important;
  border-color: #E64A19 !important;
  color: #fff !important;
}

.btn-success,
.btn.btn-success,
button.btn-success,
.form-button.btn-success,
.btn-normal.btn-success {
  --bs-btn-bg: #001840;
  --bs-btn-border-color: #001840;
  --bs-btn-hover-bg: #00102b;
  --bs-btn-hover-border-color: #00102b;
  --bs-btn-active-bg: #00102b;
  --bs-btn-active-border-color: #00102b;
  --bs-btn-disabled-bg: #001840;
  --bs-btn-disabled-border-color: #001840;
  --bs-btn-focus-shadow-rgb: 0, 24, 64;
  background-color: #001840 !important;
  border-color: #001840 !important;
  color: #fff !important;
}
.btn-success:hover,
.btn.btn-success:hover,
button.btn-success:hover,
.form-button.btn-success:hover,
.btn-normal.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active {
  background-color: #00102b !important;
  border-color: #00102b !important;
  color: #fff !important;
}

/* ----- Responsive: phones (< 768px) -------------------------
   Requires the viewport <meta> in TCD_Default.ascx — without it
   phones lay the page out at ~980px and none of this applies.   */
@media (max-width: 767.98px) {
  html { scroll-padding-top: 5rem; }

  /* Header: logo + Login + hamburger on one compact row */
  .tcd-header-inner { gap: 0.75rem; }
  .tcd-logo { min-width: 0; flex-shrink: 1; }
  .tcd-header-right { gap: 0.75rem; flex-shrink: 0; }
  .tcd-header-extras { display: none; }
  .tcd-header-right a.LoginLink,
  .tcd-header-right a.UserLink,
  .tcd-header-right ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .tcd-menu-toggle { display: inline-flex; }

  /* Nav: hidden until the hamburger opens it as a panel under the header */
  .tcd-nav {
    display: none;
    min-height: 0;
    border-bottom: 0;
  }
  .tcd-nav-open .tcd-nav {
    display: block;
    position: fixed;
    top: 4rem;            /* JS sets the exact header bottom */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: inset 0 4px 8px -4px rgba(0, 0, 0, .15);
  }
  html.tcd-nav-open,
  html.tcd-nav-open body { overflow: hidden; }

  .tcd-nav ul,
  .tcd-nav ul.tcd-menu-root { flex-direction: column; flex-wrap: nowrap; }
  .tcd-nav ul li {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 1px solid #e5e7eb;
  }
  .tcd-nav ul li a,
  .tcd-nav .tcd-menu-root > li:first-child > a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    border-bottom: 0;
  }
  .tcd-nav .tcd-menu-root > li.selected > a,
  .tcd-nav .tcd-menu-root > li.current > a,
  .tcd-nav .tcd-menu-root > li.active > a {
    box-shadow: inset 4px 0 0 #FF5722;
    padding-left: 1rem;
  }

  .tcd-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    flex: 0 0 52px;
    margin-right: -0.75rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-left: 1px solid #e5e7eb;
    color: #001840;
    cursor: pointer;
  }
  .tcd-submenu-toggle::before {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
  }
  .tcd-sub-open > .tcd-submenu-toggle::before { transform: translateY(2px) rotate(-135deg); }

  /* Submenus: inline accordion instead of a hover dropdown */
  .tcd-nav ul li ul,
  .tcd-nav ul li:hover > ul,
  .tcd-nav ul li:focus-within > ul {
    display: none;
    position: static;
    flex: 0 0 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0 0 0.5rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .tcd-nav ul li.tcd-sub-open > ul { display: flex; }
  .tcd-nav ul li ul li { border-bottom: 0; }
  .tcd-nav ul li ul li a,
  .tcd-nav ul li ul li a:hover {
    min-height: 44px;
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 0.9375rem;
    border-left: 2px solid #e5e7eb;
    background: transparent;
  }
  .tcd-nav ul li ul li.selected > a,
  .tcd-nav ul li ul li.current > a { border-left-color: #FF5722; padding-left: 1rem; }

  /* Contact / Help / social, moved here from the header */
  .tcd-nav-extras {
    display: block;
    padding: 1rem 0 2rem;
  }
  .tcd-nav .tcd-nav-extra-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #001840;
  }
  .tcd-nav-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
  }
  .tcd-nav .tcd-nav-social a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.875rem;
    color: #4b5563;
  }

  /* Notification bar */
  .tcd-notification { padding: 0.75rem 1rem; gap: 0.5rem; align-items: flex-start; }
  .tcd-notice-body { flex-wrap: wrap; gap: 0.5rem; }
  .tcd-notice-close { min-width: 44px; min-height: 44px; margin: -0.5rem -0.75rem -0.5rem 0; }

  /* Hero: tcd.bm keeps 4rem here; trimmed so the form starts higher on phones */
  .tcd-hero-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .tcd-hero-extra { margin-top: 1rem; }
  .tcd-hero-extra:empty { margin-top: 0; }

  /* Main content */
  .tcd-main { padding-top: 1.5rem; padding-bottom: 2rem; }
  .tcd-content-main { margin-top: 1.5rem; }
  .tcd-main { overflow-wrap: break-word; }
  .tcd-main table { display: block; max-width: 100%; overflow-x: auto; }
  .tcd-main iframe,
  .tcd-main video { max-width: 100%; }

  /* Forms (ActionForm / Bootstrap): comfortable touch targets */
  .tcd-main .form-control,
  .tcd-main .form-select { min-height: 44px; }
  .tcd-main .form-check-input { width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; }
  .tcd-main .form-check-label { padding-left: 0.25rem; }
  .tcd-main .btn { min-height: 44px; }
  .tcd-main .btn.submit,
  .tcd-main .form-button.btn-primary { width: 100%; }

  /* Section helpers / cards */
  .tcd-section-dark,
  .tcd-section-light,
  .tcd-section-gray { padding: 3rem 0; }
  .tcd-card-grid { grid-template-columns: 1fr; }
  .tcd-news-grid { grid-template-columns: 1fr; }
  .tcd-btn-primary,
  .tcd-btn-secondary { justify-content: center; padding: 0.875rem 1.5rem; }

  /* Footer: single column, same spacing as tcd.bm */
  .tcd-footer-bottom { text-align: center; }
}

/* Hover-lift effects feel sticky on touch screens */
@media (hover: none) {
  .tcd-card:hover,
  .tcd-news-card:hover { transform: none; }
}
