/* Native Blocksy chrome and generic templates; parent theme files are untouched. */
body.an-najah-site {
  background: var(--anj-paper);
  color: var(--anj-ink);
  font-family: var(--anj-font-body);
  font-size: 1rem;
  line-height: 1.75;
}

body.an-najah-site :is(h1, h2, .entry-title) {
  font-family: var(--anj-font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}

body.an-najah-site h3 { font-family: var(--anj-font-body); line-height: 1.4; }
.anj-front #main { padding: 0; margin: 0; }
.anj-front .anj-front-content { width: 100%; max-width: none; margin: 0; }
.anj-front-content > .wp-block-group { margin-block: 0; }
.anj-front-content .anj-shell { margin-inline: auto; }
.entry-content :is(p, li, h1, h2, h3, a) { overflow-wrap: break-word; }
.entry-content :is(img, video, iframe) { max-width: 100%; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content a:not(.wp-block-button__link) { text-underline-offset: .2em; }

.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--anj-radius);
  background: var(--anj-primary);
  color: var(--anj-on-primary);
  font: 600 .9375rem/1.5 var(--anj-font-body);
  text-decoration: none;
}

.entry-content .is-style-outline .wp-block-button__link {
  border-color: currentColor;
  background: transparent;
  color: var(--anj-primary);
}

.entry-content :is(.anj-hero, .anj-ppdb) .wp-block-button__link {
  background: var(--anj-surface);
  color: var(--anj-deep);
}

.entry-content :is(.anj-hero, .anj-ppdb) .is-style-outline .wp-block-button__link {
  border-color: var(--anj-on-primary);
  background: transparent;
  color: var(--anj-on-primary);
}

.an-najah-site :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--anj-focus);
  outline-offset: 4px;
}

.an-najah-site :is(.anj-hero, .anj-ppdb, #footer, #offcanvas) :is(a, button, input):focus-visible {
  outline-color: var(--anj-on-primary);
}

.an-najah-site .skip-link:focus { background: var(--anj-surface); color: var(--anj-ink); }
#header .site-branding { display: flex; align-items: center; max-width: 17rem; }
#header .site-title { font: 600 1.25rem/1.2 var(--anj-font-heading); }
#header .site-title a { color: var(--anj-deep); }
#header .ct-header-text { font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
#header [data-row="top"] { background: var(--anj-deep); }
#header [data-row="top"] .ct-header-text { color: var(--anj-on-primary); }
#header .ct-header-text[data-width="stretch"] { width: 100%; }
#header .anj-utility { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 2rem; font-size: .8125rem; line-height: 1.5; letter-spacing: normal; text-transform: none; }
#header .anj-utility > span { display: block; }
#header .anj-utility-location { flex: 1; min-width: 0; }
#header .anj-utility-contact { flex-shrink: 0; white-space: nowrap; }
#header .anj-utility-contact a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
#header .site-branding:has(.site-logo-container) { gap: .375rem; }
#header .site-logo-container { flex-shrink: 0; }
#header .site-title-container { min-width: 0; }
#header .site-branding[data-logo="left"] .site-title-container { margin-inline-start: 0; }
#header .menu > li > a { font-size: .875rem; font-weight: 600; text-transform: none; }
#header .ct-header-cta a { border-radius: var(--anj-radius); min-height: 2.75rem; }
#header .ct-header-trigger { min-width: 2.75rem; min-height: 2.75rem; justify-content: center; }

#header .site-branding::before {
  content: "AN";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin-inline-end: .75rem;
  border: 1px solid var(--anj-accent);
  border-radius: var(--anj-radius);
  background: var(--anj-soft);
  color: var(--anj-primary);
  font: 600 1.125rem/1 var(--anj-font-heading);
}

#header .site-branding:has(.site-logo-container)::before { display: none; }
#header [data-device="desktop"] .menu-container { --dropdown-top-offset: 6px; --sticky-state-dropdown-top-offset: 6px; --dropdown-items-spacing: 8px; }
#header [data-device="desktop"] .menu > li { align-self: center; }
#header [data-device="desktop"] .menu > li > .ct-menu-link { --menu-item-height: 44px; }
#header [data-device="desktop"] .sub-menu {
  --dropdown-background-color: var(--anj-surface);
  --dropdown-background-hover-color: var(--anj-soft);
  background-color: var(--anj-surface);
  border: 1px solid var(--anj-border);
  border-radius: var(--anj-radius);
  box-shadow: 0 8px 20px rgb(0 0 0 / 8%);
}
#header [data-device="desktop"] .sub-menu .ct-menu-link {
  --theme-link-initial-color: var(--anj-ink);
  --theme-link-hover-color: var(--anj-deep);
  --theme-link-active-color: var(--anj-deep);
  --theme-icon-color: currentColor;
  --theme-icon-hover-color: currentColor;
  --theme-icon-active-color: currentColor;
  padding: .75rem 1rem;
  font-size: .9375rem;
  color: var(--anj-ink);
}
#header [data-device="desktop"] .sub-menu li:is(:hover, :focus-within) > .ct-menu-link,
#header [data-device="desktop"] .sub-menu .ct-menu-link:is(:hover, :focus-visible),
#header [data-device="desktop"] .sub-menu li[class*="current-menu-"] > .ct-menu-link {
  color: var(--anj-deep);
  background-color: var(--anj-soft);
  text-decoration: underline;
  text-underline-offset: .2em;
}
#header [data-device="desktop"] .sub-menu .ct-menu-link:focus-visible {
  outline: 2px solid var(--anj-focus);
  outline-offset: -3px;
}

/* Drawer is outside #header. Its active, hover and PPDB colors need their own context. */
body.an-najah-site #offcanvas .ct-panel-inner { background: var(--anj-deep); }
body.an-najah-site #offcanvas .mobile-menu {
  --theme-link-initial-color: #fff;
  --theme-link-hover-color: #fff;
  --theme-link-active-color: #fff;
  --theme-font-size: 1.0625rem;
}

body.an-najah-site #offcanvas .ct-menu-link { color: var(--anj-on-primary); }
body.an-najah-site #offcanvas :is(.current-menu-item, .current-menu-ancestor) > .ct-menu-link,
body.an-najah-site #offcanvas .current-menu-item > .ct-sub-menu-parent > .ct-menu-link { text-decoration: underline; text-underline-offset: .3em; }
body.an-najah-site #offcanvas .ct-menu-link:hover { text-decoration: underline; text-underline-offset: .3em; }
body.an-najah-site #offcanvas .anj-menu-ppdb > .ct-menu-link {
  margin-block-start: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--anj-radius);
  background: var(--anj-surface);
  color: var(--anj-deep);
  font-weight: 700;
}
body.an-najah-site #offcanvas :is(.ct-toggle-close, .ct-toggle-dropdown-mobile) { color: var(--anj-on-primary); --theme-icon-color: #fff; }
body.an-najah-site #offcanvas .ct-toggle-close { min-width: 2.75rem; min-height: 2.75rem; }

#footer { background: var(--anj-deep); color: var(--anj-on-primary); }
#footer :is(h2, h3, p, a, .ct-footer-copyright) { color: var(--anj-on-primary); }
#footer h2 { font: 400 1.625rem/1.25 var(--anj-font-heading); }
#footer h3 { font: 600 .875rem/1.5 var(--anj-font-body); letter-spacing: .06em; }
#footer p { font-size: .9375rem; line-height: 1.8; }
#footer a { text-decoration: none; }
#footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
#footer [data-row="middle"] { padding-block: 1.5rem; }
#footer [data-row="bottom"] { border-top: 1px solid rgb(255 255 255 / 25%); }
#footer .ct-footer-copyright { font-size: .8125rem; line-height: 1.7; }

.an-najah-site .hero-section .page-title { max-width: 22ch; font-size: clamp(2rem, 4vw, 3rem); }
.an-najah-site .entry-meta { font-size: .875rem; }
.an-najah-site .entries .entry-title { font-size: 1.75rem; }
.an-najah-site .entries .entry-excerpt { font-size: 1rem; }
.an-najah-site .entries .entry-button { font-size: .9375rem; }
.an-najah-site .ct-pagination { font-size: 1rem; }
.an-najah-site .anj-announcements :is(h2, h3) { font-family: var(--anj-font-body); font-size: 1rem; font-weight: 600; }

@media (max-width: 600px) {
  #header .site-branding { max-width: min(17rem, calc(100vw - 6.5rem)); }
  #header .site-title { font-size: 1.125rem; }
  #header .site-branding::before { width: 2.25rem; height: 2.5rem; margin-inline-end: .625rem; font-size: 1rem; }
  #header .ct-header-text { font-size: .6875rem; letter-spacing: .06em; }
}

@media (max-width: 767px) {
  #header .anj-utility { flex-direction: column; align-items: flex-start; gap: .125rem; padding-block: .5rem; font-size: .75rem; }
  #header .site-branding:has(.site-logo-container) { gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .an-najah-site { scroll-behavior: auto; }
  .an-najah-site *, .an-najah-site *::before, .an-najah-site *::after { animation-duration: .01ms; transition-duration: .01ms; scroll-behavior: auto; }
}
