/* Shared editorial treatments for the association and information pages. */
main {
  --accent-line: linear-gradient(90deg, #098b79, #64c7b7);
  --panel-shadow: 0 12px 27px #083b4816;
}
.association-cover-content p { text-wrap: pretty; }
.portal-prose > p, .portal-prose > div > p { max-width: 76ch; }
.portal-prose h2 { margin-top: clamp(36px, 6vw, 82px); }
.portal-prose h2 small { display: block; margin-top: .5em; font-size: .48em; line-height: 1.6; color: var(--muted); }

.section-rule { position: relative; }
.section-rule::after {
  content: ""; display: block; margin-top: .48em; width: clamp(72px, 10vw, 136px);
  height: 3px; border-radius: 3px; background: var(--accent-line); transform-origin: left;
}
.portal-prose .section-rule::after { position: absolute; bottom: -2px; left: 0; margin: 0; }
.landing-marker {
  color: inherit; background: linear-gradient(#fbe486, #fbe486) left 88% / 100% .42em no-repeat;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  font-weight: 750;
}
.association-cover .landing-marker { background-image: linear-gradient(#54b7a386, #54b7a386); }

main :is(.association-card, .advisor-profile, .info-feature, .city-grid article, .portal-school,
  .portal-linkcard, .portal-workcard, .landing-card, .school-region-links a, .tile) {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  main :is(.association-card, .advisor-profile, .info-feature, .city-grid article, .portal-school,
    .portal-linkcard, .portal-workcard, .landing-card, .school-region-links a, .tile):hover {
    transform: translateY(-4px); box-shadow: var(--panel-shadow);
  }
}
main :is(.association-card, .portal-school, .portal-linkcard, .portal-workcard, .school-region-links a):focus-within {
  box-shadow: var(--panel-shadow);
}

.landing-panel, .landing-card {
  min-width: 0; padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: 12px; background: white;
}
.landing-card { border-top: 3px solid #6cbfaf; }
.landing-card :is(h3, p) { margin-top: 0; }
.landing-card h3 { color: var(--ink); margin-bottom: .45em; }
.landing-card p:last-child { margin-bottom: 0; }
.landing-card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(12px, 2vw, 21px); padding: 0 !important; list-style: none !important;
}
.landing-card-grid a.landing-card { display: block; height: 100%; text-decoration: none; }
.landing-card-grid a.landing-card :is(p, span) { color: var(--muted); }
.landing-kicker { display: block; margin-bottom: .45rem; color: var(--teal); font-size: .875rem; font-weight: 800; }
.landing-flow { padding-left: 0 !important; list-style: none; counter-reset: flow; }
.landing-flow li {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: start; gap: .85rem; min-height: 3.8rem; padding: 0 0 1.2rem;
  counter-increment: flow;
}
.landing-flow li::before {
  content: counter(flow); display: grid; place-items: center; height: 2.2rem;
  background: var(--ocean); color: white; border-radius: 50%; font-weight: 800;
}
.landing-flow li:not(:last-child)::after {
  content: ""; position: absolute; z-index: -1; inset: 1.5rem auto -.2rem 1.05rem;
  width: 2px; background: #76b9ad; transform-origin: top;
}
.landing-flow :is(h3, p) { margin: 0; }
.landing-flow h3 { font-size: 1.1rem; }
.landing-flow p { margin-top: .25rem; color: var(--muted); }
.landing-structure { display: grid; gap: .8rem; margin-top: .85rem; }
.landing-structure > div { padding: .65rem 0 .65rem .85rem; border-left: 3px solid #83c3b7; }
.landing-structure dt { color: var(--ink); font-weight: 800; }
.landing-structure dd { margin: .2em 0 0; color: var(--muted); line-height: 1.7; }
.landing-card-grid .landing-structure { margin: 0; }
.landing-card-grid .landing-structure > div { border: 0; padding: 0; }

.landing-chart { padding: clamp(14px, 2.5vw, 28px); background: #edf7f5; border-radius: 10px; }
.landing-chart .chart-title { color: var(--ink); font-size: clamp(1rem, 2.2vw, 1.55rem); font-weight: 800; }
.chart-rows { display: grid; gap: .65rem; margin-top: 1rem; padding: 0 !important; list-style: none !important; }
.chart-row { display: grid; grid-template-columns: minmax(4.9em, auto) minmax(20px, 1fr) 4.3em; align-items: center; gap: .55rem; }
.chart-date { font-size: .875rem; }
.chart-value { font-size: .875rem; text-align: right; white-space: nowrap; }
.chart-track { display: block; height: 1rem; background: #d5e9e5; border-radius: 4px; }
.chart-bar {
  display: block; width: var(--bar-width); height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #098373, #42a99f); transform-origin: left center;
}
.chart-row:last-child .chart-bar { background: linear-gradient(90deg, #065b57, #168775); }
.chart-source { display: block; margin-top: .65rem; font-size: .8rem; line-height: 1.55; color: var(--muted); }

.school-map {
  display: grid; grid-template-columns: minmax(250px, .9fr) minmax(0, 1.35fr);
  grid-template-areas: "intro graphic" "links graphic";
  column-gap: clamp(22px, 4.5vw, 64px); align-items: center;
  padding: clamp(19px, 4vw, 54px); margin: 0 0 22px;
  background: radial-gradient(ellipse at 76% 25%, #174b5a, var(--deep) 77%);
  border: 1px solid #164b55; border-radius: 16px; color: white;
}
.school-map-intro { grid-area: intro; align-self: end; }
.school-map-intro h2 { font-size: clamp(1.65rem, 3.4vw, 2.9rem); }
.school-map-intro p { margin-top: .7rem; max-width: 25em; color: #def5ef; }
.school-region-links { grid-area: links; align-self: start; margin-top: 1.2rem; }
.school-region-links ul { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.school-region-links a {
  display: flex; align-items: center; gap: .55rem; min-height: 45px;
  padding: .5em .65em; border: 1px solid #68a8a572; border-radius: 7px;
  background: #a7fff50b; color: white; font-size: .9rem; font-weight: 750; line-height: 1.4;
}
.school-region-links a::before {
  content: ""; flex: 0 0 .6rem; height: .6rem; border-radius: 50%; background: var(--region-color);
}
.school-region-links a:is(:hover, :focus-visible) { background: #c5fff12e; border-color: var(--region-color); }
.school-map-graphic { grid-area: graphic; min-width: 0; margin: 0; }
.school-map-graphic svg { display: block; width: min(100%, 625px); height: auto; margin-inline: auto; }
.school-map-graphic figcaption { text-align: right; color: #c4e4df; font-size: .75rem; }
.school-map-region { fill: var(--region-color); stroke: #133d4d; stroke-width: .75px; }
.school-map-region path { transition: filter .2s ease, stroke .2s ease; }
.school-map-region:is(:hover, :focus-visible, .is-linked) path { filter: brightness(1.2); stroke: white; stroke-width: 1.2px; }
.school-map-region:focus-visible { outline: none; }
.school-region-links a.is-linked { background: #c5fff12e; border-color: var(--region-color); }
.school-map [data-school-region="1"] { --region-color: #76c9ed; }
.school-map [data-school-region="2"] { --region-color: #aedebb; }
.school-map [data-school-region="3"] { --region-color: #67d4c4; }
.school-map [data-school-region="4"] { --region-color: #e9c875; }
.school-map [data-school-region="5"] { --region-color: #cdb3ea; }
.school-map [data-school-region="6"] { --region-color: #f3a99c; }
.portal-school-region:target > h2 { color: var(--teal); }

@media (max-width: 760px) {
  .school-map { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "graphic" "links"; row-gap: 12px; }
  .school-region-links { margin-top: 0; }
}
@media (max-width: 350px) {
  .school-region-links ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .motion-pending.section-rule::after, .motion-pending .chart-bar { transform: scaleX(0); }
  .motion-pending.landing-marker { background-size: 0 .42em; }
  .motion-pending.landing-flow li::after { transform: scaleY(0); }
  .motion-play.section-rule::after {
    background:
      linear-gradient(90deg, transparent, #ddfff8 48%, transparent) no-repeat -52px center / 52px 100%,
      var(--accent-line);
    animation: draw-inline .72s cubic-bezier(.22,.61,.36,1) both, shine-line .75s .54s ease-in-out both;
  }
  .motion-play .chart-bar { animation: draw-inline .72s cubic-bezier(.22,.61,.36,1) both; }
  .motion-play.landing-marker { animation: draw-marker .83s ease-out both; }
  .motion-play.landing-flow li::after { animation: draw-block .85s ease-out both; }
  .motion-play .chart-row:nth-child(2n) .chart-bar { animation-delay: 80ms; }
  @keyframes shine-line { to { background-position: calc(100% + 52px) center, 0 0; } }
  @keyframes draw-inline { from { transform: scaleX(0); } }
  @keyframes draw-block { from { transform: scaleY(0); } }
  @keyframes draw-marker { from { background-size: 0 .42em; } }
}
@media (prefers-reduced-motion: reduce) {
  main :is(.association-card, .advisor-profile, .info-feature, .city-grid article, .portal-school,
    .portal-linkcard, .portal-workcard, .landing-card, .school-region-links a, .tile) {
    transition: none; transform: none !important;
  }
}

.market-layout {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: start; gap: clamp(16px, 4vw, 42px);
}
.market-layout h3 { margin-top: 0; }
.field-stories { margin-block: 16px; align-items: stretch !important; }
.field-stories img { width: 100%; aspect-ratio: 2.2; object-fit: cover; }
.schedule-day { margin-top: 16px; }
.schedule-day .portal-table-scroll { margin-block: 0 1rem; }
.schedule-day table { min-width: min(100%, 515px); }
.schedule-day :is(th, td):first-child { white-space: nowrap; }
.schedule-day td:last-child { overflow-wrap: anywhere; }
.landing-archive-link { font-size: .9rem; }
@media (max-width: 760px) {
  .market-layout { grid-template-columns: 1fr; }
}

.license-intro { max-width: 76ch; }
.portal-prose .license-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 3vw, 34px);
}
.license-option { display: flex; flex-direction: column; }
.portal-prose .license-option h3 { margin-top: 0; }
.license-option .portal-actions { margin-top: auto; }

.insurance-benefit {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
  gap: clamp(22px, 5vw, 72px);
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(18px, 3.5vw, 46px);
  background: linear-gradient(145deg, #e9f5f2, #f3f9f8 72%);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.portal-prose .insurance-benefit h2 { margin-top: 0; }
.insurance-benefit-content { min-width: 0; }
.portal-prose .insurance-coverages {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0; list-style: none; margin-bottom: 20px;
}
.insurance-coverages li {
  padding: .25em .75em; border-radius: 5px; background: #d8eeea;
  color: #16594d; font-weight: 750; font-size: .94rem;
}
.portal-prose .insurance-eligibility h3 { margin-top: 0; }
.portal-prose .insurance-eligibility p { margin: 0 0 8px; }
.portal-prose .insurance-conditions { padding: 0; margin: 0; list-style: none; }
.insurance-conditions li {
  display: grid; grid-template-columns: .75em minmax(0, 1fr);
  align-items: baseline; gap: .65rem;
}
.insurance-conditions li+li { margin-top: .7em; }
.insurance-conditions li::before {
  content: ""; width: .65em; height: .36em;
  border: solid var(--teal); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.portal-prose .insurance-flyer { margin: 0; }
.portal-prose .insurance-flyer img {
  width: min(100%, 470px); max-height: none;
  border-radius: 8px; box-shadow: var(--panel-shadow);
}
@media (max-width: 760px) {
  .portal-prose .license-options, .insurance-benefit { grid-template-columns: minmax(0, 1fr); }
}

.profile-intro {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(18px, 5vw, 64px);
  padding: clamp(20px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #e3f4ef, #f2f8f6 72%);
}
.profile-identity h3 { font-size: clamp(1.65rem, 3.4vw, 2.85rem); }
.profile-reading { color: var(--muted); }
.profile-reading span { display: block; font-size: .94rem; }
.profile-roles {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid #65b7a8;
  font-weight: 750;
}
.profile-bio p+p { margin-top: .85rem; }
.profile-bio a, .profile-sources a { color: var(--teal); text-decoration: underline; text-underline-offset: .2em; }
.profile-bio a:hover, .profile-sources a:hover { color: var(--ink); }
.profile-jump { margin-top: 12px; }
.profile-section { margin-top: clamp(38px, 6vw, 72px); scroll-margin-top: 24px; }
.profile-section > h3 { font-size: clamp(1.45rem, 2.6vw, 2.25rem); margin-bottom: 20px; }
.profile-section h4 { font-size: clamp(1.05rem, 1.65vw, 1.27rem); line-height: 1.5; margin: 0 0 .35em; }
.profile-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-card { display: flex; flex-direction: column; }
.profile-date { display: block; color: var(--teal); font-weight: 800; font-size: .9rem; margin-bottom: .45em; }
.profile-sources {
  display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 3px;
  padding-top: 9px; color: var(--muted); font-size: .86rem;
}
.profile-card .profile-sources { margin-top: auto; padding-top: 14px; }
.profile-timeline { border-top: 1px solid var(--line); }
.profile-timeline > li {
  display: grid; grid-template-columns: minmax(8.5em, 1fr) minmax(0, 6fr);
  gap: 12px 20px; padding: clamp(13px, 2vw, 23px) 0; border-bottom: 1px solid var(--line);
}
.profile-timeline p { max-width: 75ch; }
.profile-book { margin-bottom: 18px; background: #eaf4f2; border-left: 4px solid #65b7a8; }
@media (max-width: 720px) {
  .profile-intro, .profile-card-grid, .profile-timeline > li { grid-template-columns: minmax(0, 1fr); }
  .profile-timeline > li { row-gap: 1px; }
}
