.portal-universes {
  max-width: 1240px;
  margin: clamp(1rem, 3vw, 2rem) auto;
  padding: 0 clamp(.5rem, 2vw, 1rem);
}

.portal-universes h2 {
  margin: 0 0 .8rem;
  text-align: center;
  color: #e5c785;
  font: 600 clamp(1.3rem, 3vw, 2rem)/1.22 Georgia, serif;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.portal-category {
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #a68c54;
  border-radius: .75rem;
  color: #f4ead6;
  background: radial-gradient(ellipse at top left, #1b3555, #081527 76%);
  text-decoration: none;
}

.portal-category img {
  width: 100%;
  height: 100%;
  min-height: 6.75rem;
  object-fit: cover;
}

.portal-category > div {
  align-self: center;
  padding: .7rem;
  overflow-wrap: anywhere;
}

.portal-category h3 {
  margin: 0;
  color: #f2ddb0;
  font: 600 clamp(1rem, 2vw, 1.22rem)/1.2 Georgia, serif;
}

.portal-category p {
  margin: .3rem 0;
  color: #f4ead6;
  font-size: .85rem;
}

.portal-category div > span {
  color: #e5c785;
  font-size: .85rem;
}

.portal-category:focus-visible,
.portal-hub a:focus-visible {
  outline: 2px solid #e5c785;
  outline-offset: 3px;
}

.portal-hub {
  margin: 0;
  min-height: 100vh;
  color: #f4ead6;
  background: #081527;
  font-family: system-ui, sans-serif;
}

.portal-hub > header:not([data-oraclastra-navigation]),
.portal-hub footer {
  padding: 1rem;
  text-align: center;
}

.portal-hub > header:not([data-oraclastra-navigation]) {
  border-bottom: 1px solid #a68c54;
  font: 600 1.5rem Georgia, serif;
}

.portal-hub main a, .portal-hub > footer a { color: #e5c785; }

.portal-hub-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(12rem, 30vw, 22rem);
  isolation: isolate;
}

.portal-hub-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  z-index: -1;
}

.portal-hub-banner h1 {
  margin: 1rem;
  text-align: center;
  color: #f2ddb0;
  font: 600 clamp(1.75rem, 5vw, 3.5rem)/1.15 Georgia, serif;
}

.portal-hub-links {
  display: grid;
  gap: .65rem;
  max-width: 50rem;
  margin: 1.5rem auto;
  padding: 0 1rem;
  list-style: none;
}

.portal-hub-links a {
  display: flex;
  justify-content: space-between;
  padding: .9rem 1rem;
  border: 1px solid #a68c54;
  border-radius: .6rem;
  background: #102640;
  text-decoration: none;
}

@media (max-width: 900px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .portal-grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
}

.portal-library {
  max-width: 1240px;
  margin: clamp(1rem, 3vw, 2rem) auto;
  padding: 1rem clamp(.65rem, 2vw, 1.25rem);
  border: 1px solid #a68c54;
  border-radius: .75rem;
  background: radial-gradient(ellipse at bottom, #33415c, #081527 72%);
}

.portal-library h2 {
  margin: 0 0 1rem;
  text-align: center;
  color: #e5c785;
  font: 600 clamp(1.3rem, 3vw, 2rem)/1.22 Georgia, serif;
}

.portal-books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: clamp(.5rem, 2vw, 1rem);
}

.portal-book {
  display: grid;
  align-content: start;
  gap: .65rem;
  min-width: 0;
  padding: .45rem;
  color: #f4ead6;
  text-align: center;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.portal-book:focus-visible {
  outline: 2px solid #e5c785;
  outline-offset: 2px;
}

.portal-book-cover {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto;
  width: min(100%, 11rem);
  aspect-ratio: 3 / 4;
  filter: drop-shadow(6px 8px 5px #0008);
}

.portal-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-book-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1rem;
  margin-top: .75rem;
}

.portal-book-links a {
  color: #e5c785;
  text-decoration: underline;
}

@media (max-width: 580px) {
  .portal-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.home-master .master-hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: clamp(19rem, 28vw, 31rem);
  padding: clamp(1.5rem, 3.5vw, 3.5rem) 1rem;
  background: radial-gradient(ellipse at center, #031124de 0%, #03112464 45%, transparent 75%), url('/assets/home/portal-hero-1920.webp') center / cover no-repeat, #041225;
  isolation: isolate;
}

body.home-master .master-hero::before,
body.home-master .master-hero::after {
  content: none;
}

body.home-master .master-hero-copy {
  width: min(100%, 39rem);
  padding: 0;
  background: none;
  text-align: center;
}

body.home-master .master-hero-copy > p {
  margin-inline: auto;
}

body.home-master .master-hero-copy .master-hero-title {
  margin-inline: auto;
  color: #f0d58f;
  text-shadow: 0 2px 10px #000;
}

body.home-master .master-hero-copy .master-button {
  background: linear-gradient(180deg, #f1d98f, #bd9143);
  color: #1b1309;
  border: 1px solid #f3dfa8;
  box-shadow: inset 0 0 0 1px #ffefb655, 0 4px 14px #0007;
}

@media (max-width: 700px) {
  body.home-master .master-hero {
    min-height: 0;
    padding-block-start: clamp(7.75rem, 26vw, 11rem);
    background: linear-gradient(180deg, transparent clamp(4rem, 18vw, 8rem), #041225 clamp(8rem, 33vw, 14rem)), url('/assets/home/portal-hero-960.webp') center top / 100% auto no-repeat, #041225;
  }
}

.portal-observatory-link a {
  color: #e5c785;
  text-decoration: underline;
}

.portal-hub .live-sky h1 {
  margin: 0 0 .55rem;
  color: #e5c785;
  font: 600 clamp(1.5rem, 4vw, 2.3rem)/1.15 Georgia, serif;
}

.portal-shortcuts {
  box-sizing: border-box;
  max-width: 1240px;
  margin: 1rem auto 2rem;
  padding: .4rem;
  border: 1px solid #a68c54;
  border-radius: .85rem;
  background: linear-gradient(155deg, #fff6e4, #e9d2a5);
  box-shadow: inset 0 0 0 2px #fffaee, 0 4px 18px #c3914655;
}
.portal-shortcuts ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.portal-shortcuts li { min-width: 0; }
.portal-shortcuts a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .35rem;
  min-height: 4rem;
  padding: .45rem .2rem;
  color: #392817;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.portal-shortcuts li + li { border-inline-start: 1px solid #8a6a3b55; }
.portal-shortcuts svg { color: #745426; }
.portal-shortcuts a:hover { text-decoration: underline; }
.portal-shortcuts a:focus-visible { outline: 2px solid #745426; outline-offset: -3px; }
.portal-hub :is(#ephemerides, #transits, #eclipses) { scroll-margin-top: 8rem; }

@media (max-width: 700px) {
  .portal-shortcuts { margin-inline: .5rem; }
  .portal-shortcuts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-shortcuts li:nth-child(4) { border-inline-start: 0; }
  .portal-shortcuts li:nth-child(n+4) { border-block-start: 1px solid #8a6a3b55; }
}

.portal-discovery {
  box-sizing: border-box;
  max-width: 75rem;
  margin: 2rem auto;
  padding: clamp(.9rem, 3vw, 1.8rem);
  color: #f4ead6;
  background: radial-gradient(ellipse at top, #172b47, #081527 75%);
  border: 1px solid #a68c54;
  border-radius: .75rem;
}
.portal-discovery h2 {
  margin: 0 0 .8rem;
  color: #e5c785;
  font: 600 clamp(1.2rem, 3vw, 1.65rem)/1.2 Georgia, serif;
}
.portal-discovery ul {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.portal-discovery a {
  display: block;
  padding: .45rem .75rem;
  color: #f4ead6;
  border: 1px solid #a68c5470;
  border-radius: .4rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.portal-discovery a:focus-visible { outline: 2px solid #e5c785; }

.portal-observatory-tools {
  max-width: 1240px;
  margin: 1rem auto;
  padding: 0 .75rem;
}
.portal-observatory-tools ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portal-observatory-tools a {
  display: block;
  padding: .5rem .75rem;
  border: 1px solid #a68c5470;
  border-radius: .4rem;
  background: #102640;
  text-underline-offset: .2em;
}
.portal-hub :is(#moon-phase, #moon-ingress, #lunations, #stations, #seasons) { scroll-margin-top: 8rem; }

.portal-book-cover img {
  transform: perspective(45rem) rotateY(-7deg);
  filter: drop-shadow(3px 2px 1px #1b100a) drop-shadow(5px 3px 0 #63503b88);
}

.portal-hub-intro {
  max-width: 50rem;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
  text-align: center;
}
.portal-hub .portal-discovery { margin-inline: auto; width: calc(100% - 2rem); }

[data-portal-home-layout] > :is(.portal-institutional,.home-journal,.home-community) {
  max-width: 1240px;
  width: calc(100% - 1rem);
  box-sizing: border-box;
  margin: 1.5rem auto;
}
[data-portal-home-layout] .oraclastra-universal-brand img,
body:has([data-portal-home-layout]) .oraclastra-universal-brand img { width: 44px; height: 44px; }
body:has([data-portal-home-layout]) .oraclastra-universal-brand { font-size: clamp(.95rem, 2vw, 1.35rem); }
[data-portal-home-layout] .portal-universes h2,
[data-portal-home-layout] .portal-library h2 {
  border-bottom: 1px solid #a68c54;
  padding-bottom: .55rem;
}
[data-portal-home-layout] .portal-category div > span {
  display: inline-block;
  padding: .27rem .55rem;
  border: 1px solid #f3dfa8;
  border-radius: .35rem;
  background: linear-gradient(180deg, #f1d98f, #bd9143);
  color: #251709;
  font-weight: 650;
}
[data-portal-home-layout] .portal-category div > span span { color: inherit; }
[data-portal-home-layout] .portal-category p { font-size: .95rem; }
[data-portal-home-layout] .portal-books {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: clamp(9rem, 20vw, 13rem);
  gap: .75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding: .45rem .35rem .8rem;
}
[data-portal-home-layout] .portal-book { scroll-snap-align: start; }
.portal-book-controls { display: flex; justify-content: flex-end; gap: .5rem; }
.portal-book-controls[hidden] { display: none; }
.portal-book-controls button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #caa964;
  border-radius: 50%;
  background: #10233a;
  color: #f4dba3;
  font-size: 1.5rem;
  cursor: pointer;
}
.portal-book-controls button:focus-visible,
[data-portal-home-layout] .portal-books:focus-visible { outline: 2px solid #e5c785; }
.portal-editorial {
  margin: .7rem auto 0;
  padding: .6rem .75rem;
  color: #f4ead6;
  border: 1px solid #a68c5460;
  border-radius: .45rem;
  background: #08172a;
}
.portal-editorial summary { color: #e5c785; cursor: pointer; font-weight: 650; }
.portal-editorial a,.portal-calculator-links a { color: #efd69b; text-decoration: underline; }
.portal-editorial h2,.portal-editorial h3 { margin: .7rem 0 .3rem; font-size: 1.05rem; }
.portal-calculator-links { padding: .7rem; }
.portal-calculator-links [id="home-calculator-links"] { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
@media(min-width: 1100px) {
  [data-portal-home-layout] .portal-grid { grid-template-columns: repeat(12,minmax(0,1fr)); }
  [data-portal-home-layout] .portal-category { grid-column: span 3; }
  [data-portal-home-layout] .portal-category:nth-child(-n+3) { grid-column: span 4; }
}
@media (min-width:581px) and (max-width:1099px) {
  [data-portal-home-layout] .portal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  [data-portal-home-layout] .portal-category:last-child { grid-column: 1/-1; }
}

/* The homepage reference uses a centered masthead and tightly stacked bands. */
body:has([data-portal-home-layout]) header.oraclastra-universal-header {
  background: radial-gradient(ellipse at 50% 0%, #173252, #050e1e 70%);
  border-bottom: 1px solid #b58e465e;
}
body:has([data-portal-home-layout]) .oraclastra-universal-brand span {
  color: #f1d184;
  font: 600 clamp(1.05rem, 2.85vw, 2.55rem)/1.05 Georgia, serif;
  letter-spacing: .075em;
}
body.home-master:has([data-portal-home-layout]) .master-hero {
  min-height: 0;
  padding-block: clamp(2rem, 3.2vw, 3.5rem);
}
body.home-master:has([data-portal-home-layout]) .master-hero-copy .master-hero-title {
  font-size: clamp(1.85rem, 3.8vw, 3.45rem);
  line-height: 1.04;
}
body.home-master:has([data-portal-home-layout]) .master-hero-copy .master-button { border-radius: 2rem; }

[data-portal-home-layout] :is(.portal-universes,.portal-library,.portal-shortcuts,.home-horoscopes,.live-sky) {
  box-sizing: border-box;
  width: min(calc(100% - 1.25rem), 1372px);
  max-width: none;
  margin-inline: auto;
}
[data-portal-home-layout] :is(.portal-universes,.portal-library) h2 {
  border-bottom: 0;
  padding-bottom: 0;
  display: flex;
  gap: .8rem;
  align-items: center;
  justify-content: center;
}
[data-portal-home-layout] :is(.portal-universes,.portal-library) h2::before,
[data-portal-home-layout] :is(.portal-universes,.portal-library) h2::after {
  content: "";
  flex: 1 1 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ca9e53a0, transparent);
}
[data-portal-home-layout] .portal-category {
  border-color: #c6a878;
  background: radial-gradient(ellipse at top left, #234b75, #071529 67%);
  box-shadow: inset 0 0 18px #040b1990;
}
[data-portal-home-layout] .portal-category div > span { border-radius: 2rem; padding-inline: .8rem; }
[data-portal-home-layout] .portal-library {
  background: radial-gradient(ellipse at 50% 100%, #9a71445c, transparent 58%),
    linear-gradient(#091c33 10%, #192e48 78%, #152136);
}
[data-portal-home-layout] .portal-book-cover img {
  filter: drop-shadow(4px 3px 0 #152237) drop-shadow(8px 10px 6px #01070bbb);
}
[data-portal-home-layout] .live-sky-home-compact {
  padding: .8rem clamp(.75rem, 1.65vw, 1.4rem);
  margin-block: .5rem 1.05rem;
  border-radius: 1rem;
  border-color: #d2ac66;
  background: radial-gradient(ellipse at bottom left, #152e4c, #07182d 65%);
}
[data-portal-home-layout] .live-sky-home-compact .live-sky-panel {
  background: transparent;
  border-color: #b6975e55;
}
[data-portal-home-layout] .live-sky-home-compact .live-sky-foot { margin-top: .3rem; }
[data-portal-home-layout] .live-sky-home-compact .live-sky-foot p { margin-block: .12rem; }
@media (min-width: 1200px) {
  body:has([data-portal-home-layout]) header.oraclastra-universal-header {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    justify-items: center;
    gap: .25rem;
  }
  body:has([data-portal-home-layout]) .oraclastra-universal-nav {
    width: min(100%, 74rem);
    justify-content: center;
    border-top: 1px solid #c8a66944;
    padding-top: .35rem;
  }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #bc995b66;
  }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-heading h2 { margin: 0; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-heading > p { margin: 0; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-panel:first-child {
    display: grid;
    grid-template-columns: minmax(100px, 44%) minmax(0,1fr);
    column-gap: .6rem;
    align-items: center;
  }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-panel:first-child h3 { grid-column: 1/-1; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-moon { display: contents; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-moon svg {
    grid-row: 2/span 2;
    grid-column: 1;
    width: 100%;
    height: auto;
  }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-moon > div,
  [data-portal-home-layout] .live-sky-home-compact .live-sky-panel:first-child dl { grid-column: 2; }
}
@media (max-width: 700px) {
  body.home-master:has([data-portal-home-layout]) .master-hero { padding-block-start: clamp(7.75rem, 26vw, 11rem); }
  [data-portal-home-layout] .live-sky-home-compact th,
  [data-portal-home-layout] .live-sky-home-compact td { padding-block: .25rem; }
}

/* Maintain one homepage masthead, with the original editorial line still visible. */
[data-portal-home-layout] .master-hero { position: relative; }
[data-portal-home-layout] .portal-original-banner-copy {
  margin: .75rem 0 0;
  text-align: center;
  font-size: .78rem;
  line-height: 1.4;
  color: #f4ead6;
}
.portal-hub .portal-hub-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  max-width: 71rem;
  margin: 1.2rem auto 2rem;
  padding-inline: 1rem;
  gap: .8rem;
}
.portal-hub .portal-hub-links li { display: flex; }
.portal-hub .portal-hub-links a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  overflow: hidden;
  padding: 0;
  border: 1px solid #bd9958;
  border-radius: .7rem;
  background: radial-gradient(ellipse at 50% 0%, #24456a, #0b1a30 72%);
}
.portal-hub .portal-hub-links a > img {
  width: 100%;
  height: auto;
  max-height: 11rem;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}
.portal-hub .portal-hub-links a > div { padding: .9rem 1rem 1.1rem; }
.portal-hub .portal-hub-links h2 {
  color: #f0d394;
  font: 600 clamp(1.25rem, 2.5vw, 1.7rem)/1.15 Georgia, serif;
  margin: 0 0 .65rem;
}
.portal-hub-cta {
  display: inline-block;
  padding: .35rem .8rem;
  border: 1px solid #f4d798;
  border-radius: 2rem;
  background: linear-gradient(#f1d98f, #bd9143);
  color: #281b0f;
  font-weight: 650;
}
@media (max-width: 700px) {
  [data-portal-home-layout] .live-sky-home-compact .live-sky-heading { margin-bottom: .25rem; }
  [data-portal-home-layout] .live-sky-home-compact h3 { margin: 0 0 .25rem; padding-bottom: .3rem; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-panel { padding: .42rem .55rem; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-moon { margin-block: .2rem; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-panel:first-child dl { display: flex; flex-wrap: wrap; gap: .15rem .65rem; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-panel:first-child dl > div { border: 0; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-panel:last-child dl { display: none; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-next-event { margin-block: .3rem; padding: .42rem .55rem; }
  [data-portal-home-layout] .live-sky-home-compact .live-sky-planet-tables { gap: .25rem; }
  .portal-hub .portal-hub-links { grid-template-columns: minmax(0,1fr); }
}

/* Signature readings on the localized homepages. */
.portal-studies {
  width: min(100% - 1.5rem, 1240px);
  margin: clamp(1.25rem, 4vw, 2.25rem) auto;
}

.portal-studies > h2 {
  margin: 0 0 1rem;
  text-align: center;
  color: #efcf89;
  font: 600 clamp(1.45rem, 3vw, 2.1rem)/1.2 Georgia, serif;
}

.portal-study-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: .75rem;
}

.portal-study {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: #f2e8d3;
  border: 1px solid #a78552;
  border-radius: .8rem;
  background: linear-gradient(155deg, #18314d, #071629 70%);
}

.portal-study-grand {
  border-color: #e9c272;
  box-shadow: 0 0 1rem #bd8a3c2b;
}

.portal-study img {
  display: block;
  width: 100%;
  height: clamp(7rem, 11vw, 10rem);
  object-fit: cover;
}

.portal-study-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: .85rem;
}

.portal-study h3, .portal-study p {
  margin: 0;
}

.portal-study h3 {
  color: #ffe1a1;
  font: 600 clamp(1.18rem, 2vw, 1.44rem)/1.2 Georgia, serif;
}

.portal-study p {
  color: #ebe3d3;
  font-size: .95rem;
  line-height: 1.45;
}

.portal-study-signature {
  color: #ffe09b;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .045em;
}

.portal-study-action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-top: auto;
  padding: .35rem 1rem;
  border: 1px solid #ffe1a1;
  border-radius: 999px;
  background: linear-gradient(#ffe3a4, #c89443);
  color: #261706;
  font-weight: 700;
  text-decoration: none;
}

.portal-study-action:hover,
.portal-study-action:focus-visible {
  background: #ffe1a1;
  color: #261706;
}

.portal-study-action:focus-visible {
  outline: 2px solid #fff1cd;
  outline-offset: 3px;
}

.portal-study-grid + .portal-editorial {
  margin-top: .75rem;
}

@media (max-width: 650px) {
  .portal-study-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-study img { height: clamp(6.5rem, 25vw, 9rem); }
}

/* Override the homepage link colors for legible text on the gold buttons. */
[data-portal-home-layout] .portal-studies .portal-study-action,
[data-portal-home-layout] .portal-studies .portal-study-action span {
  color: #261706 !important;
}

[data-portal-home-layout] .home-community h2 { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  [data-portal-home-layout] .home-community h2 {
    font-size: clamp(1.5rem, 8vw, 1.8rem);
  }
}

.portal-pillar {
  width: min(100% - 2rem, 75ch);
  margin: 3rem auto;
  color: #efe7da;
  line-height: 1.65;
}
.portal-pillar :is(h2, h3) { line-height: 1.25; }
.portal-pillar section { margin-block: 1.8rem; }
.portal-pillar-table { overflow-x: auto; }
.portal-pillar table { width: 100%; border-collapse: collapse; }
.portal-pillar caption { text-align: start; font-weight: bold; margin-block: 0 0.6rem; }
.portal-pillar :is(th, td) {
  padding: 0.65rem;
  text-align: start;
  border-bottom: 1px solid #b9a58170;
}
.portal-pillar details { border-bottom: 1px solid #b9a58170; }
.portal-pillar summary { cursor: pointer; padding-block: 0.65rem; min-height: 2.75rem; }

.portal-breadcrumb {
  width: min(100% - 2rem, 75ch);
  margin: .85rem auto;
  font-size: .9rem;
}

.portal-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-breadcrumb li + li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-breadcrumb li + li::before {
  content: '/';
  margin-inline-end: .65rem;
  color: #e5c785;
}

.portal-pillar-scroll-hint { display: none; }
.portal-pillar-table { max-width: 100%; }
.portal-pillar-table:focus-visible { outline: 2px solid #e5c785; outline-offset: 3px; }
.portal-pillar-table table { min-width: 42rem; }
.portal-pillar-table th,
.portal-pillar-table td { vertical-align: top; overflow-wrap: anywhere; }
.portal-pillar-table thead { background: #172940; }
.portal-pillar-table th[scope="row"] { width: 8.5rem; }
.portal-pillar-table ul { padding-inline-start: 1.1rem; margin: 0; }

@media (max-width: 46rem) {
  .portal-pillar-scroll-hint { display: block; font-size: .9rem; }
  .portal-pillar-table th,
  .portal-pillar-table td { padding: .55rem; }
  .portal-pillar-table th[scope="row"] { width: 6rem; }
}

.portal-business #business-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.portal-business #business-products:has(li:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.portal-business #business-products p {
  color: #e9deca;
  line-height: 1.55;
}
.portal-business #business-products small {
  display: block;
  margin-block-start: .35rem;
}
.portal-business .portal-hub-banner img {
  object-position: center 45%;
}

@media (max-width: 640px) {
  .portal-business #business-products,
  .portal-business #business-products:has(li:nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
}
