/* Avante Travels blog.
   Colours, fonts, the header, footer and buttons come from the main website (see header.php).
   This file adds only what the blog needs: the listing cards and the article's typography. */

/* a logged-in editor sees the WordPress toolbar; the fixed site header sits below it */
.admin-bar header{top:32px}
@media(max-width:782px){ .admin-bar header{top:46px} }
.screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ============ the listing ============ */
.bl-hero{background:var(--pale);padding-bottom:clamp(44px,4.6vw,76px)}
.bl-hero .pg-wrap,.bl-list .pg-wrap,.bl-more-sec .pg-wrap,.bl-post .pg-wrap{max-width:1320px}
.bl-hero-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px clamp(32px,6vw,110px);align-items:end}
.bl-hero h1{font-size:clamp(34px,3.6vw,56px)}
.bl-hero .pg-lead{margin:0;justify-self:end}
.bl-list{padding:clamp(48px,5vw,84px) 0 clamp(72px,7vw,120px);background:#fff}

.bl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(28px,3vw,44px) clamp(20px,2.2vw,32px)}
.bl-card{min-width:0}
.bl-card-a{display:flex;flex-direction:column;height:100%;color:inherit}
.bl-card-pic{display:block;aspect-ratio:16/10;overflow:hidden;border-radius:14px;background:var(--pale)}
.bl-card-pic img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.22,1,.36,1)}
.bl-card-a:hover .bl-card-pic img,.bl-card-a:focus-visible .bl-card-pic img{transform:scale(1.04)}
/* no featured image: the brand mark on navy */
.bl-card-pic.is-empty{display:grid;place-items:center;background:var(--navy)}
.bl-card-pic.is-empty img{width:54px;height:auto;object-fit:contain;opacity:.9}
.bl-card-a:hover .bl-card-pic.is-empty img{transform:none}
.bl-card-b{display:flex;flex-direction:column;flex:1 1 auto;padding-top:clamp(16px,1.6vw,22px)}
.bl-cat{display:block;margin:0;font-family:var(--disp);font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--orange)}
.bl-card-t{margin:10px 0 0;font-family:var(--disp);font-weight:600;font-size:clamp(19px,1.55vw,23px);line-height:1.22;letter-spacing:-.02em;color:var(--navy);text-wrap:balance;transition:color .2s ease}
.bl-cat + .bl-card-t{margin-top:8px}
.bl-card-b > .bl-card-t:first-child{margin-top:0}
.bl-card-x{display:block;margin-top:10px;font-size:15px;font-weight:300;line-height:1.62;color:var(--mid)}
.bl-card-m{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:auto;padding-top:clamp(14px,1.4vw,18px);font-size:13.5px;color:var(--grey)}
.bl-card-x + .bl-card-m{border-top:0}
.bl-more{display:inline-flex;align-items:center;gap:8px;font-family:var(--disp);font-weight:600;font-size:14px;color:var(--navy)}
.bl-more i{font-style:normal;color:var(--orange);transition:transform .3s cubic-bezier(.22,1,.36,1)}
.bl-card-a:hover .bl-more i,.bl-card-a:focus-visible .bl-more i{transform:translateX(4px)}
.bl-card-a:focus-visible{outline:2px solid var(--orange);outline-offset:6px;border-radius:14px}

/* pagination */
.bl-pages{margin-top:clamp(40px,4.4vw,68px)}
.bl-pages .nav-links{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}
.bl-pages .page-numbers{display:grid;place-items:center;min-width:44px;height:44px;padding:0 12px;border-radius:999px;border:1px solid var(--rl);
  font-family:var(--disp);font-weight:600;font-size:14.5px;color:var(--navy);transition:border-color .2s ease}
.bl-pages a.page-numbers:hover,.bl-pages a.page-numbers:focus-visible{border-color:var(--navy)}
.bl-pages .page-numbers.current{background:var(--navy);border-color:var(--navy);color:#fff}
.bl-pages .page-numbers.dots{border-color:transparent;min-width:24px;padding:0}

.bl-empty{max-width:52ch;padding:clamp(8px,2vw,24px) 0}
.bl-empty h2{font-family:var(--disp);font-weight:500;font-size:clamp(24px,2.2vw,32px);letter-spacing:-.025em;color:var(--navy)}
.bl-empty p{margin-top:12px;font-size:16px;font-weight:300;line-height:1.7;color:var(--mid)}
.bl-empty .btn{margin-top:24px}

/* ============ one article ============ */
.bl-post{background:#fff;padding-bottom:clamp(64px,6.4vw,112px)}
.bl-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:clamp(16px,1.6vw,22px) 0 0;font-size:14.5px;color:var(--grey)}
.bl-meta i{font-style:normal;color:#A9B6BE}

/* what the editor produces */
.bl-body{font-size:clamp(16px,1.15vw,17.5px);font-weight:300;line-height:1.8;color:var(--mid)}
.bl-body > *{margin:0}
.bl-body > * + *{margin-top:1.15em}
.bl-body h2,.bl-body h3,.bl-body h4{font-family:var(--disp);color:var(--navy);text-wrap:balance}
.bl-body h2{margin-top:1.9em;font-weight:600;font-size:clamp(23px,2vw,30px);line-height:1.18;letter-spacing:-.025em}
.bl-body h3{margin-top:1.7em;font-weight:600;font-size:clamp(19px,1.5vw,23px);line-height:1.25;letter-spacing:-.018em}
.bl-body h4{margin-top:1.5em;font-weight:600;font-size:clamp(17px,1.25vw,19px);line-height:1.3}
.bl-body h2 + *,.bl-body h3 + *,.bl-body h4 + *{margin-top:.7em}
.bl-body > :first-child{margin-top:0}
.bl-body strong,.bl-body b{font-weight:500;color:var(--navy)}
.bl-body a{color:var(--navy);font-weight:500;text-decoration:none;border-bottom:1px solid rgba(255,110,66,.6);transition:color .2s ease,border-color .2s ease}
.bl-body a:hover,.bl-body a:focus-visible{color:var(--orange);border-bottom-color:var(--orange)}
.bl-body ul,.bl-body ol{padding:0;list-style:none}
.bl-body li{position:relative;padding-left:26px}
.bl-body li + li{margin-top:.5em}
.bl-body li > ul,.bl-body li > ol{margin-top:.5em}
.bl-body ul > li::before{content:"";position:absolute;left:4px;top:.78em;width:6px;height:6px;border-radius:50%;background:var(--orange)}
.bl-body ol{counter-reset:bl}
.bl-body ol > li{counter-increment:bl;padding-left:32px}
.bl-body ol > li::before{content:counter(bl) ".";position:absolute;left:0;top:0;font-family:var(--disp);font-weight:600;color:var(--orange)}
.bl-body blockquote{margin-left:0;margin-right:0;padding:clamp(18px,2vw,26px) clamp(20px,2.4vw,32px);border-left:3px solid var(--orange);border-radius:0 12px 12px 0;background:var(--pale);
  font-family:var(--disp);font-weight:500;font-size:clamp(18px,1.45vw,22px);line-height:1.42;letter-spacing:-.015em;color:var(--navy)}
.bl-body blockquote p{margin:0}
.bl-body blockquote p + p{margin-top:.7em}
.bl-body blockquote cite{display:block;margin-top:12px;font-family:var(--body);font-size:14px;font-weight:400;font-style:normal;letter-spacing:0;color:var(--grey)}
.bl-body img{max-width:100%;height:auto;border-radius:12px}
.bl-body figure{margin-left:0;margin-right:0}
.bl-body figure + *,.bl-body * + figure{margin-top:1.7em}
.bl-body figcaption,.bl-body .wp-caption-text{margin-top:10px;font-size:13.5px;font-weight:400;line-height:1.5;color:var(--grey);text-align:center}
.bl-body .wp-caption{max-width:100%}
.bl-body .aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}
.bl-body .alignleft{float:left;margin:.3em 1.6em 1em 0;max-width:50%}
.bl-body .alignright{float:right;margin:.3em 0 1em 1.6em;max-width:50%}
.bl-body::after{content:"";display:table;clear:both}
.bl-body hr{height:1px;border:0;background:var(--rl);margin-top:2.2em;margin-bottom:2.2em}
/* tables scroll sideways inside their own box on a narrow screen */
.bl-body .wp-block-table,.bl-body .bl-table{overflow-x:auto}
.bl-body table{width:100%;border-collapse:collapse;font-size:.95em}
.bl-body th,.bl-body td{padding:12px 14px;border:0;border-bottom:1px solid var(--rl);text-align:left;vertical-align:top}
.bl-body thead th,.bl-body tr:first-child th{font-family:var(--disp);font-weight:600;color:var(--navy);border-bottom:2px solid var(--navy)}
.bl-body iframe,.bl-body video{max-width:100%}
.bl-body .wp-block-embed__wrapper{position:relative}
.bl-body pre,.bl-body code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.9em}
.bl-body pre{padding:16px 18px;border-radius:12px;background:var(--pale);overflow-x:auto}
/* a button block in an article looks like the site's own orange button */
.bl-body .wp-block-button__link{display:inline-flex;align-items:center;padding:14px 26px;border:0;border-radius:999px;background:var(--orange);
  font-family:var(--disp);font-weight:600;font-size:14.5px;letter-spacing:.02em;color:#fff}
.bl-body .wp-block-button__link:hover{color:#fff;border:0}
.bl-parts{font-size:14.5px;color:var(--grey)}

/* the call to action under every article */
.bl-cta{display:flex;align-items:center;justify-content:space-between;gap:20px clamp(24px,3vw,48px);flex-wrap:wrap;margin-top:clamp(40px,4.4vw,64px);
  padding:clamp(24px,2.6vw,36px) clamp(22px,2.8vw,40px);border-radius:18px;color:#fff;
  background:radial-gradient(120% 90% at 0% 100%,rgba(255,110,66,.34),transparent 62%),var(--navy)}
.bl-cta > div{flex:1 1 320px;min-width:0}
.bl-cta h2{font-family:var(--disp);font-weight:500;font-size:clamp(21px,1.8vw,26px);letter-spacing:-.02em;line-height:1.2;color:#fff}
.bl-cta p{margin-top:8px;max-width:48ch;font-size:15px;font-weight:300;line-height:1.6;color:rgba(255,255,255,.8)}
.bl-cta .btn{flex:none}

/* more guides */
.bl-more-sec{padding:clamp(56px,5.6vw,96px) 0 clamp(72px,7vw,120px);background:var(--pale)}
.bl-more-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:clamp(26px,2.8vw,40px)}
.bl-more-head h2{font-family:var(--disp);font-weight:500;font-size:clamp(26px,2.5vw,36px);letter-spacing:-.028em;color:var(--navy)}
.bl-more-head .pg-link i{font-style:normal;color:var(--orange)}

@media(max-width:1000px){
  .bl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bl-hero-head{grid-template-columns:minmax(0,1fr)}
  .bl-hero .pg-lead{justify-self:start}
}
@media(max-width:620px){
  .bl-grid{grid-template-columns:minmax(0,1fr)}
  .bl-body .alignleft,.bl-body .alignright{float:none;max-width:100%;margin:1.4em 0 0}
  .bl-cta .btn{width:100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){ .bl-card-pic img,.bl-more i{transition:none} .bl-card-a:hover .bl-card-pic img{transform:none} }


/* ============================================================================
   Version 1.1: two-column article, and a featured card on the listing.
   The article: a split heading (title | picture), then the text beside a sidebar that stays in view
   (the article's sections, and a quote card). One column on tablets and phones.
   ============================================================================ */

/* ---- the split heading ---- */
.bl-top{background:var(--pale);padding:clamp(118px,8.6vw,150px) 0 clamp(36px,4vw,60px)}
.bl-top .pg-crumb{margin-bottom:clamp(20px,2vw,30px)}
.bl-top .pg-crumb{flex-wrap:wrap;row-gap:4px}
.bl-top .pg-crumb span[aria-current]{white-space:normal;overflow:visible;text-overflow:clip;max-width:none;min-width:0}
.bl-top-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(28px,4vw,72px);align-items:center}
.bl-top.is-plain .bl-top-grid{grid-template-columns:minmax(0,1fr)}
.bl-top.is-plain .bl-top-text{max-width:860px}
.bl-top .bl-cat{margin-bottom:12px}
.bl-top h1{margin:0;font-family:var(--disp);font-weight:500;font-size:clamp(30px,3vw,46px);line-height:1.1;letter-spacing:-.032em;color:var(--navy);text-wrap:balance}
.bl-standfirst{margin:clamp(14px,1.4vw,18px) 0 0;max-width:54ch;font-size:clamp(16px,1.2vw,18px);font-weight:300;line-height:1.62;color:var(--mid)}
.bl-top-pic{position:relative;margin:0;aspect-ratio:4/3;border-radius:18px;overflow:hidden;background:#fff;border:1px solid var(--rl);box-shadow:0 26px 50px -36px rgba(10,38,52,.5)}
.bl-top-pic img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}

/* ---- the two columns ---- */
.bl-cols{display:grid;grid-template-columns:minmax(0,780px) clamp(280px,25vw,340px);justify-content:space-between;gap:clamp(36px,5vw,84px);align-items:start;padding-top:clamp(36px,4vw,60px)}
.bl-main{grid-column:1;grid-row:1;min-width:0}
.bl-side{grid-column:2;grid-row:1;min-width:0;position:sticky;top:112px;max-height:calc(100vh - 128px);overflow-x:hidden;overflow-y:auto;scrollbar-width:none}
.bl-side::-webkit-scrollbar{display:none}
.bl-side-in{display:grid;gap:28px}
.bl-body h2{scroll-margin-top:120px}

/* the article's sections */
.bl-toc{padding:20px 22px;border:1px solid var(--rl);border-radius:16px;background:#fff}
.bl-side-h{margin:0 0 10px;font-family:var(--disp);font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--grey)}
.bl-toc ol{list-style:none;margin:0 -10px;padding:0;counter-reset:blt;display:grid;gap:2px}
.bl-toc li{counter-increment:blt}
.bl-toc a{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;margin:0;padding:8px 10px;border-radius:10px;font-size:14.5px;line-height:1.4;color:var(--mid);transition:background .2s ease,color .2s ease}
.bl-toc a::before{content:counter(blt,decimal-leading-zero);padding-top:2px;font-family:var(--disp);font-size:12px;font-weight:600;color:#A9B6BE;transition:color .2s ease}
.bl-toc a:hover,.bl-toc a:focus-visible{background:var(--pale);color:var(--navy)}
.bl-toc a.is-on{background:var(--pale);color:var(--navy);font-weight:500}
.bl-toc a.is-on::before{color:var(--orange)}

/* the quote card */
.bl-quote{padding:clamp(22px,2vw,26px);border-radius:18px;color:#fff;background:radial-gradient(120% 80% at 0% 100%,rgba(255,110,66,.34),transparent 62%),var(--navy)}
.bl-quote-k{margin:0;font-family:var(--disp);font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--orange)}
.bl-quote h2{margin:8px 0 0;font-family:var(--disp);font-weight:500;font-size:clamp(20px,1.6vw,23px);line-height:1.2;letter-spacing:-.02em;color:#fff}
.bl-quote p{margin:8px 0 0;font-size:14.5px;font-weight:300;line-height:1.58;color:rgba(255,255,255,.8)}
.bl-quote .btn{width:100%;justify-content:center;margin-top:18px;min-height:48px}
.bl-quote-tel{display:block;margin-top:12px;text-align:center;font-size:14px;color:rgba(255,255,255,.74)}
.bl-quote-tel b{font-family:var(--disp);font-weight:600;letter-spacing:.01em;color:#fff}
.bl-quote-tel:hover b,.bl-quote-tel:focus-visible b{color:var(--orange)}
/* on a navy card the site's orange button must not turn navy on hover */
.bl-quote .btn-o:hover,.bl-cta .btn-o:hover{background:#fff;color:var(--navy)}
.bl-quote .btn-o:hover i,.bl-cta .btn-o:hover i{background:var(--orange);color:#fff}

/* the same invitation under the article: shown where there is no sidebar card */
.bl-main .bl-cta{display:none}


@media(max-width:1000px){
  .bl-top-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .bl-top-pic{aspect-ratio:16/10}
  .bl-cols{display:flex;flex-direction:column;align-items:stretch;gap:28px}
  .bl-main{width:100%}
  .bl-side{position:static;width:100%;max-height:none;overflow:visible}
  .bl-quote{display:none}
  .bl-main .bl-cta{display:flex}
}
@media(prefers-reduced-motion:reduce){ .bl-toc a{transition:none} }
/* the website sizes every image by its own proportions; this one must fill its frame instead */
html body .bl-top .bl-top-pic img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
/* a table with many columns keeps readable columns and scrolls sideways inside its own box */
.bl-body .bl-table{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.bl-body .wp-block-table{overflow:visible}
.bl-body .bl-table table{width:100%;min-width:max-content}
.bl-body .bl-table th,.bl-body .bl-table td{min-width:120px;max-width:300px}
