/* =========================================================
   Top Rated Articles — site.css
   Loads after home.css (the design). Covers WordPress output the
   static design has no page for, in the design's tokens and style.
   ========================================================= */

/* Fixed 88px header: push content down, sections that already allow for it give it back */
#main{padding-top:88px}
.hero{padding-top:0}
.phead{padding-top:76px}
.a-head{padding-top:52px}
.nf{padding-top:40px}

/* Utilities */
.sr-only{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.h-md{font-size:clamp(1.6rem,3vw,2.2rem)}
.stack{display:grid;gap:26px}
.progress{position:fixed;inset:0 0 auto;height:3px;background:var(--gold);transform-origin:0 50%;transform:scaleX(0);z-index:101;pointer-events:none}

/* Breadcrumbs (tra_breadcrumbs outputs a list) */
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.crumbs li{display:flex;gap:8px}
.crumbs li:not(:last-child)::after{content:"/"}
.crumbs li[aria-current]{max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg)}
.crumbs a:hover{color:var(--royal)}
.a-head .crumbs{margin-bottom:18px}
.phead .lead p{margin:0 0 .6em}
.phead .lead p:last-child{margin-bottom:0}

/* Search form (tra_search_form) styled as the design's .search-box */
.searchbar{display:flex;align-items:center;gap:12px;background:var(--bg);border-radius:99px;padding:8px 8px 8px 24px;max-width:760px;margin-top:28px;box-shadow:0 20px 50px -25px rgba(10,31,77,.5);border:1px solid var(--line)}
.searchbar__icon{width:22px;height:22px;flex:none;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.searchbar input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:1.1rem;color:inherit;padding:8px 0}
.searchbar input:focus{outline:0}
.searchbar select{border:0;border-left:1px solid var(--line);background:none;font:inherit;font-size:.9rem;color:var(--muted);padding:8px 10px;max-width:190px;cursor:pointer}
.searchbar select option{background:var(--bg);color:var(--fg)}
.searchbar button{display:inline-flex;align-items:center;padding:14px 24px;border-radius:99px;font-weight:600;font-size:.95rem;background:var(--ink);color:#fff;transition:background .25s}
.searchbar button:hover{background:var(--royal)}
[data-theme="dark"] .searchbar button{background:#fff;color:var(--ink)}
.nf .searchbar{margin:0 auto 24px}
@media (max-width:620px){.searchbar{flex-wrap:wrap;border-radius:24px;padding:12px}.searchbar select{border-left:0;max-width:none;flex:1}.searchbar button{width:100%;justify-content:center}}

/* Category grid, cards, pager */
.filters .pill{padding:8px 16px;font-size:.88rem}
.card h3 a:hover{color:var(--royal)}
[data-theme="dark"] .card h3 a:hover{color:var(--gold)}
.pager{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:48px}
.pager .page-numbers{min-width:46px;height:46px;padding:0 14px;display:inline-grid;place-items:center;border-radius:99px;background:var(--mist);font-weight:600}
.pager .page-numbers.current,.pager a.page-numbers:hover{background:var(--ink);color:#fff}
[data-theme="dark"] .pager .page-numbers.current,[data-theme="dark"] .pager a.page-numbers:hover{background:var(--gold);color:#1a1200}
.pager .dots{background:none}

/* Article */
.a-head .pill{background:var(--gold);color:#1a1200;font-weight:600}
.a-by b{display:block}
.toc a.is-active{border-color:var(--gold);color:var(--fg)}
.toc a.toc__l3{padding-left:28px;font-size:.85rem}
.toc .article__widgets{margin-top:28px}
.share .circle-btn svg{width:18px;height:18px}
.share .circle-btn:hover{background:var(--ink);color:#fff}
[data-theme="dark"] .share .circle-btn:hover{background:var(--gold);color:#1a1200}
.postnav-big{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;padding:18px 0}
.postnav-big+.postnav-big{border-top:1px solid rgba(255,255,255,.12);margin-top:18px;padding-top:36px}
.postnav-big .circle-btn{width:84px;height:84px;background:var(--gold);color:#1a1200;flex:none}
.postnav-big:hover .circle-btn{transform:translateX(6px)}
.postnav-big h2{color:var(--dark-fg)}

/* Prose: articles and pages */
.prose{min-width:0}
.prose h2,.prose h3,.prose h4{font-family:var(--serif);font-weight:700;letter-spacing:-.02em;line-height:1.15}
.prose h3{font-size:1.5rem;margin:1.4em 0 .5em;scroll-margin-top:110px}
.prose h4{font-size:1.2rem;margin:1.2em 0 .4em}
.prose a{color:var(--royal);text-decoration:underline;text-underline-offset:3px}
[data-theme="dark"] .prose a{color:var(--gold)}
.prose img{border-radius:var(--r-md);height:auto}
.prose ul,.prose ol{margin:0 0 1.3em;padding-left:1.3em}
.prose li{margin-bottom:.45em}
.prose ul li::marker{color:var(--gold)}
.prose ol li::marker{color:var(--royal);font-weight:700}
.prose blockquote{margin:1.6em 0;padding:1em 1.4em;border-left:5px solid var(--gold);background:var(--mist);border-radius:0 var(--r-md) var(--r-md) 0;font-style:italic}
.prose hr{border:0;height:1px;background:var(--line);margin:2em 0}
.prose figure{margin:1.6em 0}
.prose figcaption,.prose .wp-caption-text{font:.85rem/1.4 var(--sans);color:var(--muted);margin-top:8px}
.prose .table-wrap{overflow-x:auto;margin:1.6em 0;border:1px solid var(--line);border-radius:var(--r-md)}
.prose table{width:100%;border-collapse:collapse;font:.95rem/1.45 var(--sans)}
.prose th,.prose td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top}
.prose th{background:var(--mist);font-weight:600}
.prose tr:last-child td{border-bottom:0}
.prose iframe,.prose video{max-width:100%;border-radius:var(--r-md)}
.prose .alignleft{float:left;margin:.3em 1.4em 1em 0}
.prose .alignright{float:right;margin:.3em 0 1em 1.4em}
.prose .aligncenter{margin-inline:auto}
.page-body{max-width:780px}
.page-body>p:first-of-type{font-size:inherit;line-height:inherit}
.page-body>p:first-of-type::first-letter{all:unset}
.prose .contact-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;font-family:var(--sans);font-size:1rem}
.prose .contact-card{background:var(--mist);border-radius:var(--r-md);padding:18px 20px;display:grid;gap:4px}
.prose .contact-card__label{font-size:.85rem;color:var(--muted);font-weight:600}
.archive-list{list-style:none;padding:0}

/* Contact form ([toprated_contact]) in the design's .field style */
.contact-form{display:grid;gap:16px;font-family:var(--sans);font-size:1rem}
.contact-form__row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.contact-form label{display:grid;gap:6px;font-size:.85rem;font-weight:600}
.contact-form input,.contact-form textarea,.contact-form select{font:inherit;font-weight:400;font-size:1rem;color:inherit;background:var(--mist);border:1.5px solid transparent;border-radius:12px;padding:13px 15px;width:100%;transition:border-color .25s,background .25s}
.contact-form textarea{min-height:130px;resize:vertical}
.contact-form input:focus,.contact-form textarea:focus,.contact-form select:focus{outline:0;border-color:var(--royal);background:var(--bg)}
.contact-form .hp{position:absolute;left:-9999px}
.contact-form .btn{justify-self:start;background:var(--ink);color:#fff}
.contact-form .btn:hover{background:var(--royal)}
[data-theme="dark"] .contact-form .btn{background:#fff;color:var(--ink)}
.notice{padding:14px 18px;border-radius:12px;font-weight:600;font-size:.95rem;margin-bottom:16px}
.notice--ok{background:#E4F6EE;color:#11603F}
.notice--err{background:#FDECEC;color:#9B1C1C}
.info .social{display:flex;gap:14px;flex-wrap:wrap}
@media (max-width:620px){.contact-form__row{grid-template-columns:1fr}}

/* Live news ([toprated_live_feed], Live News page) */
.live__head{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.live__title-main{display:inline-flex;align-items:center;gap:14px;font-size:clamp(1.8rem,3vw,2.6rem)}
.live__dot{width:12px;height:12px;border-radius:50%;background:#FF4D3D;position:relative;flex:none}
.live__dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:tra-ping 1.6s ease infinite}
@keyframes tra-ping{to{transform:scale(3);opacity:0}}
.live__status{color:var(--muted);font-size:.9rem}
.live__filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.live__filters button{padding:8px 16px;border-radius:99px;background:var(--mist);font-size:.88rem;font-weight:500;transition:background .25s,color .25s}
.live__filters button:hover,.live__filters button.is-on{background:var(--ink);color:#fff}
[data-theme="dark"] .live__filters button:hover,[data-theme="dark"] .live__filters button.is-on{background:var(--gold);color:#1a1200}
.live__new{display:block;margin:0 auto 16px;background:var(--gold);color:#1a1200;font-weight:600;padding:10px 20px;border-radius:99px}
.live__new[hidden]{display:none}
.live__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px}
.live--compact .live__list{grid-template-columns:1fr}
.live__item{border-top:1px solid var(--line)}
.live__item[hidden]{display:none}
.live__item a{display:grid;grid-template-columns:96px 1fr;gap:18px;align-items:start;padding:18px 0}
.live__thumb{position:relative;width:96px;height:96px;border-radius:var(--r-sm);overflow:hidden;background:var(--mist);display:grid;place-items:center}
.live__thumb b{font-family:var(--serif);font-size:2rem;color:var(--royal)}
.live__thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.live__item a:hover .live__thumb img{transform:scale(1.08)}
.live__meta{display:flex;gap:10px;align-items:center;font-size:.8rem;color:var(--muted);margin-bottom:6px}
.live__src{font-weight:700;color:var(--royal)}
[data-theme="dark"] .live__src{color:var(--gold)}
.live__title{display:block;font-weight:600;font-size:1.05rem;line-height:1.35}
.live__item a:hover .live__title{color:var(--royal)}
.live__item.is-new{animation:tra-slidein .8s var(--ease) both}
@keyframes tra-slidein{from{opacity:0;transform:translateY(-14px)}}
.live__empty{color:var(--muted);padding:20px 0}
.live .link-more{display:inline-block;margin-top:18px;font-weight:600;text-decoration:underline}
@media (max-width:900px){.live__list{grid-template-columns:1fr}}

/* Sitemap */
.sitemap{columns:3 280px;column-gap:40px}
.sitemap>div{break-inside:avoid;margin-bottom:32px}
.sitemap h2{font-size:1.3rem;margin-bottom:12px}
.sitemap ul{list-style:none;padding:0;margin:0;display:grid;gap:8px;font-size:.95rem;color:var(--muted)}
.sitemap ul ul{padding-left:14px;margin-top:8px}
.sitemap a:hover{color:var(--royal)}

/* Comments */
.comments-area,.comment-respond{font-family:var(--sans)}
.comment-list{list-style:none;padding:0;display:grid;gap:18px}
.comment-respond input:not([type=checkbox]):not([type=submit]),.comment-respond textarea{font:inherit;width:100%;background:var(--mist);border:1.5px solid transparent;border-radius:12px;padding:13px 15px}
.comment-respond .submit{padding:14px 24px;border-radius:99px;font-weight:600;background:var(--ink);color:#fff;border:0;cursor:pointer}

/* Footer */
.footer .foot-menu{list-style:none;margin:0;padding:0}
.footer .social{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px}
