/*******************************************************************************
 * 2026 Redesign
 * Loaded after main.css. Components here use their own block names, so the legacy
 * rules in main.css only still apply to markup that has not been migrated yet.
 *******************************************************************************/

@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/fonts/gabarito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ag-teal: #009cba;
  --ag-pink: #f1adb6;
  --ag-yellow: #ffd600;
  --ag-navy: #0e1330;
  --ag-navy-line: #2b3260;
  --ag-font-display: "Gabarito", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --ag-wrap: 1280px;
}

.ag-theme--light {
  --bg: #faf9f5;
  --card: #ffffff;
  --ink: #0e1330;
  --mut: #5a5f73;
  --line: #e4e2da;
  --pritx: #006f85;
  --soft: #ddf3f6;
  --blush: #fce3e7;
}

.ag-theme--dark {
  --bg: #0b0f26;
  --card: #161c3f;
  --ink: #f3f4f8;
  --mut: #b4b8cc;
  --line: #2b3260;
  --pritx: #6fd8ea;
  --soft: #14304a;
  --blush: #4a2338;
}

body {
  background-color: var(--bg);
  color: var(--ink);
}

.ag-wrap {
  width: 100%;
  max-width: var(--ag-wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 575px) {
  .ag-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.ag-icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pill buttons */
.ag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 9999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.ag-btn:hover,
.ag-btn:focus-visible {
  background-color: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.ag-btn--navy {
  border-color: var(--ag-navy);
  background-color: var(--ag-navy);
  color: #ffffff;
}
.ag-btn--navy:hover,
.ag-btn--navy:focus-visible {
  background-color: #ffffff;
  color: var(--ag-navy);
}
.ag-btn--onteal {
  border-color: var(--ag-navy);
  color: var(--ag-navy);
}
.ag-btn--onteal:hover,
.ag-btn--onteal:focus-visible {
  background-color: var(--ag-navy);
  color: #ffffff;
}


/*******************************************************************************
 * Group strip
 *******************************************************************************/

.ag-strip {
  background-color: var(--ag-navy);
  color: #ffffff;
  font-size: 0.8125rem;
}
.ag-strip__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  min-height: 44px;
}
.ag-strip__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}
.ag-strip__brands a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
}
.ag-strip__brands a:hover,
.ag-strip__brands a:focus-visible {
  color: var(--ag-yellow);
}
.ag-strip__logo img {
  display: block;
  width: 79px;
  height: 24px;
}
.ag-strip__current {
  color: var(--ag-yellow);
  font-weight: 700;
}
.ag-strip__slogan {
  color: #b4b8cc;
  font-family: var(--ag-font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}
@media (max-width: 767px) {
  .ag-strip__slogan {
    display: none;
  }
}


/*******************************************************************************
 * Header ad (SuprAd)
 * Collapsed until an ad renders, so an unsold slot takes no space.
 *******************************************************************************/

.ag-headad {
  background-color: var(--soft);
}
.ag-headad .ag-revenue {
  display: block;
  background-image: none;
}


/*******************************************************************************
 * Header / pill navigation
 *******************************************************************************/

.ag-header {
  position: relative;
  z-index: 20;
  padding-top: 16px;
}
.ag-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 10px 8px 22px;
  background-color: #ffffff;
  border: 1px solid #e4e2da;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(14, 19, 48, 0.06);
  color: var(--ag-navy);
}
.ag-nav__logo {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
}
.ag-nav__logo img {
  display: block;
  width: 115px;
  height: 34px;
}
.ag-nav__list {
  display: none;
  align-items: center;
  gap: 0 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 700;
}
.ag-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 9999px;
  color: var(--ag-navy);
  white-space: nowrap;
}
.ag-nav__link:hover,
.ag-nav__link:focus-visible {
  color: #006f85;
  text-decoration: none;
}
.ag-nav__caret {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.ag-nav__item--has-sub:hover > .ag-nav__link,
.ag-nav__item--has-sub:focus-within > .ag-nav__link {
  background-color: var(--ag-teal);
  color: var(--ag-navy);
}
.ag-nav__item--has-sub:hover .ag-nav__caret,
.ag-nav__item--has-sub:focus-within .ag-nav__caret {
  transform: rotate(180deg);
}
.ag-nav__tools {
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
}
.ag-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e4e2da;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--ag-navy);
  cursor: pointer;
}
.ag-nav__icon:hover,
.ag-nav__icon:focus-visible {
  border-color: var(--ag-navy);
  color: var(--ag-navy);
}
.ag-nav__icon .ag-icon {
  width: 20px;
  height: 20px;
}

.ag-search {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 4px 0 16px;
  background-color: #faf9f5;
  border: 1px solid #e4e2da;
  border-radius: 9999px;
}
.ag-search:focus-within {
  border-color: var(--ag-navy);
}
.ag-search__input {
  width: 5.5em;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ag-navy);
  font-size: 0.875rem;
  font-weight: 700;
  transition: width 0.15s;
}
.ag-search__input::placeholder {
  color: var(--ag-navy);
  opacity: 1;
}
.ag-search__input:focus {
  width: 9em;
}
.ag-search__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ag-navy);
  cursor: pointer;
}
@media (max-width: 575px) {
  .ag-nav {
    padding-left: 16px;
  }
  .ag-nav__logo img {
    width: 101px;
    height: 30px;
  }
  .ag-search {
    padding-left: 12px;
  }
  .ag-search__input {
    width: 3em;
  }
  .ag-search__input:focus {
    width: 5.5em;
  }
}

/* Mega menu, opened by hover or keyboard focus, no script involved */
.ag-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  padding-top: 10px;
}
.ag-nav__item--has-sub:hover .ag-mega,
.ag-nav__item--has-sub:focus-within .ag-mega {
  display: block;
}
.ag-mega__panel {
  display: flex;
  gap: 40px;
  padding: 32px;
  background-color: #ffffff;
  border: 1px solid #e4e2da;
  border-radius: 32px;
  box-shadow: 0 12px 32px rgba(14, 19, 48, 0.1);
  font-weight: 700;
}
.ag-mega__lead {
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  overflow: hidden;
  background-color: var(--ag-teal);
  border-radius: 24px;
  color: var(--ag-navy);
}
.ag-mega__en {
  display: block;
  color: transparent;
  font-family: var(--ag-font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--ag-navy);
}
.ag-mega__name {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}
.ag-mega__lead .ag-btn {
  align-self: flex-start;
}
.ag-mega__list {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
.ag-mega__sublink {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #e4e2da;
  color: var(--ag-navy);
}
.ag-mega__sublink:hover,
.ag-mega__sublink:focus-visible {
  color: #006f85;
  text-decoration: none;
}

/* Mobile menu built on <details>, no script involved */
.ag-mnav > summary,
.ag-mnav__group > summary {
  list-style: none;
  cursor: pointer;
}
.ag-mnav > summary::-webkit-details-marker,
.ag-mnav__group > summary::-webkit-details-marker {
  display: none;
}
.ag-mnav[open] > summary {
  border-color: var(--ag-teal);
  background-color: var(--ag-teal);
}
.ag-mnav__close,
.ag-mnav[open] .ag-mnav__open {
  display: none;
}
.ag-mnav[open] .ag-mnav__close {
  display: block;
}
.ag-mnav__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 8px 20px 20px;
  background-color: #ffffff;
  border: 1px solid #e4e2da;
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(14, 19, 48, 0.1);
  color: var(--ag-navy);
  font-size: 1.125rem;
  font-weight: 700;
}
.ag-mnav__link,
.ag-mnav__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid #e4e2da;
  color: var(--ag-navy);
}
.ag-mnav__link:last-child {
  border-bottom: 0;
}
.ag-mnav__group[open] {
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e2da;
}
.ag-mnav__group[open] > summary {
  border-bottom: 0;
  color: #006f85;
}
.ag-mnav__group[open] > summary .ag-icon {
  transform: rotate(180deg);
}
.ag-mnav__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
}
.ag-mnav__sub {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background-color: #ddf3f6;
  border-radius: 9999px;
  color: var(--ag-navy);
}
.ag-mnav__sub--all {
  background-color: var(--ag-teal);
}

@media (min-width: 1100px) {
  .ag-nav__list {
    display: flex;
  }
  .ag-mnav {
    display: none;
  }
}
@media (max-width: 1099px) {
  .ag-mega {
    display: none !important;
  }
}


/*******************************************************************************
 * Hero (pinned posts)
 *******************************************************************************/

.ag-hero {
  padding-top: 40px;
  padding-bottom: 56px;
}
.ag-eyebrow {
  display: block;
  color: var(--pritx);
  font-family: var(--ag-font-display);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.ag-hero__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.ag-hero__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}
.ag-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 992px) {
  .ag-hero__grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  }
}

.ag-hero__lead {
  --focus-bg: var(--ag-teal);
  --focus-fg: var(--ag-navy);
  --focus-border: var(--ag-teal);
  --focus-hover: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 16px 32px;
  background-color: var(--focus-bg);
  border: 1.5px solid var(--focus-border);
  border-radius: 36px;
  color: var(--focus-fg);
}
.ag-hero__lead--pink {
  --focus-bg: var(--ag-pink);
  --focus-border: var(--ag-pink);
  --focus-hover: var(--ag-navy);
}
.ag-hero__lead--navy {
  --focus-bg: var(--ag-navy);
  --focus-fg: #ffffff;
  --focus-border: var(--ag-navy-line);
  --focus-hover: var(--ag-yellow);
}
.ag-hero__lead--yellow {
  --focus-bg: var(--ag-yellow);
  --focus-border: var(--ag-yellow);
  --focus-hover: var(--ag-navy);
}
.ag-hero__lead img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 684;
  object-fit: cover;
  border-radius: 24px;
  background-color: var(--soft);
}
.ag-hero__leadmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 12px;
  font-size: 0.875rem;
}
.ag-hero__leadtitle {
  margin: 0;
  padding: 0 12px;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}
.ag-hero__leadtitle a {
  color: var(--focus-fg);
}
.ag-hero__leadtitle a:hover,
.ag-hero__leadtitle a:focus-visible {
  color: var(--focus-hover);
  text-decoration: none;
}
.ag-hero__lead--pink .ag-hero__leadtitle a:hover,
.ag-hero__lead--yellow .ag-hero__leadtitle a:hover {
  text-decoration: underline;
}
@media (min-width: 768px) {
  .ag-hero__leadtitle {
    font-size: 2.375rem;
  }
}

.ag-hero__side {
  display: flex;
  flex-direction: column;
}
.ag-hero__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.ag-hero__item img {
  display: block;
  flex: none;
  width: 136px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background-color: var(--soft);
}
.ag-hero__itemtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}
.ag-hero__itemtitle a {
  color: var(--ink);
}
.ag-hero__itemtitle a:hover,
.ag-hero__itemtitle a:focus-visible {
  color: var(--pritx);
  text-decoration: none;
}


/*******************************************************************************
 * Marquee slogan
 *******************************************************************************/

.ag-marquee {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  color: var(--ag-teal);
  font-family: var(--ag-font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}
.ag-marquee__track {
  display: inline-block;
}
.ag-marquee__outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ag-teal);
}
.ag-marquee__pink {
  color: var(--ag-pink);
}
@media (min-width: 768px) {
  .ag-marquee {
    font-size: 5.25rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ag-marquee__track {
    animation: ag-marquee 40s linear infinite;
  }
}
@keyframes ag-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/*******************************************************************************
 * Home sections
 *******************************************************************************/

.ag-sec {
  padding-top: 64px;
  padding-bottom: 24px;
}
.ag-sec--tint {
  margin-top: 40px;
  padding-bottom: 64px;
  background-color: var(--soft);
}
.ag-sec--band {
  margin-top: 40px;
  padding-bottom: 64px;
  background-color: var(--ag-teal);
  color: var(--ag-navy);
}
.ag-sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.ag-sec__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .ag-sec__title {
    font-size: 2.125rem;
  }
}
.ag-sec__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ag-sec--band .ag-eyebrow {
  color: var(--ag-navy);
}
.ag-sec:last-of-type {
  padding-bottom: 88px;
}

/* Card grid */
.ag-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px 24px;
}
.ag-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ag-card__cover {
  position: relative;
  display: block;
}
.ag-card__cover img,
.ag-card__cover > [data-video-type] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 684;
  object-fit: cover;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--soft);
}
.ag-card__cover > [data-video-type] img,
.ag-card__cover > [data-video-type] iframe {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.ag-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  color: var(--mut);
  font-size: 0.8125rem;
}
.ag-card__meta a {
  color: inherit;
}
.ag-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
}
.ag-card__title a {
  color: var(--ink);
}
.ag-card__title a:hover,
.ag-card__title a:focus-visible {
  color: var(--pritx);
  text-decoration: none;
}
.ag-card__quip {
  align-self: flex-start;
  margin: 0;
  padding: 8px 14px;
  background-color: var(--blush);
  border-radius: 4px 14px 14px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: default;
}
/* The clamp sits on an inner box: on the padded bubble itself the cut-off line showed in the padding */
.ag-card__quip > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ag-card__play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--ag-yellow);
  border-radius: 50%;
  color: var(--ag-navy);
  pointer-events: none;
}
.ag-card__play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* 7 item layout: one wide lead card, then two rows of three */
@media (min-width: 1100px) {
  .ag-cards--lead {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ag-cards--lead > .ag-card:first-child {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    gap: 14px 44px;
  }
  .ag-cards--lead > .ag-card:first-child .ag-card__cover {
    grid-column: 1;
    grid-row: 1 / -1;
  }
  .ag-cards--lead > .ag-card:first-child .ag-card__cover img {
    border-radius: 24px;
  }
  .ag-cards--lead > .ag-card:first-child .ag-card__meta {
    grid-column: 2;
    grid-row: 2;
  }
  .ag-cards--lead > .ag-card:first-child .ag-card__title {
    grid-column: 2;
    grid-row: 3;
    font-size: 2rem;
    line-height: 1.35;
  }
  .ag-cards--lead > .ag-card:first-child .ag-card__quip {
    grid-column: 2;
    grid-row: 4;
    justify-self: start;
    font-size: 1rem;
  }
  .ag-cards--lead > .ag-card:first-child .ag-card__quip > span {
    -webkit-line-clamp: 3;
  }
}

/* Cards on the teal band */
.ag-sec--band .ag-card__title a,
.ag-sec--band .ag-card__meta {
  color: var(--ag-navy);
}
.ag-sec--band .ag-card__title a:hover,
.ag-sec--band .ag-card__title a:focus-visible {
  color: #ffffff;
}
.ag-sec--band .ag-card__quip {
  display: none;
}

/* Compact rows (9 item layout) */
.ag-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0 32px;
  padding: 8px 28px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.ag-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ag-row img {
  display: block;
  flex: none;
  width: 104px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background-color: var(--soft);
}
.ag-row__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ag-row__date {
  color: var(--mut);
  font-size: 0.8125rem;
}
.ag-row__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}
.ag-row__title a {
  color: var(--ink);
}
.ag-row__title a:hover,
.ag-row__title a:focus-visible {
  color: var(--pritx);
  text-decoration: none;
}

/* Topic cards: cover and label in one navy card */
.ag-topiccards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px 20px;
}
.ag-topiccard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--ag-navy);
  border: 1.5px solid var(--ag-navy-line);
  border-radius: 28px;
  color: #ffffff;
}
.ag-topiccard:hover,
.ag-topiccard:focus-visible {
  color: var(--ag-pink);
  text-decoration: none;
}
.ag-topiccard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 684;
  object-fit: cover;
  background-color: #161c3f;
}
.ag-topiccard__label {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  margin-top: -22px;
  padding: 14px 18px 18px;
  background-color: var(--ag-navy);
  border-radius: 22px 22px 0 0;
}
.ag-topiccard__kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ag-pink);
  font-family: var(--ag-font-display);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.ag-topiccard__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
}


/*******************************************************************************
 * Social cards (shown where a three-slot ad row has nothing to serve)
 *******************************************************************************/

.ag-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.ag-social__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 28px;
  border-radius: 24px;
  color: var(--ag-navy);
}
.ag-social__card:hover,
.ag-social__card:focus-visible {
  color: var(--ag-navy);
  text-decoration: underline;
}
.ag-social__card .ag-icon {
  width: 44px;
  height: 44px;
  stroke-width: 2;
}
.ag-social__name {
  display: block;
  font-family: var(--ag-font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}
.ag-social__text {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
}
.ag-social__card--instagram {
  background-color: var(--ag-pink);
}
.ag-social__card--threads {
  background-color: var(--ag-teal);
}
.ag-social__card--youtube {
  background-color: var(--ag-navy);
  border: 1px solid var(--ag-navy-line);
  color: #ffffff;
}
.ag-social__card--youtube:hover,
.ag-social__card--youtube:focus-visible {
  color: #ffffff;
}
.ag-social__card--youtube .ag-icon {
  color: var(--ag-yellow);
}


/*******************************************************************************
 * List pages
 *******************************************************************************/

.ag-listpage {
  padding-top: 40px;
  padding-bottom: 88px;
}
.ag-listpage .ag-breadcrumb {
  margin-bottom: 20px;
}
.ag-cathead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  padding: 32px;
  overflow: hidden;
  background-color: var(--ag-teal);
  border-radius: 32px;
  color: var(--ag-navy);
}
@media (min-width: 768px) {
  .ag-cathead {
    padding: 40px 44px;
  }
}
.ag-cathead__en {
  display: block;
  color: transparent;
  font-family: var(--ag-font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--ag-navy);
}
.ag-cathead__title {
  margin: 10px 0 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
}
.ag-cathead__sub {
  font-size: 1rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  .ag-cathead__en {
    font-size: 6rem;
  }
  .ag-cathead__title {
    font-size: 2.875rem;
  }
}

/* One scrolling row, never wraps */
.ag-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0 0 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.ag-chips::-webkit-scrollbar {
  display: none;
}
.ag-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 40px;
  padding: 0 15px;
  border: 1.5px solid var(--ink);
  border-radius: 9999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}
.ag-chip:hover,
.ag-chip:focus-visible {
  background-color: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.ag-chip--active {
  border-color: var(--ag-teal);
  background-color: var(--ag-teal);
  color: var(--ag-navy);
}

.ag-listpage__bar {
  margin: 32px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.9375rem;
}
.ag-listpage .ag-cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 28px;
}
.ag-listpage .ag-revenue__wrapper {
  grid-column: 1 / -1;
}

.ag-authorhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.ag-authorhead img {
  flex: none;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--soft);
}
.ag-authorhead__body {
  flex: 1 1 260px;
  min-width: 0;
}
.ag-authorhead__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}
.ag-authorhead__desc {
  margin: 4px 0 0;
  color: var(--mut);
}
.ag-authorhead__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Pagination, restyled on the existing markup */
.ag-pagination {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-family: var(--ag-font-display);
  font-weight: 700;
}
.ag-pagination__numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-pagination__link,
.ag-pagination__prev,
.ag-pagination__next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 9999px;
  color: var(--ink);
}
.ag-pagination__prev,
.ag-pagination__next {
  border-color: var(--ink);
}
.ag-pagination__link:hover,
.ag-pagination__prev:hover,
.ag-pagination__next:hover {
  border-color: var(--ink);
  background: none;
  color: var(--pritx);
  text-decoration: none;
}
.ag-pagination__link--active,
.ag-pagination__link--active:hover,
.ag-pagination__link--active:focus {
  border-color: var(--ag-teal);
  background-color: var(--ag-teal);
  color: var(--ag-navy);
}
.ag-pagination__prev--disabled,
.ag-pagination__next--disabled {
  border-color: var(--line);
  color: var(--mut);
  pointer-events: none;
}


/*******************************************************************************
 * Article page, restyled on the existing markup (infinite scroll depends on it)
 *******************************************************************************/

.ag-base-layout {
  background-color: var(--bg);
}
.ag-base-layout__main {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: none;
}
@media (max-width: 992px) {
  .ag-base-layout__main {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
}
.ag-article__title {
  margin-top: 16px;
  padding-top: 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}
.ag-article__title::before {
  display: none;
}
@media (min-width: 768px) {
  .ag-article__title {
    font-size: 2.5rem;
  }
}
.ag-article__authorlink {
  color: var(--ink);
  font-weight: 700;
}
.ag-article__tag {
  margin: 0 6px 6px 0;
  padding: 2px 12px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--pritx);
  font-weight: 700;
}
.ag-article__tag:hover,
.ag-article__tag:focus-visible {
  border-color: var(--pritx);
  color: var(--pritx);
  text-decoration: none;
}
.ag-article__summary {
  align-self: flex-start;
  padding: 14px 20px;
  background-color: var(--blush);
  border-radius: 6px 22px 22px 22px;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}
.ag-article__content {
  font-size: 1.0625rem;
}
.ag-article__content h2,
.ag-article__content h3 {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 18px;
  font-weight: 800;
  line-height: 1.4;
}
.ag-article__content h2::before,
.ag-article__content h3::before {
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 8px;
  height: 1em;
  background-color: var(--ag-teal);
  border-radius: 4px;
  content: "";
}
.ag-article__content img,
.ag-article__video {
  border-radius: 16px;
}
.ag-article__content a {
  color: var(--pritx);
  text-decoration: underline;
}

/* The author block is the footer of the article card: full width, sharing its bottom corners */
.ag-author.ag-block {
  margin: 48px calc(-1 * var(--post-x-padding)) 0;
  padding: 32px var(--post-x-padding);
  background-color: var(--soft);
  border-top: 1px solid var(--line);
  border-radius: 0 0 27px 27px;
}
@media (max-width: 992px) {
  .ag-author.ag-block {
    border-radius: 0;
  }
}
.ag-author.ag-block::before,
.ag-author.ag-block::after {
  display: none;
}
.ag-author__img {
  border-radius: 50%;
  object-fit: cover;
}
.ag-author__link {
  color: var(--ink);
  font-weight: 800;
}
.ag-author__action {
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 700;
}

.ag-breadcrumb {
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--mut);
  font-size: 0.875rem;
}
.ag-breadcrumb a {
  color: var(--mut);
}
.ag-breadcrumb a:hover,
.ag-breadcrumb a:focus-visible {
  color: var(--pritx);
}

/* Aside cards */
.ag-base-layout__aside .ag-post-item__cover {
  border-radius: 16px;
}
.ag-base-layout__aside .ag-post-item__link {
  color: var(--ink);
  font-weight: 700;
}


/*******************************************************************************
 * Footer
 *******************************************************************************/

.ag-foot {
  background-color: var(--ag-navy);
  color: #ffffff;
}
.ag-foot__in {
  padding-top: 64px;
  padding-bottom: 32px;
}
.ag-foot__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}
.ag-foot__brand {
  display: flex;
  flex: 999 1 360px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.ag-foot__id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ag-foot__id img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.ag-foot__name {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
}
.ag-foot__tagline {
  display: block;
  color: #b4b8cc;
  font-size: 0.875rem;
}
.ag-foot__about {
  max-width: 46ch;
  margin: 0;
  color: #d6d9e6;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.ag-foot__col {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
}
.ag-foot__heading {
  color: #6fd8ea;
  font-family: var(--ag-font-display);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.ag-foot a {
  color: #ffffff;
}
.ag-foot a:hover,
.ag-foot a:focus-visible {
  color: var(--ag-yellow);
  text-decoration: none;
}
.ag-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ag-navy-line);
  color: #b4b8cc;
  font-size: 0.8125rem;
}


/*******************************************************************************
 * Topic pages
 *******************************************************************************/

.ag-topicblock {
  margin-top: 48px;
}
.ag-topicblock + .ag-topicblock {
  margin-top: 72px;
}
.ag-topichead {
  display: grid;
  gap: 0;
  overflow: hidden;
  background-color: var(--ag-navy);
  border: 1.5px solid var(--ag-navy-line);
  border-radius: 32px;
  color: #ffffff;
}
.ag-topichead__cover {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1200 / 684;
  object-fit: cover;
  background-color: #161c3f;
}
.ag-topichead__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 28px;
}
.ag-topichead__kicker {
  color: var(--ag-pink);
  font-family: var(--ag-font-display);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.ag-topichead__title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.35;
}
.ag-topichead__title a {
  color: inherit;
}
.ag-topichead__title a:hover,
.ag-topichead__title a:focus-visible {
  color: var(--ag-pink);
  text-decoration: none;
}
.ag-topichead__summary {
  margin: 0;
  color: #c9cce0;
  font-size: 1rem;
  line-height: 1.75;
}
.ag-topichead__count {
  padding: 4px 12px;
  background-color: var(--ag-pink);
  border-radius: 9999px;
  color: var(--ag-navy);
  font-size: 0.8125rem;
  font-weight: 700;
}
.ag-topichead .ag-btn {
  margin-top: 8px;
  border-color: #ffffff;
  color: #ffffff;
}
.ag-topichead .ag-btn:hover,
.ag-topichead .ag-btn:focus-visible {
  background-color: var(--ag-pink);
  border-color: var(--ag-pink);
  color: var(--ag-navy);
}
@media (min-width: 900px) {
  .ag-topichead {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .ag-topichead__body {
    padding: 40px 44px;
  }
  .ag-topichead__title {
    font-size: 2.125rem;
  }
}
.ag-topicblock .ag-cards {
  margin-top: 36px;
}


/*******************************************************************************
 * About page
 *******************************************************************************/

.ag-aboutbody {
  max-width: 760px;
  margin: 48px auto 0;
}
.ag-aboutbody .ag-article__content {
  padding: 0;
}
.ag-subhead {
  margin: 72px 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 1.75rem;
  font-weight: 800;
}


/*******************************************************************************
 * Error pages
 *******************************************************************************/

.ag-errpage {
  display: grid;
  align-items: center;
  gap: 32px;
  min-height: 70vh;
  padding-top: 56px;
  padding-bottom: 88px;
}
.ag-errpage__code {
  display: block;
  color: transparent;
  font-family: var(--ag-font-display);
  font-size: 7rem;
  font-weight: 900;
  line-height: 0.9;
  -webkit-text-stroke: 3px var(--ag-teal);
}
.ag-errpage__code--error {
  -webkit-text-stroke-color: var(--ag-pink);
}
.ag-errpage__title {
  margin: 16px 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.35;
}
.ag-errpage__text {
  margin: 0 0 8px;
  color: var(--mut);
  line-height: 1.75;
}
.ag-errpage__id {
  font-size: 0.8125rem;
}
.ag-errpage__actions {
  margin: 28px 0 0;
}
.ag-errpage__art {
  display: none;
}
@media (min-width: 900px) {
  .ag-errpage {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  .ag-errpage__code {
    font-size: 11rem;
  }
  .ag-errpage__art {
    display: flex;
    justify-content: center;
  }
}
.ag-foot--slim .ag-foot__bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.ag-theme--dark .ag-errpage .ag-btn--navy {
  background-color: var(--ag-teal);
  border-color: var(--ag-teal);
  color: var(--ag-navy);
}
/* About content is centred by the editors, so the heading accent bar is dropped */
.ag-aboutbody .ag-article__content h2,
.ag-aboutbody .ag-article__content h3 {
  padding-left: 0;
}
.ag-aboutbody .ag-article__content h2::before,
.ag-aboutbody .ag-article__content h3::before {
  display: none;
}


/*******************************************************************************
 * List page: grid / list switch
 *******************************************************************************/

.ag-listpage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ag-viewtoggle {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: 9999px;
}
.ag-viewtoggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  background: none;
  border: 0;
  border-radius: 9999px;
  color: var(--mut);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.ag-viewtoggle__btn .ag-icon {
  width: 16px;
  height: 16px;
}
.ag-viewtoggle__btn:hover,
.ag-viewtoggle__btn:focus-visible {
  color: var(--ink);
}
.ag-viewtoggle__btn[aria-pressed="true"] {
  background-color: var(--ag-teal);
  color: var(--ag-navy);
}
@media (max-width: 479px) {
  .ag-viewtoggle__btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

.ag-view--list .ag-listpage__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.ag-view--list .ag-listpage__grid > .ag-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  gap: 6px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.ag-view--list .ag-listpage__grid > .ag-card .ag-card__cover {
  grid-column: 1;
  grid-row: 1 / -1;
}
.ag-view--list .ag-listpage__grid > .ag-card .ag-card__cover img {
  border-radius: 12px;
}
.ag-view--list .ag-listpage__grid > .ag-card > :not(.ag-card__cover) {
  grid-column: 2;
}
.ag-view--list .ag-listpage__grid > .ag-card .ag-card__quip {
  justify-self: start;
}
@media (min-width: 768px) {
  .ag-view--list .ag-listpage__grid > .ag-card {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    gap: 10px 32px;
    padding: 28px 0;
  }
  .ag-view--list .ag-listpage__grid > .ag-card .ag-card__meta {
    grid-row: 2;
  }
  .ag-view--list .ag-listpage__grid > .ag-card .ag-card__title {
    grid-row: 3;
    font-size: 1.375rem;
  }
  .ag-view--list .ag-listpage__grid > .ag-card .ag-card__quip {
    grid-row: 4;
  }
  .ag-view--list .ag-listpage__grid > .ag-card .ag-card__cover img {
    border-radius: 16px;
  }
}


/*******************************************************************************
 * Home: popular ranking
 *******************************************************************************/

.ag-sec--rank {
  padding-bottom: 0;
}
.ag-rank {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-rank__item {
  display: grid;
  grid-template-columns: 64px 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.ag-rank__num {
  color: transparent;
  font-family: var(--ag-font-display);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--ag-teal);
}
.ag-rank__item:nth-child(-n+3) .ag-rank__num {
  color: var(--ag-teal);
  -webkit-text-stroke: 0;
}
.ag-rank__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 684;
  object-fit: cover;
  border-radius: 12px;
  background-color: var(--soft);
}
.ag-rank__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.ag-rank__title a {
  color: var(--ink);
}
.ag-rank__title a:hover,
.ag-rank__title a:focus-visible {
  color: var(--pritx);
  text-decoration: none;
}


/*******************************************************************************
 * Article: key points, table of contents, FAQ
 *******************************************************************************/

.ag-keypoints {
  margin: 24px 0;
  padding: 22px 26px;
  background-color: var(--blush);
  border-radius: 6px 24px 24px 24px;
}
.ag-keypoints__title,
.ag-faq__title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 800;
}
.ag-keypoints__list {
  margin: 0;
  padding-left: 1.25em;
  line-height: 1.8;
}
.ag-keypoints__list li + li {
  margin-top: 4px;
}

.ag-toc {
  margin: 24px 0 32px;
  padding: 6px 24px;
  background-color: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 24px;
}
.ag-toc__title,
.ag-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.ag-toc__title::-webkit-details-marker,
.ag-faq__q::-webkit-details-marker {
  display: none;
}
.ag-toc__title .ag-icon,
.ag-faq__q .ag-icon {
  flex: none;
  transition: transform 0.2s;
}
.ag-toc details[open] .ag-toc__title .ag-icon,
.ag-faq__item[open] .ag-faq__q .ag-icon {
  transform: rotate(180deg);
}
.ag-toc__list {
  margin: 0;
  padding: 4px 0 16px 1.5em;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.ag-toc__item {
  padding-top: 10px;
}
.ag-toc__item::marker {
  color: var(--pritx);
  font-family: var(--ag-font-display);
  font-weight: 700;
}
.ag-toc__item a {
  color: var(--ink);
}
.ag-toc__item a:hover,
.ag-toc__item a:focus-visible {
  color: var(--pritx);
}
.ag-article__content h2[id],
.ag-article__content h3[id] {
  scroll-margin-top: 24px;
}

.ag-faq {
  margin: 40px 0 24px;
}
.ag-faq__item {
  border-top: 1px solid var(--line);
}
.ag-faq__item:last-child {
  border-bottom: 1px solid var(--line);
}
.ag-faq__a {
  padding: 0 0 18px;
  color: var(--mut);
  line-height: 1.8;
}
@media (prefers-reduced-motion: reduce) {
  .ag-toc__title .ag-icon,
  .ag-faq__q .ag-icon {
    transition: none;
  }
}


/*******************************************************************************
 * About page: editors
 *******************************************************************************/

.ag-editorshead {
  margin: 72px 0 32px;
  text-align: center;
}
.ag-editorshead__title {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 800;
}
.ag-editors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Each card has a soft colour band behind a round portrait; the accent rotates teal, pink, yellow */
.ag-editor {
  --accent: var(--ag-teal);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 28px 26px;
  overflow: hidden;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.ag-editor:nth-child(3n+2) {
  --accent: var(--ag-pink);
}
.ag-editor:nth-child(3n) {
  --accent: var(--ag-yellow);
}
.ag-editor::before {
  position: absolute;
  inset: 0 0 auto;
  height: 104px;
  background-color: var(--accent);
  opacity: 0.2;
  content: "";
}
.ag-editor:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.ag-editor__photo {
  position: relative;
  display: block;
  padding: 5px;
  background-color: var(--card);
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.ag-editor__photo img {
  display: block;
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--soft);
}
.ag-editor__name {
  margin: 8px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ag-editor__name a {
  color: var(--ink);
}
.ag-editor__name a:hover,
.ag-editor__name a:focus-visible {
  color: var(--pritx);
  text-decoration: none;
}
.ag-editor__name::after {
  display: block;
  width: 28px;
  height: 3px;
  margin: 12px auto 2px;
  background-color: var(--accent);
  border-radius: 2px;
  content: "";
}
.ag-editor__desc {
  flex: 1 1 auto;
  margin: 0;
  color: var(--mut);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.ag-editor__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.ag-editor__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 9999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
}
.ag-editor__more .ag-icon {
  width: 14px;
  height: 14px;
}
.ag-editor__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.ag-editor__social .ag-icon {
  width: 18px;
  height: 18px;
}
.ag-editor__more:hover,
.ag-editor__more:focus-visible,
.ag-editor__social:hover,
.ag-editor__social:focus-visible {
  background-color: var(--ag-teal);
  border-color: var(--ag-teal);
  color: var(--ag-navy);
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .ag-editor {
    transition: none;
  }
  .ag-editor:hover {
    transform: none;
  }
}


/*******************************************************************************
 * About page: chronicle of former editors
 *******************************************************************************/

.ag-editorshead__sub {
  margin: 8px 0 0;
  color: var(--mut);
}
.ag-chronicle {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 8px 32px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  list-style: none;
}
.ag-chronicle__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ag-chronicle__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 50%;
  background-color: var(--soft);
}
.ag-chronicle__years {
  flex: none;
  width: 108px;
  color: var(--pritx);
  font-family: var(--ag-font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ag-chronicle__name {
  color: var(--ink);
  font-weight: 700;
}
a.ag-chronicle__name:hover,
a.ag-chronicle__name:focus-visible {
  color: var(--pritx);
}
.ag-chronicle__note {
  flex: 1 1 100%;
  padding-left: 172px;
  color: var(--mut);
  font-size: 0.875rem;
}
.ag-chronicle__tag {
  padding: 1px 10px;
  background-color: var(--blush);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.ag-chronicle__tag--intern {
  background-color: var(--ag-yellow);
  color: var(--ag-navy);
}
.ag-chronicle__tag {
  flex: none;
}
@media (max-width: 479px) {
  .ag-chronicle {
    padding: 6px 20px;
  }
  .ag-chronicle__item {
    gap: 2px 10px;
  }
  .ag-chronicle__years {
    width: 94px;
    font-size: 1rem;
  }
  .ag-chronicle__note {
    padding-left: 0;
  }
}


/* Generations (屆) */
.ag-editor__cohort {
  padding: 2px 12px;
  background-color: var(--accent);
  border-radius: 9999px;
  color: var(--ag-navy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ag-editor__name::after {
  margin-bottom: 0;
}
.ag-cohort + .ag-cohort {
  margin-top: 32px;
}
.ag-cohort__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 12px;
  padding: 0 8px;
}
.ag-cohort__num {
  padding: 4px 16px;
  background-color: var(--ag-teal);
  border-radius: 9999px;
  color: var(--ag-navy);
  font-size: 1rem;
  font-weight: 800;
}
.ag-cohort:nth-of-type(3n+2) .ag-cohort__num {
  background-color: var(--ag-pink);
}
.ag-cohort:nth-of-type(3n) .ag-cohort__num {
  background-color: var(--ag-yellow);
}
.ag-cohort__years {
  color: var(--mut);
  font-family: var(--ag-font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
/* A row with a written introduction takes the full width so the text has room */
.ag-chronicle__item:has(.ag-chronicle__note) {
  grid-column: 1 / -1;
}
.ag-chronicle__note {
  line-height: 1.7;
}

/* ------------------------------------------------------------------
   Article images: site mark overlay + gallery
   The mark lives on the frame around the image, never in the image file.
   ------------------------------------------------------------------ */
.ag-shot {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  line-height: 0;
}
.ag-shot > img {
  max-width: 100%;
  height: auto !important;
}
.ag-shot::after {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 58px;
  height: 20px;
  background: rgba(255, 255, 255, 0.78) url("/static/images/logo_2026.png") center / 46px auto no-repeat;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(14, 19, 48, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0.9;
  pointer-events: none;
  content: "";
}
.ag-shot--plain::after {
  content: none;
}
.ag-shot.js-zoom:not(.ag-shot--plain) {
  cursor: zoom-in;
}
.ag-shot.js-zoom:focus-visible {
  outline: 3px solid var(--ag-teal);
  outline-offset: 3px;
  border-radius: 16px;
}
@media (max-width: 479px) {
  .ag-shot::after {
    bottom: 7px;
    left: 7px;
    width: 48px;
    height: 17px;
    background-size: 38px auto;
  }
}

html.ag-lightbox-open {
  overflow: hidden;
}
.ag-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: #0a0d22;
  border: 0;
  color: #fff;
  overflow: hidden;
}
.ag-lightbox[open] {
  display: flex;
  flex-direction: column;
  animation: ag-lightbox-in 0.18s ease-out;
}
.ag-lightbox::backdrop {
  background: rgba(10, 13, 34, 0.6);
}
@keyframes ag-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ag-lightbox__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.ag-lightbox__count {
  font-family: var(--ag-font-display, inherit);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.ag-lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s;
}
.ag-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.ag-lightbox__btn:focus-visible {
  outline: 2px solid var(--ag-yellow, #FFD600);
  outline-offset: 2px;
}
.ag-lightbox__btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.ag-lightbox__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ag-lightbox__stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 72px;
  cursor: zoom-out;
}
.ag-lightbox__shot {
  display: inline-flex;
  max-height: 100%;
  cursor: default;
}
.ag-lightbox__shot > img.ag-lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 68px - 96px);
  width: auto;
  object-fit: contain;
  border-radius: 10px;
}
.ag-lightbox--single .ag-lightbox__shot > img.ag-lightbox__img {
  max-height: calc(100dvh - 68px - 24px);
}
.ag-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.ag-lightbox__nav--prev { left: 14px; }
.ag-lightbox__nav--next { right: 14px; }
.ag-lightbox--single .ag-lightbox__nav,
.ag-lightbox--single .ag-lightbox__thumbs {
  display: none;
}
.ag-lightbox__thumbs {
  display: flex;
  flex: none;
  gap: 8px;
  height: 96px;
  padding: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ag-lightbox__thumbs::-webkit-scrollbar {
  display: none;
}
.ag-lightbox__thumbs::before,
.ag-lightbox__thumbs::after {
  flex: 1;
  content: "";
}
.ag-lightbox__thumb {
  flex: none;
  width: 96px;
  height: 64px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.45;
  overflow: hidden;
  transition: opacity 0.15s;
}
.ag-lightbox__thumb:hover {
  opacity: 0.8;
}
.ag-lightbox__thumb--current {
  opacity: 1;
  outline: 2px solid var(--ag-yellow, #FFD600);
  outline-offset: -2px;
}
.ag-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  .ag-lightbox__stage {
    padding: 0 8px;
  }
  .ag-lightbox__nav {
    width: 38px;
    height: 38px;
    background: rgba(10, 13, 34, 0.55);
  }
  .ag-lightbox__nav--prev { left: 8px; }
  .ag-lightbox__nav--next { right: 8px; }
  .ag-lightbox__thumbs {
    height: 76px;
    padding: 12px;
  }
  .ag-lightbox__thumb {
    width: 72px;
    height: 52px;
  }
  .ag-lightbox__shot > img.ag-lightbox__img {
    max-height: calc(100dvh - 68px - 76px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ag-lightbox[open] {
    animation: none;
  }
}
