.desktop-masthead-motto {
  display: none;
}

@media (min-width: 1024px) {
  html:is(:not([data-appearance]), [data-appearance="light"]) body.portal-home > header {
    --site-paper: #fbf8f1;
    --site-ink: #202625;
  }

  html body.portal-home > header {
    background: var(--site-paper, #fbf8f1) !important;
    border-top: 3px solid #875a3c;
    border-bottom: 1px solid #d9cfc0 !important;
    color: var(--site-ink, #202625) !important;
  }

  html body.portal-home > header .wrap.masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 28px;
  }

  html body.portal-home > header .masthead > :is(#intro-audio-dock, .header-navigation) {
    grid-column: 1 / -1;
  }

  html body.portal-home > header .masthead > .identity {
    justify-self: start;
    margin: 22px 0 24px !important;
    text-align: left;
  }

  html body.portal-home > header .masthead .identity .brand-copy {
    align-items: flex-start;
    text-align: left;
  }

  html body.portal-home > header .masthead .identity .brand {
    font: 700 clamp(36px, 3.35vw, 58px)/1.08 Georgia, serif !important;
    letter-spacing: .015em !important;
    color: var(--site-ink, #202625) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body.portal-home > header .masthead .identity .brand-title {
    color: var(--site-ink, #875a3c) !important;
    font: 600 17px/1.4 Arial, sans-serif !important;
    text-align: left;
    letter-spacing: .035em;
    text-transform: none;
  }

  html body.portal-home > header .masthead .identity .brand-role {
    display: none;
  }

  .portal-home .desktop-masthead-motto {
    display: block;
    margin: 0;
    font: italic clamp(20px, 1.65vw, 28px)/1.3 Georgia, serif;
    color: var(--site-ink, #202625);
    text-align: right;
  }

  html body.portal-home > header .masthead .header-navigation {
    width: 100%;
    border-top: 1px solid #d9cfc0;
  }

  html body.portal-home > header .masthead .header-navigation .header-menu-line {
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  html body.portal-home > header .masthead .header-navigation .site-nav {
    flex: 1 1 auto !important;
    justify-content: space-between !important;
    column-gap: clamp(10px, .9vw, 20px) !important;
    margin: 0 !important;
  }

  html body.portal-home > header .masthead .header-navigation .site-nav > a,
  html body.portal-home > header .masthead .header-navigation .site-nav > .written-nav > summary {
    font: 650 clamp(15px, 1.2vw, 21px)/1.3 Arial, sans-serif !important;
    color: var(--site-ink, #202625) !important;
    padding-block: 13px !important;
    text-shadow: none !important;
  }

  html body.portal-home > header .masthead .header-navigation .site-nav > a:first-child {
    color: var(--site-ink, #875a3c) !important;
    box-shadow: inset 0 -2px #875a3c !important;
  }
}

.masthead :is(.brand, .desktop-masthead-motto) {
  position: relative;
}

html body.portal-home > header .masthead :is(.brand, .desktop-masthead-motto) .masthead-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #e5aa51 !important;
  -webkit-text-fill-color: #e5aa51 !important;
  mask-image: linear-gradient(110deg, transparent 43%, #000 50%, transparent 57%);
  mask-size: 300% 100%;
  mask-position: 100% 0;
  animation: masthead-shine-sweep 7s ease-in-out infinite;
}

@keyframes masthead-shine-sweep {
  0%, 55% { mask-position: 100% 0; }
  82%, 100% { mask-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .masthead-shine {
    display: none;
  }
}

html body #modern-portal .portal-primary-notices .portal-notice-new {
  animation: none;
}

html body #modern-portal .portal-primary-notices .portal-notice-item {
  font: 700 18px/1.35 system-ui, sans-serif !important;
}

html body #modern-portal .portal-primary-notices .portal-notice-item[href="/akademi-ogrenci"] {
  font-family: Georgia, serif !important;
}

html body #modern-portal .portal-primary-notices .portal-notice-item[href="/soru-cevap.html"] {
  font-family: Arial, sans-serif !important;
}

html body #modern-portal .portal-primary-notices .portal-notice-item[href="/ilim-ogreniyorum"] {
  font-family: "Trebuchet MS", sans-serif !important;
}

html body #modern-portal .portal-primary-notices .portal-notice-item[href="/her-gun-bir-soru"] {
  font-family: Verdana, sans-serif !important;
}

html body #modern-portal .portal-primary-notices .portal-notice-item .learning-notice-title {
  font: inherit !important;
}

html body #modern-portal .portal-primary-notices .portal-notice-item :is(.learning-notice-copy, .learning-notice-action) {
  font-family: inherit !important;
  font-size: 15px !important;
}

@media (max-width: 767px) {
  html body #modern-portal .portal-primary-notices .portal-notice-item {
    font-size: 16px !important;
  }

  html body #modern-portal .portal-primary-notices .site-phone-notice-short {
    white-space: normal !important;
  }
}
