/* Juan Tamad Design: WordPress integration (live content blocks, accessibility, plugins). */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:var(--cream);clip:auto!important;clip-path:none;color:var(--ink);display:block;font:600 14px var(--sans);height:auto;left:8px;padding:12px 18px;top:8px;width:auto;z-index:100000;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.2)}
/* Images keep their proportions even with width and height attributes */
:where(.jtd) img{height:auto}
.bimg img{height:auto;aspect-ratio:2/1}
#page,#content{display:block;margin:0;padding:0;max-width:none}
body.admin-bar .side{top:52px}

/* Header: active menu item, search box as in the mockup */
.hnav a.active{color:var(--red)}
.top .search input::-webkit-search-cancel-button{display:none}

/* Homepage */
.topic.soon{cursor:default}
.topic.soon .ico2 img{opacity:.75}
.tile .noimg{display:block;aspect-ratio:16/10;background:linear-gradient(135deg,#efe3cf,#e3d1b3)}
.tile img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.split img{width:auto;max-width:100%;max-height:460px;height:auto;margin:0 auto;border-radius:8px}

/* Live article content (core blocks) */
.body > *:first-child{margin-top:0}
.body ul,.body ol{margin:0 0 20px;padding-left:24px}
.body li{margin:0 0 8px}
.body li::marker{color:var(--red)}
.body h3{font:700 22px/1.3 var(--serif);color:var(--ink);margin:32px 0 10px;letter-spacing:-.01em}
.body h4{font:700 18px/1.35 var(--sans);margin:26px 0 8px}
.body strong{font-weight:650}
.body img{height:auto;max-width:100%}
.body figure,.body .wp-block-image{margin:28px 0}
.body .wp-block-image img{border-radius:8px;width:100%;height:auto}
.body .wp-block-image figcaption,.body figure figcaption,.body .wp-element-caption{font:13px/1.5 var(--sans);color:var(--muted);margin-top:10px;text-align:left}
.body blockquote{margin:28px 0;padding:4px 0 4px 22px;border-left:3px solid var(--gold);font-style:normal}
.body table{width:100%;border-collapse:collapse;font:16px/1.5 var(--sans);margin:0 0 24px}
.body th,.body td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left;vertical-align:top}
.body hr{border:0;border-top:1px solid var(--line);margin:32px 0}
.body iframe{max-width:100%}
.feature .ph img{aspect-ratio:auto;height:auto!important;max-height:620px;object-position:50% 50%}

/* Frequently Asked Questions as plain rows */
.body h2.faq-h + p{margin-bottom:8px}
.body h3.faq-q{font:600 18px/1.5 var(--sans)!important;color:var(--ink);letter-spacing:0;margin:0!important;padding:16px 0 4px;border-top:1px solid var(--line)}
.body h3.faq-q + p{font-size:18px;line-height:1.65;margin:0 0 12px}

/* Sources as fine print */
.body h2.src-h{font-family:var(--sans)!important;font-size:12px!important;font-weight:700!important;letter-spacing:.1em;text-transform:uppercase;color:#7a6b5d!important;margin:36px 0 8px}
.body ul.sources{list-style:none;padding:0;margin:0;font:12px/1.55 var(--sans);color:#7a6b5d;display:grid;gap:4px}
.body ul.sources li{margin:0}
.body ul.sources a{color:inherit}

/* Section hub: the long section text sits below the grid */
.hub-text{padding:0 0 56px}
.hub-text-in{max-width:760px}
.bimg{display:block}
.bcard h3 a:hover{color:var(--red)}

/* Static pages and forms */
.static-main .wpforms-container{margin:20px 0}
.jtd .wpforms-form input[type=text],.jtd .wpforms-form input[type=email],.jtd .wpforms-form textarea{border:1px solid var(--line)!important;background:#fffaf0!important;border-radius:4px!important;font:16px var(--sans)!important;color:var(--ink)!important}
.jtd .wpforms-form .wpforms-field-label{font:600 15px var(--sans)!important;color:var(--ink)!important}
.jtd .wpforms-form button[type=submit]{background:var(--red)!important;color:#fff!important;border:0!important;border-radius:4px!important;font:600 15px var(--sans)!important;padding:11px 22px!important}

/* Search results: pagination */
.srch-main .pagination,.srch-main .navigation{margin:24px 0}
.srch-main .nav-links{display:flex;gap:8px;flex-wrap:wrap;font:15px var(--sans)}
.srch-main .page-numbers{border:1px solid var(--line);border-radius:4px;padding:6px 12px}
.srch-main .page-numbers.current{background:var(--red);color:#fff;border-color:var(--red)}
.sthumb img{width:100%;height:100%;object-fit:cover}

/* 404: tiles for the live sections only */
.nftiles{display:flex!important;flex-wrap:wrap;justify-content:center;gap:14px}
.nftiles a{width:132px}
@media (max-width:760px){.nftiles a{width:calc(50% - 7px)}}

/* Tale page: numbered list of tales in the sidebar */
.talelist ol{margin:0;padding:6px 18px 14px 40px;font:15px/1.4 var(--sans)}
.talelist li{padding:5px 0}
.talelist li.on a{color:var(--red);font-weight:600}

/* Video placeholders already in posts */
.body .jt-video,.body .yt-click{margin:28px 0}

/* Footer bottom line: Privacy Policy and Cookie Settings stay inline */
.footer .footnote a{display:inline!important;margin:0!important;padding:0!important}
.static-main .article h1{margin-bottom:20px}
