/* FirstHope cards, benefits, reviews and downloads. Current photo headers are in hero.css. */
body { background: #fff; }
.section-heading { justify-content: center; gap: 20px; }
.section-heading > div { text-align: center; }
.section-heading .section-intro { margin-inline: auto; }
.section-heading h2 { font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1.15; }
.section-heading .eyebrow { margin-bottom: 12px; font-size: .78rem; }
.button { border-radius: 8px; }
.button, .text-link, .card-link { text-transform: none; }

.home-hero {
  overflow: hidden;
  background: linear-gradient(120deg, #edf5f0, #f7faf6 47%, #eef3f9);
  border-bottom: 1px solid #e2ece4;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 25px;
  align-items: center;
  min-height: 610px;
  padding-block: 44px;
}
.home-hero-copy { position: relative; z-index: 1; }
.home-hero-copy .eyebrow { margin: 0 0 26px; color: #4d7166; font-size: .8rem; line-height: 1.7; }
.home-hero-copy h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(3rem, 4.9vw, 4.7rem);
  font-weight: 750;
  line-height: 1.09;
  letter-spacing: normal;
  color: #183a33;
}
.home-hero-copy h1 span { color: #397967; }
.home-hero-copy .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.home-hero-copy .button { min-height: 49px; padding-inline: 23px; background: #183d34; border-color: #183d34; }
.home-hero-copy .button:hover { background: #27584b; border-color: #27584b; }
.home-hero-copy .button.secondary { background: transparent; border-color: #b9cec3; color: #183d34; }
.home-hero-copy .button.secondary:hover { background: #dbe9e0; }
.home-hero-art { margin: 0; width: 100%; }
.home-hero-art img { display: block; width: 112%; max-width: none; height: auto; margin-left: -5%; }

#study-areas, #domain-notes, #why-firsthope, #testimonials { scroll-margin-top: 95px; }
.area-card, .area-card.pharmacy {
  position: relative;
  grid-template-rows: 1fr auto;
  min-height: 283px;
  padding: 25px 20px 27px;
  text-align: center;
  gap: 22px;
}
.area-card .area-art { max-height: 165px; margin: auto; }
.area-card h3 { text-align: center; font-size: 1.47rem; }
.area-arrow { position: absolute; top: 12px; right: 15px; color: #fff; font-size: 1.2rem; }
.area-number, .card-number, .step-number { display: none; }
:is(.collection-card, .course-card, .class-card, .update-card, .sample-card, .platform-card) { text-align: center; }
.card-meta { justify-content: center; flex-wrap: wrap; gap: 8px; }
:is(.collection-card, .update-card, .class-card, .course-card) .card-link { justify-content: center; }
.sample-card > .card-link { display: flex; justify-content: center; }
.update-card .editorial-tag { align-self: center; }
.update-card .update-meta { justify-content: center; flex-wrap: wrap; }
.updates-home .section-heading { flex-direction: column; }
.updates-home .section-heading .text-link { white-space: normal; }

.why-section { background: #143d39; }
.why-section .section-heading h2 { color: #fff; }
.why-section .eyebrow { color: #aecdc2; }
.why-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.why-card { padding: 27px 17px 26px; border-radius: 17px; text-align: center; background: #f8fbf5; color: #193d35; }
.why-card:nth-child(6n+2) { background: #eaf2fb; color: #234b70; }
.why-card:nth-child(6n+3) { background: #eee7f5; color: #514070; }
.why-card:nth-child(6n+4) { background: #f8ede0; color: #795033; }
.why-card:nth-child(6n+5) { background: #e1f0ec; color: #27645d; }
.why-card:nth-child(6n+6) { background: #f8f1de; color: #725b32; }
.why-icon { display: inline-grid; place-items: center; width: 53px; height: 53px; margin-bottom: 23px; border-radius: 50%; background: #fff9; }
.why-card h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 10px; color: inherit; letter-spacing: normal; }
.why-card p { margin: 0; font-size: .88rem; line-height: 1.65; color: inherit; opacity: .85; }

.domain-hero { padding: 33px 0 56px; background: #edf5f0; border-bottom: 1px solid #dfebe3; }
.domain-hero.pharmacy { background: #ecf3fa; }
.domain-hero.nursing { background: #f1edf8; }
.domain-hero.mbbs { background: #f7efe7; }
.domain-hero .breadcrumbs { margin-bottom: 30px; font-size: .8rem; }
.domain-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.domain-hero .eyebrow { font-size: .79rem; margin-bottom: 19px; color: var(--action); }
.domain-hero h1 { font-size: clamp(2.8rem, 4.5vw, 4.6rem); line-height: 1.08; letter-spacing: normal; margin: 0 0 24px; }
.domain-hero-description { max-width: 530px; margin-bottom: 27px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.domain-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.domain-hero .button { background: var(--action); border-color: var(--action); }
.domain-hero .button.secondary { background: #fff8; color: var(--action); border-color: #cbdacf; }
.domain-art { position: relative; padding: 37px 30px 27px; margin: 0; background: #ffffff85; border: 1px solid #ffffff; border-radius: 32px; box-shadow: 0 24px 70px #2c4f4410; }
.domain-art > img { display: block; width: 100%; height: auto; border-radius: 18px; }
.domain-art-caption { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 19px 0 0; font-size: .86rem; color: var(--muted); }
.domain-art-caption svg { width: 22px; height: 22px; color: var(--action); }
.domain-notes-section { background: #fff; }
.domain-notes-section .course-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 761px) {
  .domain-notes-section .course-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; margin-inline: auto; }
}
.domain-notes-section .course-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0;
  min-height: 370px; padding: 21px 18px 24px; border-radius: 18px;
}
.domain-notes-section .course-card h2 { margin: 0 0 10px; }
.domain-notes-section .course-card .eyebrow { margin-block: 3px 10px; }
.domain-notes-section .course-card .course-art { margin-bottom: 16px; }
.domain-notes-section .course-card .card-link { margin-top: auto; }
.course-grid--compact .course-card > p { margin-bottom: 16px; }
.class-card:not(.course-card) { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px 21px; border-radius: 18px; }
.class-card:not(.course-card) .class-art { width: 100%; max-width: 200px; height: auto; border-radius: 12px; }
.class-card:not(.course-card) .eyebrow { margin: 0; font-size: .8rem; }
.class-card:not(.course-card) h2 { margin: 0; font-size: 1.8rem; }
.class-card:not(.course-card) .card-link { margin-top: auto; }
.domain-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.domain-option { display: flex; flex-direction: column; align-items: center; padding: 40px 34px; border-radius: 20px; border: 1px solid #d5e2e9; background: #eef4fa; text-align: center; }
.domain-option:nth-child(2) { background: #f1edf8; border-color: #e2d9ed; }
.domain-option > svg { width: 43px; height: 43px; color: var(--action); margin-bottom: 24px; }
.domain-option h3 { font-size: 1.7rem; margin-bottom: 15px; }
.domain-option p { max-width: 400px; color: var(--muted); margin-bottom: 23px; line-height: 1.75; }
.domain-option .button { margin-top: auto; }
.domain-access-section { background: #eef4f3; }
.domain-access { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 60px; }
.domain-access h2 { font-size: clamp(2rem, 3.2vw, 3.3rem); line-height: 1.15; margin-block: 16px; }
.domain-access p { color: var(--muted); line-height: 1.7; max-width: 640px; }
.domain-access-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.domain-access-actions .button { scroll-margin-block: 90px; }
.domain-faq .faq-grid { grid-template-columns: .7fr 1.3fr; }
.domain-faq h2 { font-size: 2.4rem; }

.testimonials-section { background: #f7f8fb; overflow: hidden; }
.reviews-carousel { --review-width: clamp(290px, 29vw, 350px); min-width: 0; }
.reviews-viewport { display: flex; gap: 22px; width: 100%; overflow-x: auto; overflow-y: hidden; padding: 8px 2px 22px; overscroll-behavior-inline: contain; scroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #b9cdc4 transparent; }
.reviews-viewport:focus-visible { outline: 2px solid #397967; outline-offset: 3px; border-radius: 14px; }
[data-review-enhanced] .reviews-viewport { scrollbar-width: none; }
[data-review-enhanced] .reviews-viewport::-webkit-scrollbar { display: none; }
.reviews-track { display: flex; flex: 0 0 auto; gap: 22px; width: max-content; align-items: stretch; }
.testimonial-card { display: flex; flex-direction: column; flex: 0 0 var(--review-width); width: var(--review-width); min-height: 325px; margin: 0; padding: 25px 25px 27px; border: 1px solid #e3e8ee; background: #fff; border-radius: 19px; text-align: center; box-shadow: 0 8px 20px #223f370a; }
.quote-mark { display: block; height: 32px; color: #82a399; font-family: Georgia, serif; font-size: 3.8rem; line-height: 1; }
.testimonial-card blockquote { flex: 1; margin: 16px 0 23px; padding: 0; border: 0; color: var(--ink); font-size: .98rem; line-height: 1.75; }
.testimonial-card blockquote p { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.testimonial-rating { display: block; margin-top: 12px; color: #b6790b; font-size: 1.15rem; letter-spacing: .08em; }
.reviews-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; padding-inline: 2px; }
.reviews-toolbar p { margin: 0; color: var(--muted); font-size: .83rem; }
.reviews-controls { display: flex; gap: 8px; flex-shrink: 0; }
.review-control { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #ccdcd4; border-radius: 50px; background: #fff; color: #173e34; cursor: pointer; font: inherit; font-size: .9rem; }
.review-control:hover { background: #e5eee9; }
.review-control:focus-visible { outline: 3px solid #397967; outline-offset: 3px; }
.review-play { min-width: 99px; padding-inline: 15px; }
.testimonial-card figcaption { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.testimonial-avatar { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar.initials { display: grid; place-items: center; background: #e3eeea; color: #2a6555; font-weight: 750; }
.testimonial-card cite { display: block; font-style: normal; font-weight: 750; }
.testimonial-card figcaption span:not(.testimonial-avatar) { display: block; color: var(--muted); margin-top: 3px; font-size: .86rem; }
.testimonial-card .testimonial-source { font-size: .76rem; color: #74867c; }
.testimonials-empty { text-align: center; padding: 4px 20px 8px; }
.empty-quote { color: #a5bfb4; font-family: Georgia, serif; font-size: 5rem; line-height: .9; display: block; height: 46px; }
.testimonials-empty p { color: var(--muted); margin-block: 19px 13px; font-size: 1.06rem; }
.testimonials-empty .text-link { font-size: .9rem; }
.site-footer .footer-top { grid-template-columns: 1fr 1fr 1.2fr 1fr; }
body[data-page-path="/get-the-app/"] .page-hero { background: #eef4f0; color: var(--ink); }
body[data-page-path="/get-the-app/"] .page-hero :is(h1, .page-intro, .eyebrow, .breadcrumbs) { color: var(--ink); }

.testimonial-editor-photo { margin-block: 13px; }
.testimonial-editor-photo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.testimonial-editor-photo .text-button { margin-left: 15px; }
.testimonial-live-preview { padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: #f6f9f7; }
.testimonial-live-preview h3 { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.testimonial-live-preview blockquote { margin: 0 0 15px; padding: 0; border: 0; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.testimonial-live-preview [data-testimonial-preview-name] { font-weight: 700; }
.publisher [data-editor-tab] { white-space: normal; }

.app-download-section { padding-top: 32px; }
#download-app { scroll-margin-top: 95px; }
.app-download { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 52px; overflow: hidden; padding: 51px 52px; background: linear-gradient(125deg, #edf5f0, #f4f8f1 60%, #e9f1f7); border: 1px solid #e0e9e2; border-radius: 30px; }
.app-download-copy { min-width: 0; position: relative; z-index: 1; }
.app-download-copy .eyebrow { color: #4d7566; font-size: .8rem; margin: 0 0 18px; }
.app-download h2 { color: #183c32; font-size: clamp(2.3rem, 3.7vw, 3.5rem); line-height: 1.13; letter-spacing: normal; margin: 0 0 20px; overflow-wrap: anywhere; }
.download-intro { max-width: 475px; margin: 0 0 26px; color: #526e63; font-size: .97rem; line-height: 1.75; }
.download-device-switch { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; width: min(100%, 350px); margin: 0 0 24px; padding: 5px; border: 1px solid #d2e2d6; border-radius: 12px; background: #dfece3; }
.download-device-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.download-device-switch label { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 10px; border-radius: 8px; color: #456357; font-size: .87rem; font-weight: 650; line-height: 1.5; cursor: pointer; }
.download-device-switch label svg { flex-shrink: 0; }
.download-device-switch label > span { min-width: 0; overflow-wrap: anywhere; }
.download-device-switch label small { display: block; margin-top: 2px; font-size: .65rem; font-weight: 500; line-height: 1.45; }
.download-device-input:disabled + label { cursor: not-allowed; color: #617568; background: transparent; box-shadow: none; }
.download-device-input:checked + label { background: #fff; color: #183d32; box-shadow: 0 3px 10px #294f3212; }
.download-device-input:focus-visible + label { outline: 3px solid #397967; outline-offset: 2px; }
.download-panel { max-width: 365px; }
.download-panel h3 { font-size: 1.05rem; margin: 0 0 13px; color: #244637; }
.app-development-status { display: inline-block; padding: 7px 12px; border-radius: 8px; border: 1px solid #d1dfd4; background: #e9f0e9; color: #355540; font-size: .88rem; font-weight: 650; line-height: 1.5; }
.download-panel p { margin: 14px 0 0; color: #526b60; font-size: .83rem; line-height: 1.7; }
.download-store-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 15px 20px; border-radius: 11px; background: #163d31; color: #fff; border: 1px solid #163d31; transition: background .18s, transform .18s; }
.download-store-link:hover { background: #285748; transform: translateY(-2px); }
.download-store-link:focus-visible, .download-qr:focus-visible { outline: 3px solid #397967; outline-offset: 4px; }
.download-store-link small { display: block; font-size: .72rem; font-weight: 500; color: #cae0d5; }
.download-store-link strong { display: block; font-size: .97rem; line-height: 1.5; overflow-wrap: anywhere; }
.download-store-link > svg { flex-shrink: 0; }
.download-org-code { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-top: 11px; padding: 10px 15px; border: 1px dashed #a9c4b3; border-radius: 9px; background: #ffffff9c; }
.download-org-code strong { letter-spacing: .13em; font-size: 1rem; }
.download-org-code button { color: #275e49; font-weight: 700; }
.download-setup-link.button { display: inline-flex; margin-top: 21px; padding: 11px 18px; min-height: 44px; color: #214d3d; background: #ffffffc9; border-color: #bdd6c8; font-size: .83rem; text-decoration: none; }
.app-download [data-download-panel="ios"], .app-download [data-download-qr="ios"] { display: none; }
.app-download:has(#download-ios:checked) [data-download-panel="android"], .app-download:has(#download-ios:checked) [data-download-qr="android"] { display: none; }
.app-download:has(#download-ios:checked) [data-download-panel="ios"] { display: block; }
.app-download:has(#download-ios:checked) [data-download-qr="ios"] { display: flex; }
.app-download-visual { position: relative; display: grid; place-items: center; min-width: 0; min-height: 445px; }
.app-download-visual::before { content: ''; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: #d6e7da; box-shadow: 0 0 0 28px #e3eee559; }
.download-phone { width: 234px; height: 412px; margin-right: 90px; padding: 10px; border-radius: 38px; background: #25463b; box-shadow: 0 23px 35px #28473a24; transform: rotate(-7deg); transition: transform .35s; }
.app-download:has(#download-ios:checked):not(:has([data-download-qr="ios"])) .download-phone { margin-right: 0; }
.app-download:hover .download-phone { transform: rotate(-3deg) translateY(-4px); }
.download-phone-screen { position: relative; height: 100%; display: flex; flex-direction: column; padding: 34px 16px 15px; border-radius: 29px; background: #fcfdfb; overflow: hidden; }
.download-phone-camera { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 58px; height: 15px; border-radius: 20px; background: #25463b; }
.download-phone-screen > img { display: block; width: 116px; height: auto; }
.phone-title { margin: 24px 0 18px; color: #1c4437; font-size: 22px; line-height: 1.25; font-weight: 750; letter-spacing: normal; }
.phone-study-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.phone-study-grid > div { min-width: 0; padding: 10px 5px 8px; border-radius: 10px; background: #e2efe8; text-align: center; }
.phone-study-grid > div:nth-child(2) { background: #e3edf7; }
.phone-study-grid > div:nth-child(3) { background: #eee5f6; }
.phone-study-grid > div:nth-child(4) { background: #f4e8dc; }
.phone-study-grid img { display: block; width: 100%; height: 46px; object-fit: contain; border-radius: 6px; }
.phone-study-grid span { display: block; margin-top: 5px; font-size: 10px; font-weight: 700; color: #2b4c3e; }
.phone-home-line { width: 61px; height: 4px; flex-shrink: 0; margin: auto auto 0; border-radius: 10px; background: #d6dfd8; }
.download-qr { position: absolute; right: -3px; bottom: 46px; display: flex; flex-direction: column; align-items: center; padding: 15px 18px 17px; border-radius: 17px; border: 1px solid #e2e9e3; background: #fff; box-shadow: 0 17px 35px #25442f17; text-align: center; }
.download-qr img { display: block; width: 128px; height: 128px; }
.download-qr strong { color: #2a4c3a; margin-top: 7px; font-size: .8rem; }
.download-qr span { color: #6b8074; font-size: .68rem; margin-top: 3px; }

@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hero-grid { min-height: 540px; gap: 10px; }
  .home-hero-copy h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); }
  .domain-hero-grid { gap: 35px; }
  .domain-notes-section .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domain-art { padding: 25px 20px; }
}
@media (max-width: 800px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 45px 18px; }
  .home-hero-copy { text-align: center; }
  .home-hero-copy h1 { max-width: 600px; margin-inline: auto; font-size: clamp(2.65rem, 7.6vw, 4.3rem); }
  .home-hero-copy .eyebrow { margin: 0 auto 19px; max-width: 460px; }
  .home-hero-copy .hero-actions { justify-content: center; margin-top: 26px; }
  .home-hero-art { width: min(100%, 520px); margin-inline: auto; }
  .home-hero-art img { width: 100%; margin: 0; }
  .domain-hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .domain-hero h1 { max-width: 550px; margin-inline: auto; }
  .domain-hero .hero-actions { justify-content: center; }
  .domain-hero-description { margin-inline: auto; }
  .domain-art { max-width: 450px; margin-inline: auto; }
  .domain-access { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .domain-access p { margin-inline: auto; }
  .app-download { grid-template-columns: 1fr; gap: 24px; padding: 39px; }
  .app-download-copy { text-align: center; }
  .download-intro, .download-panel { margin-inline: auto; }
  .app-download-visual { width: 100%; max-width: 420px; margin-inline: auto; }
  .domain-faq .faq-grid { grid-template-columns: 1fr; }
  .domain-faq .faq-grid > div:first-child { text-align: center; }
  .site-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html { scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) {
  .home-hero-grid { padding-top: 36px; gap: 14px; }
  .home-hero-copy .eyebrow { font-size: .73rem; max-width: 310px; }
  .home-hero-copy .hero-actions { gap: 10px; }
  .home-hero-copy .button { min-height: 46px; padding-inline: 16px; font-size: .85rem; }
  .home-hero-art { max-width: 385px; }
  .area-card, .area-card.pharmacy { min-height: 215px; padding: 17px 13px 21px; gap: 17px; }
  .area-card .area-art { max-height: 115px; }
  .area-card h3 { font-size: 1.13rem; line-height: 1.35; }
  .area-arrow { top: 8px; right: 11px; font-size: 1rem; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .why-card { padding: 23px 14px; border-radius: 14px; }
  .why-icon { margin-bottom: 17px; }
  .why-card h3 { font-size: 1.03rem; }
  .why-card p { font-size: .83rem; }
  .domain-hero { padding-bottom: 37px; }
  .domain-hero h1 { font-size: clamp(2.6rem, 10.5vw, 3.7rem); }
  .domain-hero-description { font-size: .98rem; }
  .domain-art { padding: 22px 20px; border-radius: 24px; }
  .domain-notes-section .course-grid { grid-template-columns: 1fr; }
  .domain-notes-section .course-card { min-height: 0; padding: 23px; }
  .domain-notes-section .course-card .course-art { max-width: 310px; }
  .domain-notes-section .course-card .card-link { margin-top: 12px; }
  .domain-options-grid { grid-template-columns: 1fr; gap: 16px; }
  .domain-option { padding: 31px 24px; }
  .class-card:not(.course-card) { padding: 23px 15px; gap: 13px; }
  .class-card:not(.course-card) h2 { font-size: 1.6rem; }
  .class-card:not(.course-card) .card-link { font-size: .84rem; }
  .reviews-carousel { --review-width: min(315px, calc(100vw - 48px)); }
  .reviews-toolbar { flex-direction: column; justify-content: center; gap: 15px; text-align: center; }
  .testimonial-card { padding: 23px 23px 25px; }
  .app-download { padding: 31px 23px 26px; border-radius: 23px; gap: 24px; }
  .app-download h2 { font-size: 2.25rem; }
  .download-intro { font-size: .9rem; }
  .download-device-switch label { padding-inline: 7px; gap: 7px; }
  .download-store-link { padding: 15px; gap: 12px; }
  .download-org-code { justify-content: center; }
  .app-download-visual { min-height: 410px; }
  .download-phone { margin-right: 0; }
  .app-download [data-download-qr] { display: none !important; }
  .site-footer .footer-top { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .area-card:hover, .area-card.pharmacy:hover { transform: none; }
}

/* A collection opens from the whole card, with four cards per desktop row. */
.collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.collection-grid > .collection-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 240px;
  padding: 28px 22px;
  border: 1px solid var(--box-border, #dfe9e5);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--box-pale, #e5f5ef), #fff 45%, #fff 62%, var(--box-bg, #c4e8dd));
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 4px 0 var(--box-accent, #09674e), 0 8px 24px rgba(24, 61, 48, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.collection-link .collection-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 17px;
  background: #ffffffeb;
  color: var(--box-accent, #0f4a49);
  transition: transform .2s ease;
}
.collection-grid > .collection-link h3 {
  margin: 0 0 13px;
  font-size: 1.23rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  color: #183c32;
  overflow-wrap: anywhere;
}
.collection-grid > .collection-link p {
  flex: 0 0 auto;
  margin: auto 0 0;
  font-size: .9rem;
  line-height: 1.7;
  color: #36574d;
  overflow-wrap: anywhere;
}
.collection-grid > .collection-link:hover,
.collection-grid > .collection-link:focus-visible {
  background: linear-gradient(135deg, var(--box-pale, #e5f5ef), #fff 45%, #fff 62%, var(--box-bg, #c4e8dd));
  border-color: var(--box-accent, #09674e);
  box-shadow: inset 0 4px 0 var(--box-accent, #09674e), 0 16px 34px rgba(24, 61, 48, .13);
  transform: translateY(-4px);
  filter: none;
  text-decoration: none;
}
.collection-grid > .collection-link:focus-visible {
  outline: 3px solid var(--box-accent, #0f4a49);
  outline-offset: 4px;
}
.collection-link:is(:hover, :focus-visible) .collection-icon { transform: translateY(-2px) rotate(-4deg); }

/* Standalone calls to action use one consistent button, without underlines. */
a.text-link.button {
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 12px 22px;
  border: 1px solid #163d31;
  border-radius: 8px;
  background: #163d31;
  color: #fff;
  font-size: .9rem;
  line-height: 1.45;
  letter-spacing: normal;
  text-decoration: none;
  white-space: normal;
}
a.text-link.button:hover { color: #fff; background: #285748; border-color: #285748; }
.card-link, .text-button { text-decoration: none; }
.card-link, .collection-card > .card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #ffffffb3;
  border-radius: 8px;
  background: #ffffffd9;
  color: var(--box-accent, #123d30);
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: normal;
  text-decoration: none;
}
.card-link.button { text-decoration: none; }
.card-link.button:hover { background: #fff; color: var(--action); border-color: var(--box-accent, #123d30); }
.sample-card > .card-link.button { margin-inline: auto; }
.domain-notes-section .course-card .card-link { background: #ffffff18; border-color: #ffffff55; color: #fff; }
:is(.class-card, .course-card):is(:hover, :focus-visible) .card-link { background: var(--box-accent, #163d31); border-color: transparent; color: #fff; }
.domain-notes-section .course-card:is(:hover, :focus-visible) .card-link { background: #fff; border-color: #fff; color: #000; }
.text-button { min-height: 44px; padding: 10px 16px; border: 1px solid #bdd6c8; border-radius: 8px; background: #f0f7f3; color: #214d3d; line-height: 1.45; }
.text-button:hover { background: #e1efe7; }
.site-footer .text-button { background: #ffffff12; border-color: #ffffff40; color: #e4f0f0; }
.site-footer .text-button:hover { background: #ffffff24; color: #fff; }

.area-grid > .class-card {
  background: linear-gradient(135deg, var(--box-pale, #e5f5ef), #fff 45%, #fff 62%, var(--box-bg));
  border-color: var(--box-border);
  box-shadow: inset 0 4px 0 var(--box-accent), 0 10px 30px #13252612;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.area-grid > .class-card .eyebrow { color: var(--box-accent); font-weight: 700; }
.area-grid > .class-card .class-art { box-shadow: 0 6px 18px #13252608; border: 1px solid #ffffffb3; }
.area-grid > .class-card:is(:hover, :focus-visible) { background: linear-gradient(135deg, var(--box-pale, #e5f5ef), #fff 45%, #fff 62%, var(--box-bg)); border-color: var(--box-accent); box-shadow: inset 0 4px 0 var(--box-accent), 0 16px 34px #13252620; transform: translateY(-4px); filter: none; }
.area-grid > .class-card:focus-visible { outline: 3px solid var(--box-accent); outline-offset: 4px; }

/* Distinct app-inspired tones cover every tile in the largest catalogue grid. */
.collection-grid > .collection-link:nth-child(1),
.curriculum-video-grid > .curriculum-video-card:nth-child(1),
.curriculum-unit-video-list > .curriculum-unit-video:nth-child(1),
.area-grid > .class-card:nth-child(1) {
  --box-bg: #c4e8dd; --box-pale: #e5f5ef; --box-border: #89c7b5; --box-accent: #2d7f71;
}
.collection-grid > .collection-link:nth-child(2),
.curriculum-video-grid > .curriculum-video-card:nth-child(2),
.curriculum-unit-video-list > .curriculum-unit-video:nth-child(2) {
  --box-bg: #c6e6fa; --box-pale: #e8f5fd; --box-border: #86bfe3; --box-accent: #2b78a6;
}
.collection-grid > .collection-link:nth-child(3),
.curriculum-video-grid > .curriculum-video-card:nth-child(3),
.curriculum-unit-video-list > .curriculum-unit-video:nth-child(3) {
  --box-bg: #cce9c4; --box-pale: #edf8e9; --box-border: #9acc8c; --box-accent: #397c3c;
}
.collection-grid > .collection-link:nth-child(4),
.curriculum-video-grid > .curriculum-video-card:nth-child(4),
.curriculum-unit-video-list > .curriculum-unit-video:nth-child(4),
.area-grid > .class-card:nth-child(4) {
  --box-bg: #f8d7c9; --box-pale: #fdefe8; --box-border: #e8ab98; --box-accent: #b85b49;
}
.collection-grid > .collection-link:nth-child(5),
.curriculum-video-grid > .curriculum-video-card:nth-child(5),
.curriculum-unit-video-list > .curriculum-unit-video:nth-child(5),
.area-grid > .class-card:nth-child(3) {
  --box-bg: #dfd4f8; --box-pale: #f2ecfd; --box-border: #bba3e3; --box-accent: #7251b5;
}
.collection-grid > .collection-link:nth-child(6),
.curriculum-video-grid > .curriculum-video-card:nth-child(6),
.curriculum-unit-video-list > .curriculum-unit-video:nth-child(6) {
  --box-bg: #f6d4e3; --box-pale: #fcebf2; --box-border: #e6a0bb; --box-accent: #b93f6d;
}
.collection-grid > .collection-link:nth-child(7),
.curriculum-video-grid > .curriculum-video-card:nth-child(7),
.area-grid > .class-card:nth-child(2) {
  --box-bg: #ffedb2; --box-pale: #fff7d8; --box-border: #e6ca6b; --box-accent: #906719;
}
.collection-grid > .collection-link:nth-child(8),
.curriculum-video-grid > .curriculum-video-card:nth-child(8) {
  --box-bg: #bceaf0; --box-pale: #e4f7fa; --box-border: #7fc4d0; --box-accent: #147e90;
}
.collection-grid > .collection-link:nth-child(9),
.curriculum-video-grid > .curriculum-video-card:nth-child(9) {
  --box-bg: #e8d8c6; --box-pale: #f8f1e8; --box-border: #c1a586; --box-accent: #89694e;
}
.collection-grid > .collection-link:nth-child(10),
.curriculum-video-grid > .curriculum-video-card:nth-child(10) {
  --box-bg: #d4d9f5; --box-pale: #eef0fd; --box-border: #9ba6df; --box-accent: #4d58b5;
}
.collection-grid > .collection-link:nth-child(11),
.curriculum-video-grid > .curriculum-video-card:nth-child(11) {
  --box-bg: #e2e9bc; --box-pale: #f4f7e4; --box-border: #bbc781; --box-accent: #737a32;
}
.collection-grid > .collection-link:nth-child(12),
.curriculum-video-grid > .curriculum-video-card:nth-child(12) {
  --box-bg: #f7dfb8; --box-pale: #fff4e4; --box-border: #dfb671; --box-accent: #a96c25;
}
.collection-grid > .collection-link:nth-child(13),
.curriculum-video-grid > .curriculum-video-card:nth-child(13) {
  --box-bg: #d3dde4; --box-pale: #eff4f7; --box-border: #9fb0be; --box-accent: #546779;
}
.collection-grid > .collection-link:nth-child(14),
.curriculum-video-grid > .curriculum-video-card:nth-child(14) {
  --box-bg: #e6cbdb; --box-pale: #f6eaf2; --box-border: #be91ad; --box-accent: #8c4a6e;
}

/* Updates keep type and date filters after keyword search is removed. */
.editorial-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; }
@media (max-width: 1024px) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .collection-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .collection-grid > .collection-link { min-height: 0; padding: 26px 24px; }
  .editorial-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-filters label { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-grid > .collection-link,
  .collection-link .collection-icon { transition: none; }
  .collection-grid > .collection-link:is(:hover, :focus-visible),
  .collection-link:is(:hover, :focus-visible) .collection-icon { transform: none; }
  .area-grid > .class-card { transition: none; }
  .area-grid > .class-card:is(:hover, :focus-visible) { transform: none; }
}
