/* TEACHINGS (Nov 2, 2026): a white "document page" with a large faded TYF logo in the middle (the original logo file, only made see-through). */
#teachings{background:#e9e6df;color:#111}
#teachings h2{color:#111}
#teachings .section-intro{color:#333}
.tch-bar{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center;justify-content:center;max-width:820px;margin:0 auto 18px}
.tch-bar label{font-family:var(--label);font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:.8rem}
.tch-bar select{font:inherit;font-size:1rem;min-height:44px;padding:8px 10px;border:1px solid #111;border-radius:4px;background:#fff;color:#111;max-width:100%;flex:1 1 260px}
.tch-print-btn{font-family:var(--label);font-weight:600;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem;min-height:44px;padding:10px 16px;border:2px solid #111;background:#111;color:#fff;border-radius:4px;cursor:pointer}
.tch-print-btn:hover,.tch-print-btn:focus-visible{background:#b3121f;border-color:#b3121f}
.tch-doc{position:relative;max-width:820px;margin:0 auto;background:#fff;color:#1a1a1a;border:1px solid #cfcac0;
  box-shadow:0 2px 4px rgba(0,0,0,.06),0 12px 30px rgba(0,0,0,.12);padding:44px 26px 34px;overflow:clip;font-family:var(--body);font-size:1.02rem;line-height:1.6;text-align:left}
@media (min-width:720px){.tch-doc{padding:64px 72px 48px}}
/* the logo stays in the middle of the screen while you scroll the page (sticky), and on every printed page (fixed) */
.tch-wm-wrap{position:absolute;inset:0;z-index:0;pointer-events:none}
.tch-wm{position:sticky;top:calc(50vh - min(28vw,235px));display:block;width:min(88%,760px);height:auto;margin:0 auto;opacity:.07;pointer-events:none;user-select:none}
.tch-body{position:relative;z-index:1}
.tch-head{border-bottom:2px solid #1a1a1a;padding-bottom:14px;margin-bottom:8px;position:relative}
.tch-title{font-family:var(--display);font-weight:700;font-size:1.65rem;line-height:1.25;margin:0 0 4px;color:#111;text-transform:none;letter-spacing:0}
@media (min-width:720px){.tch-title{font-size:2rem}}
.tch-sub{margin:0 0 12px;color:#555;font-style:italic}
.tch-meta{margin:0 0 8px}
.tch-watch{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:700;color:#b3121f;text-decoration:underline;text-underline-offset:3px}
.tch-vt{color:#555;font-size:.9rem}
.tch-for{margin:0;padding:10px 14px;background:rgba(179,18,31,.06);border-left:4px solid #b3121f}
.tch-new{display:inline-block;margin-bottom:8px;background:#b3121f;color:#fff;font-family:var(--label);font-weight:600;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;line-height:1;padding:5px 9px;border-radius:3px}
.tch-part h4{font-family:var(--display);font-weight:700;font-size:1.22rem;margin:26px 0 6px;color:#111;text-transform:none;letter-spacing:0}
.tch-body ul{margin:4px 0;padding-left:1.5em;list-style-type:disc}
.tch-body ul ul{list-style-type:circle}
.tch-body ul ul ul{list-style-type:square}
.tch-body ul ul ul ul{list-style-type:"\2013\00a0\00a0"}
.tch-body li{margin:4px 0}
.tch-verse{margin:8px 0 10px;padding:8px 14px;border-left:3px solid #b3121f;background:rgba(255,255,255,.6);font-family:var(--scripture);font-style:italic;font-size:.98rem;line-height:1.55}
.tch-verse p{margin:0 0 4px}
.tch-verse cite{display:block;font-style:normal;font-family:var(--body);font-weight:700;font-size:.85rem;color:#333}
.tch-ver{font-weight:400;color:#666}
.tch-sc{font-variant:small-caps}
.tch-foot{margin-top:30px;padding-top:12px;border-top:1px solid #ccc;font-size:.85rem;color:#444}
.tch-foot p{margin:0 0 6px}
.tch-note{font-weight:600}
@media print{
  html.tch-print .tch-hide{display:none!important}
  html.tch-print,html.tch-print body{background:transparent!important;padding:0!important;margin:0!important}
  html.tch-print #teachings{background:transparent!important;padding:0!important}
  html.tch-print #teachings .wrap{max-width:none!important;padding:0!important}
  html.tch-print .tch-doc{max-width:none;border:0;box-shadow:none;padding:0;overflow:visible;font-size:11.5pt}
  html.tch-print .tch-wm-wrap{position:static}
  html.tch-print .tch-wm{position:fixed;left:10%;top:32%;width:80%;margin:0;opacity:.07;z-index:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  html.tch-print .tch-verse{background:transparent}
  html.tch-print .tch-verse,html.tch-print .tch-for,html.tch-print .tch-new{-webkit-print-color-adjust:exact;print-color-adjust:exact;break-inside:avoid}
  html.tch-print .tch-part h4{break-after:avoid}
  html.tch-print .tch-watch::after{content:" (" attr(href) ")";font-weight:400;color:#444;font-size:.85em}
  @page{margin:16mm 16mm}
}
.res-teach-link{text-align:center;margin:-4px auto 18px;max-width:720px}
.res-teach-link a{display:inline-block;padding:10px 14px;min-height:44px;border:2px solid currentColor;border-radius:4px;text-decoration:none;font-weight:600}
.res-teach-link a:hover,.res-teach-link a:focus-visible{color:var(--red)}

/* ===== Batch 6: accordion list (one open at a time), search, Watch here ===== */
.tch-tools{max-width:820px;margin:0 auto 14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.tch-search-label{font-family:var(--label);font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;color:#111}
.tch-search{flex:1 1 240px;min-width:0;font:inherit;font-size:1rem;min-height:44px;padding:8px 12px;border:1px solid #111;border-radius:6px;background:#fff;color:#111}
.tch-search:focus-visible{outline:3px solid #b3121f;outline-offset:1px}
.tch-count{flex:1 0 100%;margin:0;font-size:.88rem;color:#444}
.tch-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:10px;text-align:left}
.tch-item{background:#fff;border:1px solid #cfcac0;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.tch-item.open{border-color:#1a1a1a;box-shadow:0 6px 20px rgba(0,0,0,.12)}
.tch-row-h{margin:0;font:inherit;text-transform:none;letter-spacing:0}
.tch-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:12px 16px;border:0;background:none;color:#111;text-align:left;cursor:pointer;font:inherit}
.tch-row:hover .tch-row-title{text-decoration:underline;text-underline-offset:3px}
.tch-row:focus-visible{outline:3px solid #b3121f;outline-offset:-3px;border-radius:6px}
.tch-row-main{flex:1 1 auto;min-width:0}
.tch-row-title{font-family:var(--body);font-weight:700;font-size:1.08rem;line-height:1.3}
.tch-row-sub{display:block;margin-top:2px;color:#555;font-size:.9rem;font-style:italic}
.tch-new-row{margin:0 0 0 6px;vertical-align:2px;font-size:.66rem;padding:4px 7px}
.tch-chev{flex:0 0 auto;width:12px;height:12px;border-right:3px solid #b3121f;border-bottom:3px solid #b3121f;transform:rotate(45deg);margin:-6px 6px 0;transition:transform .15s}
.tch-row[aria-expanded="true"] .tch-chev{transform:rotate(-135deg);margin-top:6px}
.tch-panel{padding:0 10px 14px}
@media (min-width:720px){.tch-panel{padding:0 16px 18px}}
.tch-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.tch-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 14px;border:2px solid #111;border-radius:4px;background:#fff;color:#111;
  font-family:var(--label);font-weight:600;text-transform:uppercase;letter-spacing:.06em;font-size:.8rem;text-decoration:none;cursor:pointer}
.tch-btn:hover,.tch-btn:focus-visible{border-color:#b3121f;color:#b3121f}
.tch-btn-yt{background:#b3121f;border-color:#b3121f;color:#fff}.tch-btn-yt:hover,.tch-btn-yt:focus-visible{background:#8f0e19;color:#fff}
.tch-actions .tch-print-btn{background:#111;color:#fff;border-color:#111}.tch-actions .tch-print-btn:hover{background:#b3121f;border-color:#b3121f;color:#fff}
.tch-player{margin:0 0 14px}
.tch-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:4px;overflow:hidden}
.tch-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.tch-list .tch-doc{max-width:none;margin:0}
.tch-title{font-weight:700}
@media print{html.tch-print .tch-item,html.tch-print .tch-panel,html.tch-print .tch-list{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;background:transparent!important}}

/* ===== Batch 7: 100+ teachings: loading note, dates, series chips, "Show all" ===== */
.tch-list[aria-busy="true"]{min-height:895px} /* about the height of the filter bar + first page of 10 (batch 8), so nothing jumps when the list arrives */
@media (max-width:600px){.tch-list[aria-busy="true"]{min-height:1240px}}
.tch-loading{padding:18px;color:#444;text-align:center}
.tch-row-date{display:block;margin-top:2px;color:#777;font-size:.78rem}
.tch-series{flex:1 0 100%;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.tch-series[hidden]{display:none}
.tch-series-label{font-family:var(--label);font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;color:#111;margin-right:2px}
.tch-chip{min-height:44px;padding:6px 12px;border:1px solid #111;border-radius:999px;background:#fff;color:#111;font:inherit;font-size:.88rem;cursor:pointer}
.tch-chip[aria-pressed="true"]{background:#111;color:#fff}
.tch-chip:hover,.tch-chip:focus-visible{border-color:#b3121f}.tch-chip:focus-visible{outline:3px solid #b3121f;outline-offset:1px}
.tch-chip-n{font-size:.75rem;opacity:.75}
.tch-more{align-self:center;margin-top:6px}
.tch-more[hidden]{display:none}

/* ===== Batch 8: pager of 10 (swipe like Music), sort, theme / scripture / series filters, one-teaching reader ===== */
.tch-tools[hidden],.tch-filters[hidden],.tch-reader[hidden],.tch-browse[hidden],.tch-bar[hidden],.tch-dots[hidden],.tch-clear[hidden],.tch-rsteps [hidden]{display:none!important}
.tch-list.tch-pager-on{display:block}
.tch-ctrls{flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.tch-sort-l{font-family:var(--label);font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;color:#111}
.tch-sort{font:inherit;font-size:.95rem;min-height:44px;padding:6px 10px;border:1px solid #111;border-radius:6px;background:#fff;color:#111}
.tch-ftoggle[aria-expanded="true"]{background:#111;color:#fff}
.tch-ftoggle[aria-expanded="true"]:hover{background:#b3121f;border-color:#b3121f;color:#fff}
.tch-linkbtn{min-height:44px;padding:6px 8px;border:0;background:none;color:#b3121f;font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tch-filters{flex:1 0 100%;background:#fff;border:1px solid #cfcac0;border-radius:6px;padding:10px 12px 4px;text-align:left}
.tch-fg{margin:0 0 10px}
.tch-fg-h{margin:0 0 6px;font-family:var(--label);font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:.76rem;color:#111}
.tch-fg-hint{font-family:var(--body);text-transform:none;letter-spacing:0;font-weight:400;font-size:.8rem;color:#666}
.tch-chips{display:flex;flex-wrap:wrap;gap:6px}
.tch-filters .tch-chip{min-height:40px;padding:5px 11px;font-size:.86rem}
.tch-books summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none}
.tch-books summary::-webkit-details-marker{display:none}
.tch-books summary::after{content:"";width:9px;height:9px;border-right:3px solid #b3121f;border-bottom:3px solid #b3121f;transform:rotate(45deg);margin:-4px 0 0 2px}
.tch-books[open] summary::after{transform:rotate(-135deg);margin-top:4px}
.tch-books summary .tch-fg-h{margin:0}
.tch-book-sum{font-size:.9rem;color:#333;border:1px solid #111;border-radius:6px;padding:6px 10px;background:#fff;max-width:70vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tch-bk-h{margin:8px 0 4px;font-size:.78rem;font-weight:700;color:#555}
.tch-books .tch-fg-hint{margin:8px 0 4px}
/* pager */
.tch-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px;max-width:none;margin:0 0 10px}
.tch-swipe{margin:0;font-family:var(--label);font-weight:600;font-size:.74rem;text-transform:uppercase;letter-spacing:.16em;color:#666}
.tch-counter{margin:0;font-family:var(--label);font-weight:600;font-size:.84rem;text-transform:uppercase;letter-spacing:.12em;color:#111;white-space:nowrap}
.tch-range{font-family:var(--body);text-transform:none;letter-spacing:0;font-weight:400;color:#666;font-size:.8rem}
.tch-arrows{display:flex;gap:8px}
.tch-arrow{width:46px;height:46px;border:2px solid #111;background:#111;color:#fff;font-size:1.3rem;line-height:1;cursor:pointer;border-radius:4px}
.tch-arrow:hover,.tch-arrow:focus-visible{background:#b3121f;border-color:#b3121f}
.tch-arrow:disabled{opacity:.3;cursor:default;background:#111;border-color:#111}
.tch-row{display:flex;align-items:flex-start;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
  scrollbar-width:none;transition:height .2s ease;padding:2px}
.tch-row::-webkit-scrollbar{display:none}
.tch-row:focus-visible{outline:3px solid #b3121f;outline-offset:3px;border-radius:6px}
.tch-page{flex:0 0 calc(100% - 26px);scroll-snap-align:start;display:grid;grid-template-columns:1fr;gap:8px;min-width:0}
.tch-card{display:flex;flex-direction:column;gap:3px;min-width:0;padding:10px 12px;background:#fff;border:1px solid #cfcac0;border-radius:6px;color:#111;text-decoration:none;
  box-shadow:0 1px 3px rgba(0,0,0,.06);text-align:left}
.tch-card:hover{border-color:#111;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.tch-card:hover .tch-card-title{text-decoration:underline;text-underline-offset:3px}
.tch-card:focus-visible{outline:3px solid #b3121f;outline-offset:1px}
.tch-card-title{font-family:var(--body);font-weight:700;font-size:1rem;line-height:1.28;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tch-new-card{margin:0 0 0 4px;vertical-align:1px;font-size:.62rem;padding:3px 6px}
.tch-card-meta{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:.78rem;color:#666}
.tch-card-series{color:#b3121f;font-weight:700}
.tch-card-sub{font-size:.86rem;font-style:italic;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tch-card-tags{display:flex;flex-wrap:nowrap;gap:4px;overflow:hidden;margin-top:2px}
.tch-tag{flex:0 0 auto;font-size:.7rem;line-height:1;padding:4px 7px;border-radius:999px;background:#f1eee8;border:1px solid #ddd7cc;color:#333;white-space:nowrap}
.tch-tag-more{background:none}
.tch-empty{grid-column:1/-1;padding:24px 12px;text-align:center;color:#444;background:#fff;border:1px dashed #bbb;border-radius:6px}
.tch-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;margin:8px 0 0}
.tch-dot{width:28px;height:28px;padding:0;border:0;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tch-dot::before{content:"";width:9px;height:9px;border-radius:50%;background:#b9b3a8}
.tch-dot[aria-current="true"]::before{background:#b3121f;transform:scale(1.25)}
.tch-dot:focus-visible{outline:2px solid #b3121f;border-radius:50%}
@media (min-width:720px){
  .tch-swipe{display:none}
  .tch-page{flex-basis:100%;grid-template-columns:1fr 1fr;gap:10px 12px}
  .tch-card{padding:12px 14px;min-height:118px}
}
/* reader */
.tch-rnav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px}
.tch-rnav-end{margin:14px 0 0}
.tch-back{background:#111;color:#fff;border-color:#111}
.tch-back:hover,.tch-back:focus-visible{background:#b3121f;border-color:#b3121f;color:#fff}
.tch-rpos{font-size:.85rem;color:#555}
.tch-rsteps{display:flex;gap:8px;margin-left:auto}
.tch-rsteps .tch-btn:disabled{opacity:.35;cursor:default}
@media (max-width:480px){.tch-rsteps{margin-left:0;width:100%}.tch-rsteps .tch-btn{flex:1 1 0}}
.tch-reader .tch-item{background:#fff;border:1px solid #1a1a1a;border-radius:6px;box-shadow:0 6px 20px rgba(0,0,0,.12);padding:12px 10px 14px}
@media (min-width:720px){.tch-reader .tch-item{padding:16px 16px 18px}}
.tch-reader .tch-doc{max-width:none;margin:0}
@media print{html.tch-print .tch-reader,html.tch-print .tch-rbody,html.tch-print .tch-reader .tch-item{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;background:transparent!important}}
/* phones: compact cards (title, then date + series + themes on one line) so a page of 10 stays short */
@media (max-width:719px){
  .tch-card{display:block;padding:9px 11px}
  .tch-card-title{font-size:.98rem}
  .tch-card-sub{display:none}
  .tch-card-meta,.tch-card-tags{display:inline-flex;vertical-align:middle;margin-top:4px}
  .tch-card-meta{margin-right:8px}
  .tch-card-tags{max-width:100%}
  .tch-page{gap:7px}
}
@media (max-width:719px){
  .tch-bar{flex-wrap:wrap;gap:4px 10px}
  .tch-swipe{flex:1 0 100%;order:3;text-align:center;margin-top:2px}
  .tch-counter{font-size:.8rem}
  .tch-arrow{width:44px;height:44px}
}
/* 25 themes: phones show the 8 most-used, then "Show all themes" (a chosen theme always shows) */
.tch-th-all{display:none}
@media (max-width:719px){
  .tch-th-chips.tch-few .tch-chip:nth-child(n+9):not([aria-pressed="true"]){display:none}
  .tch-th-all{display:inline-block;padding-left:0}
}
/* TikTok-only teachings (Nov 11, 2026): tall 9:16 player and a dark Watch on TikTok button */
.tch-frame.tch-frame-tt{aspect-ratio:9/16;max-width:340px;margin:0 auto}
.tch-btn-tt{background:#111;border-color:#111;color:#fff}.tch-btn-tt:hover,.tch-btn-tt:focus-visible{background:#333;color:#fff}
