/* Apple-style overlay — applied on top of original Super Website CSS.
   Removing this file or its <link> tag fully reverts the design. */

:root {
  --apl-blue:        #0071e3;
  --apl-blue-dark:   #0058b8;
  --apl-text:        #1d1d1f;
  --apl-text-soft:   #6e6e73;
  --apl-bg:          #ffffff;
  --apl-bg-alt:      #f5f5f7;
  --apl-border:      rgba(0,0,0,0.08);
  --apl-shadow:      0 8px 30px rgba(0,0,0,0.06);
  --apl-shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
  --apl-radius:      18px;
  --apl-radius-sm:   12px;
  --apl-font:        -apple-system, BlinkMacSystemFont, "SF Pro Display",
                     "SF Pro Text", "Inter", "Helvetica Neue", Helvetica,
                     Arial, sans-serif;
}

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

body,
body *:not(i):not(em):not(.icon):not([class*="fa-"]):not([class*="icon-"]) {
  font-family: var(--apl-font) !important;
}

body {
  color: var(--apl-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700 !important;
  letter-spacing: -0.022em !important;
  color: var(--apl-text);
  line-height: 1.15 !important;
}
h1 { font-weight: 800 !important; letter-spacing: -0.03em !important; line-height: 1.08 !important; }

p { line-height: 1.55; color: var(--apl-text); }

::selection { background: rgba(0,113,227,0.2); color: var(--apl-text); }

/* ---------- Links ---------- */
a {
  color: var(--apl-blue);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--apl-blue-dark); }

/* ---------- Buttons (apple pill style) ---------- */
button,
input[type="submit"],
input[type="button"],
.btn, .button,
a.btn, a.button,
[class*="button-"], [class*="-button"] {
  background: var(--apl-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 980px !important;
  padding: 12px 26px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  font-size: 16px !important;
  cursor: pointer;
  transition: background .25s ease, transform .15s ease, box-shadow .25s ease !important;
  box-shadow: 0 2px 12px rgba(0,113,227,0.22);
  text-transform: none !important;
}
button:hover, .btn:hover, .button:hover,
a.btn:hover, a.button:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--apl-blue-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0,113,227,0.32);
}
button:active, .btn:active, .button:active { transform: translateY(0); }

/* ---------- Forms ---------- */
input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
textarea, select {
  border-radius: var(--apl-radius-sm) !important;
  border: 1px solid var(--apl-border) !important;
  padding: 12px 16px !important;
  background: var(--apl-bg-alt) !important;
  font-size: 16px !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--apl-blue) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(0,113,227,0.15) !important;
}

/* ---------- Tables ---------- */
table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--apl-radius-sm);
  overflow: hidden;
  background: var(--apl-bg-alt);
  box-shadow: var(--apl-shadow);
  margin: 24px 0;
}
table th {
  background: var(--apl-text) !important;
  color: #fff !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
}
table th, table td {
  border: none !important;
  padding: 14px 18px !important;
}
table tr:nth-child(even) td { background: rgba(255,255,255,0.55) !important; }
table tr:hover td { background: rgba(0,113,227,0.04) !important; transition: background .15s ease; }

/* ---------- Images ---------- */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--apl-radius-sm);
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lazy hover lift on bigger images */
img[width][height]:not([width="1"]):not([width="16"]) {
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* ---------- Frosted-glass top bar ---------- */
header,
.header,
.top-bar,
nav.navbar,
.navbar,
.navigation,
.site-header,
.menu-wrapper,
.moduletable_menu,
[class*="header-"] {
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background-color: rgba(255,255,255,0.72) !important;
  border-bottom: 1px solid var(--apl-border);
  transition: background-color .3s ease;
}

/* ---------- Tighter, iOS-style nav typography ---------- */
#navigation-85, .navigation, nav ul {
  font-size: 14px !important;
  letter-spacing: -0.005em;
}
#navigation-85 .nav-item,
#navigation-85 .page > a,
nav ul li > a {
  padding: 8px 14px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}
#navigation-85 > nav > ul > li.page:not(:last-child) {
  margin-right: 2px !important;
}
/* Collapse the giant header row — Super Website uses vh-based padding */
header.header-rows {
  min-height: 0 !important;
}
.uc-row.header-row,
.uc-row.header-row-fix,
[class*="header-row"] {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}
.row.headerRow {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;      /* columns stretch to row height */
  flex-wrap: nowrap !important;
  width: 100% !important;
  margin: 0 !important;
  min-height: 80px !important;
}
.row.headerRow > .column {
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;               /* kill Bootstrap-ish float */
  display: flex !important;
  align-items: center !important;       /* center child vertically */
}
.row.headerRow > .column.col-xs-2 {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
}
.row.headerRow > .column.col-xs-10 {
  flex: 1 1 auto !important;
  width: auto !important;
  justify-content: flex-end !important;
}
.row.headerRow > .column > .column-container {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.row.headerRow > .col-xs-10 > .column-container { justify-content: flex-end !important; }
.row.headerRow > .column .module-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.row.headerRow .ModuleLogo,
.row.headerRow .module-container.ModuleLogo {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.row.headerRow .ModuleNavigation {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  margin: 0 !important;
}
.row.headerRow #navigation-85 {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.row.headerRow #navigation-85 > nav,
.row.headerRow #navigation-85 .standard-view,
.row.headerRow #navigation-85 .navigation {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.row.headerRow #navigation-85 ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 2px;
}
.row.headerRow #navigation-85 ul > li {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}
@media (max-width: 768px) {
  .row.headerRow { flex-wrap: wrap !important; }
}
/* Bigger logo, vertically centered with menu.
   The original markup wraps the <img> in a .fixed-ratio square (padding-bottom: 100%)
   which makes the column take a huge height. Collapse it to the natural image size. */
.row.headerRow .ModuleLogo .fixed-ratio,
.row.headerRow [class*="ModuleLogo"] .fixed-ratio {
  padding-bottom: 0 !important;
  padding: 0 !important;
  position: static !important;
  height: auto !important;
  width: auto !important;
  display: inline-block !important;
}
.row.headerRow .ModuleLogo .fixed-ratio-content,
.row.headerRow [class*="ModuleLogo"] .fixed-ratio-content {
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-height: 64px !important;
  inset: auto !important;
  object-fit: contain;
}
.module.ModuleLogo img,
.column .ModuleLogo img,
[class*="ModuleLogo"] img {
  max-height: 64px !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
.row.headerRow .ModuleLogo,
.row.headerRow .module.ModuleLogo,
.row.headerRow [class*="ModuleLogo"] {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.row.headerRow .col-xs-2 > .column-container,
.row.headerRow .col-xs-2 > .column-container > * {
  display: flex !important;
  align-items: center !important;
  height: 100%;
}

/* ---------- Mobile burger button + drawer ---------- */
.off-canvas-button {
  display: none;
}
.off-canvas-button.icon {
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.off-canvas-button.icon:hover { background: rgba(0,0,0,0.08) !important; }
.off-canvas-button.icon:active { transform: scale(0.94); }
.off-canvas-button.icon svg {
  width: 24px !important;
  height: 24px !important;
}

/* ===== Header responsive scaling =====
   1280+   : full comfortable menu
   1100-1279: slightly tighter menu (still on one line)
   1024-1099: tightest menu still inline (smaller font/padding)
   <1024   : burger menu, desktop nav hidden
*/
@media (max-width: 1279px) {
  #navigation-85, .navigation, nav ul { font-size: 13.5px !important; }
  #navigation-85 .nav-item,
  #navigation-85 .page > a,
  nav ul li > a {
    padding: 7px 11px !important;
    font-size: 13.5px !important;
  }
  .module.ModuleLogo img,
  .column .ModuleLogo img,
  [class*="ModuleLogo"] img { max-height: 56px !important; }
  .row.headerRow { min-height: 72px !important; }
}
@media (max-width: 1099px) {
  #navigation-85, .navigation, nav ul { font-size: 13px !important; }
  #navigation-85 .nav-item,
  #navigation-85 .page > a,
  nav ul li > a {
    padding: 6px 9px !important;
    font-size: 13px !important;
  }
  .module.ModuleLogo img,
  .column .ModuleLogo img,
  [class*="ModuleLogo"] img { max-height: 52px !important; }
}

@media (max-width: 1023px) {
  /* Give the header row breathing room on the left so the logo isn't glued to the edge */
  .row.headerRow,
  .row.headerRow > .row-container,
  header.header-rows .row-container,
  header.header-rows .uc-row {
    padding-left: 16px !important;
    padding-right: 12px !important;
  }
  .row.headerRow > .col-xs-2 {
    padding-left: 4px !important;
  }
  /* Hide just the desktop menu list — keep its parent containers so the burger
     (which lives in a sibling navigation block) remains in flow. */
  #navigation-85,
  #navigation-85 > nav,
  #navigation-85 > .standard-view,
  .row.headerRow .ModuleNavigation nav.standard-view,
  .row.headerRow .ModuleNavigation ul.navigation {
    display: none !important;
  }
  .row.headerRow .ModuleNavigation {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  .off-canvas-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: #0058b8 !important;            /* solid darker blue */
    margin-left: auto !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 88, 184, 0.30);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  }
  .off-canvas-button:hover {
    background: #003f87 !important;
    box-shadow: 0 6px 18px rgba(0, 88, 184, 0.42);
  }
  .off-canvas-button:active { transform: scale(0.94); }
  /* Hide the broken original SVG and absolutely-center our own white hamburger. */
  .off-canvas-button svg { display: none !important; }
  .off-canvas-button { position: relative !important; }
  .off-canvas-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 16px;
    transform: translate(-50%, -50%);
    background:
      linear-gradient(#ffffff 0 0) top    / 100% 2.5px no-repeat,
      linear-gradient(#ffffff 0 0) center / 100% 2.5px no-repeat,
      linear-gradient(#ffffff 0 0) bottom / 100% 2.5px no-repeat;
    border-radius: 1px;
    pointer-events: none;
  }
  .row.headerRow { min-height: 64px !important; }
  .module.ModuleLogo img,
  .column .ModuleLogo img,
  [class*="ModuleLogo"] img { max-height: 48px !important; }
}

@media (max-width: 480px) {
  .row.headerRow { min-height: 56px !important; }
  .module.ModuleLogo img,
  .column .ModuleLogo img,
  [class*="ModuleLogo"] img { max-height: 40px !important; }
  .off-canvas-button {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ============================================================
   TOP UTILITY BAR — above the main menu, sitewide
   ============================================================ */
.apl-topbar {
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 6px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
  font-size: 13px;
  position: relative;
  z-index: 100;
}
.apl-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.apl-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.apl-topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d1d1f !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  transition: color .2s ease, background .2s ease;
  padding: 4px 6px;
  border-radius: 6px;
}
.apl-topbar-phone:hover { color: #007aff !important; background: rgba(0, 122, 255, 0.06); }
.apl-topbar-phone svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 14px;
}
.apl-topbar-hours {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.005em;
  padding-left: 18px;
  border-left: 1px solid rgba(0, 0, 0, 0.10);
  white-space: nowrap;
}
.apl-topbar-hours svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 14px;
  color: #86868b;
}
.apl-topbar-social {
  display: flex;
  gap: 6px;
  align-items: center;
}
.apl-topbar-item {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: #1d1d1f !important;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.apl-topbar-item:hover {
  background: #007aff;
  color: #fff !important;
  transform: translateY(-1px);
}
.apl-topbar-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 880px) {
  .apl-topbar-hours { display: none; }       /* hide hours on tablet & smaller */
}
@media (max-width: 600px) {
  .apl-topbar { padding: 4px 14px; }
  .apl-topbar-left { gap: 10px; }
  .apl-topbar-phone { font-size: 12.5px; gap: 6px; padding: 3px 4px; }
  .apl-topbar-phone svg { width: 13px; height: 13px; }
  .apl-topbar-item { width: 30px; height: 30px; }
  .apl-topbar-item svg { width: 15px; height: 15px; }
}
@media (max-width: 360px) {
  .apl-topbar-phone span { display: none; }   /* tiny screens: icon only */
}

/* ============================================================
   FOOTER — Apple-style multi-column, responsive
   The original Super Website <footer.footer-rows> is hidden;
   a new <footer.apl-footer> is injected via Python on every page.
   ============================================================ */
footer.footer-rows,
footer.footer-rows::after { display: none !important; }

.apl-footer {
  background: linear-gradient(180deg, #f5f5f7 0%, #ebebed 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 56px;
  padding: 56px 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1d1d1f;
}
.apl-footer-inner { max-width: 1280px; margin: 0 auto; }

.apl-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
}

/* Brand column */
.apl-footer-brand img {
  max-height: 52px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 0 16px;
  border-radius: 10px;
}
.apl-footer-tagline {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.55;
  margin: 0;
  max-width: 280px;
}

/* Column headers */
.apl-footer h4 {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: #1d1d1f !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

/* Lists */
.apl-footer ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.apl-footer li { margin: 0 0 10px !important; padding: 0 !important; }
.apl-footer a {
  color: #6e6e73 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  transition: color .2s ease, transform .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.apl-footer a:hover { color: #007aff !important; }

/* Contact column */
.apl-footer-contact li { display: flex; align-items: flex-start; }
.apl-footer-contact a { align-items: flex-start; }
.apl-footer-contact .apl-ico {
  width: 16px; height: 16px;
  flex: 0 0 16px;
  margin-top: 3px;
  color: #86868b;
  fill: currentColor;
}
.apl-footer-contact a:hover .apl-ico { color: #007aff; }

/* Social column */
.apl-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.apl-footer-social a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f !important;
  gap: 0;
  transition: background .25s ease, color .25s ease, transform .15s ease;
}
.apl-footer-social a:hover {
  background: #007aff;
  color: #fff !important;
  transform: translateY(-2px);
}
.apl-footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Bottom bar */
.apl-footer-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.apl-footer-bar p {
  margin: 0;
  font-size: 12px;
  color: #86868b;
  letter-spacing: 0.01em;
}
.apl-footer-bar nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.apl-footer-bar a {
  font-size: 12px !important;
  color: #86868b !important;
  text-decoration: none !important;
}
.apl-footer-bar a:hover { color: #007aff !important; }

/* Responsive */
@media (max-width: 1023px) {
  .apl-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}
@media (max-width: 600px) {
  .apl-footer { padding: 40px 20px 0; margin-top: 40px; }
  .apl-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 28px;
  }
  .apl-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 24px;
  }
}

/* ============================================================
   APL Mobile drawer (own JS handler, rendered by topbar.php)
   ============================================================ */
.apl-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 998;
  pointer-events: none;
  transition: background .3s ease;
}
.apl-drawer-backdrop.open {
  background: rgba(0, 0, 0, 0.40);
  pointer-events: auto;
}
.apl-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 86vw;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
  z-index: 999;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.apl-drawer.open { transform: translateX(0); }
.apl-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.apl-drawer-head img {
  max-height: 40px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.apl-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.apl-drawer-close:hover { background: rgba(0, 0, 0, 0.08); }
.apl-drawer-close:active { transform: scale(0.94); }
.apl-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex: 1;
}
.apl-drawer-nav a {
  display: block;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1d1d1f !important;
  text-decoration: none !important;
  transition: background .15s ease, color .2s ease;
}
.apl-drawer-nav a:hover,
.apl-drawer-nav a:focus { background: rgba(0, 122, 255, 0.08); color: #007aff !important; }
.apl-drawer-nav a.active {
  color: #007aff !important;
  background: rgba(0, 122, 255, 0.06);
}
.apl-drawer-cta {
  margin-top: auto;
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 10px;
}
.apl-drawer-cta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background .2s ease, transform .15s ease;
}
.apl-drawer-cta .apl-drawer-call {
  background: #007aff;
  color: #fff !important;
}
.apl-drawer-cta .apl-drawer-call:hover { background: #0058b8; transform: translateY(-1px); }
.apl-drawer-cta .apl-drawer-write {
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f !important;
}
.apl-drawer-cta .apl-drawer-write:hover { background: rgba(0, 0, 0, 0.10); }
body.apl-drawer-open { overflow: hidden; }

/* Hide the original Super Website off-canvas drawer (we own the UX now) */
.off-canvas-container { display: none !important; }
/* Catch generic vh-based vertical padding that Super Website inlines */
.column[style*="vh 0vh"],
.column[style*="vh 0vh"] {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

/* ---------- Cards / modules ---------- */
.module, .moduletable, article, .item, .post, .blog-item, .card {
  border-radius: var(--apl-radius);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease;
}

/* ---------- Layout polish ---------- */
* { box-sizing: border-box; }
img, video, iframe, svg { max-width: 100%; }

hr { border: none; border-top: 1px solid var(--apl-border); margin: 32px 0; }

blockquote {
  border-left: 3px solid var(--apl-blue);
  padding-left: 20px;
  font-style: normal;
  color: var(--apl-text-soft);
  margin: 24px 0;
}

/* ---------- Scrollbars (webkit) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.32); }

/* ---------- Fade-in on load ---------- */
@keyframes aplFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
main > *, .container > *, .row > * {
  animation: aplFadeIn .6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.row > *:nth-child(2) { animation-delay: .08s; }
.row > *:nth-child(3) { animation-delay: .16s; }
.row > *:nth-child(4) { animation-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  body { font-size: 16px; }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(28px, 7.5vw, 48px) !important; }
  h2 { font-size: clamp(22px, 5.5vw, 34px) !important; }
  h3 { font-size: clamp(19px, 4.5vw, 26px) !important; }
  table th, table td { padding: 10px 12px !important; font-size: 14px !important; }
  button, .btn, .button { padding: 11px 22px !important; font-size: 15px !important; }
}

/* Honor user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  header, nav, .navbar, footer { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
}
