/* makini-wp.css: pieces added for the WordPress theme (blog list, blog posts, legal pages).
   Loaded after the other stylesheets on every page; uses the same tokens as makini-v3-10.css. */

/* ---------- blog post: article text ---------- */
.post-body { max-width: none; color: var(--body); font-size: 1.0625rem; line-height: 1.75; }
.post-body > * + * { margin-top: 1.05rem; }
.post-body h2 { margin-top: 2.4rem; font-family: var(--head); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); line-height: 1.2; color: var(--ink); scroll-margin-top: 150px; }
.post-body h3 { margin-top: 1.8rem; font-family: var(--head); font-weight: 500; font-size: 1.3rem; color: var(--ink); scroll-margin-top: 150px; }
.post-body h2 + p, .post-body h3 + p { margin-top: .6rem; }
.post-body ul, .post-body ol { padding-left: 1.25rem; display: grid; gap: .45rem; }
.post-body li::marker { color: var(--orange); }
.post-body a { color: var(--umber); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { margin: 1.6rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--orange); background: var(--sand); border-radius: 0 var(--r) var(--r) 0; font-family: var(--head); font-size: 1.2rem; color: var(--ink); }
.post-body img { border-radius: var(--r); height: auto; }
.post-body > p:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--ink); }
.post-body > p:first-child::first-letter { float: left; margin: .35rem .55rem 0 0; font-family: var(--head); font-size: 3.6rem; line-height: .8; color: var(--orange); }

/* author / help strip under the article */
.post-by { display: flex; gap: 1rem; align-items: center; margin-top: 2.2rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.post-by__av { flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; }
.post-by__av img { width: 100%; height: 100%; object-fit: cover; }
.post-by b { display: block; color: var(--ink); font-size: 1rem; }
.post-by p { margin: .15rem 0 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.post-by .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) { .post-by { flex-wrap: wrap; } .post-by .btn { margin-left: 0; } }

/* "In this guide" list in the sidebar */
.ptoc { padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.ptoc__t { margin: 0 0 .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); }
.ptoc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: .15rem; }
.ptoc li { counter-increment: t; }
.ptoc a { display: grid; grid-template-columns: 1.7rem 1fr; gap: .2rem; padding: .4rem .3rem; border-radius: 4px; color: var(--body); font-size: .92rem; line-height: 1.4; text-decoration: none; }
.ptoc a::before { content: counter(t, decimal-leading-zero); color: var(--orange); font-weight: 600; font-size: .8rem; padding-top: .1rem; }
.ptoc a:hover, .ptoc a[aria-current="true"] { background: var(--sand); color: var(--ink); }

/* ---------- blog list ---------- */
.bfeat { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; }
@media (min-width: 900px) { .bfeat { grid-template-columns: 1.15fr 1fr; } }
.bfeat__ph { position: relative; min-height: 280px; }
.bfeat__ph picture, .bfeat__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bfeat:hover .bfeat__ph img { transform: scale(1.04); }
.bfeat__b { display: flex; flex-direction: column; justify-content: center; gap: .7rem; padding: clamp(1.4rem, 3vw, 2.6rem); }
.bfeat__b h3 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; color: var(--ink); }
.bfeat__b p { margin: 0; color: var(--body); line-height: 1.65; }

.bgrid { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); margin-top: 2rem; padding: 0; list-style: none; }
@media (min-width: 640px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bcard { display: flex; flex-direction: column; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.bcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.bcard__ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.bcard__ph picture, .bcard__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bcard:hover .bcard__ph img { transform: scale(1.05); }
.bcard__cat { position: absolute; top: .8rem; left: .8rem; padding: .3rem .6rem; border-radius: var(--pill); background: var(--white); color: var(--orange-ink); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.bcard__b { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.bcard__b h3 { margin: 0; font-size: 1.28rem; line-height: 1.25; color: var(--ink); }
.bcard__b p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--body); }
.bmeta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0; font-size: .8rem; color: var(--muted); }
.bmeta span { display: inline-flex; align-items: center; gap: .3rem; }
.bmeta .icon { width: 14px; height: 14px; color: var(--orange); }
.bcard__more { margin-top: auto; padding-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--umber); }
.bempty { padding: 2rem; text-align: center; color: var(--muted); }

/* ---------- legal pages: contents list beside the text ---------- */
.legal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: start; }
@media (min-width: 1100px) { .legal-wrap { grid-template-columns: 230px minmax(0, 1fr); gap: 2.4rem; } .legal-wrap .ptoc { position: sticky; top: 170px; } }
.legal-wrap .legal { max-width: 78ch; }
.legal h2, .legal h3 { scroll-margin-top: 150px; }
.legal-note { margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--sand); font-size: .92rem; color: var(--body); }

/* two cards a row inside the main column (blog post "Safaris that fit this guide") */
@media (min-width: 640px) { .sgrid.sgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* category links in the blog list use the safari-list topic buttons */
a.atheme { text-decoration: none; }

/* About us: team in one row of four (two columns on phones) */
.ateam { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .ateam { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* team member without a photo yet: initials on a brand-colour square (same size as a photo) */
.ateam__ini { display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(135deg, var(--night-2), var(--umber)); color: var(--orange-soft); font-family: var(--head); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: .04em; }

/* Our vehicles: vehicle showcase cards (wide photo on top; description and specs beside the on-board list) */
.vfleet { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 28px); }
.vcar { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.vcar__ph { background: var(--sand); }
.vcar__ph picture, .vcar__ph img { display: block; width: 100%; }
.vcar__ph img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: 50% 60%; }
.vcar__none { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--umber); }
.vcar__none .icon { width: 56px; height: 56px; }
.vcar__b { padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 20px; }
.vcar__intro, .vcar__more { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vcar__k { margin: 0; color: var(--orange-ink); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.vcar__b h3 { margin: 0; font-family: var(--head); font-size: clamp(1.4rem, 1.1rem + .9vw, 1.8rem); color: var(--ink); line-height: 1.2; }
.vcar__lede { margin: 0; color: var(--body); }
.vcar__specs { margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 8px; }
.vcar__specs div { background: var(--sand); border-radius: var(--r-sm); padding: 10px 12px; }
.vcar__specs dt { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; color: var(--muted); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.vcar__specs dt .icon { width: 15px; height: 15px; color: var(--orange-ink); flex: none; }
.vcar__specs dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.vcar__h { margin: 0; color: var(--ink); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.vcar .sx-ticks { margin: 0; }
.vcar .btn { align-self: flex-start; margin-top: auto; }
@media (min-width: 760px) {
  .vcar__b { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
  .vcar__more { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 36px); }
}
.sblock > .ysteps + .gtable { margin-top: 22px; }

/* Homepage team photos: a second row when there are more than three; "Name | Role" captions */
.team__photo:nth-child(3n+5) { transform: translateY(-14px); }
.team__photo figcaption b { display: block; font-size: .72rem; letter-spacing: .04em; text-transform: none; font-weight: 600; margin-bottom: 1px; }
@media (max-width: 599px) {
  .team__photo figcaption { left: .3rem; right: .3rem; bottom: .3rem; padding: .3rem .4rem; font-size: .5rem; letter-spacing: .05em; }
  .team__photo figcaption b { font-size: .62rem; letter-spacing: 0; }
}

/* Homepage hero: the longer headline ("Tanzania safaris, planned by locals.") on two lines */
.hero__text h1 { font-size: clamp(2.5rem, 1.2rem + 4vw, 4.4rem); }

/* Homepage: contact box under "Your safari team" (.tplan), replaces .consult */
.tplan { display: grid; margin-top: 3rem; overflow: hidden; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.tplan__main { display: grid; gap: .9rem; align-content: center; padding: clamp(1.5rem, 3vw, 2.4rem); }
.tplan__who { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.tplan__avs { display: flex; }
.tplan__av { display: block; width: 48px; height: 48px; margin-left: -12px; overflow: hidden; border: 3px solid var(--white); border-radius: 50%; box-shadow: var(--shadow-sm); }
.tplan__av:first-child { margin-left: 0; }
.tplan__av img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.tplan__who p { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; font-size: .875rem; color: var(--muted); }
.tplan__who b { font-weight: 600; color: var(--ink); }
.tplan__who .pill { background: var(--peach); color: var(--umber); }
.tplan h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; }
.tplan__text { max-width: 58ch; color: var(--body); }
.tplan__pts { display: grid; gap: .5rem 1.4rem; margin: .3rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tplan__pts { grid-template-columns: repeat(auto-fit, minmax(190px, max-content)); } }
.tplan__pts li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.tplan__pts .icon { flex: none; width: 18px; height: 18px; margin-top: .2rem; padding: 2px; border-radius: 50%; background: var(--peach); color: var(--umber); }
.tplan__side { display: grid; gap: .75rem; align-content: center; padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--night); color: rgb(255 255 255 / .8); }
.tplan__k { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-soft); }
.tplan__side .btn { width: 100%; }
.btn--wa-line { border-color: rgb(255 255 255 / .35); color: var(--white); background: transparent; }
.btn--wa-line:hover { border-color: var(--wa); background: var(--wa); color: var(--night); }
.tplan__note { margin-top: .2rem; font-size: .875rem; text-align: center; }
.tplan__note a { color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--orange); }
@media (min-width: 900px) { .tplan { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); } }

/* Homepage team section: facts, stars line and two buttons beside the photos */
.team__facts { display: grid; gap: .6rem; width: 100%; margin: .2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .team__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.team__facts li { display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font-size: .875rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.team__ic { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--peach); }
.team__ic .icon { width: 17px; height: 17px; color: var(--umber); }
.team__proof { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .9375rem; color: var(--body); }
.team__proof .stars { color: var(--orange); letter-spacing: .08em; }
.team__acts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .3rem; }
@media (max-width: 479px) { .team__acts { flex-direction: column; width: 100%; } .team__acts .btn { width: 100%; } }
.team__text h2 em { font-style: italic; color: var(--umber); }


/* Homepage trekking (.trk): heading row, route cards full width, one quote strip */
.trk__head { display: grid; gap: 1rem 4rem; align-items: end; margin-bottom: 1.6rem; }
@media (min-width: 1000px) { .trk__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.trk__title h2 { margin-top: .5rem; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.trk__title h2 em { font-style: italic; color: var(--umber); }
.trk__intro { display: grid; gap: .9rem; }
.trk__intro > p { max-width: 58ch; color: var(--body); }
.trk__pts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.trk__pts li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); font-size: .8125rem; font-weight: 500; color: var(--ink); }
.trk__pts .icon { width: 15px; height: 15px; color: var(--orange-ink); }
.trk__bar { display: flex; justify-content: flex-end; margin-bottom: .9rem; }
.trk__bar .rail__nav { margin: 0; }
.trk .rail__track { align-items: stretch; }
.trk .tcard2 { height: 100%; }
.trk__cta { display: grid; gap: 1rem 2rem; align-items: center; margin-top: 1.6rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
@media (min-width: 900px) { .trk__cta { grid-template-columns: minmax(0, 1fr) auto; padding: 1.3rem 1.6rem; } }
.trk__cta p { color: var(--body); }
.trk__cta b { color: var(--ink); font-weight: 600; }
.trk__acts { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 559px) { .trk__acts { flex-direction: column; } .trk__acts .btn { width: 100%; } }

/* Route maps: day, night and altitude under each stop; overnight camps marked with a tent colour */
.smap__legend small { display: block; margin-top: .1rem; font-size: .78rem; line-height: 1.35; color: var(--muted); }
.smap__legend small b { color: var(--umber); font-weight: 600; }
.smap__legend li.is-night > i { background: var(--umber); color: var(--white); }

/* Climb pages: tipping your crew as a clear two-column table (crew member | suggested tip per day) */
.ttips:not(.ttips--flat) { padding: 0; overflow: hidden; }
.ttips:not(.ttips--flat) .ttips__h { margin: 0; padding: .95rem 1.3rem; border-bottom: 1px solid var(--line); background: var(--cream); }
.ttips:not(.ttips--flat) ul { position: relative; display: block; }
.ttips:not(.ttips--flat) ul::before, .ttips:not(.ttips--flat) ul::after { display: block; padding: .6rem 1.3rem; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ttips:not(.ttips--flat) ul::before { content: "Crew member"; border-bottom: 1px solid var(--line); }
.ttips:not(.ttips--flat) ul::after { content: "Suggested tip"; position: absolute; top: 0; right: 0; }
.ttips:not(.ttips--flat) li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.3rem; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--ink); }
.ttips:not(.ttips--flat) li:nth-child(even) { background: var(--cream); }
.ttips:not(.ttips--flat) li:last-child { border-bottom: 0; }
.ttips:not(.ttips--flat) li b { font-weight: 600; color: var(--umber); white-space: nowrap; }
.ttips:not(.ttips--flat)::after { content: "Tips are handed over at a short ceremony on the last day, when the head guide gathers the crew."; display: block; padding: .8rem 1.3rem; border-top: 1px solid var(--line); background: var(--sand); font-size: .8125rem; color: var(--muted); }

/* "Other climbs" and climbs on camp pages: four cards in a row */
.tgrid--4 { display: grid; gap: .78rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* "Where you sleep": the camp name links to its own page */
.pp2 h3 a { color: inherit; text-decoration: none; }
.pp2 h3 a:hover { color: var(--umber); text-decoration: underline; text-underline-offset: 3px; }
.pp2__more { display: inline-flex; align-items: center; gap: .3rem; margin-top: .2rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); text-decoration: none; }
.pp2__more .icon { width: 13px; height: 13px; }

/* Trekking menu, "Camps, huts & gates" tab: an altitude ladder (highest first) and the park gates as chips */
@media (min-width: 1280px) {
  .nav__panel .mx__alt { display: grid; place-content: center; justify-items: center; gap: 0; background: linear-gradient(160deg, var(--night-2), var(--umber)); color: var(--white); line-height: 1; }
  .nav__panel .mx__alt b { font-family: var(--head); font-size: 1.2rem; font-weight: 400; letter-spacing: .01em; }
  .nav__panel .mx__alt small { margin-top: .2rem; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-soft); }
  .mx__rows--ladder li:nth-child(n+3) .mx__alt { background: linear-gradient(160deg, var(--umber), var(--orange-ink)); }
  .mx__rows--ladder li:nth-child(n+5) .mx__alt { background: linear-gradient(160deg, #6b7a3a, #3f5a2a); }
  .mx__gates { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
  .mx__gates-k { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .mx__gates ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
  .nav__panel .mx__gates a { display: inline-flex; align-items: center; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); font-size: .85rem; color: var(--ink); }
  .nav__panel .mx__gates a::before { content: ""; width: 6px; height: 6px; margin-right: .45rem; border-radius: 50%; background: var(--orange); }
  .nav__panel .mx__gates a:hover { border-color: var(--orange-soft); color: var(--umber); }
}

/* Destinations page: three cards a row so every group fills whole rows, equal heights, space between groups */
.tgrid-d--3 { grid-auto-rows: 1fr; }
@media (min-width: 640px) { .tgrid-d--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tgrid-d--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tgrid-d--3 > li { display: flex; }
.tgrid-d--3 > li > a { display: flex; flex-direction: column; width: 100%; }
.dreg + .dreg { margin-top: clamp(2.75rem, 5vw, 4rem); }
/* "More of Tanzania": compact cards, three a row */
.gcards--3 { grid-auto-rows: 1fr; }
@media (min-width: 640px) { .gcards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gcards--3 small { line-height: 1.45; }
