/*
Theme Name: Horaa
Theme URI: https://horaa.xyz/
Author: Horaa
Description: Horaa news theme with a shared header, ticker and footer on every page.
Version: 1.5.1
Text Domain: horaa
*/

:root{
  --bg:#F5F6F7; --card:#FFFFFF; --ink:#12181B; --muted:#4B5861; --line:#DDE2E5;
  --accent:#0B6E6E; --dark:#12181B; --on-dark:#E8ECEE;
  --font-body:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --amber:#F2B84B; --deep:#0C2F31;
  --font-head:"Bricolage Grotesque",Inter,system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
a:focus-visible,input:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.wrap{max-width:1280px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}

.sr{position:absolute;left:-9999px}

/* Date and time bar */
.topbar{background:var(--dark);color:var(--on-dark);font-size:13px}
.topbar-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;gap:4px 10px;min-height:38px;padding-top:6px;padding-bottom:6px}
.clock-time{font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.clock-sep{color:#6F7C85}

/* Header */
.site-header{background:var(--card);border-bottom:1px solid var(--line)}
.head-top{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding-top:20px;padding-bottom:10px}
.logo{font-family:var(--font-head);font-weight:700;font-size:38px;letter-spacing:-.03em;line-height:1}
.logo{display:inline-flex;align-items:center;gap:10px}
.logo svg{width:44px;height:44px;flex:none}
.logo-word{display:block;padding-bottom:3px}
.search{display:flex;gap:8px;width:100%;max-width:420px;min-width:0}
.search input{flex:1;min-width:0;height:44px;padding:0 14px;border:1px solid #C5CCD1;border-radius:4px;font:inherit;font-size:16px;background:#fff;color:var(--ink)}
.search button{height:44px;padding:0 18px;border:0;border-radius:4px;background:var(--accent);color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.nav{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0;padding:0;list-style:none}
.nav::-webkit-scrollbar{display:none}
.nav li:first-child{margin-left:auto}
.nav li:last-child{margin-right:auto}
.nav a{display:block;white-space:nowrap;padding:14px 14px;font-size:14px;font-weight:500;border-bottom:3px solid transparent}
.nav a:hover,.nav a[aria-current]{color:var(--accent);border-bottom-color:var(--accent)}

/* Running latest posts */
.ticker{background:var(--accent);color:#fff}
.ticker-in{display:flex;align-items:stretch;min-height:46px}
.ticker-label{display:flex;align-items:center;flex:0 0 auto;padding:0 14px 0 0;margin-right:14px;border-right:1px solid rgba(255,255,255,.4);font-family:var(--font-head);font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase}
.ticker-view{flex:1;min-width:0;overflow:hidden;display:flex;align-items:center}
.ticker-track{display:flex;width:max-content;animation:ticker 80s linear infinite}
.ticker-view:hover .ticker-track,.ticker-view:focus-within .ticker-track{animation-play-state:paused}
.ticker-list{display:flex;flex:0 0 auto;margin:0;padding:0;list-style:none}
.ticker-list li{display:flex;align-items:center;white-space:nowrap;font-size:14px;font-weight:500}
.ticker-list li::after{content:"";width:6px;height:6px;margin:0 22px;background:rgba(255,255,255,.7);border-radius:50%}
.ticker-list a{display:inline-block;padding:12px 0}
.ticker-list a:hover{text-decoration:underline}
.ticker a:focus-visible{outline-color:#fff}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .ticker-view{overflow-x:auto}
  .ticker-track{animation:none}
  .ticker-list[aria-hidden="true"]{display:none}
}

/* Layout */
main{padding-top:28px;padding-bottom:20px;display:flex;flex-direction:column;gap:36px}
.section-head{display:flex;align-items:flex-end;gap:16px;margin-bottom:20px}
.section-head h2{margin:0;padding-bottom:16px;display:flex;align-items:center;gap:10px;font-family:var(--font-head);font-weight:800;font-size:28px;letter-spacing:-.02em}
.section-head h2::before{content:"";flex:none;width:12px;height:12px;border-radius:50%;background:var(--amber);box-shadow:0 0 0 3px var(--ink)}
/* Signature: a soft teal wave that sits at the bottom of the heading */
.section-head .rule{flex:1;height:8px;margin-bottom:2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%230B6E6E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center;background-size:24px 8px}
.section-head .all{padding-bottom:16px;font-size:14px;font-weight:600;color:var(--accent);white-space:nowrap}
.all:hover,.more:hover{text-decoration:underline}
.title a:hover{color:var(--accent);text-decoration:underline}
.more{font-size:13px;font-weight:600;color:var(--accent)}
.more::after{content:"\2192";display:inline-block;margin-left:6px;transition:transform .15s ease}
.more:hover::after{transform:translateX(4px)}
@media (prefers-reduced-motion:reduce){.more::after{transition:none}.more:hover::after{transform:none}}

/* Thumbnails */
.thumb{display:block;background:#E3E8EB;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover}

/* Top stories */
.top{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:32px}
.lead{position:relative;display:flex;flex-direction:column;background:var(--deep);color:#fff;border:2px solid var(--ink);align-self:start}
.lead .body{display:flex;flex-direction:column;gap:16px;padding:24px 28px 28px}
.lead .more{color:var(--amber);font-size:14px}
.lead .title a:hover{color:var(--amber)}
.dial{position:absolute;top:16px;right:16px;width:104px;height:104px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
.dial svg{display:block;width:100%;height:100%}
.lead .thumb{aspect-ratio:16/9}
.lead h1{margin:0;font-family:var(--font-head);font-weight:700;font-size:42px;line-height:1.1;letter-spacing:-.02em;text-wrap:balance}
.lead p{margin:0;font-size:17px;line-height:1.6;color:#C4DADA;max-width:68ch}
.side{border-top:3px solid var(--ink)}
.side article{display:flex;flex-direction:column;gap:8px;padding:18px 0;border-bottom:1px solid var(--line)}
.side h2{margin:0;font-family:var(--font-head);font-weight:600;font-size:21px;line-height:1.25;text-wrap:balance}
.side p{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
.side .thumb{aspect-ratio:16/9;border:2px solid var(--ink)}

/* Card grid */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:28px 24px}
.card{display:flex;flex-direction:column;gap:12px;background:var(--card);border:2px solid var(--ink);padding:16px;min-width:0;transition:transform .15s ease,box-shadow .15s ease}
.card:hover{transform:translate(-3px,-3px);box-shadow:6px 6px 0 var(--accent)}
.card .thumb{aspect-ratio:3/2}
.card h3{margin:0;font-family:var(--font-head);font-weight:600;font-size:19px;line-height:1.25;text-wrap:balance}
.card p{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
.card .more{margin-top:auto}

/* Topics */
/* Photo tiles with a dark teal fade and the topic name at the bottom */
.topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.topics a{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;min-height:160px;padding:14px 16px;color:#fff;background-color:var(--deep);background-size:cover;background-position:center;border:2px solid var(--ink);font-family:var(--font-head);font-weight:700;font-size:20px;transition:transform .15s ease,box-shadow .15s ease,background-size .3s ease}
.topics a::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(12,47,49,.92) 0%,rgba(12,47,49,.35) 55%,rgba(12,47,49,.05) 100%)}
.topics a span{color:var(--amber)}
.topics a:hover{transform:translate(-3px,-3px);box-shadow:6px 6px 0 var(--accent);background-size:112%}
.topics a:nth-child(1){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-01.jpg")}
.topics a:nth-child(2){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-03.jpg")}
.topics a:nth-child(3){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-04.jpg")}
.topics a:nth-child(4){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-05.jpg")}
.topics a:nth-child(5){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-06.jpg")}
.topics a:nth-child(6){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-07.jpg")}
.topics a:nth-child(7){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-08.jpg")}
.topics a:nth-child(8){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-09.jpg")}
.topics a:nth-child(9){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-10.jpg")}
.topics a:nth-child(10){background-image:url("https://horaa.xyz/wp-content/uploads/2021/07/blog-01.jpg")}

/* Topic sections */
.rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.row{display:flex;gap:16px;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:20px;min-width:0}
.row .thumb{flex:0 0 112px;aspect-ratio:1/1;border:2px solid var(--ink)}
.row div{min-width:0;display:flex;flex-direction:column;gap:8px}
.row h3{margin:0;font-family:var(--font-head);font-weight:600;font-size:18px;line-height:1.25;text-wrap:balance}

/* Newsletter */
.newsletter{display:flex;flex-wrap:wrap;align-items:center;gap:24px 48px;background:var(--dark);color:var(--bg);padding:40px}
.newsletter .copy{flex:1 1 320px;min-width:0}
.newsletter h2{margin:0 0 10px;font-family:var(--font-head);font-weight:700;font-size:30px;line-height:1.15;text-wrap:balance}
.newsletter p{margin:0;font-size:15px;line-height:1.6;color:#C3CCD2;max-width:52ch}
.newsletter form{flex:1 1 360px;min-width:0;display:flex;flex-wrap:wrap;gap:8px}
.newsletter input{flex:1 1 200px;min-width:0;height:48px;padding:0 14px;border:1px solid #4B5861;border-radius:4px;font:inherit;font-size:16px;background:#fff;color:var(--ink)}
.newsletter button{height:48px;padding:0 22px;border:0;border-radius:4px;background:#4FB8B8;color:#0A1F20;font:inherit;font-size:14px;font-weight:600;cursor:pointer}

/* Footer */
.site-footer{background:var(--dark);color:var(--on-dark)}
.foot{padding-top:22px;padding-bottom:max(14px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
.foot ul{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin:0;padding:0;list-style:none}
.foot ul a{font-size:14px}
.foot ul a:hover{text-decoration:underline}
.foot .pages{width:100%;padding-top:12px;border-top:1px solid #34404A}
.foot .pages a{font-weight:600;color:var(--amber)}
.social{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.social a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 16px;border:1px solid #4B5861;border-radius:4px;font-size:14px;font-weight:500}
.social a:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.legal{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;width:100%;border-top:1px solid #34404A;padding-top:12px;font-size:13px;color:#B7C0C6}
.legal a{font-weight:600;color:var(--on-dark)}

/* Tablet */
@media (max-width:900px){
  .top{grid-template-columns:minmax(0,1fr)}
  .lead h1{font-size:34px}
}
/* Phone */
@media (max-width:600px){
  main{gap:28px;padding-top:20px;padding-bottom:16px}
  .foot{padding-top:18px}
  .logo{font-size:32px}
  .logo svg{width:38px;height:38px}
  .search{max-width:none}
  .lead h1{font-size:28px}
  .lead p{font-size:16px}
  .lead .body{padding:20px 18px 22px}
  .dial{width:76px;height:76px;top:10px;right:10px}
  .section-head h2{font-size:24px}
  .section-head h2{font-size:22px}
  .section-head{gap:12px}
  .rows{grid-template-columns:minmax(0,1fr)}
  .row .thumb{flex-basis:96px}
  .newsletter{padding:28px 20px}
  .newsletter h2{font-size:25px}
  .newsletter button{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card,.topics a{transition:none}.card:hover,.topics a:hover{transform:none}}

/* Single post page */
.post{display:block;width:100%;max-width:900px;margin:0 auto}
.article{background:var(--card);border:2px solid var(--ink);min-width:0}
.article .hero{aspect-ratio:16/9;border-bottom:2px solid var(--ink)}
.article .inner{padding:28px 32px 32px}
.crumbs{margin:0 0 14px;font-size:13px;color:var(--muted)}
.crumbs a{color:var(--accent);font-weight:600}
.crumbs a:hover{text-decoration:underline}
.tag{display:inline-block;padding:4px 10px;background:var(--amber);color:var(--ink);border:2px solid var(--ink);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.article h1{margin:14px 0 12px;font-family:var(--font-head);font-weight:800;font-size:40px;line-height:1.12;letter-spacing:-.02em;text-wrap:balance}
.meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;padding:0 0 16px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
.entry{font-size:18px;line-height:1.75}
.entry p{margin:18px 0}
.entry h2{margin:30px 0 8px;font-family:var(--font-head);font-weight:700;font-size:26px;line-height:1.2}
.entry blockquote{margin:26px 0;padding:4px 0 4px 18px;border-left:4px solid var(--accent);font-family:var(--font-head);font-weight:600;font-size:22px;line-height:1.35}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:26px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;font-weight:600}
.share a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:40px;padding:0 14px;border:2px solid var(--ink);font-weight:600}
.share a:hover{background:var(--accent);border-color:var(--accent);color:#fff}

@media (max-width:600px){
  .article .inner{padding:20px 16px 24px}
  .article h1{font-size:28px}
  .entry{font-size:17px}
  .entry h2{font-size:22px}
}

/* Post layout: standard blog post (title, meta, featured picture, text) */
.post{max-width:none}
.article{background:transparent;border:0}
.article .inner{padding:4px 0 0}
.article h1{margin:12px 0 10px;max-width:none;text-align:left}
.article .crumbs,.article .tag{text-align:left}
.article .meta{justify-content:flex-start;border-bottom:0;padding:0}
.article .hero{border:0;border-radius:8px;margin:20px 0 6px;aspect-ratio:16/9}
.article .entry{text-align:left}
.article .share{justify-content:flex-start}
@media (max-width:600px){.article .hero{margin:16px 0 4px;border-radius:6px}}

/* Full-width pages: content spans the whole container, footer stays at the bottom */
#top{min-height:100vh;display:flex;flex-direction:column}
#top > main{flex:1 0 auto;width:100%}
.post{max-width:none}
.article{width:100%}

/* News-release style post: labels, headline, byline, share row, captioned picture, text, end mark, contacts, details, related terms */
.article .label-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.article .tag-line{background:transparent}
.article .byline{display:flex;align-items:center;gap:12px;margin:14px 0 6px}
.article .avatar{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;overflow:hidden;background:var(--accent);color:#fff;font-family:var(--font-head);font-weight:700}
.article .avatar img{width:100%;height:100%;object-fit:cover}
.article .byline strong{display:block;font-size:15px}
.article .byline small{display:block;font-size:13px;color:var(--muted)}
.article .share{margin:12px 0 0;padding-top:0;border-top:0}
.article .share.share-end{margin-top:26px;padding-top:16px;border-top:1px solid var(--line)}
.article .feature{margin:20px 0 6px}
.article .feature .hero{margin:0}
.article .feature figcaption{margin-top:8px;font-size:14px;line-height:1.5;color:var(--muted)}
.article .endmark{margin:26px 0 18px;text-align:center;font-weight:700;letter-spacing:.08em}
.article .contacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.article .contacts div{padding-top:10px;border-top:2px solid var(--ink);font-size:15px;line-height:1.55}
.article .contacts strong{display:block;margin-bottom:4px;font-family:var(--font-head)}
.article .details{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:26px 0 0;padding:14px 16px;border:2px solid var(--ink);background:var(--card);font-size:15px}
.article .details dt{font-weight:700}
.article .details dd{margin:0}
.article .terms-title{margin:26px 0 10px;font-family:var(--font-head);font-weight:800;font-size:22px}
.article .terms{display:flex;flex-wrap:wrap;gap:8px}
.article .terms a{padding:6px 12px;border:2px solid var(--ink);background:var(--card);font-size:14px;font-weight:600}
.article .terms a:hover{background:var(--accent);border-color:var(--accent);color:#fff}

/* Match-report style post: breadcrumb, headline, published date, picture, standfirst, bold run-in subheadings */
.article .published{margin:8px 0 0;font-size:14px;font-weight:600;color:var(--muted)}
.article .feature{margin:18px 0 8px}
.article .standfirst{font-size:20px;font-weight:600;line-height:1.55}
.article .entry strong{font-family:var(--font-head);font-weight:700}
.article .entry p{margin:16px 0}

/* Post page side padding: change --post-side to adjust (page edge 20px + this value) */
.post{--post-side:8px;padding-left:var(--post-side);padding-right:var(--post-side)}

/* Post page with left and right sidebars: stacked on phones, three columns on wide screens */
.post.has-sidebars{display:flex;flex-direction:column;gap:28px;padding-left:0;padding-right:0}
.side-box{min-width:0}
.side-title{margin:0 0 6px;padding-top:10px;border-top:3px solid var(--ink);font-family:var(--font-head);font-weight:800;font-size:22px}
.side-box .cat-list{margin:0;padding:0;list-style:none}
.side-box .cat-list a{display:block;padding:10px 0;border-bottom:1px solid var(--line);font-weight:600}
.side-box .cat-list a:hover{color:var(--accent)}
.side-box .cat-list .children{margin:0;padding-left:14px;list-style:none}
.side-box article{display:flex;flex-direction:column;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}
.side-box article h3{margin:0;font-family:var(--font-head);font-weight:600;font-size:18px;line-height:1.25}
.side-box .thumb{aspect-ratio:16/9;border:2px solid var(--ink)}
@media (min-width:1200px){
  .wrap.wrap-post{max-width:1280px}
  .post.has-sidebars{display:grid;grid-template-columns:240px minmax(0,1fr) 300px;gap:28px;align-items:start}
  .post.has-sidebars .side-left{grid-column:1;grid-row:1}
  .post.has-sidebars .article{grid-column:2;grid-row:1}
  .post.has-sidebars .side-right{grid-column:3;grid-row:1}
}

/* Black footer bar with white text and a round black Scroll to Top button */
.site-footer{background:#000;color:#fff}
.foot ul a,.foot .pages a{color:#fff}
.legal{border-top-color:#333;color:#fff}
.legal a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 24px;border:2px solid #fff;border-radius:999px;background:#000;color:#fff;font-weight:600}
.legal a::before{content:"\2191"}
.legal a:hover{background:#fff;color:#000;text-decoration:none}

/* Black scrolling-news bar and footer, white text */
.ticker{background:#000;color:#fff}
.ticker-list li::after{background:rgba(255,255,255,.8)}
.ticker-label{border-right-color:rgba(255,255,255,.5)}
.site-footer{background:#000;color:#fff}
.site-footer a,.foot ul a,.foot .pages a,.legal a{color:#fff}
.legal{color:#fff;border-top-color:#333}
.foot .pages{border-top-color:#333}
.social a{border-color:#fff;color:#fff}
.social a:hover{background:#fff;border-color:#fff;color:#000}

/* Pages with their own design: keep their content inside the page and the footer below it */
.page-entry{display:flow-root;max-width:100%;overflow-x:auto}
.page-entry img,.page-entry iframe,.page-entry table{max-width:100%}
.site-footer{display:block!important;clear:both;position:relative}

/* footer-always: nothing inside a page can hide the footer */
.site-footer{display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;max-height:none!important}

/* Blue links in article and page text */
.article .entry a,.article .entry a:visited{color:#1d4ed8!important;text-decoration:underline;text-underline-offset:2px}
.article .entry a:hover,.article .entry a:focus{color:#1e3a8a!important;text-decoration-thickness:2px}
