/* Patient leaflets: original covers and direct publisher links. */
.folders-page [hidden] { display: none !important; }
.folders-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.folders-hero {
  background: var(--cream);
  padding: 1.5rem 0 clamp(2.75rem, 5vw, 4.5rem);
}
.folders-hero .breadcrumb { padding-top: 0; }
.folders-hero .breadcrumb ol { color: var(--text); }
.folders-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-top: 2.75rem;
}
.folders-hero h1 {
  font-size: clamp(2rem, 4.7vw, 4rem);
  margin: 1rem 0 1.2rem;
  overflow-wrap: anywhere;
}
.folders-hero .eyebrow { color: var(--navy-700); }
.folders-hero .lead { max-width: 53ch; }
.folders-hero__note {
  background: var(--navy);
  border-radius: 5rem 1.4rem 1.4rem 1.4rem;
  padding: 2.25rem;
  color: white;
}
.folders-hero__note svg { width: 38px; height: 38px; color: var(--peach); margin-bottom: 1.1rem; }
.folders-hero__note strong { display: block; font: 400 1.65rem/1.25 var(--font-display); margin-bottom: 0.7rem; }
.folders-hero__note p { font-size: 0.96rem; line-height: 1.6; color: #f3f1e9; }
.folders-library { padding: clamp(2.75rem, 5vw, 4.5rem) 0; scroll-margin-top: 100px; }
.folders-library__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.folders-library h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.folders-count { font-size: 0.92rem; color: var(--navy-700); }
.folders-search { display: block; margin-top: 1.6rem; }
.folders-search__label { display: block; color: var(--ink); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.55rem; }
.folders-search__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.4rem 0.8rem 0.4rem 1rem;
  border: 1px solid #c8cec7;
  border-radius: var(--radius-sm);
  background: white;
}
.folders-search__field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgb(95 115 99 / 14%); }
.folders-search__field > svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--navy); }
.folders-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 0.5rem 0; }
.folders-search input:focus { outline: none; }
.folders-search input::placeholder { color: #716c6e; opacity: 1; }
.folders-search__clear { flex-shrink: 0; color: var(--navy-700); font-size: 0.85rem; font-weight: 600; padding: 0.55rem; border-radius: 8px; background: var(--cream); }
.folders-library__hint { font-size: 0.88rem; margin-top: 0.9rem; }
.folders-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; margin-top: 1.7rem; }
.folders-grid > li { min-width: 0; }
.folder-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.folder-card:hover { border-color: #acb9ab; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.folder-card__cover { display: flex; justify-content: center; align-items: center; height: 230px; padding: 1.4rem; background: #f3f3ed; }
.folders-grid > li:nth-child(3n + 2) .folder-card__cover { background: #f6efe8; }
.folders-grid > li:nth-child(3n) .folder-card__cover { background: #edf1ee; }
.folder-card__cover img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 5px 14px rgb(28 36 29 / 13%); }
.folder-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.2rem; }
.folder-card__meta { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 0.6rem; }
.folder-card h3 { font-size: 1.2rem; line-height: 1.3; overflow-wrap: anywhere; margin-bottom: 1.2rem; }
.folder-card__action { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; color: var(--navy-700); font-size: 0.88rem; font-weight: 600; }
.folder-card__action svg { width: 17px; height: 17px; flex-shrink: 0; }
.folders-empty { text-align: center; background: var(--cream); padding: 2.5rem 1.5rem; border-radius: 18px; margin-top: 1.7rem; }
.folders-empty h3 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.folders-empty button { margin-top: 1.25rem; }
.folders-source { border-top: 1px solid var(--border); padding-top: 1.4rem; margin-top: 2rem; font-size: 0.86rem; }
.folders-source a { text-decoration: underline; text-underline-offset: 3px; color: var(--navy-700); }
@media (max-width: 1150px) {
  .folders-page .nav__menu,
  .folders-page .nav__actions > .nav__phone { display: none; }
  .folders-page .nav__toggle { display: flex; }
  .folders-page .nav { gap: 0.75rem; }
}
@media (max-width: 1050px) {
  .folders-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .folders-hero__grid { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 2rem; }
  .folders-hero__note { padding: 1.5rem 1.75rem; border-radius: 2.5rem 1rem 1rem 1rem; }
  .folders-hero__note svg { width: 30px; height: 30px; margin-bottom: 0.7rem; }
  .folders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 440px) {
  .folders-grid { grid-template-columns: 1fr; }
  .folder-card__cover { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .folder-card { transition: none; }
  .folder-card:hover { transform: none; }
}
