.main-nav {
	display: none !important;
}

/* Attention dot on the nav "Grade & Approve" link — shown when the educator has
   essays awaiting grading. Static (not animated) by design. */
/* Unread reported-issues count beside Your Classes. A number rather than the
   sibling dot: a dot says "something", and the whole point of this one is that
   the notification bell it replaces is display:none on every SYL page, so this
   is the only place the size of the pile is visible. */
.nav-issue-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 6px;
	border-radius: 999px;
	background-color: #ff3b30;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

.nav-pending-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 6px;
	border-radius: 50%;
	background-color: #ff3b30;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

.header {
	margin-bottom: 54px;
}

.header .left {
	display: flex;
	align-items: center;
	gap: 30px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	letter-spacing: 0.4px;
	color: inherit;
	text-decoration: none;
}

.logo-dot {
	background: rgba(2, 219, 115, 1);
	height: 44px;
	width: 44px;
	border-radius: 50%;
}

.brand-text {
	font-size: 36px;
	font-family: "montserrat";
}

.subbrand {
	font-size: 16px;
	color: #000;
	font-weight: 600;
	white-space: nowrap;
}

.subbrand a {
	color: #000;
	text-decoration: underline;
	font-weight: 600;
}

.nav-link {
	color: #000;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	/* A link that wraps breaks mid-phrase — "Owned / Assignments" — and takes the whole
	   header to two ragged lines. The row sheds the subbrand and then collapses into the
	   menu button instead; see the ladder at the bottom of this file. */
	white-space: nowrap;
}

/* The account menu — the plan, referrals and logout, which are session links rather than
   page navigation. Behind one control they stop competing with the pages for the row. */
.nav-account {
	position: relative;
}

.nav-account-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #000;
	white-space: nowrap;
	cursor: pointer;
}

.nav-account-caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.15s ease;
}

.nav-account.is-open .nav-account-caret {
	transform: rotate(180deg);
}

.nav-account-menu {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	z-index: 1002;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 170px;
	padding: 16px 18px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* The class selector would otherwise outrank the [hidden] attribute's own display rule. */
.nav-account-menu[hidden] {
	display: none;
}

.mobile-nav-panel {
	display: none;
}

.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001;
	position: relative;
}

.mobile-menu-btn span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: #000;
	margin: 5px 0;
	transition: all 0.3s;
}

.cta-new-assignment {
	width: 306px;
	height: 60px;
	box-shadow: 0 2px 10px 2px rgba(205, 213, 204, 1);
	border-radius: 8px;
	background-color: rgba(187, 255, 179, 1);
	color: var(--dark);
	border: none;
	font-size: var(--font-size-lg);
	font-weight: 900;
	letter-spacing: 0.4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.cta-new-assignment:hover {
	background-color: var(--cta-2);
}

.cta-new-assignment:active {
	background-color: var(--cta-3);
}

.cta-dashboard {
	width: 306px;
	height: 60px;
	box-shadow: 0 2px 10px 2px rgba(205, 213, 204, 1);
	border-radius: 8px;
	background-color: rgba(187, 255, 179, 1);
	color: var(--dark);
	border: none;
	font-size: var(--font-size-lg);
	font-weight: 900;
	letter-spacing: 0.4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
  padding: 5px;
}

.cta-dashboard:hover {
	background-color: var(--cta-2);
}

.cta-dashboard:active {
	background-color: var(--cta-3);
}

.nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 100vw !important;
	gap: 20px;
}

.right {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}

.desktop-nav {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 20px;
}

.header.faq, .header.privacy, .header.terms {
  padding: 20px;
}

.header.collections .container {
  padding: 0px;
}

/* The width ladder.
   The header carries a brand, a strapline, up to six page links, the account menu and a
   CTA. Rather than shrinking the type until the links wrap mid-phrase, it sheds what it
   can afford in order: the strapline first, then the whole nav into the menu button. */

@media (max-width: 1600px) {
  .subbrand {
    font-size: 14px;
  }

  .nav-link,
  .nav-account-btn {
    font-size: 15px;
  }

  .cta-new-assignment,
  .cta-dashboard {
    width: 260px;
    height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 1400px) {
  /* The strapline is the one thing in the row nobody navigates by, so it goes before the
     links give up any more size. */
  .subbrand {
    display: none;
  }

  .header .left {
    gap: 20px;
  }

  .nav-link,
  .nav-account-btn {
    font-size: 14px;
  }

  .right,
  .desktop-nav {
    gap: 16px;
  }

  .cta-new-assignment,
  .cta-dashboard {
    width: 210px;
    height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  /* Below this the row cannot hold the links at a readable size, so the whole nav moves
     into the menu button rather than being squeezed into 11px. */
  .header .desktop-nav {
    display: none;
  }

  .header .mobile-menu-btn {
    display: block;
  }

  .mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
  }

  .mobile-nav-panel.open {
    display: flex;
  }

  .nav-open .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .ct.nav-open {
    overflow: hidden;
  }

  .mobile-nav-panel .nav-link {
    display: block;
    font-size: 18px;
    text-align: center;
    padding: 8px 0;
  }

  .mobile-nav-panel .cta-dashboard,
  .mobile-nav-panel .cta-new-assignment {
    display: flex;
    width: auto;
    min-width: 200px;
    text-align: center;
    border-radius: 8px;
    height: auto;
    padding: 15px 24px;
    font-size: 16px;
  }

  .mobile-nav-panel .sign-up-login {
    display: block;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 24px;
    background: var(--cta);
    border-radius: 8px;
    text-align: center;
  }
}

@media (max-width: 740px) {
  .header {
    margin-bottom: 30px;
  }

  .header .left {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Back on its own line under the brand, where it costs the links nothing. */
  .subbrand {
    display: block;
    font-size: 11px;
    white-space: normal;
  }

  .brand-text {
    font-size: 28px;
  }

  .logo-dot {
    height: 34px;
    width: 34px;
  }

  .nav-row {
    gap: 10px;
  }

  .right {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
  }

  /* Only now does the CTA give up its place in the row — the menu panel carries its own
     copy, so the action is never more than one tap away. */
  .header .cta-new-assignment,
  .header .cta-dashboard {
    display: none;
  }
}

@media (max-width: 480px) {
  .header {
    margin-bottom: 20px;
  }

  .subbrand {
    font-size: 10px;
  }

  .brand-text {
    font-size: 24px;
  }

  .logo-dot {
    height: 28px;
    width: 28px;
  }

  .brand {
    gap: 8px;
  }
}

/* Hidden for now: a class's Assignments tab already links to the library. */
.nav-link.syl-nav-library,
.mobile-nav-panel .nav-link.syl-nav-library {
  display: none;
}
