.standalone-resources { --header-height: 0px; min-height: 100vh; display: flex; flex-direction: column; }
.standalone-resources main { flex: 1; }
.resource-footer {
  --brand-mark-height: 1.65rem;
  display: grid;
  justify-items: center;
  gap: .6rem;
  padding: 1.7rem var(--gutter) max(1.3rem, env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--muted);
  text-align: center;
  font-size: .75rem;
  line-height: 1.6;
}
.resource-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-navy); }
.standalone-resources .resource-opening { padding: 0; border: 0; background: var(--paper); }
.standalone-resources .resource-hub {
  --hub-pad: clamp(1rem, 4.5vw, 1.6rem);
  max-width: 37rem;
  padding: var(--hub-pad);
  display: grid;
  gap: 1rem;
}
.resource-identity {
  padding: .95rem clamp(.95rem, 3.8vw, 1.35rem) .25rem;
  overflow-wrap: anywhere;
  border-radius: 1rem;
  color: white;
  background: var(--brand-navy);
}
.resource-identity .page-label { display: none; }
.resource-heading { --portrait: clamp(4rem, 17vw, 5rem); position: relative; display: grid; grid-template-columns: var(--portrait) minmax(0, 1fr); gap: clamp(.75rem, 3vw, 1rem); align-items: center; }
.resource-heading img { width: var(--portrait); height: var(--portrait); object-fit: cover; border-radius: 50%; outline: 1px solid var(--brand-gold); outline-offset: 2px; }
.standalone-resources .resource-identity h1 {
  margin: 0;
  color: white;
  font: 400 clamp(1.75rem, 7vw, 2.25rem)/1.07 var(--display);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.resource-byline { display: block; margin-top: .35rem; color: #e4eaf1; font: 400 .8rem/1.4 var(--body); }
.resource-byline strong { display: block; margin-bottom: .06rem; font: 600 clamp(1.12rem, 4.6vw, 1.35rem)/1.2 var(--body); color: white; }
.resource-byline span { display: block; text-wrap: balance; }
.resource-byline .resource-agent-license { font-size: .875rem; white-space: nowrap; }
.resource-byline::after { content: ''; position: absolute; inset: 0; }
.resource-heading:focus-within { outline: 2px solid var(--brand-gold); outline-offset: 3px; }
.resource-heading .resource-byline:is(:hover, :focus-visible) { color: var(--brand-gold); outline: none; }
.resource-contact-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .85rem;
  margin-top: .55rem;
  border-top: 1px solid #ffffff40;
  font: 400 .85rem/1.4 var(--body);
}
.resource-identity .resource-contact-details a { display: inline-flex; align-items: flex-end; min-height: 44px; padding-block-end: .4rem; color: #e4eaf1; font-weight: inherit; }
.resource-identity .resource-contacts { margin-top: 0; }
.resource-identity .resource-contacts a { align-items: flex-start; padding-block-start: .25rem; color: var(--brand-gold); font-size: .81rem; font-weight: 500; }
.resource-identity :is(.resource-contact-details, .resource-contacts) a:is(:hover, :focus-visible) { color: #fff0c7; outline-color: var(--brand-gold); }
.resource-footer .profile-links img { width: 17px; height: 17px; }
.resource-shelf, .resource-utility { min-width: 0; }
.standalone-resources .resource-learning { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin: 0; }
.standalone-resources .resource-audience {
  display: block;
  grid-row: auto;
  padding: .9rem var(--hub-pad) 0;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: white;
}
.resource-audience h2 { color: var(--brand-navy); font: 650 1.15rem/1.3 var(--body); letter-spacing: -.01em; }
.standalone-resources .resource-tool a { min-height: 3.1rem; height: auto; padding: .4rem 0 .65rem; }
.resource-tool strong { font-size: clamp(1.4rem, 4.7vw, 1.8rem); }
.resource-tool .resource-next { margin: 0 .3rem 0 .15rem; }
.resource-audience .resource-disclosure { border-bottom: 0; }
.resource-audience .resource-disclosure > summary { min-height: 44px; padding: .55rem 0; font-size: .92rem; }
.resource-disclosure[open] > ul { padding-bottom: .6rem; }
.resource-library { margin-top: .65rem; }
.resource-website-links { margin-top: 1.6rem; }
.resource-website-links h2 { font: 400 1.55rem/1.2 var(--display); letter-spacing: -.025em; margin-bottom: .55rem; }
.resource-website-links li + li { border-top: 1px solid var(--line); }
.resource-website-links .resource-link-list a { min-height: 46px; padding-block: .65rem; }
.resource-shelf .resource-feature { border-radius: .7rem; background: white; }
.resource-shelf .resource-feature-photo { align-self: stretch; height: 100%; }
.resource-utility { border-top: 1px solid var(--line); padding-top: .45rem; }
.resource-utility .resource-contacts { margin-top: 0; }
.resource-utility .resource-share-row { margin: .15rem 0 0; }
.standalone-resources .resource-share { scroll-margin-top: .75rem; }
@media (min-width: 900px) {
  .standalone-resources .resource-hub {
    max-width: 68rem;
    min-height: 60vh;
    padding-block: clamp(2.5rem, 6vw, 5.5rem) 1rem;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "identity shelf" "utility shelf";
    align-items: start;
    gap: 1.1rem clamp(2rem, 5vw, 4.5rem);
  }
  .resource-identity { grid-area: identity; }
  .resource-utility { grid-area: utility; }
  .resource-shelf { grid-area: shelf; }
  .resource-utility .resource-share-panel { grid-template-columns: minmax(0, 1fr); }
}

/* Give the localized guide title its own line. The portrait and broker details
   share the next row, so a longer Taiwanese title never squeezes the license. */
@media screen {
  html:lang(zh) .resource-hub .resource-identity {
    min-inline-size: 0;
    padding: clamp(1rem, 3.5vw, 1.4rem) clamp(1rem, 3.5vw, 1.4rem) .55rem;
  }
  html:lang(zh) .resource-hub .resource-heading {
    --portrait: clamp(3.55rem, 12vw, 4.5rem);
    grid-template-areas: "title title" "portrait byline";
    gap: .8rem clamp(.75rem, 2.8vw, 1rem);
  }
  html:lang(zh) .resource-hub .resource-heading > div { display: contents; }
  html:lang(zh) .resource-hub .resource-heading img { grid-area: portrait; }
  html:lang(zh) .resource-hub .resource-identity .resource-heading h1 {
    grid-area: title;
    margin: 0;
    font-size: clamp(1.45rem, 1.24rem + 1.1vw, 1.85rem);
    line-height: 1.4;
    letter-spacing: normal;
    overflow-wrap: break-word;
  }
  html:lang(zh) .resource-hub .resource-byline {
    grid-area: byline;
    min-inline-size: 0;
    margin: 0;
    font-size: .875rem;
    line-height: 1.5;
    overflow-wrap: break-word;
  }
  html:lang(zh) .resource-hub .resource-byline strong { margin-block-end: .2rem; font-size: 1.15rem; line-height: 1.25; }
  html:lang(zh) .resource-hub .resource-agent-license { margin-block-start: .15rem; font-variant-numeric: tabular-nums; }
  html:lang(zh) .resource-hub .resource-contact-details { margin-block-start: .95rem; padding-block-start: .35rem; gap: 0 1rem; }
  html:lang(zh) .resource-hub .resource-identity :is(.resource-contact-details, .resource-contacts) a {
    min-block-size: 44px;
    max-inline-size: 100%;
    align-items: center;
    padding-block: .3rem;
    font-size: .9rem;
    line-height: 1.45;
  }
  html:lang(zh) .resource-hub .resource-identity .resource-contacts { align-items: center; gap: 0 1.15rem; }
  html:lang(zh) .resource-hub .resource-contact-details a { overflow-wrap: anywhere; }
  html:lang(zh) .resource-hub :is(.resource-audience h2, .resource-tool strong, .resource-feature-copy h2, .resource-website-links h2) {
    letter-spacing: normal;
    text-wrap: balance;
  }
  html:lang(zh) .resource-hub .resource-link-list small { line-height: 1.6; }
}
