/* ==========================================================================
   components.css — cards, answer boxes, FAQ, TOC, author box, post nav
   ========================================================================== */

/* --------------------------------------------------------- answer box */
.answer-box {
  position: relative;
  background: var(--green-50);
  border: 1px solid #cfe3d9;
  border-left: 5px solid var(--green-600);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.6rem 1.35rem;
  margin: 0 0 2rem;
}
.answer-box__label {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: .55rem;
}
.answer-box__label svg { width: 15px; height: 15px; }
.answer-box p { font-size: 1.02rem; line-height: 1.72; color: var(--ink-800); }
.answer-box p:last-child { margin-bottom: 0; }
.answer-box strong { color: var(--green-900); }

.ai-box {
  background: #f1f5fc;
  border: 1px solid #d6e0f2;
  border-left: 5px solid #2b5cab;
  border-radius: var(--radius-m);
  padding: 1.5rem 1.6rem 1.35rem;
  margin: 0 0 2rem;
}
.ai-box__label {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: #2b5cab;
  margin-bottom: .55rem;
}
.ai-box__label svg { width: 15px; height: 15px; }
.ai-box p { font-size: 1rem; line-height: 1.72; color: #29394f; }
.ai-box p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- cards */
.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-l);
  padding: 1.5rem;
  box-shadow: var(--shadow-s);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: #c9dcd2; }
.card h3 { font-size: 1.13rem; margin-bottom: .5rem; }
.card h3 a { color: var(--green-900); text-decoration: none; }
.card h3 a:hover { color: var(--green-600); }
.card p { font-size: .95rem; color: var(--ink-600, var(--ink-500)); line-height: 1.68; margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
  margin-bottom: .9rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card__link {
  margin-top: auto; padding-top: 1rem;
  font-weight: 700; font-size: .9rem; color: var(--green-700);
  text-decoration: none;
}
.card__link svg { width: 14px; height: 14px; vertical-align: -1px; margin-left: .25rem; }
.card__link:hover { color: var(--gold-700); }

.card--flat { box-shadow: none; }
.card--green { background: var(--green-800); border-color: rgba(255, 255, 255, .1); color: #d6e5dd; }
.card--green h3, .card--green h3 a { color: #fff; }
.card--green p { color: #b9cfc4; }

/* pill / chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.4rem; }
.chips li { margin: 0; }
.chip {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  padding: .34rem .85rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  transition: all .16s ease;
}
a.chip:hover { border-color: var(--green-600); background: var(--green-50); color: var(--green-700); }
.chip--gold { background: var(--gold-50); border-color: var(--gold-300); color: var(--gold-700); }

/* --------------------------------------------------------- location list */
.loc-list { list-style: none; padding: 0; margin: 0; }
.loc-list li { margin: 0; border-bottom: 1px solid var(--ink-100); }
.loc-list li:last-child { border-bottom: 0; }
.loc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .2rem;
  text-decoration: none;
  color: var(--ink-800);
  font-weight: 600;
  font-size: .95rem;
  transition: color .16s ease, padding-left .16s ease;
}
.loc-list a:hover { color: var(--green-700); padding-left: .5rem; }
.loc-list .loc-list__kind {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-400);
}

/* ------------------------------------------------------------- steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.steps li {
  position: relative;
  padding: 1.15rem 1.3rem 1.15rem 3.9rem;
  background: var(--cream);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-m);
  margin: 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 1.2rem; top: 1.1rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-700); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1rem;
}
.steps b { display: block; color: var(--green-900); margin-bottom: .2rem; font-size: 1.02rem; }
.steps p { font-size: .94rem; color: var(--ink-700); margin: 0; }

/* --------------------------------------------------------------- FAQ */
.faq-list { display: grid; gap: .7rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item[open] { border-color: var(--green-300, #a9cdbe); box-shadow: var(--shadow-m); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.15rem;
  font-weight: 700;
  color: var(--green-900);
  font-size: 1.02rem;
  position: relative;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute; right: 1.15rem; top: 50%;
  width: 11px; height: 11px;
  margin-top: -8px;
  border-right: 2.5px solid var(--green-700);
  border-bottom: 2.5px solid var(--green-700);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item summary:hover { background: var(--green-50); }
.faq-item__body { padding: 0 1.15rem 1.15rem; font-size: .97rem; color: var(--ink-700); }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------ conversational Q */
.convo { display: grid; gap: .8rem; }
.convo__item {
  background: var(--cream);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-m);
  padding: 1rem 1.15rem;
}
.convo__q {
  display: flex; gap: .6rem; align-items: flex-start;
  font-weight: 700; color: var(--green-900);
  font-size: .98rem;
  margin-bottom: .35rem;
}
.convo__q svg { width: 16px; height: 16px; color: var(--gold-600); flex: none; margin-top: 4px; }
.convo__a { font-size: .94rem; color: var(--ink-700); margin: 0; }

/* --------------------------------------------------------------- TOC */
.toc {
  background: var(--cream);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-l);
  padding: 1.3rem 1.4rem;
}
.toc h2 {
  font-family: var(--font-sans);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .11em;
  color: var(--green-700); margin-bottom: .8rem;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin-bottom: .45rem; }
.toc a { font-size: .92rem; color: var(--ink-700); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--green-700); text-decoration: underline; }

/* ------------------------------------------------------- author / E-E-A-T */
.author-box {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-l);
  padding: 1.5rem;
  margin: 2rem 0;
}
.author-box img {
  width: 86px; height: 86px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--gold-500); flex: none;
}
.author-box h2 { font-size: 1.12rem; margin-bottom: .2rem; }
.author-box .author-box__role { font-size: .85rem; color: var(--gold-700); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .6rem; }
.author-box p { font-size: .93rem; color: var(--ink-700); margin-bottom: .5rem; }
.author-box__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--ink-500); }

/* --------------------------------------------------------- post nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.6rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-200);
}
.post-nav a {
  display: block;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-m);
  padding: 1rem 1.2rem;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.post-nav a:hover { border-color: var(--green-600); box-shadow: var(--shadow-m); transform: translateY(-2px); }
.post-nav__dir {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--gold-700); margin-bottom: .35rem;
}
.post-nav__dir svg { width: 13px; height: 13px; }
.post-nav__title { font-weight: 700; color: var(--green-900); font-size: 1rem; line-height: 1.45; display: block; }
.post-nav--next { text-align: right; }

/* ------------------------------------------------------ related links */
.related {
  background: var(--green-50);
  border: 1px solid #d5e6de;
  border-radius: var(--radius-l);
  padding: 1.5rem 1.6rem;
  margin: 2rem 0;
}
.related h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.related ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.6rem; }
.related li { margin-bottom: .45rem; break-inside: avoid; }
.related a { font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }
.related p { font-size: .92rem; color: var(--ink-500); margin-bottom: .8rem; }

/* ------------------------------------------------------------ CTA band */
.cta-band {
  background: var(--green-800);
  color: #eaf2ee;
  border-radius: var(--radius-xl);
  padding: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: #d0e2d9; max-width: 62ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.cta-band__num { display: inline-block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold-300); font-weight: 700; margin-top: 1rem; }

/* ---------------------------------------------------------- trust row */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.trust {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-l);
  padding: 1.4rem;
  text-align: center;
}
.trust__icon {
  width: 48px; height: 48px; margin: 0 auto .8rem;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-50); color: var(--gold-700);
}
.trust__icon svg { width: 23px; height: 23px; }
.trust b { display: block; color: var(--green-900); font-size: 1.02rem; margin-bottom: .25rem; }
.trust p { font-size: .88rem; color: var(--ink-500); margin: 0; }

/* --------------------------------------------------------- table */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}
table.data th, table.data td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--ink-200); vertical-align: top; }
table.data thead th { background: var(--green-50); color: var(--green-900); font-weight: 700; }
table.data tbody tr:hover { background: #fafcfb; }

/* --------------------------------------------------------- notice */
.notice {
  background: var(--gold-50);
  border: 1px solid var(--gold-300);
  border-radius: var(--radius-m);
  padding: 1.1rem 1.3rem;
  font-size: .93rem;
  color: var(--ink-700);
  margin: 1.6rem 0;
}
.notice b { color: var(--gold-700); }

/* --------------------------------------------------------- inline link list */
.inline-links { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1.4rem; }
.inline-links li { margin: 0; }
.inline-links a {
  display: inline-block; background: var(--white);
  border: 1px solid var(--ink-200); border-radius: 999px;
  padding: .3rem .8rem; font-size: .85rem; font-weight: 600;
  color: var(--ink-700); text-decoration: none;
}
.inline-links a:hover { border-color: var(--green-600); background: var(--green-50); color: var(--green-700); }

/* --------------------------------------------------------- process rail */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.rail__item { position: relative; padding-top: 2.4rem; }
.rail__item::before {
  content: attr(data-num);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700;
  color: var(--gold-500); line-height: 1;
}
.rail__item b { display: block; color: var(--green-900); margin-bottom: .25rem; }
.rail__item p { font-size: .92rem; color: var(--ink-600, var(--ink-500)); margin: 0; }

/* ------------------------------------------------- UK hub region groups */
.uk-hub__jump {
  background: var(--green-50, #f1f7f3);
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--gold-500);
  border-radius: 10px;
  padding: .85rem 1.1rem;
  margin: 0 0 1.6rem;
  font-size: .92rem;
  line-height: 1.7;
}
.uk-hub__jump a { color: var(--green-700); font-weight: 600; text-decoration: underline; }
.uk-hub__jump a:hover { color: var(--gold-600); }

.uk-hub__region {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--green-900);
  margin: 2.2rem 0 .35rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--ink-200);
  scroll-margin-top: 6rem;
}
.uk-hub__blurb { color: var(--ink-600, var(--ink-500)); font-size: .93rem; margin: 0 0 .9rem; }
.uk-hub__list { margin-bottom: 1.6rem; }

/* --------------------------------------- site-wide index of every place */
.site-index {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 2rem 0 .4rem;
  margin-top: .4rem;
}
.site-index h2 { color: #fff; font-size: 1.06rem; margin-bottom: .45rem; }
.site-index__intro { color: #b6c9bf; max-width: 92ch; font-size: .88rem; line-height: 1.7; margin: 0 0 .8rem; }
.site-index__group summary {
  cursor: pointer;
  color: var(--gold-300);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .45rem 0;
}
.site-index__group summary:hover { color: #fff; }
.site-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1.1rem 1.8rem;
  margin: .9rem 0 1.2rem;
}
.site-index__block h3 { color: #fff; font-size: .88rem; margin-bottom: .45rem; }
.site-index__block ul { columns: 2; column-gap: 1rem; }
.site-index__block li { margin-bottom: .22rem; break-inside: avoid; }
.site-index__block a { color: #b6c9bf; font-size: .83rem; text-decoration: none; }
.site-index__block a:hover { color: var(--gold-300); text-decoration: underline; }
.site-index__foot { color: #90a89c; font-size: .84rem; margin: 0 0 1.2rem; }
.site-index__foot a { color: var(--gold-300); }

/* ------------------------------------------ in-content cross link block */
.crosslinks {
  background: var(--green-50);
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--gold-500);
  border-radius: 10px;
  padding: .95rem 1.15rem;
  margin: 1.5rem 0;
  font-size: .95rem;
  line-height: 1.75;
}
.crosslinks b { color: var(--green-900); }
.crosslinks a { font-weight: 600; }

/* ---------------------------------------------- towns and areas section */
.towns-under {
  margin: 1.7rem 0 0;
  padding: 1.1rem 1.2rem;
  background: var(--green-50);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-s);
}
.towns-under h2 { margin-top: 0; }
.towns-under p:last-child { margin-bottom: 0; }

/* the two sections that say what a place is like */
.place-detail {
  background: var(--cream);
  border: 1px solid #e6dfd0;
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.6rem 1.25rem;
  margin: 0 0 2rem;
}
.place-detail h2 {
  font-size: 1.32rem;
  margin: 0 0 .7rem;
  color: var(--green-900);
}
.place-detail p {
  font-size: 1rem;
  line-height: 1.74;
  color: var(--ink-800);
  margin: 0 0 .85rem;
}
.place-detail p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .place-detail { padding: 1.1rem 1.1rem 1rem; }
}

/* --------------------------------------------------- home page banner */
.hp-banner {
  margin: 0 0 clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  background: var(--cream, #fbf9f4);
  border: 1px solid var(--ink-100, #e6e1d5);
}
.hp-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.hp-banner figcaption {
  padding: 12px 18px 14px;
  font-size: .9rem;
  color: var(--ink-600, #4a5750);
  text-align: center;
}
@media (max-width: 640px) {
  .hp-banner { border-radius: 12px; }
  .hp-banner figcaption { font-size: .82rem; padding: 10px 12px 12px; }
}
