:root {
  --jlu-canvas: #f6f2eb;
  --jlu-surface: #fffdf9;
  --jlu-surface-raised: #ffffff;
  --jlu-surface-soft: #eee6da;
  --jlu-glass: rgb(255 253 248 / 68%);
  --jlu-glass-strong: rgb(255 253 248 / 84%);
  --jlu-ink: #2f271f;
  --jlu-ink-strong: #1d1814;
  --jlu-muted: #746a60;
  --jlu-line: rgb(92 67 43 / 16%);
  --jlu-line-strong: rgb(132 79 28 / 32%);
  --jlu-blue: #9d570f;
  --jlu-blue-strong: #5d3513;
  --jlu-blue-soft: #f0dfc8;
  --jlu-accent: #aa6218;
  --jlu-accent-soft: #dfbc83;
  --jlu-deep: #241d17;
  --jlu-deep-soft: #36291f;
  --jlu-focus: rgb(170 98 24 / 28%);
  --jlu-shadow: 0 22px 58px rgb(48 32 17 / 13%);
  --jlu-shadow-soft: 0 12px 32px rgb(48 32 17 / 8%);
  --jlu-header-height: 76px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
}

body.jlu-directory-page {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background-color: var(--jlu-canvas);
  background-image: url("assets/home/sunlit-hero-v19.webp");
  background-position: top var(--jlu-header-height) center;
  background-repeat: no-repeat;
  background-size: max(1440px, 100vw) auto;
  color: var(--jlu-ink);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.content-first-page {
  background-position: top calc(var(--jlu-header-height) - 40px) center;
  background-size: max(1600px, 110vw) auto;
}

body.jlu-directory-page::before,
body.jlu-directory-page::after {
  display: none;
}

body.jlu-directory-page a {
  color: inherit;
}

body.jlu-directory-page :focus-visible {
  outline: 3px solid var(--jlu-focus);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.directory-shell {
  width: min(1340px, calc(100% - 64px));
  margin-inline: auto;
}

/* Persistent navigation */
.directory-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--jlu-header-height);
  border: 0;
  border-bottom: 1px solid var(--jlu-line);
  background: rgb(255 253 249 / 90%);
  box-shadow: 0 8px 28px rgb(41 28 16 / 5%);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.directory-header__inner {
  min-height: var(--jlu-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.directory-brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--jlu-ink-strong);
  text-decoration: none;
}

.directory-brand__logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgb(93 53 19 / 22%);
  border-radius: 50%;
  background: #fffaf2;
  object-fit: cover;
  filter: none;
  box-shadow: 0 9px 22px rgb(53 34 16 / 14%);
}

.directory-brand__text {
  display: grid;
  gap: 4px;
}

.directory-brand__text strong {
  color: var(--jlu-ink-strong);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.directory-brand__text span {
  margin: 0;
  color: var(--jlu-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.3;
}

.directory-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.directory-nav a {
  min-height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--jlu-ink);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.directory-nav a::after {
  display: none;
}

.directory-nav a:hover,
.directory-nav a:focus-visible {
  border-bottom-color: rgb(170 98 24 / 44%);
  background: rgb(238 230 218 / 38%);
  color: var(--jlu-blue-strong);
}

.directory-nav a[aria-current="page"] {
  border-bottom-color: var(--jlu-accent);
  background: transparent;
  color: var(--jlu-ink-strong);
}

.directory-mobile-tabs {
  display: none;
}

/* Homepage hero */
.portal-home-hero {
  min-height: 390px;
  display: grid;
  align-items: center;
  padding: 58px 0 42px;
  border: 0;
  background: transparent;
}

.portal-home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: clamp(44px, 7vw, 108px);
}

.portal-home-hero__copy {
  min-width: 0;
}

.portal-home-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--jlu-ink-strong);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
  white-space: nowrap;
}

.portal-home-hero h1 span {
  display: inline;
  margin-left: 0.03em;
  color: var(--jlu-accent);
}

.portal-home-hero .portal-home-hero__summary {
  max-width: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  color: var(--jlu-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.portal-home-hero__summary i {
  width: 1px;
  height: 18px;
  display: inline-block;
  background: var(--jlu-line-strong);
}

.portal-home-hero__summary b {
  color: var(--jlu-accent);
  font-size: 22px;
  line-height: 1;
}

.portal-audience-cues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.portal-audience-cues li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 18px;
  border-right: 1px solid var(--jlu-line);
}

.portal-audience-cues li:last-child {
  padding-right: 0;
  border-right: 0;
}

.portal-audience-cues img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid var(--jlu-line);
  border-radius: 50%;
  background: rgb(255 253 249 / 66%);
  object-fit: contain;
  filter: grayscale(1) sepia(1) saturate(3) hue-rotate(347deg) brightness(0.68);
}

.portal-audience-cues span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.portal-audience-cues strong {
  color: var(--jlu-ink-strong);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.portal-audience-cues small {
  overflow: hidden;
  color: var(--jlu-muted);
  font-size: 13px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Latest-news vertical ticker */
.portal-news-ticker {
  position: relative;
  min-height: 258px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 24px 26px 20px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 18px;
  background-color: rgb(255 253 248 / 74%);
  background-image: url("assets/home/glass-light-v19.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgb(151 93 35 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 92%),
    0 20px 48px rgb(48 32 17 / 12%);
  backdrop-filter: blur(18px) saturate(108%);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
}

.portal-news-ticker__heading,
.portal-news-ticker__footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-news-ticker__heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-news-ticker__heading span:first-child {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgb(170 98 24 / 34%);
  border-radius: 999px;
  color: var(--jlu-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.portal-news-ticker h2 {
  margin: 0;
  color: var(--jlu-ink-strong);
  font-size: 17px;
  font-weight: 700;
}

.portal-news-ticker__counter {
  color: var(--jlu-muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.portal-news-ticker__viewport {
  position: relative;
  min-height: 130px;
  overflow: hidden;
}

.portal-news-ticker__track {
  position: absolute;
  inset: 0;
}

.portal-news-ticker__track.is-resetting .portal-news-ticker__item {
  transition: none;
}

.portal-news-ticker__item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  opacity: 0;
  color: var(--jlu-ink);
  text-decoration: none;
  pointer-events: none;
  transform: translateY(34px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-news-ticker__item.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.portal-news-ticker__item.is-before {
  transform: translateY(-34px);
}

.portal-news-ticker__item.is-after {
  transform: translateY(34px);
}

.portal-news-ticker__item:hover strong,
.portal-news-ticker__item:focus-visible strong {
  color: var(--jlu-accent);
}

.portal-news-ticker__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--jlu-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.portal-news-ticker__meta time {
  font-variant-numeric: tabular-nums;
}

.portal-news-ticker__meta em {
  padding-left: 9px;
  border-left: 1px solid var(--jlu-line-strong);
  font-style: normal;
}

.portal-news-ticker__item strong {
  max-width: 18em;
  color: var(--jlu-ink-strong);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.5;
  transition: color 160ms ease;
}

.portal-news-ticker__item > span:last-child {
  color: var(--jlu-muted);
  font-size: 13px;
  line-height: 1.6;
}

.portal-news-ticker__footer {
  padding-top: 12px;
  border-top: 1px solid var(--jlu-line);
}

.portal-news-ticker__footer > span {
  color: rgb(47 39 31 / 48%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.portal-news-ticker__controls {
  display: flex;
  gap: 7px;
}

.portal-news-ticker__controls button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--jlu-line-strong);
  border-radius: 50%;
  background: rgb(255 253 249 / 64%);
  color: var(--jlu-ink);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.portal-news-ticker__controls button:hover,
.portal-news-ticker__controls button:focus-visible {
  border-color: var(--jlu-accent);
  background: var(--jlu-surface);
}

.portal-news-ticker__controls button:active {
  transform: translateY(1px);
}

.portal-news-ticker__controls img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  filter: grayscale(1) sepia(1) saturate(3) hue-rotate(347deg) brightness(0.62);
}

.portal-news-ticker__controls button:first-child img {
  transform: rotate(180deg);
}

/* Three primary routes */
.portal-primary-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 0;
  padding-bottom: 34px;
}

.portal-primary-door,
.portal-primary-door:nth-child(n) {
  min-width: 0;
  min-height: 202px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 18px;
  background-color: rgb(255 253 248 / 72%);
  background-image: url("assets/home/glass-light-v19.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgb(145 89 32 / 11%),
    inset 0 1px 0 rgb(255 255 255 / 92%),
    var(--jlu-shadow-soft);
  color: var(--jlu-ink);
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(108%);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portal-primary-door::before,
.portal-primary-door::after {
  display: none;
}

.portal-primary-door:nth-child(1) {
  background-position: left center;
}

.portal-primary-door:nth-child(2) {
  background-position: center;
}

.portal-primary-door:nth-child(3) {
  background-position: right center;
}

.portal-primary-door:hover,
.portal-primary-door:focus-visible {
  border-color: rgb(170 98 24 / 42%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 88%),
    0 26px 50px rgb(48 32 17 / 14%);
  transform: translateY(-4px);
}

.portal-primary-door:active {
  transform: translateY(-1px);
}

.portal-primary-door__icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--jlu-line);
  border-radius: 50%;
  background: rgb(255 253 249 / 70%);
  box-shadow: inset 0 0 18px rgb(223 188 131 / 14%);
}

.portal-primary-door__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: grayscale(1) sepia(1) saturate(3) hue-rotate(347deg) brightness(0.55);
}

.portal-primary-door__copy {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-self: center;
  justify-content: initial;
  gap: 7px;
}

.portal-primary-door__number {
  display: none;
}

.portal-primary-door__copy strong {
  margin-top: 0;
  color: var(--jlu-ink-strong);
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.portal-primary-door__copy small {
  margin-top: 0;
  max-width: none;
  color: var(--jlu-muted);
  font-size: 14px;
  line-height: 1.6;
}

.portal-primary-door__go {
  width: auto;
  height: auto;
  grid-column: 1 / -1;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  place-items: initial;
  justify-self: start;
  gap: 9px;
  border-radius: 0;
  background: transparent;
  color: var(--jlu-accent);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, transform 160ms ease;
}

.portal-primary-door:hover .portal-primary-door__go,
.portal-primary-door:focus-visible .portal-primary-door__go {
  background: transparent;
  color: var(--jlu-accent-strong);
  transform: translateX(3px);
}

.portal-primary-door__go img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: grayscale(1) sepia(1) saturate(3) hue-rotate(347deg) brightness(0.65);
}

/* Official shortcuts */
.portal-official-strip {
  padding: 0;
  border-top: 1px solid var(--jlu-line);
  border-bottom: 1px solid var(--jlu-line);
  background: rgb(255 253 249 / 46%);
}

.portal-official-strip__inner {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.portal-official-strip h2 {
  margin: 0;
  color: var(--jlu-ink-strong);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portal-official-links {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 7px;
}

.portal-official-links a {
  min-width: 0;
  min-height: 48px;
  display: flex;
  grid-column: span 2;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--jlu-line);
  border-radius: 9px;
  background: rgb(255 253 249 / 54%);
  color: var(--jlu-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.portal-official-links a:nth-child(8) {
  grid-column: 2 / span 2;
}

.portal-official-links a::after {
  display: none;
}

.portal-official-links a:hover,
.portal-official-links a:focus-visible {
  border-color: rgb(170 98 24 / 44%);
  background: var(--jlu-surface);
  color: var(--jlu-accent);
}

/* Dark contact anchor */
.portal-contact-strip {
  padding: 30px 0 34px;
  background: transparent;
}

.portal-contact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgb(223 188 131 / 58%);
  border-radius: 18px;
  background-color: var(--jlu-deep);
  background-image: url("assets/home/glass-dark-v19.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 7%),
    inset 0 1px 0 rgb(255 255 255 / 12%),
    0 22px 48px rgb(31 21 12 / 22%);
}

.portal-contact-item,
.portal-contact-item:nth-child(n) {
  min-width: 0;
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
  color: #fffaf1;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.portal-contact-item + .portal-contact-item {
  border-left-width: 1px;
}

.portal-contact-item:hover,
.portal-contact-item:focus-visible {
  border-color: rgb(223 188 131 / 46%);
  background: rgb(255 255 255 / 8%);
  transform: translateY(-2px);
}

.portal-contact-item > img,
.portal-contact-item--qr > img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
  box-shadow: none;
}

.portal-contact-item--qr > img {
  width: 58px;
  height: 58px;
}

.portal-contact-item span:last-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.portal-contact-item strong {
  overflow: hidden;
  color: #fffaf1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.portal-contact-item small {
  color: rgb(255 250 241 / 62%);
  font-size: 12px;
  line-height: 1.5;
}

/* Content pages */
.content-first-page main > .directory-shell,
.portal-page main > .directory-shell {
  padding-top: 60px;
  padding-bottom: 86px;
}

.content-page-heading {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--jlu-line-strong);
}

.content-page-heading h1 {
  max-width: 19ch;
  margin: 0;
  color: var(--jlu-ink-strong);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.content-page-heading > strong {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--jlu-line-strong);
  border-radius: 999px;
  background: var(--jlu-glass);
  color: var(--jlu-accent);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.directory-jumpnav {
  position: sticky;
  top: calc(var(--jlu-header-height) + 10px);
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 10px;
  border: 1px solid var(--jlu-line);
  border-radius: 12px;
  background: rgb(255 253 249 / 82%);
  box-shadow: var(--jlu-shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.directory-jumpnav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--jlu-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.directory-jumpnav a:hover,
.directory-jumpnav a:focus-visible {
  background: var(--jlu-surface-soft);
  color: var(--jlu-accent);
}

.directory-jumpnav strong {
  font-weight: 700;
}

.content-first-page .directory-section,
.directory-section {
  margin: 0;
  padding: 44px 0 0;
  border: 0;
}

.content-first-page .directory-section--first,
.directory-section--first {
  padding-top: 42px;
}

.directory-section + .directory-section {
  margin-top: 46px;
  border-top: 1px solid var(--jlu-line);
}

.directory-section__heading,
.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 20px;
}

.directory-section__heading h2,
.directory-toolbar h2 {
  margin: 0;
  color: var(--jlu-ink-strong);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.directory-section__count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--jlu-line);
  border-radius: 999px;
  color: var(--jlu-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.portal-link-grid,
.portal-link-grid--compact,
.portal-link-grid--feature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-link-grid--feature {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-link-grid a,
.portal-link-grid--feature a:first-child,
.portal-link-grid--feature a:nth-child(n) {
  min-width: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 14px;
  background: var(--jlu-glass);
  color: var(--jlu-ink);
  box-shadow:
    inset 0 0 0 1px rgb(145 89 32 / 10%),
    var(--jlu-shadow-soft);
  text-decoration: none;
  backdrop-filter: blur(14px) saturate(106%);
  -webkit-backdrop-filter: blur(14px) saturate(106%);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.portal-link-grid a:hover,
.portal-link-grid a:focus-visible {
  border-color: rgb(170 98 24 / 42%);
  background: var(--jlu-glass-strong);
  box-shadow: 0 18px 36px rgb(48 32 17 / 12%);
  transform: translateY(-3px);
}

.portal-link-grid a::after {
  content: "进入";
  align-self: flex-start;
  color: var(--jlu-accent);
  font-size: 12px;
  font-weight: 600;
}

.portal-link-grid strong {
  color: var(--jlu-ink-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.portal-link-grid span {
  overflow-wrap: anywhere;
  color: var(--jlu-muted);
  font-size: 13px;
  line-height: 1.65;
}

.portal-action-panel,
.portal-action-panel--direct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding: 28px 30px;
  border: 1px solid rgb(223 188 131 / 54%);
  border-radius: 16px;
  background-color: var(--jlu-deep);
  background-image: url("assets/home/glass-dark-v19.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fffaf1;
  box-shadow: 0 20px 48px rgb(31 21 12 / 20%);
}

.portal-action-panel h2 {
  margin: 0;
  color: #fffaf1;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portal-primary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgb(223 188 131 / 54%);
  border-radius: 10px;
  background: rgb(255 255 255 / 8%);
  color: #fffaf1;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.portal-primary-action:hover,
.portal-primary-action:focus-visible {
  background: rgb(255 255 255 / 14%);
}

/* Journal cards */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.directory-card,
.directory-card--featured {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 16px;
  background: var(--jlu-glass);
  color: var(--jlu-ink);
  box-shadow:
    inset 0 0 0 1px rgb(145 89 32 / 10%),
    var(--jlu-shadow-soft);
  backdrop-filter: blur(14px) saturate(106%);
  -webkit-backdrop-filter: blur(14px) saturate(106%);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.directory-card:hover {
  border-color: rgb(170 98 24 / 38%);
  box-shadow: 0 20px 40px rgb(48 32 17 / 12%);
  transform: translateY(-2px);
}

.directory-card--featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  grid-template-rows: none;
  border-color: rgb(223 188 131 / 48%);
  background-color: var(--jlu-deep);
  background-image: url("assets/home/glass-dark-v19.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fffaf1;
}

.directory-card > div:first-child {
  min-width: 0;
  padding: 26px;
}

.directory-card--featured > div:first-child {
  padding: 30px;
}

.directory-card__number {
  margin: 0 0 12px;
  color: var(--jlu-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.directory-card h3,
.directory-card h2 {
  margin: 0;
  color: var(--jlu-ink-strong);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.directory-card--featured h3,
.directory-card--featured h2 {
  color: #fffaf1;
}

.directory-card__meta,
.directory-card__description {
  color: var(--jlu-muted);
  font-size: 13px;
  line-height: 1.7;
}

.directory-card__meta {
  margin: 13px 0 0;
  font-weight: 600;
}

.directory-card__description {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
}

.directory-card--featured .directory-card__meta,
.directory-card--featured .directory-card__description {
  color: rgb(255 250 241 / 68%);
}

.directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.directory-tag {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--jlu-line);
  border-radius: 999px;
  color: var(--jlu-muted);
  font-size: 12px;
  font-weight: 500;
}

.directory-tag--primary {
  border-color: rgb(170 98 24 / 32%);
  background: rgb(223 188 131 / 16%);
  color: var(--jlu-blue-strong);
}

.directory-card--featured .directory-tag {
  border-color: rgb(255 255 255 / 16%);
  color: rgb(255 250 241 / 68%);
}

.directory-card--featured .directory-tag--primary {
  border-color: rgb(223 188 131 / 40%);
  background: rgb(223 188 131 / 11%);
  color: #f0c888;
}

.directory-links {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-top: 1px solid var(--jlu-line);
  background: rgb(255 255 255 / 30%);
}

.directory-card--featured .directory-links {
  align-content: center;
  border-top: 0;
  border-left: 1px solid rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 4%);
}

.directory-link {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--jlu-line);
  border-radius: 9px;
  background: rgb(255 253 249 / 58%);
  color: var(--jlu-ink);
  text-decoration: none;
}

.directory-link:hover,
.directory-link:focus-visible {
  border-color: rgb(170 98 24 / 38%);
  background: var(--jlu-surface);
}

.directory-link strong {
  color: var(--jlu-ink-strong);
  font-size: 13px;
  font-weight: 600;
}

.directory-link span {
  overflow: hidden;
  color: var(--jlu-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-card--featured .directory-link {
  border-color: rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 6%);
}

.directory-card--featured .directory-link strong {
  color: #fffaf1;
}

.directory-card--featured .directory-link span {
  color: rgb(255 250 241 / 56%);
}

/* Institution rows */
.institution-list {
  display: grid;
  gap: 12px;
}

.institution-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(360px, 1.52fr) minmax(210px, 0.7fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 14px;
  background: var(--jlu-glass);
  box-shadow:
    inset 0 0 0 1px rgb(145 89 32 / 9%),
    var(--jlu-shadow-soft);
  backdrop-filter: blur(14px) saturate(106%);
  -webkit-backdrop-filter: blur(14px) saturate(106%);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.institution-row:hover {
  border-color: rgb(170 98 24 / 36%);
  box-shadow: 0 18px 38px rgb(48 32 17 / 11%);
  transform: translateY(-2px);
}

.institution-row__identity,
.institution-row__addresses,
.institution-row__resources {
  min-width: 0;
  padding: 20px;
}

.institution-row__addresses,
.institution-row__resources {
  border-left: 1px solid var(--jlu-line);
}

.institution-row__identity {
  display: grid;
  align-content: center;
}

.institution-row__identity h3 {
  margin: 0;
  color: var(--jlu-ink-strong);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.institution-row__addresses {
  display: grid;
  align-content: center;
}

.institution-address-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.institution-address-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
}

.institution-address-list strong {
  color: var(--jlu-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.institution-address-list address {
  min-width: 0;
  margin: 0;
  color: var(--jlu-ink);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.institution-row__link {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--jlu-accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.institution-row__link span {
  overflow: hidden;
  color: var(--jlu-muted);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.institution-row__resources {
  display: grid;
  align-content: center;
  gap: 8px;
  background: rgb(255 255 255 / 26%);
}

.institution-row__link {
  padding: 10px 11px;
  border: 1px solid var(--jlu-line);
  border-radius: 8px;
  background: rgb(255 253 249 / 50%);
}

.directory-note {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--jlu-line);
  border-left: 4px solid var(--jlu-accent);
  border-radius: 12px;
  background: var(--jlu-glass);
  color: var(--jlu-muted);
  box-shadow: var(--jlu-shadow-soft);
}

.directory-note h2,
.directory-note h3 {
  margin: 0 0 10px;
  color: var(--jlu-ink-strong);
}

.directory-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

/* Contact page */
.portal-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-qr-card {
  min-width: 0;
  min-height: 190px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 15px;
  background: var(--jlu-glass);
  color: var(--jlu-ink);
  box-shadow:
    inset 0 0 0 1px rgb(145 89 32 / 9%),
    var(--jlu-shadow-soft);
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portal-qr-card > img {
  width: 136px;
  height: 136px;
  flex: 0 0 auto;
  border: 1px solid var(--jlu-line);
  border-radius: 12px;
  background: #fff;
  object-fit: cover;
}

.portal-qr-card h3 {
  margin: 0 0 8px;
  color: var(--jlu-ink-strong);
  font-size: 20px;
  font-weight: 700;
}

.portal-qr-card span {
  color: var(--jlu-muted);
  font-size: 13px;
}

.portal-qr-card div > span {
  font-weight: 600;
}

.portal-social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-social-grid > a,
.portal-social-grid > article {
  min-width: 0;
  min-height: 128px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 14px;
  background: var(--jlu-glass);
  color: var(--jlu-ink);
  box-shadow:
    inset 0 0 0 1px rgb(145 89 32 / 9%),
    var(--jlu-shadow-soft);
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portal-social-grid > a:hover,
.portal-social-grid > a:focus-visible {
  border-color: rgb(170 98 24 / 40%);
  transform: translateY(-2px);
}

.portal-social-grid img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff;
  object-fit: cover;
}

.portal-social-grid div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.portal-social-grid strong {
  color: var(--jlu-ink-strong);
  font-size: 16px;
  font-weight: 600;
}

.portal-social-grid span {
  color: var(--jlu-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Footer */
.directory-footer,
.portal-home-v15 .directory-footer {
  margin-top: 0;
  border-top: 1px solid var(--jlu-line);
  background: rgb(255 253 249 / 66%);
  color: var(--jlu-muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.directory-footer__inner {
  min-height: 74px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.directory-footer p {
  margin: 0;
  color: var(--jlu-muted);
}

.portal-link-grid a,
.directory-card:not(.directory-card--featured),
.institution-row,
.portal-qr-card,
.portal-social-grid > a,
.portal-social-grid > article {
  background-color: rgb(255 253 248 / 78%);
  background-image: url("assets/home/glass-light-v19.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.portal-link-grid a:nth-child(even),
.directory-card:not(.directory-card--featured):nth-child(even),
.institution-row:nth-child(even),
.portal-social-grid > :nth-child(even) {
  background-position: right center;
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .directory-header,
  .directory-jumpnav {
    background: rgb(255 253 249 / 98%);
  }

  .portal-news-ticker,
  .portal-primary-door,
  .portal-link-grid a,
  .directory-card,
  .institution-row,
  .portal-qr-card,
  .portal-social-grid > a,
  .portal-social-grid > article {
    background-color: rgb(255 253 249 / 94%);
  }
}

@media (max-width: 1180px) {
  .directory-shell {
    width: min(100% - 44px, 1340px);
  }

  .directory-header__inner {
    gap: 18px;
  }

  .directory-brand__logo {
    width: 46px;
    height: 46px;
  }

  .directory-brand__text strong {
    font-size: 20px;
  }

  .directory-nav {
    gap: 2px;
  }

  .directory-nav a {
    padding-inline: 8px;
    font-size: 14px;
  }

  .portal-home-hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    gap: 34px;
  }

  .portal-home-hero h1 {
    font-size: clamp(46px, 5vw, 62px);
  }

  .portal-primary-door,
  .portal-primary-door:nth-child(n) {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
  }

  .portal-primary-door__icon {
    width: 62px;
    height: 62px;
  }

  .portal-primary-door__go {
    display: inline-flex;
  }

  .portal-official-strip__inner {
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 16px;
  }

  .portal-official-links {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .portal-official-links a:nth-child(8) {
    grid-column: span 2;
  }

  .portal-official-links a:nth-child(11) {
    grid-column: 3 / span 2;
  }

  .portal-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-link-grid--feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --jlu-header-height: 68px;
  }

  html {
    scroll-padding-top: 128px;
  }

  .directory-header__inner {
    min-height: var(--jlu-header-height);
  }

  .directory-nav {
    display: none;
  }

  .directory-mobile-tabs {
    position: sticky;
    top: var(--jlu-header-height);
    z-index: 90;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--jlu-line);
    background: rgb(255 253 249 / 92%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .directory-mobile-tabs__nav {
    width: 100%;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 7px 16px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .directory-mobile-tabs__nav::-webkit-scrollbar {
    display: none;
  }

  .directory-mobile-tabs__nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--jlu-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }

  .directory-mobile-tabs__nav a[aria-current="page"] {
    border-color: var(--jlu-line-strong);
    background: var(--jlu-surface-soft);
    color: var(--jlu-blue-strong);
  }

  .portal-home-hero {
    min-height: 0;
    padding: 52px 0 30px;
  }

  .portal-home-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portal-home-hero h1 {
    font-size: clamp(48px, 9vw, 68px);
  }

  .portal-news-ticker {
    min-height: 238px;
  }

  .portal-primary-doors {
    gap: 14px;
  }

  .portal-primary-door,
  .portal-primary-door:nth-child(n) {
    min-height: 178px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 15px;
    padding: 20px;
  }

  .portal-primary-door__icon {
    width: 54px;
    height: 54px;
  }

  .portal-primary-door__icon img {
    width: 28px;
    height: 28px;
  }

  .portal-primary-door__copy strong {
    font-size: 23px;
  }

  .portal-link-grid,
  .portal-link-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-card--featured {
    grid-template-columns: 1fr;
  }

  .directory-card--featured .directory-links {
    border-top: 1px solid rgb(255 255 255 / 10%);
    border-left: 0;
  }

  .institution-row {
    grid-template-columns: 1fr;
  }

  .institution-row__addresses,
  .institution-row__resources {
    border-top: 1px solid var(--jlu-line);
    border-left: 0;
  }

  .directory-jumpnav {
    top: calc(var(--jlu-header-height) + 55px);
  }
}

@media (max-width: 720px) {
  :root {
    --jlu-header-height: 64px;
  }

  .directory-shell {
    width: min(100% - 30px, 1340px);
  }

  .directory-brand {
    gap: 10px;
  }

  .directory-brand__logo {
    width: 42px;
    height: 42px;
  }

  .directory-brand__text strong {
    font-size: 19px;
  }

  .directory-brand__text span {
    font-size: 12px;
  }

  .portal-home-hero {
    padding-top: 42px;
  }

  .portal-home-hero h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.14;
    white-space: normal;
  }

  .portal-home-hero .portal-home-hero__summary {
    gap: 8px;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .portal-home-hero__summary i {
    height: 14px;
  }

  .portal-audience-cues {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .portal-audience-cues li {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--jlu-line);
  }

  .portal-audience-cues li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .portal-audience-cues small {
    white-space: normal;
  }

  .portal-news-ticker {
    min-height: 250px;
    padding: 20px;
    border-radius: 15px;
  }

  .portal-news-ticker__viewport {
    min-height: 142px;
  }

  .portal-news-ticker__item strong {
    font-size: 18px;
  }

  .portal-primary-doors {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 28px;
  }

  .portal-primary-door,
  .portal-primary-door:nth-child(n) {
    min-height: 168px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 17px;
    padding: 20px;
    border-radius: 15px;
  }

  .portal-primary-door__go {
    width: auto;
    height: auto;
    display: inline-flex;
  }

  .portal-primary-door__copy strong {
    font-size: 23px;
  }

  .portal-official-strip__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .portal-official-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portal-official-links a:nth-child(11) {
    grid-column: span 2;
  }

  .portal-official-links a:last-child {
    grid-column: 2 / span 2;
  }

  .institution-address-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .portal-contact-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .portal-contact-item,
  .portal-contact-item:nth-child(n) {
    min-height: 88px;
  }

  .content-first-page main > .directory-shell,
  .portal-page main > .directory-shell {
    padding-top: 34px;
    padding-bottom: 58px;
  }

  .content-page-heading {
    min-height: 118px;
    align-items: flex-end;
    padding: 20px 0 26px;
  }

  .content-page-heading h1 {
    max-width: 78%;
    font-size: clamp(30px, 8.5vw, 38px);
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .content-page-heading > strong {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .directory-jumpnav {
    top: 111px;
    margin-top: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .directory-jumpnav::-webkit-scrollbar {
    display: none;
  }

  .directory-jumpnav a {
    flex: 0 0 auto;
  }

  .content-first-page .directory-section,
  .directory-section {
    padding-top: 34px;
  }

  .directory-section + .directory-section {
    margin-top: 34px;
  }

  .directory-section__heading,
  .directory-toolbar {
    align-items: flex-end;
    margin-bottom: 15px;
  }

  .directory-section__heading h2,
  .directory-toolbar h2 {
    font-size: 22px;
  }

  .portal-link-grid,
  .portal-link-grid--compact,
  .portal-link-grid--feature {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portal-link-grid a,
  .portal-link-grid--feature a:first-child,
  .portal-link-grid--feature a:nth-child(n) {
    min-height: 104px;
    padding: 17px;
  }

  .portal-action-panel,
  .portal-action-panel--direct {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 38px;
    padding: 22px;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-card--featured {
    grid-column: auto;
  }

  .portal-qr-grid,
  .portal-social-grid {
    grid-template-columns: 1fr;
  }

  .portal-qr-card {
    min-height: 160px;
    gap: 18px;
    padding: 18px;
  }

  .portal-qr-card > img {
    width: 112px;
    height: 112px;
  }

  .directory-footer__inner {
    min-height: 102px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    padding: 20px 0;
    font-size: 12px;
    line-height: 1.65;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .directory-shell {
    width: min(100% - 24px, 1340px);
  }

  .portal-home-hero h1 {
    font-size: clamp(34px, 10vw, 38px);
  }

  .portal-home-hero .portal-home-hero__summary {
    max-width: 25ch;
  }

  .portal-news-ticker__footer > span {
    display: none;
  }

  .portal-news-ticker__footer {
    justify-content: flex-end;
  }

  .portal-primary-door,
  .portal-primary-door:nth-child(n) {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    padding: 17px;
  }

  .portal-primary-door__icon {
    width: 52px;
    height: 52px;
  }

  .portal-primary-door__copy strong {
    font-size: 23px;
  }

  .content-page-heading h1 {
    max-width: 72%;
    font-size: 30px;
  }

  .portal-qr-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
