/* Reference homepage and shared navigation. Kept separate from lesson styles. */
body {
  background: #fffadf;
  padding-bottom: 0;
}
.ag-shell {
  --ag-wine: #550000;
  --ag-gold: #e8b847;
  --ag-paper: #fffadf;
  max-width: 1480px;
  margin: 0 auto;
  border: 30px solid transparent;
  border-image: url("/images/royal-temple-frame-reference.png") 125 / 30px
    stretch;
  background: var(--ag-paper);
  box-shadow: 0 8px 36px #37110055;
}
.ag-skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 10px 20px;
  background: #fffadf;
  color: #550000;
}
.ag-skip:focus {
  top: 10px;
}
.ag-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 110px;
  padding: 4px 18px;
  background:
    radial-gradient(ellipse at 50% 0, #8a220a44, transparent 65%),
    linear-gradient(110deg, #350000, #690000 55%, #360000);
  color: #fff0b2;
  border-bottom: 2px solid #e0ae3e;
  box-shadow:
    inset 0 -3px 0 #926019,
    0 3px 10px #21000070;
}
.ag-header::before {
  content: "❧  ❦  ❧";
  position: absolute;
  top: 0;
  left: 54%;
  transform: translateX(-50%);
  letter-spacing: 9px;
  line-height: 1;
  font-size: 26px;
  color: #eebd52;
  opacity: 0.8;
  pointer-events: none;
}
.ag-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.ag-crest {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff2c6;
  border: 2px solid #ffd777;
  box-shadow:
    0 0 0 2px #814916,
    0 4px 12px #24000090;
  margin-bottom: -26px;
  z-index: 2;
}
.ag-crest img {
  display: block;
  max-width: none;
  width: auto;
  height: 100%;
}
.ag-wordmark {
  color: #fff1b1;
  font:
    24px/1.08 Georgia,
    "Times New Roman",
    serif;
  text-shadow: 0 2px 1px #210000;
}
.ag-wordmark strong {
  display: block;
  color: #ffdf82;
  font:
    700 31px/1.02 Georgia,
    serif;
  letter-spacing: 1px;
}
.ag-wordmark small {
  display: block;
  margin-top: 5px;
  text-align: center;
  font:
    700 12px/1.1 Georgia,
    serif;
  letter-spacing: 4px;
}
.ag-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2px;
  min-width: 0;
  padding-top: 14px;
}
.ag-desktop-nav > a,
.ag-nav-dropdown > button {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font:
    600 12px Georgia,
    serif;
  color: #fff3d2;
  padding: 10px 8px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
}
.ag-desktop-nav > a.active,
.ag-desktop-nav > a:hover,
.ag-nav-dropdown > button:hover,
.ag-nav-dropdown > button[aria-expanded="true"] {
  background: linear-gradient(#ffedab, #e7ad35);
  color: #4e0000;
  border-color: #f0c65a;
  box-shadow:
    0 2px 6px #25000066,
    inset 0 1px 2px #fff6d1;
}
.ag-nav-dropdown {
  position: relative;
}
.ag-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid #d8ae59;
  border-radius: 8px;
  background: #fffadf;
  color: #550000;
  box-shadow: 0 10px 24px #2e000044;
}
.ag-dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 5px;
}
.ag-dropdown a:hover {
  background: #f3dfaa;
}
.ag-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-top: 13px;
}
.ag-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  padding: 7px;
  background: transparent;
  border: 0;
  color: #ffe9a1;
}
.ag-icon-button:hover {
  color: white;
  background: #ffffff12;
}
.ag-auth-links {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ag-gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: linear-gradient(180deg, #fff1b0 0%, #ffd36a 43%, #e6a329 100%);
  border: 1px solid #ebb844;
  border-radius: 7px;
  padding: 8px 20px;
  color: #390b00;
  box-shadow:
    inset 0 1px 2px #fffad7,
    0 2px 4px #34000044,
    0 0 8px #f6c55344;
  font:
    700 15px/1.2 Georgia,
    serif;
  min-height: 39px;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.ag-gold-button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 2px #fffad7,
    0 3px 9px #5f220066,
    0 0 15px #f6c55377;
}
.ag-register {
  color: #fff2cc;
  border: 1px solid #c69739;
  border-radius: 5px;
  padding: 9px 16px;
  font:
    600 14px Georgia,
    serif;
  box-shadow: inset 0 0 5px #c990202a;
}
.ag-register:hover {
  background: #8b1b0b;
}
.ag-account {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff1b6;
  font-size: 13px;
}
.ag-account img {
  width: 33px;
  height: 33px;
  object-fit: cover;
  border: 2px solid #d4a544;
  border-radius: 50%;
}
.ag-account span {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-menu-trigger,
.ag-notification-trigger,
.ag-mobile-menu {
  display: none;
}
.ag-search-panel,
.ag-notifications {
  position: absolute;
  right: 14px;
  top: calc(100% + 8px);
  width: min(550px, calc(100vw - 70px));
  margin: 0;
  padding: 22px;
  border: 2px solid #d2a047;
  border-radius: 10px;
  background: #fffadf;
  color: #550000;
  box-shadow: 0 14px 25px #35000055;
}
.ag-search-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.ag-search-panel > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ag-search-panel input {
  min-width: 0;
  width: 100%;
  background: white;
  border: 1px solid #c8a466;
  border-radius: 6px;
  padding: 10px;
}
.ag-search-panel .ag-gold-button {
  flex-shrink: 0;
}
.ag-notifications {
  width: 310px;
}
.ag-notifications h2 {
  margin: 0;
  font-size: 23px;
}
.ag-home {
  background: linear-gradient(90deg, #fff8db, #fffdf0 50%, #fff7d5);
  color: #2b170d;
}
.ag-hero {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  isolation: isolate;
  background: #510000;
  border-bottom: 3px solid #dba632;
}
.ag-hero-scene {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.ag-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #40000075 0%,
    #40000038 32%,
    transparent 62%
  );
  pointer-events: none;
  z-index: -1;
}
.ag-hero-copy {
  position: relative;
  width: 46%;
  padding: 65px 0 32px 46px;
  color: #fff6cd;
}
.ag-hero-copy h1 {
  margin: 0 0 8px;
  color: #fff1b6;
  font:
    700 clamp(32px, 3.2vw, 48px)/0.98 Georgia,
    "Times New Roman",
    serif;
  text-shadow: 0 2px 3px #170000;
}
.ag-hero-copy p {
  color: #fff8df;
  font:
    17px/1.35 Georgia,
    serif;
  margin: 10px 0;
  text-shadow: 0 1px 2px #260000;
}
.ag-hero-copy > strong {
  display: block;
  font-size: 24px;
  line-height: 1.4;
  color: #ffe168;
  text-shadow: 0 2px 2px #4b0000;
  margin-bottom: 15px;
}
.ag-hero-button {
  min-height: 46px;
  padding: 10px 26px;
  font-size: 19px;
  border-radius: 15px;
  box-shadow:
    inset 0 1px 2px #fffad7,
    0 3px 8px #34000080,
    0 0 14px #f6c55366;
}
.ag-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 12px 20px;
  background: linear-gradient(#fffbe6, #fff5d4);
  border-bottom: 1px solid #c39845;
}
.ag-stats > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-right: 1px solid #dabc6c66;
  padding: 0 9px;
}
.ag-stats > div:last-child {
  border: 0;
}
.ag-stats > div > span {
  display: grid;
  place-items: center;
  color: #760707;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(#ffe8a8, #f7dc9933);
}
.ag-stats strong,
.ag-stats small {
  display: block;
  font-family: Georgia, serif;
}
.ag-stats strong {
  color: #700000;
  font-size: 17px;
  line-height: 1.2;
}
.ag-stats small {
  color: #31220b;
  font-size: 12px;
  line-height: 1.3;
}
.ag-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 24px 0;
}
.ag-path {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 226px;
  overflow: hidden;
  border: 12px solid transparent;
  border-image: url("/images/royal-temple-frame-reference.png") 125 / 12px
    stretch;
  background: #540000;
  box-shadow: 0 3px 7px #68330d6b;
  isolation: isolate;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.ag-path:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px #68330d70;
}
.ag-path > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 center;
}
.ag-path::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    transparent 15%,
    #59000055 39%,
    #500000e8 63%,
    #500000dc
  );
}
.ag-path-copy {
  width: 63%;
  text-align: center;
  padding: 8px;
  color: #fff0b9;
}
.ag-path-copy > svg {
  display: block;
  margin: 0 auto 2px;
  color: #ffdc77;
}
.ag-path h2 {
  color: #fff5d3;
  font:
    700 clamp(23px, 2.2vw, 33px)/1.01 Georgia,
    serif;
  margin: 1px 0 7px;
  text-shadow: 0 2px 2px #250000;
}
.ag-path p {
  margin: 0 0 8px;
  font:
    12px/1.35 Georgia,
    serif;
  color: #fff5d4;
}
.ag-path .ag-gold-button {
  min-height: 32px;
  border-radius: 14px;
  padding: 5px 18px;
  font-size: 15px;
}
.ag-path-next,
.ag-shortcuts {
  display: none;
}
.ag-course-section,
.ag-resume {
  padding: 0 32px 12px;
}
.ag-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.ag-section-title h2 {
  flex-shrink: 0;
  color: #650000;
  margin: 0;
  font:
    700 29px Georgia,
    serif;
}
.ag-section-title > span {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  color: #b27b24;
  text-align: center;
  font-size: 21px;
}
.ag-section-title > span::before,
.ag-section-title > span::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, #c29038, transparent);
}
.ag-section-title > span::before {
  background: linear-gradient(90deg, transparent, #c29038);
}
.ag-section-title > a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  margin-left: auto;
  font:
    12px Georgia,
    serif;
  border-radius: 20px;
  background: #700000;
  color: #fff1c1;
  padding: 6px 13px;
}
.ag-shelf-wrap {
  position: relative;
}
.ag-course-shelf {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 1px 7px;
}
.ag-course-shelf::-webkit-scrollbar {
  display: none;
}
.ag-course {
  flex: 0 0 calc((100% - 56px) / 5);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dcc086;
  border-radius: 6px;
  background: linear-gradient(#fffcee, #fff5d6);
  box-shadow: 0 2px 4px #70200022;
  scroll-snap-align: start;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.ag-course:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px #70200033;
}
.ag-course-art {
  display: block;
  width: 100%;
  aspect-ratio: 16/7;
  background-image: url("/images/course-art-strip.png");
  background-size: 500% 194%;
  background-repeat: no-repeat;
  background-color: #5a1400;
}
.ag-art-0 {
  background-position: 0% 50%;
}
.ag-art-1 {
  background-position: 25% 50%;
}
.ag-art-2 {
  background-position: 50% 50%;
}
.ag-art-3 {
  background-position: 75% 50%;
}
.ag-art-4 {
  background-position: 100% 50%;
}
.ag-course-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ag-course-copy {
  padding: 6px 9px 8px;
}
.ag-course h3 {
  margin: 0;
  color: #3d140b;
  font:
    700 16px/1.2 Georgia,
    serif;
  min-height: 19px;
}
.ag-course-copy > p {
  font:
    12px Georgia,
    serif;
  margin: 3px 0;
  color: #4c2b16;
}
.ag-course-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0;
  font:
    12px Georgia,
    serif;
  color: #634423;
}
.ag-course-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 5px;
  color: #fff8dc;
  background: linear-gradient(#700000, #4c0000);
  font:
    700 13px Georgia,
    serif;
  border-radius: 4px;
  border: 1px solid #4e0000;
}
.ag-course-button:hover {
  background: #8d1e04;
}
.ag-shelf-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dec285;
  border-radius: 50%;
  background: #fff6d9;
  color: #6c1a00;
  box-shadow: 0 1px 5px #4c000033;
}
.ag-shelf-arrow.previous {
  left: -18px;
}
.ag-shelf-arrow.next {
  right: -18px;
}
.ag-benefits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 13px 24px;
  background: linear-gradient(90deg, #460000, #660000, #460000);
  color: #fff3c6;
  border-top: 2px solid #e5b945;
  border-bottom: 2px solid #bc7e24;
  box-shadow: inset 0 2px 0 #341b0033;
}
.ag-benefits > div {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.ag-benefits > div > span {
  display: grid;
  place-items: center;
  height: 46px;
  width: 46px;
  flex-shrink: 0;
  border: 1px solid #ffd464;
  border-radius: 50%;
  color: #ffda6a;
}
.ag-benefits p {
  font:
    12px/1.4 Georgia,
    serif;
  margin: 0;
}
.ag-resume-card {
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #dec17f;
  border-radius: 8px;
  padding: 12px;
  background: #fffbed;
  box-shadow: 0 3px 8px #5f280011;
}
.ag-resume-card > img {
  width: 74px;
  height: 68px;
  object-fit: cover;
  border-radius: 5px;
}
.ag-resume-card > div {
  flex: 1;
  min-width: 0;
}
.ag-resume-card h3 {
  margin: 0;
  font-size: 19px;
}
.ag-resume-card p {
  margin: 3px 0;
  font-size: 13px;
}
.ag-resume-card small {
  font-size: 12px;
  color: #806339;
}
.ag-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 30px;
  background: #500000;
  border-top: 1px solid #c7953f;
  color: #fff1c4;
  font-size: 12px;
}
.ag-footer > span {
  font-family: Georgia, serif;
  white-space: nowrap;
}
.ag-footer address {
  font-style: normal;
  flex: 1;
  font-size: 11px;
}
.ag-footer > a {
  white-space: nowrap;
  text-decoration: underline;
}
.ag-bottom-nav {
  display: none;
}
.ag-information {
  min-height: 52vh;
  padding: 40px;
}
.ag-information > svg {
  color: #966220;
}
.ag-information-intro {
  font-size: 22px;
  font-family: Georgia, serif;
}
.ag-information > p {
  max-width: 780px;
}
.ag-reading-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.ag-reading-links a {
  padding: 16px;
  border: 1px solid #caa355;
  border-radius: 8px;
  color: #550000;
  background: #fff8db;
}
@media (min-width: 1024px) and (max-width: 1250px) {
  .ag-shell {
    border-width: 22px;
    border-image-width: 22px;
  }
  .ag-header {
    gap: 6px;
    padding-inline: 8px;
  }
  .ag-crest {
    width: 107px;
    height: 107px;
  }
  .ag-wordmark {
    font-size: 20px;
  }
  .ag-wordmark strong {
    font-size: 25px;
  }
  .ag-wordmark small {
    font-size: 10px;
  }
  .ag-desktop-nav > a,
  .ag-nav-dropdown > button {
    padding: 10px 5px;
    font-size: 11px;
  }
  .ag-auth-links .ag-gold-button,
  .ag-register {
    padding-inline: 12px;
    font-size: 12px;
  }
  .ag-header-actions {
    gap: 2px;
  }
  .ag-hero-copy {
    padding-left: 30px;
    width: 47%;
  }
  .ag-path p {
    font-size: 11px;
  }
  .ag-stats {
    padding-inline: 10px;
  }
  .ag-stats > div {
    gap: 5px;
    padding-inline: 5px;
  }
  .ag-stats strong {
    font-size: 15px;
  }
}
@media (max-width: 1023px) {
  .ag-desktop-nav,
  .ag-auth-links {
    display: none;
  }
  .ag-menu-trigger,
  .ag-notification-trigger {
    display: grid;
  }
  .ag-header {
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    min-height: 90px;
  }
  .ag-header::before {
    display: none;
  }
  .ag-brand {
    margin: auto;
    gap: 8px;
  }
  .ag-crest {
    width: 82px;
    height: 82px;
    margin-bottom: -14px;
  }
  .ag-wordmark {
    font-size: 19px;
  }
  .ag-wordmark strong {
    font-size: 23px;
  }
  .ag-wordmark small {
    font-size: 9px;
    letter-spacing: 3px;
  }
  .ag-header-actions {
    margin: 0;
    padding: 0;
    gap: 0;
  }
  .ag-icon-button {
    width: 36px;
  }
  .ag-account {
    display: none;
  }
  .ag-mobile-menu {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 15px;
    gap: 4px;
    max-height: 75vh;
    overflow: auto;
    background: linear-gradient(#550000, #350000);
    border-bottom: 2px solid #d9ad4b;
    box-shadow: 0 14px 30px #32000066;
  }
  .ag-mobile-menu > a {
    padding: 10px 12px;
    font:
      15px Georgia,
      serif;
    color: #fff1c5;
    border-bottom: 1px solid #e0b44b33;
  }
  .ag-mobile-menu > a.active {
    color: #ffda67;
    background: #d697221a;
  }
  .ag-mobile-auth {
    grid-column: 1/-1;
    display: flex;
    gap: 14px;
    padding: 10px;
  }
  .ag-search-panel {
    right: 5px;
    width: calc(100% - 10px);
  }
  .ag-stats {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 12px;
  }
  .ag-course {
    flex-basis: calc((100% - 28px) / 3);
  }
  .ag-benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .ag-path-copy {
    width: 67%;
  }
  .ag-path h2 {
    font-size: 26px;
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
    background: #fffadf;
  }
  .ag-shell {
    border: 8px solid transparent;
    border-image-width: 9px;
    margin: 0;
    width: 100%;
    box-shadow: none;
  }
  .ag-header {
    min-height: 84px;
    padding: 5px 2px;
    gap: 0;
  }
  .ag-brand {
    gap: 5px;
  }
  .ag-crest {
    width: 76px;
    height: 76px;
    margin-bottom: -14px;
  }
  .ag-wordmark {
    font-size: 16px;
  }
  .ag-wordmark strong {
    font-size: 20px;
  }
  .ag-wordmark small {
    font-size: 8px;
    letter-spacing: 2.5px;
  }
  .ag-icon-button {
    width: 31px;
    padding: 4px;
    height: 44px;
  }
  .ag-icon-button > svg {
    width: 21px;
    height: 21px;
  }
  .ag-hero {
    min-height: 0;
    border: 0;
    border-bottom: 3px solid #ce9d35;
    overflow: hidden;
  }
  .ag-hero-scene {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 205px;
    object-fit: cover;
    object-position: 80% 45%;
  }
  .ag-hero::after {
    inset: 0;
    z-index: 0;
    background: linear-gradient(0deg, #510000 0%, transparent 50%);
    border: 7px solid transparent;
    border-image: url("/images/royal-temple-frame-reference.png") 125 / 8px
      stretch;
  }
  .ag-hero-copy {
    width: auto;
    padding: 0 10px 15px;
    margin-top: -9px;
    z-index: 1;
    text-align: center;
  }
  .ag-hero-copy h1 {
    font-size: 29px;
    line-height: 0.95;
    margin: 0 0 5px;
  }
  .ag-hero-copy p {
    font-size: 12px;
    line-height: 1.3;
    margin: 6px 0;
  }
  .ag-hero-copy > strong {
    font-size: 17px;
    line-height: 1.4;
    margin: 5px 0 8px;
  }
  .ag-hero-button {
    min-height: 38px;
    padding: 7px 19px;
    font-size: 16px;
    border-radius: 13px;
  }
  .ag-hero-button > svg {
    width: 19px;
  }
  .ag-desktop-break {
    display: none;
  }
  .ag-stats {
    display: none;
  }
  .ag-paths {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 10px 9px 0;
  }
  .ag-path {
    min-height: 104px;
    border: 2px solid #c99635;
    border-radius: 11px;
    border-image: none;
    box-shadow:
      0 2px 4px #673c2260,
      inset 0 0 0 2px #fff3bd;
    background: linear-gradient(#fffbec, #fff1cc);
    display: grid;
    grid-template-columns: 37% 1fr 20px;
    gap: 7px;
    padding: 4px;
  }
  .ag-path::after {
    display: none;
  }
  .ag-path > img {
    position: static;
    width: 100%;
    height: 95px;
    object-fit: cover;
    object-position: 0 center;
    border-radius: 7px;
    z-index: 0;
  }
  .ag-path-copy {
    padding: 3px 0;
    width: auto;
    text-align: left;
  }
  .ag-path-copy > svg {
    display: none;
  }
  .ag-path h2 {
    font-size: 18px;
    color: #5a0000;
    text-shadow: none;
    line-height: 1;
    margin: 0 0 5px;
  }
  .ag-path p {
    font-size: 10px;
    color: #3b250d;
    line-height: 1.25;
    margin: 0;
  }
  .ag-path .ag-gold-button {
    display: none;
  }
  .ag-path-next {
    display: block;
    background: #fbd675;
    color: #6e0900;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    padding: 2px;
    align-self: start;
    margin-top: 10px;
  }
  .ag-path:hover {
    transform: none;
  }
  .ag-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px 7px 2px;
    gap: 4px;
  }
  .ag-shortcuts a {
    display: grid;
    justify-items: center;
    gap: 5px;
    font:
      12px/1.2 Georgia,
      serif;
    text-align: center;
    color: #3e1c0d;
  }
  .ag-shortcuts span {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: linear-gradient(#ffecb0, #ffdf8d);
    color: #810d00;
  }
  .ag-course-section,
  .ag-resume {
    padding: 0 10px 10px;
  }
  .ag-section-title {
    gap: 7px;
    padding: 12px 0 7px;
  }
  .ag-section-title h2 {
    font-size: 22px;
  }
  .ag-section-title > span {
    display: none;
  }
  .ag-section-title > a {
    background: transparent;
    color: #660000;
    font-size: 12px;
    padding: 4px 0;
  }
  .ag-course-shelf {
    gap: 10px;
    padding: 0 0 5px;
  }
  .ag-course {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 0;
    border-radius: 6px;
  }
  .ag-course-art {
    height: 100%;
    min-height: 136px;
    aspect-ratio: auto;
    background-size: 500% 194%;
  }
  .ag-course-art > img {
    object-fit: cover;
  }
  .ag-course-copy {
    padding: 8px 10px;
  }
  .ag-course h3 {
    font-size: 18px;
  }
  .ag-course-copy > p {
    font-size: 12px;
  }
  .ag-course-meta {
    font-size: 11px;
    margin: 7px 0;
  }
  .ag-course-button {
    min-height: 29px;
    padding: 5px;
    font-size: 12px;
  }
  .ag-shelf-arrow {
    display: none;
  }
  .ag-benefits {
    display: none;
  }
  .ag-resume-card {
    gap: 9px;
    padding: 8px;
    flex-wrap: wrap;
  }
  .ag-resume-card > img {
    width: 55px;
    height: 58px;
  }
  .ag-resume-card h3 {
    font-size: 16px;
  }
  .ag-resume-card p {
    font-size: 11px;
  }
  .ag-resume-card .ag-gold-button {
    min-height: 30px;
    font-size: 12px;
    padding: 5px 12px;
    margin-left: auto;
  }
  .ag-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 9px 7px calc(9px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(#710000, #490000);
    color: #fff3c5;
    border-top: 2px solid #dcb455;
    border-radius: 19px 19px 0 0;
    box-shadow: 0 -4px 10px #40000022;
  }
  .ag-bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 3px 0;
    min-height: 43px;
    color: #fff1cc;
    font:
      11px/1.2 Georgia,
      serif;
  }
  .ag-bottom-nav a.active {
    color: #ffdc54;
    text-shadow: 0 0 8px #ffc04b44;
  }
  .ag-bottom-nav a.active svg {
    fill: #ffdf5220;
    stroke-width: 2.5;
  }
  .ag-footer {
    display: block;
    padding: 13px;
    text-align: center;
  }
  .ag-footer > span {
    font-size: 12px;
  }
  .ag-footer address {
    font-size: 10px;
    line-height: 1.5;
    margin: 6px 0;
  }
  .ag-footer > a {
    font-size: 11px;
  }
  .ag-information {
    padding: 22px 14px;
  }
  .ag-information h1 {
    font-size: 28px;
  }
  .ag-information-intro {
    font-size: 18px;
  }
  .ag-search-panel {
    padding: 14px;
  }
  .ag-search-panel > div {
    gap: 5px;
  }
  .ag-search-panel > div > svg {
    display: none;
  }
  .ag-search-panel .ag-gold-button {
    font-size: 13px;
    padding: 9px 10px;
  }
}
@media (max-width: 350px) {
  .ag-shell {
    border-width: 6px;
    border-image-width: 7px;
  }
  .ag-header {
    min-height: 77px;
  }
  .ag-crest {
    width: 60px;
    height: 60px;
  }
  .ag-wordmark {
    font-size: 13px;
  }
  .ag-wordmark strong {
    font-size: 17px;
  }
  .ag-wordmark small {
    font-size: 7px;
  }
  .ag-icon-button {
    width: 26px;
  }
  .ag-icon-button svg {
    width: 19px;
  }
  .ag-brand {
    gap: 3px;
  }
  .ag-hero-scene {
    height: 176px;
  }
  .ag-hero-copy h1 {
    font-size: 27px;
  }
  .ag-hero-copy > strong {
    font-size: 15px;
  }
  .ag-paths {
    margin-inline: 6px;
  }
  .ag-path {
    gap: 5px;
    grid-template-columns: 34% 1fr 17px;
  }
  .ag-path h2 {
    font-size: 16px;
  }
  .ag-path p {
    font-size: 9px;
  }
  .ag-path-next {
    width: 17px;
    height: 17px;
  }
  .ag-section-title h2 {
    font-size: 20px;
  }
  .ag-section-title a {
    font-size: 10px;
  }
  .ag-course h3 {
    font-size: 16px;
  }
  .ag-shortcuts a {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ag-gold-button,
  .ag-course,
  .ag-path {
    transition: none;
  }
}
