/* TGF Reader Experience 5.0. No global typography changes. */
.tgf-re, .tgf-re * {box-sizing:border-box}
.tgf-re {width:100%;max-width:100%;margin:0 0 14px;color:#293e4f;font:inherit;}
.tgf-re__bar {display:flex;align-items:stretch;justify-content:space-between;gap:4px;padding:4px 0;border-top:1px solid #e2e7ec;border-bottom:1px solid #e2e7ec;}
.tgf-re__bar button {appearance:none;box-shadow:none!important;background:transparent!important;border:1px solid transparent!important;border-radius:6px!important;color:#293e4f!important;font:inherit;font-size:13px;font-weight:550;text-transform:none;line-height:1.3;min-height:46px;display:flex;flex:1 1 0;gap:6px;align-items:center;justify-content:center;margin:0!important;padding:6px 8px!important;cursor:pointer;white-space:nowrap;}
.tgf-re__bar button[aria-expanded="true"],.tgf-re__bar button[aria-pressed="true"] {background:#e9f0f5!important;}
.tgf-re__bar button:hover:not(:disabled) {background:#f0f4f6!important;border-color:#d9e1e7!important;}
.tgf-re__bar button:disabled {opacity:.45;cursor:not-allowed;}
.tgf-re__bar button:focus-visible,.tgf-re button:focus-visible,.tgf-re-saved-library :is(button,a):focus-visible {outline:3px solid #275d89!important;outline-offset:2px;}
.tgf-re__icon {display:block;flex:none;width:19px;height:19px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
.tgf-re__chev {width:13px;height:13px;}
.tgf-re__panel {border:1px solid #e2e7ec;border-top:0;padding:12px;border-radius:0 0 8px 8px;background:#fafbfc;}
.tgf-re__panel[hidden] {display:none!important;}
/* Integrate the exact approved engines rather than showing duplicated sections. */
.tgf-re__panel #tgf-devotional-audio {margin:0;border:0;border-radius:0;background:transparent;overflow:visible;}
.tgf-re__panel #tgf-devotional-audio summary {display:none!important;}
.tgf-re__panel #tgf-devotional-audio .tgf-body {border:0;padding:0;}
.tgf-re__panel .tgf-drv13 {margin:0;}
.tgf-re__panel .tgf-drv13__bar {border:0;min-height:46px;padding:0;}
.tgf-re__panel .tgf-drv13__heading {margin-left:auto;}
.tgf-re__feedback {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.tgf-re__print-footer,.tgf-re__print-watermark {display:none;}
.tgf-re-saved-library {max-width:760px;margin:18px auto;}
.tgf-re-saved-library ul {list-style:none;margin:0;padding:0;}
.tgf-re-saved-library li {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid #e2e7ec;}
.tgf-re-saved-library button {padding:8px 12px;min-height:44px;border:1px solid #b6c2cc;background:#fff;color:#243e51;border-radius:6px;cursor:pointer;}
.tgf-re-saved-library li a {overflow-wrap:anywhere;}
@media(max-width:540px) {
 .tgf-re__bar {gap:1px;}
 .tgf-re__bar button {flex-direction:column;gap:3px;padding:4px 1px!important;min-width:0;min-height:54px;font-size:11px;letter-spacing:-.01em;}
 .tgf-re__icon {width:19px;height:19px;}
 .tgf-re__chev {display:none;}
 .tgf-re__panel {padding:10px;}
}
@media(max-width:360px) {.tgf-re__bar button {font-size:10px;}}
@media print {
 /* Reader tools, interactive widgets and common navigation are not print content. */
 .tgf-re, #tgf-devotional-audio, .tgf-drv13, .tgf-re-saved-library,
 .site-header, .site-footer, .main-navigation, .wp-block-navigation, .wp-block-comments,
 .sharedaddy, .addtoany_share_save_container, .wp-block-social-links, .post-navigation,
 #wpadminbar {display:none!important;}
 .tgf-re__print-footer {display:block!important;break-inside:avoid;margin-top:24px;padding-top:14px;border-top:1px solid #888;font-family:Arial,sans-serif;color:#444;font-size:9pt;line-height:1.5;}
 .tgf-re__print-watermark {display:block!important;position:fixed!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:105mm!important;height:105mm!important;max-width:74%!important;object-fit:contain!important;opacity:.13!important;filter:grayscale(1)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;pointer-events:none!important;z-index:0!important;}
 .tgf-re__print-footer {position:relative;z-index:1;}
 .tgf-re__print-url {overflow-wrap:anywhere;}
 /* Reader contrast must never turn printed body text white on white. */
 .tgf-drv13-contrast, .tgf-drv13-contrast :is(p,li,h1,h2,h3,h4,h5,h6,blockquote,figcaption,strong,em,small,span) {background:#fff!important;color:#111!important;}
 .tgf-drv13-contrast a {color:#111!important;}
 @page {margin:18mm 16mm;}
}

/* V0.2: visible, accessible Share panel; avoids silent clipboard-only behavior. */
.tgf-re__share {display:grid;gap:9px;}
.tgf-re__share[hidden] {display:none!important;}
.tgf-re__share label {font-size:13px;font-weight:600;color:#283b4a;}
.tgf-re__share input {width:100%;min-height:44px;box-sizing:border-box;padding:9px 11px;
  border:1px solid #b7c2cb;border-radius:6px;background:#fff;color:#24323e;font-size:14px;}
.tgf-re__share-actions {display:flex;gap:10px;flex-wrap:wrap;}
.tgf-re__share-actions button {min-height:44px;padding:8px 13px;border:1px solid #aebbc4;
  background:#fff;color:#24323e;border-radius:6px;cursor:pointer;font:inherit;}
.tgf-re__share-actions button:focus-visible {outline:3px solid #285b91;outline-offset:2px;}
.tgf-re__share-hint {margin:0;color:#556676;font-size:12px;}

/* V0.3.1: Compact single-row sharing. Local icons only; no tracking requests. */
.tgf-re__share {padding:10px!important;}
.tgf-re__share-row {display:grid;grid-template-columns:auto minmax(0,1fr) 44px 44px;align-items:center;gap:7px;width:100%;min-width:0;}
.tgf-re__share-row .tgf-re__copy-link {font:inherit;font-size:12px;white-space:nowrap;min-height:44px;padding:5px 10px;border:1px solid #b7c2cb;border-radius:6px;background:#fff;color:#253c4c;cursor:pointer;}
.tgf-re__share-row input {width:100%;min-width:0;margin:0;padding:7px 9px;min-height:44px;border:1px solid #b7c2cb;border-radius:6px;color:#334657;background:#fff;font:inherit;font-size:12px;text-overflow:ellipsis;}
.tgf-re__share-row .tgf-re__social {display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #b7c2cb;border-radius:6px;background:#fff;text-decoration:none;}
.tgf-re__share-row .tgf-re__social img {display:block;width:22px;height:22px;}
.tgf-re__share-row :is(a,button,input):focus-visible {outline:3px solid #225b8b!important;outline-offset:2px;}
@media(max-width:360px){.tgf-re__share-row {gap:4px;}.tgf-re__share-row .tgf-re__copy-link {padding:5px 6px;font-size:11px;}}
@media print{.tgf-re__share-row {display:none!important;}}

/* Reader Experience 1.5: a single Save panel with a quiet saved-content list. */
.tgf-re__saved{padding:12px 16px;background:#fff;}
.tgf-re-library-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:15px;}
.tgf-re-library-head strong{font-weight:650;}
.tgf-re-library-head small{font-size:12px;color:#657784;white-space:nowrap;}
.tgf-re-library-list{list-style:none!important;margin:0!important;padding:0!important;max-height:340px;overflow-y:auto;}
.tgf-re-library-list li{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #edf0f2;}
.tgf-re-library-list li:last-child{border-bottom:0;}
.tgf-re-library-list li a{flex:1;min-width:0;overflow-wrap:anywhere;color:#29495b;text-decoration:none;font-weight:550;font-size:14px;line-height:1.5;}
.tgf-re-library-list li a:hover,.tgf-re-library-list li a:focus-visible{text-decoration:underline;}
.tgf-re-library-remove{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border:0;border-radius:6px;background:transparent;color:#38556b;font-size:23px;cursor:pointer;}
.tgf-re-library-remove:hover{background:#edf3f6;}
.tgf-re-library-empty{margin:10px 0 4px;font-size:14px;color:#566e7d;}
@media print{.tgf-re__saved{display:none!important;}}

/* Devotional taxonomy labels are not part of the reader-facing article. */
.tgf-re-taxonomy-hidden{display:none!important;}
body.tgf-re-is-devotional :is(.cat-links,.tags-links,.category-links,.tag-links,.posted-in,.tagged-as,.post-categories,.post-tags,.wp-block-post-terms.taxonomy-category,.wp-block-post-terms.taxonomy-post_tag){display:none!important;}

/* v1.5.3: One-line article-sharing icons; Copy link and short URL remain. */
.tgf-re__share-row{display:flex!important;align-items:center;gap:7px;min-width:0;flex-wrap:nowrap;position:relative;}
.tgf-re__share-row input{flex:0 1 230px;min-width:66px;width:230px;max-width:230px;}
.tgf-re__share-row .tgf-re__copy-link{flex:0 0 auto;}
.tgf-re__share-icons{display:flex;flex:0 0 auto;align-items:center;gap:5px;margin-left:auto;min-width:0;}
.tgf-re__share-row .tgf-re__social{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:44px;min-width:38px;padding:7px;border:1px solid #d5dee5;background:#fff;border-radius:6px;color:#263e50;cursor:pointer;appearance:none;font:inherit;}
.tgf-re__share-row .tgf-re__social:hover,.tgf-re__share-row .tgf-re__social:focus-visible{background:#eef3f6;}
.tgf-re__social-icon{display:block;width:22px;height:22px;pointer-events:none;}
.tgf-re__more-wrap{position:relative;}
.tgf-re__more-menu{position:absolute;right:0;top:calc(100% + 6px);width:205px;padding:5px;background:#fff;border:1px solid #d4dfe7;border-radius:7px;box-shadow:0 6px 22px rgba(23,38,51,.12);z-index:20;}
.tgf-re__more-menu[hidden]{display:none!important;}
.tgf-re__more-menu .tgf-re__more-option{display:block;width:100%;min-height:39px;text-align:left;padding:7px 10px;border:0;background:transparent;color:#293e4f;border-radius:4px;cursor:pointer;font-size:13px;font-family:inherit;}
.tgf-re__more-option:hover,.tgf-re__more-option:focus-visible{background:#edf3f6!important;}
@media(max-width:760px){
 .tgf-re__share-row{flex-wrap:wrap;gap:7px;}
 .tgf-re__share-row input{flex:1 1 110px;width:auto;max-width:none;}
 .tgf-re__share-icons{flex:1 0 100%;justify-content:space-between;margin-left:0;gap:4px;}
 .tgf-re__share-row .tgf-re__social{width:42px;min-width:42px;flex:0 0 42px;}
}
@media(max-width:360px){.tgf-re__share-row .tgf-re__social{width:40px;min-width:40px;flex:0 0 40px;}}
@media print{.tgf-re__share-icons{display:none!important;}}

/* v1.5.5: concise saved-reading list, overriding generous theme list margins. */
.tgf-re__saved .tgf-re-library-head {margin-bottom:2px!important;}
.tgf-re__saved .tgf-re-library-list {margin:0!important;padding:0!important;}
.tgf-re__saved .tgf-re-library-list li {
  margin:0!important;padding:2px 0!important;min-height:44px;
  line-height:1.35!important;gap:8px;
}
.tgf-re__saved .tgf-re-library-list li a {
  margin:0!important;padding:0!important;line-height:1.35!important;
}
.tgf-re__saved .tgf-re-library-list .tgf-re-library-remove {
  margin:0!important;padding:0!important;min-height:44px;
}


/* v1.6.4: compact saved-content disclosure, accessible and height-limited. */
.tgf-re__saved{padding:8px 14px!important;}
.tgf-re-library-details{margin:0;padding:0;max-width:100%;}
.tgf-re-library-head{display:flex!important;align-items:center!important;gap:9px!important;
  cursor:pointer;min-height:44px;margin:0!important;padding:7px 2px!important;
  color:#2a4355;list-style:none;}
.tgf-re-library-head::-webkit-details-marker{display:none;}
.tgf-re-library-head::marker{content:'';}
.tgf-re-library-head:focus-visible{outline:3px solid #275d89!important;outline-offset:2px;}
.tgf-re-library-head strong{flex:1;min-width:0;font-size:15px;}
.tgf-re-library-head small{flex:none;margin:0;color:#657784;}
.tgf-re-library-chevron{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;
  color:#405b70;transition:transform .16s ease;}
.tgf-re-library-details[open] .tgf-re-library-chevron{transform:rotate(180deg);}
#tgf-re-saved-panel-list{max-height:min(36vh,280px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;margin-top:3px;padding:0 4px 4px;}
.tgf-re__saved .tgf-re-library-list{max-height:none;overflow:visible!important;}
.tgf-re__saved .tgf-re-library-list li a{display:block;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;overflow-wrap:normal!important;}
@media(max-width:480px){.tgf-re__saved{padding:6px 10px!important;}}
@media(prefers-reduced-motion:reduce){.tgf-re-library-chevron{transition:none;}}
