/* =====================================================================
   Louling theme: WordPress additions (accessibility, mobile menu, blog)
   Loaded after main.css on every page.
   ===================================================================== */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip{position:absolute;left:16px;top:-60px;z-index:100;background:var(--navy);color:#fff;padding:10px 16px;border-radius:10px;font-weight:600}
.skip:focus{top:16px}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
img.photo{object-fit:cover;border-style:solid}

/* Mobile menu: the header links drop down as a panel */
@media (max-width:980px){
  .links li,.cols li{list-style:none}
  .nav.open{background:rgba(255,255,255,.96)!important;color:var(--navy)!important;border-radius:26px;flex-wrap:wrap;backdrop-filter:blur(16px)}
  .nav.open .brand .logo .l-dark{opacity:1!important}
  .nav.open .brand .logo .l-light{opacity:0!important}
  .nav.open .links{display:flex;flex-direction:column;gap:4px;order:3;width:100%;padding:8px 6px 10px;font-size:18px}
  .nav.open .links a{padding:10px 8px;border-radius:12px}
  .nav.open .links a:hover{background:var(--gold-soft)}
  .nav.open .links a::after{display:none}
  .nav.open .menu-btn{transform:rotate(90deg);background:var(--gold-soft)}
}

/* Pages that aren't the homepage */
body:not(.home){background:var(--ivory);color:var(--navy)}
.blog-main{padding-top:120px}
.wrap{max-width:1240px;margin:0 auto;padding:0 clamp(16px,4vw,40px)}
.wrap.narrow{max-width:780px}

.page-hero{max-width:1240px;margin:0 auto;padding:30px clamp(16px,4vw,40px) 40px;text-align:center}
.page-hero h1{font-size:clamp(38px,5.6vw,76px);line-height:1.04;letter-spacing:-.04em;font-weight:600;max-width:18ch;margin:14px auto 0}
.page-hero .intro{max-width:56ch;margin:18px auto 0;font-size:clamp(17px,1.5vw,20px);line-height:1.5;color:var(--muted)}
.crumbs,.rank-math-breadcrumb,#breadcrumbs{font-size:14px;color:var(--muted);display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.crumbs a:hover,.rank-math-breadcrumb a:hover,#breadcrumbs a:hover{color:var(--gold-dark)}
.blog-tools{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;margin-top:40px}
.blog-tools.center{justify-content:center;margin-bottom:24px}
.cat-filter{display:flex;flex-wrap:wrap;gap:8px}
.cat-filter a{padding:9px 16px;border-radius:999px;background:#fff;font-weight:600;font-size:15px;box-shadow:inset 0 0 0 1px rgba(12,36,72,.1);transition:background .3s,color .3s}
.cat-filter a:hover{background:var(--gold-soft)}
.cat-filter a.on{background:var(--navy);color:#fff}
.search-form{display:flex;align-items:center;gap:8px;background:#fff;border-radius:999px;padding:4px 6px 4px 16px;box-shadow:inset 0 0 0 1px rgba(12,36,72,.12);min-width:min(320px,100%);color:var(--muted)}
.search-form input[type=search]{border:0;outline:0;background:none;font:500 16px Figtree,sans-serif;padding:10px 6px;flex:1;color:var(--navy);min-width:0}

/* Article cards */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:10px}
.post-card{background:#fff;color:var(--navy);border-radius:22px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 0 rgba(12,36,72,.06);transition:transform .5s var(--ease),box-shadow .5s var(--ease),opacity 1s var(--ease)}
.post-card:hover{transform:translateY(-6px);box-shadow:0 26px 50px -24px rgba(12,36,72,.35)}
.post-card .thumb{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--navy)}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.post-card:hover .thumb img{transform:scale(1.05)}
.thumb-ph{display:grid;place-items:center;height:100%;background:radial-gradient(circle at 30% 20%,var(--navy-2),var(--navy) 70%)}
.post-card .thumb-ph img{width:34%;height:auto;object-fit:contain}
.card-body{padding:22px 22px 24px;display:flex;flex-direction:column;gap:10px;flex:1}
.card-body h3{font-size:21px;line-height:1.2;letter-spacing:-.015em;font-weight:700}
.card-body h3 a:hover{color:var(--gold-dark)}
.card-body p{color:var(--muted);line-height:1.5}
.post-card .meta,.article-head .meta{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted);margin-top:auto}
.chip-cat{align-self:flex-start;background:var(--gold-soft);color:var(--navy);font-size:13px;font-weight:700;padding:5px 12px;border-radius:999px}
.chip-cat:hover{background:var(--gold)}

.pagination{margin:44px 0 10px}
.pagination .nav-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.pagination .page-numbers{min-width:44px;height:44px;padding:0 14px;border-radius:999px;display:grid;place-items:center;background:#fff;font-weight:600;box-shadow:inset 0 0 0 1px rgba(12,36,72,.1)}
.pagination .page-numbers.current{background:var(--navy);color:#fff}
.pagination a.page-numbers:hover{background:var(--gold-soft)}
.empty{text-align:center;padding:60px 16px}
.empty h2{font-size:32px;margin-bottom:10px}
.empty p{color:var(--muted);margin-bottom:24px}

/* Homepage "Latest articles" */
.latest{max-width:1300px;margin:0 auto;padding:120px clamp(16px,4vw,48px) 20px}
.latest-head{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:30px}
.latest-head h2{font-size:clamp(34px,4.6vw,64px);line-height:1.05;letter-spacing:-.035em;font-weight:600}

/* Single article */
.article-head{max-width:860px;margin:0 auto;padding:30px clamp(16px,4vw,40px) 0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}
.article-head .chip-cat{align-self:center}
.article-head h1{font-size:clamp(36px,5vw,64px);line-height:1.06;letter-spacing:-.035em;font-weight:600}
.standfirst{font-size:clamp(18px,1.6vw,22px);line-height:1.5;color:var(--muted);max-width:52ch}
.article-head .meta{justify-content:center;margin-top:4px}
.article-cover{max-width:1200px;margin:40px auto 0;padding:0 clamp(16px,4vw,40px)}
.article-cover img{width:100%;height:auto;border-radius:var(--radius);aspect-ratio:16/9;object-fit:cover}
.article-body{max-width:720px;margin:0 auto;padding:44px clamp(16px,4vw,40px) 10px;font-size:19px;line-height:1.75;color:#24314F}
.article-body > * + *{margin-top:1.15em}
.article-body h2{font-size:clamp(26px,2.6vw,34px);line-height:1.2;letter-spacing:-.02em;color:var(--navy);margin-top:1.9em;font-weight:700}
.article-body h3{font-size:clamp(21px,2vw,25px);line-height:1.25;color:var(--navy);margin-top:1.6em;font-weight:700}
.article-body a{color:var(--navy);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:3px}
.article-body a:hover{background:var(--gold-soft)}
.article-body ul,.article-body ol{padding-left:1.3em}
.article-body li + li{margin-top:.4em}
.article-body ul li::marker{color:var(--gold)}
.article-body blockquote{border-left:4px solid var(--gold);padding:6px 0 6px 22px;font-size:1.1em;color:var(--navy);font-weight:500}
.article-body img{max-width:100%;height:auto;border-radius:16px}
.article-body figure{margin-left:0;margin-right:0}
.article-body figcaption{font-size:14px;color:var(--muted);text-align:center;margin-top:8px}
.article-body .alignwide{max-width:1000px;margin-left:50%;transform:translateX(-50%);width:calc(100vw - 32px)}
.article-body .alignfull{width:100vw;max-width:none;margin-left:50%;transform:translateX(-50%)}
.article-body table{width:100%;border-collapse:collapse;font-size:16px}
.article-body th,.article-body td{border-bottom:1px solid #E6E1D6;padding:10px;text-align:left}
.article-body code{background:var(--gold-soft);padding:2px 6px;border-radius:6px;font-size:.9em}
.article-body pre{background:var(--navy);color:#fff;padding:20px;border-radius:14px;overflow:auto;font-size:15px}
.article-body hr{border:0;height:1px;background:#E6E1D6;margin:2.4em 0}
.article-foot{max-width:720px;margin:0 auto;padding:20px clamp(16px,4vw,40px) 40px}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.tags a{padding:7px 14px;border-radius:999px;background:#fff;font-size:14px;font-weight:600;box-shadow:inset 0 0 0 1px rgba(12,36,72,.1)}
.author-box{display:flex;gap:18px;align-items:center;background:#fff;border-radius:22px;padding:22px}
.author-box img{border-radius:50%;flex-shrink:0}
.author-box p{color:var(--muted);margin-top:4px;line-height:1.5}
.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}
.post-nav a{display:flex;flex-direction:column;gap:4px;background:#fff;border-radius:18px;padding:18px;font-weight:700;height:100%;transition:background .3s}
.post-nav a:hover{background:var(--gold-soft)}
.post-nav small{font-weight:600;color:var(--muted);font-size:13px}
.post-nav .next{text-align:right;grid-column:2}
.related{margin-top:40px}
.related h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.03em;margin-bottom:10px}

/* Comments */
.comments{margin-top:50px}
.comments h2,.comment-reply-title{font-size:26px;margin-bottom:16px}
.comment-list{list-style:none;display:flex;flex-direction:column;gap:14px}
.comment-list .children{list-style:none;margin:14px 0 0 30px}
.comment-body{background:#fff;border-radius:18px;padding:18px}
.comment-meta{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--muted);margin-bottom:8px}
.comment-meta img{border-radius:50%}
.comment-form{display:grid;gap:12px}
.comment-form label{font-weight:600;display:block;margin-bottom:4px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;border:1px solid #DDD6C6;border-radius:12px;padding:12px;font:16px Figtree,sans-serif;background:#fff}
.comment-form .submit{background:var(--navy);color:#fff;border:0;border-radius:999px;padding:12px 24px;font:600 15px Figtree,sans-serif;cursor:pointer}

/* Call-to-action band on blog pages */
.cta-band{max-width:1240px;margin:70px auto 0;padding:clamp(28px,4vw,54px);border-radius:var(--radius);
  background:linear-gradient(135deg,var(--gold-2),var(--gold) 55%,var(--gold-dark));color:var(--navy);
  display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:center;width:calc(100% - 32px)}
.cta-band h2{font-size:clamp(30px,3.6vw,48px);letter-spacing:-.035em;line-height:1.05}
.cta-band p{max-width:46ch;margin-top:10px;line-height:1.5}
.cta-band .cta-btns{margin-top:0}

/* 404 */
.notfound{padding-top:60px;padding-bottom:80px}
.big404{font-size:clamp(90px,16vw,200px);font-weight:800;letter-spacing:-.06em;line-height:1;background:linear-gradient(100deg,var(--gold-dark),var(--gold-2) 45%,var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}

/* Footer on pages other than the homepage */
.site-footer{background:var(--gold);padding:24px 16px;margin-top:70px}

@media (max-width:980px){
  .links li,.cols li{list-style:none} .post-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){
  .post-grid{grid-template-columns:1fr}
  .blog-tools{justify-content:center}
  .post-nav{grid-template-columns:1fr}
  .post-nav .next{grid-column:auto}
  .article-body{font-size:18px}
}

/* Keep the header below the WordPress toolbar when logged in */
.admin-bar .nav{top:48px}
@media (max-width:782px){ .admin-bar .nav{top:62px} }
