/* The existing desktop glass is the shell; documents keep their paper surface. */
.window.window--recommendations { width: min(1040px, calc(100vw - 64px)); }
.window.window--recommendations.expanded { width: calc(100vw - 32px); }
.recommendations-content { padding: 32px; color: #f3f8f5; min-height: 420px; }
.recommendations-content h3, .recommendations-content h4, .recommendations-content h5, .recommendations-content p { margin: 0; }
.recommendations-content h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 550; letter-spacing: -.025em; text-wrap: balance; }
.recommendations-content h4 { font-size: 19px; line-height: 1.3; font-weight: 550; letter-spacing: -.015em; }
.recommendations-content button, .recommendations-content a { -webkit-tap-highlight-color: transparent; }
.recommendations-content button { cursor: pointer; }
.recommendations-content button:disabled { opacity: .35; cursor: default; }
.recommendations-content :focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.recommendations-content [data-rec-heading]:focus { outline: none; }
.recommendations-content ::selection { background: #a8edd6; color: #17352e; }
.rec-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.rec-header p { max-width: 63ch; color: #dbe8e6; font-size: 14px; line-height: 1.65; margin-top: 12px; }
.rec-languages { display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px; border-radius: 9px; background: #09253257; }
.rec-languages button { min-width: 36px; min-height: 34px; padding: 5px 7px; border-radius: 6px; color: #e7efed; font-size: 11px; font-weight: 600; background: transparent; }
.rec-languages button[aria-pressed="true"] { background: #d8ece42e; color: #fff; }
.rec-languages button:hover { background: #ffffff1c; }
.rec-profile-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 24px; padding: 20px 22px; border-radius: 12px; background: #08273570; }
.rec-profile-summary dl { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 0; }
.rec-profile-summary dt { color: #d9e7e2; font-size: 12px; line-height: 1.5; }
.rec-profile-summary dd { display: flex; align-items: center; gap: 5px; margin: 5px 0 0; font-size: 30px; line-height: 1.15; font-weight: 550; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.rec-profile-star { display: flex; color: #ffdb78; margin-right: 3px; }
.rec-profile-star svg { width: 22px; height: 22px; }
.rec-profile-scale { color: #d9e7e2; font-size: 17px; font-weight: 400; letter-spacing: normal; }
.rec-profile-source p { color: #d9e7e2; font-size: 11px; line-height: 1.5; }
.rec-tabs { display: flex; gap: 22px; margin-top: 26px; border-bottom: 1px solid #ffffff24; }
.rec-tab { display: inline-flex; align-items: center; gap: 9px; position: relative; padding: 12px 2px 16px; background: transparent; color: #d3e2e2; font-size: 14px; }
.rec-tab span { font-size: 11px; color: #d9e8e4; background: #062a394d; border-radius: 5px; padding: 2px 5px; font-variant-numeric: tabular-nums; }
.rec-tab[aria-selected="true"] { color: var(--mint); }
.rec-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--mint); }
.rec-letters { display: grid; gap: 16px; margin-top: 22px; }
.rec-letter-card { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 26px; padding: 22px; border-radius: 14px; background: #08273570; }
.rec-letter-thumb { position: relative; align-self: center; width: 105px; padding: 0; background: transparent; box-shadow: 0 6px 16px #0004; border-radius: 3px; transition: transform .18s; }
.rec-letter-thumb:hover { transform: translateY(-3px); }
.rec-letter-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 140 / 190; object-fit: cover; object-position: top; border-radius: 3px; }
.rec-letter-thumb > span { position: absolute; bottom: 7px; right: 6px; padding: 3px 6px; border-radius: 4px; color: #24443e; background: #eef4efee; font-size: 10px; font-weight: 650; }
.rec-letter-copy { min-width: 0; }
.rec-company { font-size: 15px; font-weight: 650; color: var(--mint); letter-spacing: -.015em; }
.rec-letter-copy blockquote { margin: 12px 0 18px; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.55; letter-spacing: -.012em; color: #f3f8f5; }
.rec-letter-copy blockquote::before { content: '“'; }
.rec-letter-copy blockquote::after { content: '”'; }
.rec-letter-credit { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.rec-letter-credit p { min-width: 0; font-size: 13px; line-height: 1.5; }
.rec-letter-credit strong { display: block; font-weight: 550; }
.rec-letter-credit p > span { display: block; margin-top: 3px; color: #d2e1de; font-size: 12px; }
.rec-read { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 0; background: none; color: var(--mint); font-size: 12px; text-align: left; }
.rec-letter-credit .rec-read { flex-shrink: 0; }
.rec-read:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rec-read svg { flex-shrink: 0; }
.rec-footnote { margin-top: 20px !important; color: #d4e4e0; font-size: 12px; line-height: 1.65; max-width: 80ch; }
.rec-reader-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.rec-text-button, .rec-text-link { display: inline-flex; gap: 7px; align-items: center; min-height: 36px; padding: 4px 0; background: transparent; color: var(--mint); font-size: 12px; line-height: 1.5; text-underline-offset: 4px; }
.rec-text-button:hover, .rec-text-link:hover { text-decoration: underline; }
.rec-reader-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.rec-reader-heading p { margin-top: 10px; color: #d9e6e3; font-size: 13px; line-height: 1.55; }
.rec-download { flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; padding: 12px 15px; border-radius: 8px; color: #12382d; background: var(--mint); font-size: 12px; font-weight: 600; }
.rec-download:hover { background: #d5ffe9; }
.rec-reading-controls { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 27px 0 22px; }
.rec-segments { display: inline-flex; gap: 3px; padding: 4px; border-radius: 9px; background: #082c3859; }
.rec-segment { padding: 9px 14px; border-radius: 6px; font-size: 12px; color: #e4efeb; background: transparent; }
.rec-segment[aria-pressed="true"] { background: #e4f5ee; color: #17392e; }
.rec-language-note { display: block; font-size: 11px; color: #d6e5e2; line-height: 1.5; }
.rec-reader { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(220px,1fr); gap: 26px; align-items: start; }
.rec-reader--original { display: block; }
.rec-letter-text { border-radius: 10px; background: #f8f8f3; color: #203831; padding: 30px; font-size: 15px; line-height: 1.8; }
.rec-letter-text h4 { color: #16362c; margin-bottom: 18px; font-size: 22px; }
.rec-letter-text p { margin: 0 0 18px; max-width: 70ch; }
.rec-letter-text .rec-recipient { font-size: 12px; color: #426153; line-height: 1.6; margin-bottom: 24px; }
.rec-letter-text ul { margin: 0 0 20px; padding-left: 20px; }
.rec-letter-text li { margin-bottom: 8px; padding-left: 3px; }
.rec-letter-text footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #d2dbd2; font-size: 13px; }
.rec-letter-text .rec-transcription-note { margin: 26px 0 0; font-size: 11px; line-height: 1.65; color: #4c665a; }
.rec-original { min-width: 0; }
.rec-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: 12px; color: #e3eeeb; font-variant-numeric: tabular-nums; }
.rec-page-toolbar > div { display: flex; gap: 6px; }
.rec-page-button { width: 32px; height: 32px; background: #08273570; border-radius: 6px; color: #edf8f0; font-size: 18px; }
.rec-page-button:not(:disabled):hover { background: #ffffff2b; }
.rec-image-viewport { overflow: auto; max-width: 100%; background: #e8ece7; border-radius: 4px; scrollbar-width: thin; scrollbar-color: #658177 #d7e2dc; }
.rec-image img { display: block; width: 100%; height: auto; background: #fff; }
.rec-image img[hidden] { display: none; }
.rec-image-error { padding: 24px; color: #244c3e; font-size: 14px; line-height: 1.7; }
.rec-image-error a { color: #1b604a; }
.rec-image-viewport.is-zoomed { max-height: 65dvh; }
.rec-image-viewport.is-zoomed .rec-image { width: 1200px; }
.rec-reader--original .rec-original { max-width: 760px; margin: 0 auto; }
.rec-source-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-top: 12px; }
.rec-section-intro { margin: 26px 0 20px; }
.rec-section-intro p, .rec-archive-heading p { margin-top: 8px; color: #d5e4df; font-size: 13px; line-height: 1.65; max-width: 65ch; }
.rec-ratings { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.rec-rating-card { padding: 20px; border-radius: 13px; background: #08273570; }
.rec-rating-head { display: flex; gap: 10px; align-items: center; }
.rec-initial { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #d6e6f12b; color: #e7f3ea; font-size: 13px; }
.rec-rating-head h5 { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; line-height: 1.5; }
.rec-rating-head p { color: #d6e4df; font-size: 11px; margin-top: 2px; }
.rec-stars { display: flex; gap: 3px; color: #ffdb78; margin: 23px 0 12px; }
.rec-rating-type { color: #f2f8f2; font-size: 13px; line-height: 1.6; }
.rec-rating-type > span { display: block; color: #cddfd8; font-size: 11px; }
.rec-rating-card > .rec-read { width: 100%; margin-top: 17px; }
.rec-archive { margin-top: 38px; padding-top: 25px; border-top: 1px solid #ffffff26; }
.rec-archive-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rec-button { padding: 10px 14px; min-height: 38px; border: 1px solid #d1e2d64d; border-radius: 7px; color: #f0f6f1; background: #153d4266; font-size: 12px; line-height: 1.5; }
.rec-button:hover { background: #ffffff1f; }
.rec-archive-heading > .rec-button { flex-shrink: 0; }
.rec-archive-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.rec-archive-grid[hidden] { display: none; }
.rec-archive-item { min-width: 0; padding: 0; background: transparent; text-align: left; }
.rec-archive-item img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 5px; margin-bottom: 10px; }
.rec-archive-item strong { display: block; font-size: 12px; font-weight: 550; }
.rec-archive-item > span { display: block; margin-top: 4px; font-size: 11px; color: #d0e2d9; }
.rec-rating-summary { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin: 24px 0 15px; font-size: 13px; color: #dbe9e2; }
.rec-rating-summary .rec-stars { margin: 0; }
.rec-evidence { margin-top: 12px; }
.rec-evidence--full { max-height: 62dvh; }
.rec-evidence.is-zoomed .rec-image { width: 1360px; }
@media (min-width: 761px) and (max-width: 1000px) {
  .rec-ratings { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rec-letter-credit { align-items: start; }
  .rec-reader { grid-template-columns: minmax(0,1.6fr) minmax(190px,1fr); gap: 18px; }
  .rec-letter-text { padding: 24px; }
}
@media (max-width: 760px) {
  .window.window--recommendations { width: calc(100vw - 20px); }
  .recommendations-content { padding: 22px 18px 28px; }
  .rec-header { flex-direction: column-reverse; gap: 18px; }
  .rec-header .rec-languages { align-self: flex-end; }
  .rec-header h3 { max-width: 20ch; }
  .rec-header p { font-size: 13px; }
  .rec-profile-summary { padding: 17px 15px; margin-top: 20px; gap: 14px; }
  .rec-profile-summary dl { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .rec-profile-summary dt { font-size: 11px; }
  .rec-profile-summary dd { font-size: 27px; }
  .rec-profile-source .rec-text-link { min-height: 30px; font-size: 11px; }
  .rec-tabs { gap: 20px; margin-top: 18px; }
  .rec-tab { font-size: 13px; gap: 6px; }
  .rec-letter-card { grid-template-columns: 56px minmax(0,1fr); gap: 14px; padding: 18px 14px; }
  .rec-letter-thumb { width: 56px; align-self: start; margin-top: 4px; }
  .rec-letter-thumb > span { font-size: 8px; bottom: 4px; right: 3px; padding: 2px 3px; }
  .rec-company { font-size: 14px; }
  .rec-letter-copy blockquote { margin-block: 10px 15px; font-size: 15px; line-height: 1.55; }
  .rec-letter-credit { display: block; }
  .rec-letter-credit .rec-read { margin-top: 9px; }
  .rec-reader-top { gap: 10px; margin-bottom: 22px; }
  .rec-reader-heading { display: block; }
  .rec-reader-heading h3 { font-size: 27px; }
  .rec-reader-heading .rec-download { margin-top: 18px; }
  .rec-reading-controls { flex-wrap: wrap; gap: 10px; margin-block: 22px 18px; }
  .rec-reader { display: block; }
  .rec-reader:not(.rec-reader--original) > .rec-original { display: none; }
  .rec-letter-text { padding: 23px 19px; font-size: 15px; line-height: 1.8; }
  .rec-letter-text h4 { font-size: 21px; }
  .rec-ratings { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .rec-rating-card { padding: 16px 13px; }
  .rec-rating-head { display: block; }
  .rec-initial { margin-bottom: 10px; }
  .rec-stars { gap: 1px; margin-top: 18px; }
  .rec-stars svg { width: 16px; height: 16px; }
  .rec-rating-card .rec-read { font-size: 11px; gap: 6px; }
  .rec-archive-heading { display: block; }
  .rec-archive-heading > .rec-button { margin-top: 16px; }
  .rec-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
  .rec-source-actions { gap: 9px 15px; }
  .rec-languages button { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .rec-letter-thumb { transition: none; } }
