/* DiziDAD 3.3 — only the brand header and footer. The original navigation,
   live-search geometry, mobile breakpoint and advertising remain in place. */
html #wrap #header.dd-brand-header,
html #wrap #footer.dd-brand-footer {
  --brand-ink:#f4f3ff;
  --brand-muted:#bdc6e2;
  --brand-accent:#b2a4ff;
  --brand-line:#41466b;
  --brand-soft:#202747;
  --brand-nav:#111831;
  --brand-field:#171f3d;
  --brand-active:#33305e;
  --brand-bg:radial-gradient(ellipse at 0% 0%,#29295b 0%,transparent 54%),linear-gradient(120deg,#111a35 10%,#171a37 72%,#21204a 100%);
  color:var(--brand-ink) !important;
  background: #151b34 !important;
  background:var(--brand-bg) !important;
  box-sizing:border-box !important;
  border:1px solid var(--brand-line);
}
html[data-dd-mode="day"] body #wrap #header.dd-brand-header,
html[data-dd-mode="day"] body #wrap #footer.dd-brand-footer {
  --brand-ink:#17233f;
  --brand-muted:#4b5d7e;
  --brand-accent:#5548b7;
  --brand-line:#cbd1ea;
  --brand-soft:#eef0fc;
  --brand-nav:#f0f2fc;
  --brand-field:#fcfdff;
  --brand-active:#e1e1fa;
  --brand-bg:radial-gradient(ellipse at 0% 0%,#e4e9ff 0%,transparent 58%),linear-gradient(120deg,#ffffff 10%,#f7f8ff 75%,#eceafd 100%);
  background:#f8f9ff !important;
  background:var(--brand-bg) !important;
  color:var(--brand-ink) !important;
}
/* Equal intrinsic dimensions and immediate CSS mode selection. */
html body #wrap #header.dd-brand-header #logoalan .dd-brand-logo,
html body #wrap #footer.dd-brand-footer .dd-brand-logo {
  display:inline-flex !important;align-items:center;justify-content:center;
  max-width:100%;margin:0 !important;padding:0 !important;
  text-decoration:none !important;line-height:0;
}
html body #wrap #header.dd-brand-header #logoalan .dd-brand-logo > img,
html body #wrap #footer.dd-brand-footer .dd-brand-logo > img {
  display:block !important; width:200px !important;max-width:100% !important;
  height:auto !important;max-height:none !important;object-fit:contain;
  margin:0 !important;padding:0 !important;filter:none !important;
}
html body #wrap #header.dd-brand-header #logoalan .dd-brand-logo > img.dd-brand-day,
html body #wrap #footer.dd-brand-footer .dd-brand-logo > img.dd-brand-day {
  display:none !important;
}
html[data-dd-mode="day"] body #wrap #header.dd-brand-header #logoalan .dd-brand-logo > img.dd-brand-night,
html[data-dd-mode="day"] body #wrap #footer.dd-brand-footer .dd-brand-logo > img.dd-brand-night {display:none !important;}
html[data-dd-mode="day"] body #wrap #header.dd-brand-header #logoalan .dd-brand-logo > img.dd-brand-day,
html[data-dd-mode="day"] body #wrap #footer.dd-brand-footer .dd-brand-logo > img.dd-brand-day {display:block !important;}
html body #wrap #header.dd-brand-header #myTopnav {
  background:var(--brand-nav) !important;
  border-top:1px solid var(--brand-line);
  border-radius:0 0 19px 19px !important;
}
html body #wrap #header.dd-brand-header #myTopnav a,
html body #wrap #header.dd-brand-header #myTopnav a:visited,
html body #wrap #header.dd-brand-header #myTopnav a i,
html body #wrap #header.dd-brand-header #myTopnav a span {
  color:var(--brand-ink) !important;-webkit-text-fill-color:currentColor !important;
}
html body #wrap #header.dd-brand-header #myTopnav a:hover,
html body #wrap #header.dd-brand-header #myTopnav a:focus-visible,
html body #wrap #header.dd-brand-header #myTopnav .current-menu-item > a,
html body #wrap #header.dd-brand-header #myTopnav .current-menu-ancestor > a {
  color:var(--brand-accent) !important;
}
html body #wrap #header.dd-brand-header #myTopnav ul.sub-menu {
  background:var(--brand-nav) !important;color:var(--brand-ink) !important;
  border-color:var(--brand-line) !important;
}
html body #wrap #header.dd-brand-header #myTopnav ul.sub-menu li {
  background:transparent !important;border-bottom-color:var(--brand-line) !important;
}
html body #wrap #header.dd-brand-header #myTopnav ul.sub-menu li:hover,
html body #wrap #header.dd-brand-header #myTopnav ul.sub-menu li:focus-within {
  background:var(--brand-active) !important;
}
html body #wrap #header.dd-brand-header #myTopnav ul.sub-menu li > a,
html body #wrap #header.dd-brand-header #myTopnav ul.sub-menu li > a:visited {
  color:var(--brand-ink) !important;-webkit-text-fill-color:currentColor !important;
}
html body #wrap #header.dd-brand-header #araform {
  background:var(--brand-field) !important;border-color:var(--brand-line) !important;
  box-shadow:none !important;
}
html body #wrap #header.dd-brand-header #araform input[type="text"],
html body #wrap #header.dd-brand-header #araform button[type="submit"] {
  color:var(--brand-ink) !important;-webkit-text-fill-color:currentColor !important;
}
html body #wrap #header.dd-brand-header #araform input[type="text"]::placeholder {
  color:var(--brand-muted) !important;opacity:1 !important;
  -webkit-text-fill-color:var(--brand-muted) !important;
}
html body #wrap #header.dd-brand-header #araform:focus-within {border-color:var(--brand-accent) !important;}
html body #wrap #header.dd-brand-header #mmenualan a.small-button,
html body #wrap #header.dd-brand-header #mmenualan a.mobilymenu,
html body #wrap #header.dd-brand-header #mmenualan .ddgg-mode-button,
html body #wrap #header.dd-brand-header .ddgg-header-center > .ddgg-mode-button {
  color:var(--brand-ink) !important;background:var(--brand-soft) !important;
  border:1px solid var(--brand-line) !important;box-shadow:none !important;
}
html body #wrap #header.dd-brand-header #mmenualan a i,
html body #wrap #header.dd-brand-header #mmenualan a .nomob,
html body #wrap #header.dd-brand-header .ddgg-mode-button .ddgg-toggle-name {color:var(--brand-ink) !important;}
html body #wrap #header.dd-brand-header .ddgg-mode-button .ddgg-toggle-icon {color:var(--brand-accent) !important;}
html body #wrap #header.dd-brand-header #mmenualan a.small-button:hover,
html body #wrap #header.dd-brand-header #mmenualan a.mobilymenu:hover,
html body #wrap #header.dd-brand-header .ddgg-mode-button:hover {background:var(--brand-active) !important;border-color:var(--brand-accent) !important;}
html body #wrap #header.dd-brand-header #mmenualan a[title="Kaydol"] {background:#5546a8 !important;color:#fff !important;border-color:#7165c9 !important;}
html body #wrap #header.dd-brand-header #mmenualan a[title="Kaydol"] i,
html body #wrap #header.dd-brand-header #mmenualan a[title="Kaydol"] .nomob {color:#fff !important;}
html body #wrap #header.dd-brand-header a:focus-visible,
html body #wrap #header.dd-brand-header button:focus-visible,
html body #wrap #footer.dd-brand-footer a:focus-visible {outline:2px solid var(--brand-accent) !important;outline-offset:2px;}
@media(min-width:1101px){
  html body #wrap #header.dd-brand-header #logoalan .dd-brand-logo > img {width:190px !important;}
  html body #wrap #header.dd-brand-header {grid-template-rows:minmax(84px,auto) auto !important;}
}
@media(max-width:1100.98px){
  html body #wrap #header.dd-brand-header #logoalan .dd-brand-logo > img {width:210px !important;}
  html body #wrap #header.dd-brand-header #mmenualan #ddgg-mode-button-mobile .ddgg-toggle-name {display:none !important;}
  html body #wrap #header.dd-brand-header #mmenualan #ddgg-mode-button-mobile .ddgg-toggle-icon {margin:0 !important;}
}
/* Footer: no old #ymenuayd / footeright layout classes in the new columns. */
html body #wrap #footer.dd-brand-footer {
  display:block !important;width:100% !important;max-width:100% !important;
  padding:24px 24px 0 !important;margin:12px 0 20px !important;
  border-radius:20px !important;height:auto !important;
  box-sizing:border-box !important;
}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid {
  display:grid;grid-template-columns:minmax(0,1.3fr) repeat(2,minmax(0,1fr));
  gap:22px;align-items:start;width:100%;min-width:0;
}
/* A class avoids relying on :has support in older browsers. */
html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid.dd-brand-has-social {
  grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr)) minmax(0,1fr);
}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid > * {min-width:0;max-width:100%;}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid > * + * {border-left:1px solid var(--brand-line);padding-left:18px;}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-about p,
html body #wrap #footer.dd-brand-footer .dd-brand-footer-social p {
  color:var(--brand-muted) !important;font-size:13px;line-height:1.6;margin:10px 0 0;
  overflow-wrap:break-word;
}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid h2 {
  font-size:14px;line-height:1.35;font-weight:700;color:var(--brand-ink) !important;
  margin:0 0 9px;padding:8px 10px;box-sizing:border-box;border-radius:12px;
  background:var(--brand-soft);border:1px solid var(--brand-line);
}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid h2 :is(i,svg) {color:var(--brand-accent) !important;margin-right:4px;}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-links ul {margin:0;padding:0;list-style:none;}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-links li {list-style:none;display:block;margin:0;padding:0;}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-links li a {
  display:flex;align-items:center;justify-content:space-between;gap:5px;
  min-height:32px;padding:4px 6px;box-sizing:border-box;border-radius:8px;
  font-size:13px;line-height:1.4;color:var(--brand-ink) !important;
  text-decoration:none !important;overflow-wrap:anywhere;
}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-links li a::after {
  content:'›';flex:0 0 auto;font-size:19px;line-height:1;color:var(--brand-accent);
}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-links li a:hover {background:var(--brand-active);color:var(--brand-accent) !important;}
html body #wrap #footer.dd-brand-footer .dd-brand-social-links {display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;}
html body #wrap #footer.dd-brand-footer .dd-brand-social-links a {
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
  width:40px;height:40px;border-radius:12px;border:1px solid var(--brand-line);
  color:var(--brand-ink) !important;background:var(--brand-soft);font-size:18px;text-decoration:none !important;
}
html body #wrap #footer.dd-brand-footer .dd-brand-social-links a:hover {background:var(--brand-active);color:var(--brand-accent) !important;}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-copy {margin-top:20px;border-top:1px solid var(--brand-line);padding:12px 0;}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-copy .footerleft {
  float:none !important;width:100% !important;max-width:100% !important;max-height:none !important;
  overflow:visible !important;box-sizing:border-box;margin:0 !important;color:var(--brand-muted) !important;
  font-size:12px;line-height:1.5;overflow-wrap:break-word;
}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-copy .footerleft span {color:var(--brand-muted) !important;}
html body #wrap #footer.dd-brand-footer .dd-brand-footer-copy .footerleft a {color:var(--brand-accent) !important;}
@media(max-width:900px){
  html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid,
  html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid.dd-brand-has-social {
    grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
  }
    html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid > * + * {border-left:0;padding-left:0;}
  html body #wrap #footer.dd-brand-footer .dd-brand-footer-about {grid-column:1 / -1;text-align:center;}
}
@media(max-width:480px){
  html body #wrap #footer.dd-brand-footer {padding:18px 12px 0 !important;}
  html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid,
  html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid.dd-brand-has-social {gap:10px;}
  html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid h2 {font-size:12px;padding:8px 6px;}
  html body #wrap #footer.dd-brand-footer .dd-brand-footer-links li a {min-height:40px;font-size:13px;padding:5px 3px;}
  html body #wrap #footer.dd-brand-footer .dd-brand-footer-social {grid-column:1 / -1;}
  html body #wrap #footer.dd-brand-footer .dd-brand-footer-copy {text-align:center;}
}
/* Existing mode-specific rules also target the button ID. Match their specificity,
   keep text readable in day mode, and remove the legacy dark gradient. */
html[data-dd-mode].ddgg-layout-desktop body #wrap #header.dd-brand-header .ddgg-header-center > #ddgg-mode-button,
html[data-dd-mode].ddgg-layout-desktop body #wrap #header.dd-brand-header #mmenualan > #ddgg-mode-button-mobile {
  background:var(--brand-soft) !important;background-image:none !important;
  border-color:var(--brand-line) !important;color:var(--brand-ink) !important;
}
html[data-dd-mode].ddgg-layout-desktop body #wrap #header.dd-brand-header .ddgg-header-center > #ddgg-mode-button:hover,
html[data-dd-mode].ddgg-layout-desktop body #wrap #header.dd-brand-header #mmenualan > #ddgg-mode-button-mobile:hover {
  background:var(--brand-active) !important;border-color:var(--brand-accent) !important;
}
html[data-dd-mode].ddgg-layout-desktop body #wrap #header.dd-brand-header .ddgg-mode-button .ddgg-toggle-icon {
  color:var(--brand-accent) !important;
}
html[data-dd-mode].ddgg-layout-desktop body #wrap #header.dd-brand-header .ddgg-mode-button .ddgg-toggle-name {
  color:var(--brand-ink) !important;
}
html[data-dd-mode].ddgg-layout-desktop body #wrap #header.dd-brand-header .ddgg-mode-button {
  transition:transform .15s ease,border-color .15s ease !important;
}
@media(prefers-reduced-motion:reduce){
  html[data-dd-mode].ddgg-layout-desktop body #wrap #header.dd-brand-header .ddgg-mode-button {transition:none !important;}
}

html body #wrap #footer.dd-brand-footer .dd-brand-footer-grid h2 .dd-modern-icon {width:14px;height:14px;vertical-align:-2px;display:inline-block;}
