/* Content modules - shared pieces (portfolio, team, faq, testimonials,
   services, pricing, menu, listings, events). Built on the site's tokens
   (public/css/site.css): navy/blue/cyan, 20px card radius, pill buttons,
   1200px content width. Text colours are the contrast-safe shades (>= 4.5:1). */

.cm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cm-sec { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 112px); }
.cm-sec--light { background: var(--light); }
.cm-sec + .cm-sec { padding-top: 0; }
.cm-sec--light + .cm-sec, .cm-sec + .cm-sec--light { padding-top: clamp(48px, 6vw, 80px); }
.cm-narrow { max-width: calc(880px + 2 * var(--gut)); }

/* Breadcrumbs above the page title */
.cm-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--muted); }
.cm-crumbs li + li::before { content: '/'; margin-inline-end: 10px; color: var(--grey); }
.cm-crumbs a { color: var(--blue-d); text-decoration: none; font-weight: 500; }
.cm-crumbs a:hover { text-decoration: underline; }

/* Pills: category navigation and filters (the nmore.com header-menu look) */
.cm-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; }
.cm-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 18px; border-radius: var(--pill); background: var(--light); color: var(--navy); font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.cm-pill:hover { background: #fff; border-color: var(--line); color: var(--navy); }
.cm-pill.is-active, .cm-pill[aria-current] { background: var(--navy); color: #fff; }
.cm-pill__n { font-size: 13px; opacity: .75; }
@media (max-width: 640px) {
  .cm-pills--scroll { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .cm-pills--scroll::-webkit-scrollbar { display: none; }
  .cm-pills--scroll > li { flex: none; } /* the list items are the flex items */
  .cm-pills--scroll .cm-pill { white-space: nowrap; }
}

/* Badges */
.cm-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; line-height: 1.5; letter-spacing: .01em; background: var(--light-2); color: var(--ink); white-space: nowrap; }
.cm-badge--blue { background: #e8efff; color: #1f4fc4; }
.cm-badge--ok { background: #ecfdf3; color: #067647; }
.cm-badge--warn { background: #fffaeb; color: #93370d; }
.cm-badge--off { background: #fef3f2; color: #b42318; }
.cm-badge--dark { background: var(--navy); color: #fff; }

/* Card grid */
.cm-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--cm-min, 300px)), 1fr)); list-style: none; margin: 0; padding: 0; }
.cm-grid--2 { --cm-min: 440px; }
.cm-grid--4 { --cm-min: 240px; }
.cm-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.cm-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.cm-card:focus-within { box-shadow: 0 0 0 3px rgba(55, 114, 254, .35); }
.cm-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--light-2); overflow: hidden; }
.cm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cm-card:hover .cm-card__media img { transform: scale(1.03); }
.cm-card__media .cm-badge { position: absolute; top: 14px; inset-inline-start: 14px; }
.cm-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.cm-card__title { font-size: 20px; line-height: 1.25; margin: 0; color: var(--ink); }
.cm-card__title a { color: inherit; text-decoration: none; }
.cm-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.cm-card__title a:focus-visible { outline: none; }
.cm-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 14px; color: var(--muted); }
.cm-card__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.cm-card__meta .ico { color: var(--blue-d); }
.cm-card__text { margin: 0; color: var(--muted); font-size: 15.5px; }
.cm-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cm-card__foot .btn, .cm-card__foot a { position: relative; z-index: 2; }

/* Section foot: a centred "view all" button */
.cm-more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* Empty state */
.cm-empty { text-align: center; color: var(--muted); padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--r); background: #fff; }

/* Pagination */
.cm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(32px, 4vw, 48px); }
.cm-pager ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.cm-pager__num, .cm-pager__step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 500; background: #fff; }
.cm-pager a:hover { border-color: var(--navy); color: var(--navy); }
.cm-pager__num.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.cm-pager__step.is-off { color: var(--grey); border-color: var(--line); background: var(--light); }
[dir="rtl"] .cm-pager__step .ico { transform: scaleX(-1); }
@media (max-width: 520px) { .cm-pager__step span { display: none; } }

/* Filter bar (GET form - works without JavaScript) */
.cm-filters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); align-items: end; padding: clamp(18px, 2.4vw, 26px); margin-bottom: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.cm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cm-field__label { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.cm-input, .cm-select { width: 100%; min-height: 46px; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--light); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; transition: border-color .2s, background-color .2s; }
.cm-select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2305173a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
[dir="rtl"] .cm-select { background-position: left 14px center; }
.cm-input:focus, .cm-select:focus { outline: none; border-color: var(--blue-d); background-color: #fff; box-shadow: 0 0 0 4px rgba(55, 114, 254, .15); }
.cm-filters__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cm-filters__actions .btn { min-height: 46px; }
.cm-filters__reset { font-size: 15px; font-weight: 500; color: var(--blue-d); }
.cm-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: -12px 0 22px; color: var(--muted); font-size: 15px; }

/* Key facts (dl) */
.cm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cm-facts > div { background: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.cm-facts dt { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cm-facts dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }

/* Detail layout: content + sticky aside */
.cm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cm-aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.cm-aside .card { padding: 24px; }
.cm-aside h2, .cm-aside__title { font-size: 18px; margin: 0 0 12px; }
@media (max-width: 960px) { .cm-split { grid-template-columns: minmax(0, 1fr); } .cm-aside { position: static; } }
.cm-hero-img { border-radius: var(--r-lg); overflow: hidden; background: var(--light-2); margin: 0 0 clamp(24px, 3vw, 40px); }
.cm-hero-img img { width: 100%; max-height: 640px; object-fit: cover; }
.cm-meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cm-meta-list li { display: flex; gap: 12px; align-items: flex-start; }
.cm-meta-list .ico { flex: none; margin-top: 3px; color: var(--blue-d); }
.cm-meta-list strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.cm-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-btns .btn { flex: 1 1 auto; }

/* Stars */
.cm-stars { display: inline-flex; gap: 2px; color: #b54708; }

/* Gallery + lightbox */
.cm-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cm-gallery--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cm-gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--light-2); }
.cm-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cm-gallery__item:hover img { transform: scale(1.04); }
.cm-gallery__item:focus-visible { outline-offset: 3px; }
.cm-lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 12, 28, .94); color: #fff; }
.cm-lb[open] { display: grid; grid-template-rows: auto 1fr; }
.cm-lb::backdrop { background: rgba(5, 12, 28, .94); }
.cm-lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.cm-lb__count { margin: 0; font-size: 15px; color: #e5e9f2; }
.cm-lb__figure { margin: 0; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; padding: 0 clamp(56px, 7vw, 96px) 24px; min-height: 0; }
.cm-lb__figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.cm-lb__caption { margin-top: 12px; color: #e5e9f2; font-size: 15px; text-align: center; max-width: 760px; }
.cm-lb__btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--pill); border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s; }
.cm-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.cm-lb__btn:focus-visible { outline: 3px solid #7fe3fb; outline-offset: 2px; }
.cm-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.cm-lb__nav--prev { inset-inline-start: clamp(8px, 2vw, 24px); }
.cm-lb__nav--next { inset-inline-end: clamp(8px, 2vw, 24px); }
[dir="rtl"] .cm-lb__nav .ico { transform: scaleX(-1); }
.cm-lb__nav[hidden] { display: none; }
@media (max-width: 640px) { .cm-lb__figure { padding: 0 8px 80px; } .cm-lb__nav { top: auto; bottom: 18px; transform: none; } .cm-lb__nav--prev { inset-inline-start: calc(50% - 60px); } .cm-lb__nav--next { inset-inline-end: calc(50% - 60px); } }
body.cm-lb-open { overflow: hidden; }

/* Accordion (details/summary: works without JavaScript) */
.cm-acc { display: grid; gap: 12px; }
.cm-acc__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s, border-color .2s; }
.cm-acc__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.cm-acc__q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.4; border-radius: var(--r); }
.cm-acc__q::-webkit-details-marker { display: none; }
.cm-acc__q::marker { content: ''; }
.cm-acc__q:hover { color: var(--blue-d); }
.cm-acc__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--pill); background: var(--light-2); color: var(--navy); transition: transform .25s, background-color .2s; }
.cm-acc__item[open] .cm-acc__icon { transform: rotate(180deg); background: var(--navy); color: #fff; }
.cm-acc__a { padding: 0 24px 22px; color: var(--text); }
.cm-acc__a > :last-child { margin-bottom: 0; }
.cm-acc__tools { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.cm-linkbtn { border: 0; background: none; padding: 6px 2px; font: inherit; font-size: 15px; font-weight: 500; color: var(--blue-d); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cm-linkbtn[hidden] { display: none; }

/* Horizontal slider (scroll-snap; buttons appear with JavaScript) */
.cm-slider { position: relative; }
.cm-slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(86%, 420px), 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); padding: 6px 2px 20px; list-style: none; margin: 0; scrollbar-width: thin; }
.cm-slider__track > * { scroll-snap-align: start; }
.cm-slider__nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.cm-slider__btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--pill); border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s; }
.cm-slider__btn:hover:not([disabled]) { background: var(--navy); color: #fff; }
.cm-slider__btn[disabled] { opacity: .35; cursor: default; }
[dir="rtl"] .cm-slider__btn .ico { transform: scaleX(-1); }
.cm-slider__btn[hidden], .cm-slider__nav[hidden] { display: none; }

/* Print: content only */
@media print {
  .masthead, .footer, .totop, .cc-banner, .cc-fab, .drawer, .cm-noprint, .skip { display: none !important; }
  body { color: #000; }
  .cm-sec, .pagehead { padding: 12px 0 !important; }
  a { color: #000; text-decoration: none; }
}
