/* Transcript links use the institute's book and reading language. */
.transcript-link {display:inline-flex;align-items:center;gap:.45rem;min-height:44px;color:var(--ink);font:600 .91rem/1.5 "Heebo",Arial,sans-serif;text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:5px;}
.transcript-link:hover {text-decoration-color:currentColor;}
.transcript-link .icon {height:17px;width:17px;}
.video-card>.transcript-link {display:inline-flex;margin-inline:18px;margin-bottom:10px;}
#video-transcript:empty {display:none;}
.transcript-pending {color:var(--muted);font-size:.88rem;}
#video-transcript .transcript-link {padding-inline:4px;}
/* Standalone reading pages. The content remains usable with scripting disabled. */
.tx-page {--reading-size:1.16rem;direction:rtl;margin:0;background:var(--paper);color:var(--ink);font:1rem/1.65 "Heebo",Arial,sans-serif;-webkit-font-smoothing:antialiased;}
.tx-page *, .tx-page *::before,.tx-page *::after {box-sizing:border-box;}
.tx-page [hidden] {display:none!important;}
.tx-page h1,.tx-page h2,.tx-page p {margin:0;}
.tx-page a {color:var(--ink);text-decoration-thickness:1px;text-underline-offset:.24em;}
.tx-page button,.tx-page select {font:inherit;}
.tx-page button,.tx-page summary,.tx-page select {cursor:pointer;}
.tx-page :focus-visible {outline:3px solid var(--accent);outline-offset:3px;}
.tx-skip {position:absolute;inset-inline-start:1rem;top:-10rem;z-index:2;background:#fff;padding:.7rem;}
.tx-skip:focus {top:.5rem;}
.tx-sitehead {background:var(--paper);border-bottom:1px solid var(--control-edge);}
.tx-sitehead>div {width:min(1140px,calc(100% - 40px));min-height:77px;margin-inline:auto;display:grid;align-items:center;grid-template-columns:1fr auto 1fr;}
.tx-return,.tx-footer a {display:inline-flex;align-items:center;gap:7px;min-height:44px;justify-self:start;text-decoration:none;font-size:.9rem;}
.tx-return:hover,.tx-footer a:hover {text-decoration:underline;}
.tx-brand {grid-column:2;}
.tx-brand img {width:65px;height:60px;display:block;object-fit:contain;}
.tx-paper {width:min(1120px,calc(100% - 40px));margin:clamp(14px,2.8vw,37px) auto 36px;background:var(--paper);border:1px solid var(--control-edge);border-radius:5px;}
.tx-title {padding:clamp(21px,4.3vw,46px) clamp(18px,5vw,60px) 22px;}
.tx-kicker {display:flex;align-items:center;gap:8px;color:var(--accent);font-size:.88rem;font-weight:600;}
.tx-kicker svg {width:17px;}

.tx-title h1 {color:var(--ink);max-width:26ch;margin-block:8px 5px;letter-spacing:-.025em;font-weight:650;line-height:1.21;font-size:clamp(2.05rem,4.2vw,3.25rem);text-wrap:balance;}
.tx-meta {color:var(--muted);font-size:1rem;}
.tx-meta span {color:var(--muted);margin-inline:.25em;}
.tx-tools {display:flex;flex-wrap:wrap;align-items:center;gap:4px 17px;margin-inline:clamp(18px,5vw,60px);padding:11px 0;border-block:1px solid var(--control-edge);}
.tx-tools button,.tx-tools label,.tx-tools select,.tx-media-tools button {display:inline-flex;min-height:44px;align-items:center;gap:7px;padding:5px 9px;background:transparent;border:0;font-size:.92rem;color:var(--ink);}
.tx-tools label {flex-wrap:wrap;padding-inline:0;color:var(--muted);}
.tx-tools select {border:1px solid var(--control-edge);border-radius:4px;padding-inline:5px;min-height:38px;}
.tx-tools .tx-primary {background:var(--ink);color:white;border-radius:4px;padding:9px 14px;}
.tx-tools button:hover,.tx-media-tools button:hover {text-decoration:underline;text-underline-offset:3px;}
.tx-spread {display:grid;grid-template-columns:minmax(0,1fr) minmax(205px,.39fr);grid-template-areas:"body side";gap:clamp(24px,4vw,54px);padding:24px clamp(18px,5vw,60px) 34px;align-items:start;}
.tx-aside {grid-area:side;position:sticky;top:16px;min-width:0;}
.tx-outline {border:0;background:var(--paper);}
.tx-outline summary {display:flex;align-items:center;gap:7px;min-height:44px;font-size:.92rem;font-weight:600;list-style:none;padding:6px 12px;}
.tx-outline summary::-webkit-details-marker {display:none;}
.tx-outline summary::after {content:"+";font-size:1.2rem;margin-inline-start:auto;}
.tx-outline[open] summary::after {content:"−";}
.tx-outline ol {overflow-y:auto;max-height:min(60vh,34rem);margin:0;padding:3px 32px 10px 12px;color:var(--accent);}
.tx-outline li {padding-block:2px;}
.tx-outline a {display:block;min-height:36px;font-size:.91rem;text-decoration:none;}
.tx-outline a:hover {text-decoration:underline;}
.tx-content {grid-area:body;min-width:0;max-width:71ch;font-size:var(--reading-size);line-height:1.92;overflow-wrap:break-word;}
.tx-content section+section {margin-top:1.65em;}
.tx-content section {scroll-margin-block-start:1em;}
.tx-content h2 {font-size:1.23em;line-height:1.4;font-weight:650;color:var(--ink);margin-bottom:.65em;}
.tx-content p+p {margin-top:.78em;}
.tx-page[data-size=large] {--reading-size:1.37rem;}
.tx-page[data-size=larger] {--reading-size:1.57rem;}
.tx-footer {display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 20px;margin-inline:clamp(18px,5vw,60px);padding-block:14px;border-top:1px solid var(--control-edge);}
#tx-media {padding-bottom:14px;margin-bottom:12px;border-bottom:1px solid var(--control-edge);}
#tx-media #video-player {aspect-ratio:16/9;background:var(--ink);border-radius:4px;overflow:hidden;}
#tx-media iframe,#tx-media video {display:block;width:100%;height:100%;border:0;}
#tx-media #video-status {font-size:.85rem;line-height:1.5;margin-block:7px;color:var(--muted);}
.tx-media-tools {display:flex;align-items:center;flex-wrap:wrap;gap:0 10px;}
.tx-media-tools a,.tx-media-tools button {display:inline-flex;align-items:center;min-height:40px;font-size:.84rem;padding-inline:0;}
.tx-page.with-video .tx-spread {grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr);}
@media(max-width:760px) {
  .tx-sitehead>div {min-height:62px;width:calc(100% - 24px);}
  .tx-brand img {width:50px;height:50px;}
  .tx-paper {width:100%;margin:0;border:0;border-radius:0;}
  .tx-title {padding-top:23px;}
  .tx-tools {gap:2px 7px;}
  .tx-spread,.tx-page.with-video .tx-spread {display:flex;flex-direction:column;gap:17px;padding-block:15px 25px;}
  .tx-content {font-size:var(--reading-size);line-height:1.85;}
  .tx-aside {position:static;width:100%;}
  .tx-outline {background:transparent;border-top:0;}
  .tx-outline ol {padding-bottom:9px;}
  .tx-return {font-size:.84rem;line-height:1.35;}
}
@media(max-width:375px) {
  .tx-tools .tx-primary {padding-inline:9px;}
  .tx-tools {gap:1px 6px;}
  .tx-tools button,.tx-tools label {font-size:.85rem;}
}
@media print {
  @page {margin:15mm;}
  .tx-page {color:#111;background:white;--reading-size:11.5pt!important;}
  .tx-paper,.tx-spread,.tx-page.with-video .tx-spread {display:block;width:100%;margin:0;padding:0;border:0;}
  .tx-sitehead,.tx-tools,.tx-skip,.tx-aside,.tx-footer {display:none!important;}
  .tx-page .tx-title {padding:0 0 12pt;margin-bottom:16pt;border-bottom:1px solid #999;}
  .tx-title h1 {font-size:26pt;}
  .tx-kicker::before {content:"מכון הנר המערבי · ";}
  .tx-kicker svg {display:none;}
  .tx-content {max-width:none;font-size:11.5pt;line-height:1.6;}
  .tx-content h2 {break-after:avoid;}
  .tx-content p {orphans:3;widows:3;}
}
