/* Foundation grant components and application-management pages.
 * @author hamgistools yujiang
 */
.oecm-management .brand-text {
  display: flex;
}
.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--forest);
}
.oecm-management .hero-title {
  font-size: clamp(32px, 4vw, 58px);
}
.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--lime);
}
.landscape-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 56px 28px 28px;
  background: var(--paper-2);
  color: var(--forest);
}
.landscape-empty[hidden] {
  display: none;
}
.landscape-empty b {
  font-family: var(--font-serif);
  font-size: 22px;
}
.landscape-empty p {
  font-size: 13px;
  color: var(--muted);
}
.oecm-management .carousel-btn:disabled {
  opacity: .35;
  cursor: default;
}
.grant-directions {
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
}
.grant-directions a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.7vw, 22px);
}
.grant-directions b,
.direction-detail > b {
  flex: 0 0 42px;
  font-family: var(--font-num);
  color: var(--leaf);
}
.grant-directions a:hover {
  color: var(--forest);
  background: var(--paper-2);
}
.grant-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grant-tiers article {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.grant-tiers article:nth-child(2) {
  background: var(--forest);
  color: white;
}
.grant-tiers article > span {
  font-family: var(--font-num);
  font-size: 30px;
  color: var(--leaf);
}
.grant-tiers article:nth-child(2) > span {
  color: var(--lime);
}
.grant-tiers h3 {
  margin: 12px 0;
  font-family: var(--font-serif);
  font-size: 26px;
}
.grant-tiers article > b {
  display: block;
  font-size: 16px;
}
.grant-tiers p {
  margin-top: 12px;
  font-size: 13px;
}
.grant-note {
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
.grant-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  margin: 28px 0;
}
.grant-summary h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--forest);
}
.grant-summary p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}
.mini-stat b {
  font-size: 22px;
  line-height: 1.4;
}
#newsRail .news-card {
  min-height: 280px;
}
#newsRail .news-body {
  padding: 28px;
}
.grant-header {
  background: var(--ink);
  color: white;
  border-bottom: 1px solid var(--line-light);
}
.grant-header .wrap,
.grant-end .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 22px;
}
.grant-header a:last-child {
  font-size: 14px;
  color: var(--lime);
}
.grant-hero {
  padding: clamp(48px, 7vw, 96px) 0;
  color: white;
  background: radial-gradient(800px 600px at 85% 0%, var(--forest), transparent), var(--ink);
}
.grant-hero h1 {
  margin: 24px 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.2;
}
.grant-hero .grant-intro {
  max-width: 68ch;
  margin-top: 24px;
  color: rgba(255, 255, 255, .76);
}
.grant-notice {
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  font-size: 14px;
}
.grant-hero .grant-notice {
  max-width: 78ch;
  margin-top: 30px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
}
.grant-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-block: 64px;
}
.grant-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}
.grant-toc a {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  color: var(--forest);
}
.grant-toc a:hover,
.grant-body a:hover {
  text-decoration: underline;
}
.grant-body > section {
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}
.grant-body > section:last-child {
  margin-bottom: 0;
}
.grant-body h2 {
  margin: 16px 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
}
.grant-body h3 {
  margin: 24px 0 12px;
  font-size: 19px;
  line-height: 1.6;
}
.grant-body p {
  margin-top: 16px;
  line-height: 1.95;
}
.grant-body a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.direction-detail {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.direction-detail h3 {
  margin: 0;
}
.direction-detail p {
  margin-top: 10px;
  font-size: 14px;
}
.direction-detail .boundary {
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.grant-body table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.grant-body caption {
  padding: 16px;
  text-align: left;
  color: var(--muted);
}
.grant-body th,
.grant-body td {
  padding: 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.grant-body thead {
  background: var(--forest);
  color: white;
}
.grant-body tbody th {
  min-width: 90px;
}
.rule-list {
  margin-top: 18px;
  padding-left: 24px;
}
ul.rule-list {
  list-style: disc;
}
ol.rule-list {
  list-style: decimal;
}
.rule-list li {
  margin-top: 12px;
  padding-left: 4px;
  line-height: 1.95;
}
.review-flow {
  padding: 24px;
  background: var(--forest);
  color: white;
  border-radius: 12px;
}
.download-list a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.download-list span {
  font-size: 13px;
  color: var(--muted);
}
.contact-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  color: var(--muted);
}
.grant-end {
  background: var(--ink);
  color: var(--lime);
  font-size: 13px;
}
@media (max-width: 1180px) {
  .oecm-management .nav-links {
    display: none;
  }
  .oecm-management .nav-burger {
    display: flex;
  }
}
@media (max-width: 860px) {
  .grant-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
    gap: 40px;
  }
  .grant-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    max-height: none;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .grant-tiers {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .oecm-management .brand {
    padding: 8px 10px;
    gap: 8px;
  }
  .oecm-management .brand-text {
    padding-left: 8px;
  }
  .oecm-management .brand-text small {
    display: none;
  }
  .oecm-management .brand-text b {
    font-size: 10px;
  }
  .brand-wordmark {
    font-size: 22px;
  }
  .oecm-management .nav-inner {
    gap: 12px;
  }
  .oecm-management .hero-title {
    font-size: 32px;
  }
  html[data-lang="en"] .oecm-management .hero-title {
    font-size: 29px;
  }
  .grant-summary {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .grant-directions a {
    gap: 12px;
  }
  .direction-detail {
    gap: 12px;
  }
  .contact-list > div {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
  }
  .grant-notice {
    padding: 16px;
  }
}
@media (max-width: 640px) {
  html[data-lang="en"] .oecm-management .brand-text {
    display: none;
  }
}
@media (max-width: 400px) {
  .oecm-management .brand-text {
    display: none;
  }
}
.oecm-management .site-nav {
  display: block;
  height: auto;
}
.oecm-management .nav-inner {
  min-height: 66px;
}
.oecm-management .hero {
  padding-top: calc(var(--nav-h) + 48px);
}
.oecm-management .mobile-menu {
  padding-top: calc(var(--nav-h) + 30px);
}
.service-nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(272px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  font-size: 13px;
  background: var(--paper);
  color: var(--forest);
  z-index: 1100;
}
.service-nav a[hidden], .service-filters[hidden] {
  display: none;
}
.service-nav > span {
  padding: 6px 10px 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.account-menu {
  position: relative;
  flex-shrink: 0;
}
.account-menu:not([open]) > .service-nav { display: none; }
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 24px;
  color: var(--paper);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
}
.account-menu[open] summary::after { transform: rotate(225deg); }
.account-menu summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; }
.account-menu .service-nav a,
.page-header .account-menu .service-nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--forest);
  font-size: 13px;
}
.account-menu .service-nav a:hover,
.account-menu .service-nav a:focus-visible { background: #e3ecdd; }
.account-menu .service-nav a[hidden],
.page-header .account-menu .service-nav a[hidden] { display: none; }
.is-scrolled .account-menu summary,
.page-header .account-menu summary { color: var(--forest); }
.page-header .account-menu { order: 3; }
@media (max-width: 1280px) {
  .oecm-management .nav-links { display: none; }
  .oecm-management .nav-burger { display: flex; }
  .oecm-management .nav-cta { display: none; }
}
@media (max-width: 400px) {
  .oecm-management .nav-actions { gap: 6px; }
  .account-menu summary { padding-inline: 10px; }
}
.service-main { padding-block: 56px; min-height: 70vh; }
.service-main h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 48px);
  margin: 20px 0;
}
.service-main p { margin-block: 18px; }
.service-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  margin-block: 28px;
}
.service-filters label { flex: 1 1 160px; font-size: 14px; }
.service-filters input, .service-filters select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 8px;
  background: white;
}
.service-record { padding: 24px 0; border-bottom: 1px solid var(--line); }
.service-record h2 { font-size: 22px; color: var(--forest); }
.service-content img { max-width: 100%; max-height: 480px; object-fit: contain; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.published-article { overflow-x: auto; line-height: 1.95; }
.published-article a { text-decoration: underline; color: var(--forest); }
.service-content { overflow-wrap: anywhere; }
.oecm-management .explore-grid > * { min-width: 0; }
.oecm-management .carousel-title { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .oecm-management .explore-grid { grid-template-columns: minmax(0, 1fr); }
}
/* High-resolution hero artwork keeps its native ratio inside floating frames. */
.oecm-management .hero-visual .fc-illust,
.oecm-management .hero-visual .fc-illust2 {
  padding: 4px;
  overflow: hidden;
  background: var(--paper);
}
.oecm-management .hero-visual .fc img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 17px;
}
.oecm-management .hero-photo > img {
  animation: none;
  transform: none;
  object-position: 50% 58%;
}
.oecm-management .hero-photo figcaption {
  left: 20px;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.hero-photo-credit {
  color: var(--lime);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-source {
  font-size: 12px;
}
.about-source a,
.definition footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.oecm-management .footer-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .85fr);
}
@media (max-width: 1100px) {
  .oecm-management .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .oecm-management .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Persistent subpage chrome shares the homepage wordmark and palette. */
.grant-header.page-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--forest);
  background: rgba(247, 244, 234, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.page-header .page-nav-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  padding-block: 12px;
}
.page-header .brand-text { display: flex; }
.page-header .brand { color: var(--forest); }
.page-header .service-nav a { color: var(--forest); font-size: 12px; }
.page-header .page-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}
.page-header .page-menu a {
  padding: 8px 0;
  font-size: 13px;
  color: var(--forest);
}
.page-header .page-menu a[aria-current="page"] {
  border-bottom: 2px solid var(--leaf);
  font-weight: 700;
}
.page-header .page-home {
  order: 2;
  flex-shrink: 0;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--forest);
  color: white;
}
.page-menu-toggle {
  display: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--forest);
}
.grant-toc {
  top: calc(var(--page-header-h, 130px) + 24px);
  max-height: calc(100dvh - var(--page-header-h, 130px) - 48px);
}
.grant-toc a {
  position: relative;
  padding: 11px 12px;
  margin-bottom: 3px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: background-color .2s, color .2s;
}
.grant-toc a.is-active {
  color: var(--forest);
  background: #e3ecdd;
  border-left-color: var(--leaf);
  font-weight: 700;
  text-decoration: none;
}
.grant-body > section {
  scroll-margin-top: calc(var(--page-header-h, 130px) + 28px);
}
.oecm-management .style-slide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(24px, 3vw, 48px);
}
.oecm-management .type-media {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18);
}
.oecm-management .type-media img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.type-art-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 38px 22px 18px;
  background: linear-gradient(transparent, rgba(10, 31, 24, .84));
  color: #fff;
  font-size: 11px;
  letter-spacing: .12em;
}
@media (max-width: 1180px) {
  .page-header .page-menu { display: none; }
  .page-menu-toggle { display: block; margin-left: auto; }
  .page-header .page-home { order: 0; margin-left: auto; }
  .page-menu-toggle { margin-left: 0; }
  .page-header.menu-open .page-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .15);
  }
}
@media (max-width: 860px) {
  .grant-toc {
    position: sticky;
    top: var(--page-header-h, 130px);
    z-index: 900;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 0;
    background: var(--paper);
    overflow-x: auto;
    max-height: none;
  }
  .grant-toc a { flex-shrink: 0; white-space: nowrap; margin: 0; }
  .oecm-management .style-slide { grid-template-columns: minmax(0, 1fr); }
  .oecm-management .type-media img { aspect-ratio: 4 / 3; }
  .grant-body > section { scroll-margin-top: calc(var(--page-header-h, 130px) + 88px); }
}
@media (max-width: 640px) {
  .page-header .brand { padding: 8px 10px; gap: 8px; }
  .page-header .brand-text small { display: none; }
  .page-header .brand-text b { font-size: 10px; }
  .page-header .page-nav-row { gap: 10px; }
  .page-header .page-home { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 400px) {
  .page-header .brand-text { display: none; }
}

/* Keep the list entry in the heading row, separate from map controls. */
.explore .section-head > div {
  min-width: 0;
}
.explore-search {
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .explore .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
