/*
  =========================================
  Blog, news and reviews (cms/)
  =========================================
  The CMS's own classes (cms-*), and the breadcrumbs, for tamesidetailsontrails.co.uk. Everything else on the blog pages
  comes from index.html's own styles, which cms/site/layout.php reuses. Taken from driveandmaintain.co.uk's (whose look
  came from this site), in this site's greens.
*/

/* The site's name above the breadcrumbs on the blog pages, which have no other way home */
.cms-site { display: inline-block; color: #fff; font-weight: 800; text-decoration: none; margin-bottom: .9rem; }
.cms-site:hover { color: #7fc79c; }

/* ---- breadcrumbs (as on driveandmaintain.co.uk) ---- */
.crumbs { font-size: .85rem; margin: 0 0 1rem; color: rgba(255,255,255,.65); }
.crumbs a { color: #7fc79c; text-decoration: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; opacity: .6; }

/* ---- blog, news and reviews (cms/) ---- */
.cms-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 2rem; }
.cms-tabs a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--green-dark); background: #fff; }
.cms-tabs a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.cms-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.3rem; }
.cms-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--body); }
.cms-card:hover { border-color: var(--green); }
.cms-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--off-white); }
.cms-card div { padding: 1.1rem 1.2rem 1.3rem; }
.cms-card h3 { color: var(--ink); margin: .3rem 0 .4rem; font-size: 1.12rem; line-height: 1.3; }
.cms-card p { margin: 0; font-size: .95rem; }
.cms-date { font-size: .8rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .04em; }
.cms-by { margin: 0 0 .4rem !important; font-weight: 700; color: var(--ink); }
.cms-stars { color: #e0a100; letter-spacing: .08em; font-size: 1.05em; }
.cms-stars span { color: #c9d1dc; }
.cms-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.cms-feed { margin-top: 2rem; font-size: .9rem; }
.cms-meta { color: #c8d6cd; margin: .6rem 0 0; }
.cms-article { max-width: 46rem; }
.cms-cover { margin: 0 0 2rem; }
.cms-cover img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.cms-body { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.cms-body h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
.cms-body h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.cms-body h4 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.cms-body p, .cms-body ul, .cms-body ol { margin: 0 0 1.1rem; }
.cms-body li { margin: .3rem 0; }
.cms-body a { color: var(--green-dark); }
.cms-body blockquote { margin: 1.5rem 0; padding: .3rem 1.2rem; border-left: 4px solid #7fc79c; background: #eef7f1; border-radius: 0 var(--radius) var(--radius) 0; }
.cms-body figure { margin: 1.8rem 0; }
.cms-body img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: var(--radius); display: block; margin-inline: auto; }
.cms-body figcaption { font-size: .88rem; color: var(--body); margin-top: .5rem; }
.cms-body code { background: var(--off-white); padding: .1rem .35rem; border-radius: 5px; font-size: .92em; }
.cms-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.cms-reviewer { font-weight: 700; color: var(--ink); margin-top: 1rem; }
.cms-back { margin-top: 2.5rem; font-weight: 700; }
.cms-back a { color: var(--green-dark); text-decoration: none; }
.cms-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.cms-pager a { font-weight: 700; color: var(--green-dark); text-decoration: none; }
.cms-related { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.cms-related h2 { margin: 0 0 1.3rem; }
.cms-home-review { margin: .8rem auto 0; max-width: 44rem; }
.cms-home-review blockquote { margin: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.3; }
.cms-home-review blockquote a { color: #fff; text-decoration: none; }
.cms-home-review figcaption { margin-top: .8rem; color: #c8d6cd; font-weight: 600; }
.cms-home-review .cms-stars span { color: rgba(255,255,255,.3); }
.cms-preview { position: sticky; top: 0; z-index: 60; background: #7fc79c; color: #0d1b13; font-weight: 700; padding: .6rem 1rem; text-align: center; }
.cms-preview a { color: #0d1b13; }
