/**
 * ATX Content — news, destinations and the front-page carousel.
 * Mobile first. Follows style.css: colours, type, buttons, spacing and
 * breakpoints (768 / 1024) come from the global tokens; headings use the
 * global h1–h3 (Inter, 700, capitals) and .atx-section-heading; cards as
 * the service cards (radius 0.75rem, soft shadow).
 * The pages sit inside the default page template (.atx-defpage__inner
 * gives width and side padding).
 */

.atx-ct,
.atx-ct-car-sec {
    --ct-ink: var(--are-dark-gray, #0D1319);
    --ct-muted: var(--are-gray, #808080);
    --ct-line: var(--are-light-gray, #E9EBEE);
    --ct-soft: var(--are-panel-color-2, #f9f9f9);
    --ct-red: var(--are-color, #E52713);
    --ct-radius: 0.75rem;
    --ct-shadow: var(--shadow-soft, 0 6px 18px rgba(0, 0, 0, 0.06));
    --ct-shadow-h: var(--shadow-medium, 0 10px 28px rgba(0, 0, 0, 0.12));
    color: var(--font-body-color, #000);
}
.atx-ct *, .atx-ct *::before, .atx-ct *::after,
.atx-ct-car-sec *, .atx-ct-car-sec *::before, .atx-ct-car-sec *::after { box-sizing: border-box; }

.atx-ct-page { width: 100%; }
.atx-ct-crumbs { font-size: var(--font-caption-size, 0.8rem); color: var(--ct-muted); margin: 0 0 var(--gap-sm, 1rem); }
.atx-ct-crumbs a { color: var(--link-color); }
.atx-ct-crumbs a:hover { color: var(--link-hover-color); }
.atx-ct-crumbs__sep { margin: 0 0.4rem; }

/* List pages: the same caption as other pages (centred .atx-section-heading). */
.atx-ct-head { text-align: center; padding: var(--gap-sm, 1rem) 0 var(--gap-md, 2rem); }
.atx-ct-head .atx-section-heading { margin: 0; }
.atx-ct-lead { margin: 0.75rem auto 0; max-width: 40rem; color: var(--ct-muted); }
.atx-ct-none { padding: var(--gap-md, 2rem) 0; color: var(--ct-muted); text-align: center; }

/* Images: always 16:9; placeholder when missing. */
.atx-ct-img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ct-radius); overflow: hidden; background: var(--ct-line); }
.atx-ct-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atx-ct-img--empty { background: linear-gradient(135deg, var(--are-panel-color-3, #123456), var(--are-blue, #0088CE)); }

.atx-ct-meta { font-size: var(--font-caption-size, 0.8rem); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ct-muted); }
.atx-ct-meta b { color: var(--ct-red); font-weight: 700; }

/* Cards: a panel like the service cards; the whole card is clickable. */
.atx-ct-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .atx-ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .atx-ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-md, 2rem); } }
.atx-ct-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
    background: var(--are-panel-color-1, #fff); border-radius: var(--ct-radius); box-shadow: var(--ct-shadow);
    transition: box-shadow 0.18s ease, transform 0.18s ease; }
.atx-ct-card:hover { box-shadow: var(--ct-shadow-h); transform: translateY(-3px); }
.atx-ct-card .atx-ct-img { border-radius: 0; }
.atx-ct-card__body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1 1 auto; padding: 1.25rem; }
.atx-ct-card__title { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.atx-ct-card__title a { color: inherit; font-weight: inherit; }
.atx-ct-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable, link on the title */
.atx-ct-card:hover .atx-ct-card__title a { color: var(--link-hover-color); }
.atx-ct-card__lead { margin: 0; font-size: 0.95rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.atx-ct-card__more { margin-top: auto; padding-top: 0.25rem; align-self: flex-start; } /* look: .atx-more-link (style.css) */
.atx-ct-card:hover .atx-ct-card__more { color: var(--are-color); }

/* Featured news item (first on page 1). */
.atx-ct-feat { display: grid; gap: var(--gap-sm, 1rem); margin-bottom: var(--gap-md, 2rem); }
.atx-ct-feat__title { margin: 0.5rem 0; }
.atx-ct-feat__title a { color: inherit; font-weight: inherit; }
.atx-ct-feat__title a:hover { color: var(--link-hover-color); }
.atx-ct-feat__lead { margin: 0 0 var(--gap-sm, 1rem); }
@media (min-width: 1024px) { .atx-ct-feat { grid-template-columns: 1.25fr 1fr; gap: var(--gap-md, 2rem); align-items: center; } }

/* Page numbers: the button system (secondary; current = primary). */
.atx-ct-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: var(--gap-md, 2rem) 0 0; }
.atx-ct-pager a, .atx-ct-pager span { min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--btn-radius); border: var(--btn-border-width) solid var(--btn-secondary-bg);
    background: var(--btn-secondary-bg); color: var(--btn-secondary-text);
    font-size: var(--btn-font-sm); font-weight: var(--btn-font-weight); letter-spacing: var(--btn-letter-spacing); transition: var(--btn-transition); }
.atx-ct-pager a:hover { background: #fff; color: var(--btn-primary-bg); border-color: var(--btn-primary-bg); }
.atx-ct-pager span[aria-current] { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: var(--btn-primary-bg); }

/* Article (news item / destination). */
.atx-ct-art { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-md, 2rem); }
.atx-ct-art > * { min-width: 0; }
@media (min-width: 1024px) { .atx-ct-art { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap-lg, 3rem); } }
.atx-ct-art__h1 { margin: 0.5rem 0 0.75rem; }
.atx-ct-art__lead { margin: 0 0 1.25rem; font-size: 1.15rem; line-height: 1.5; font-weight: 500; }
.atx-ct-art__fig { margin: 0 0 1.5rem; }
.atx-ct-credit { margin-top: 0.4rem; font-size: var(--font-caption-size, 0.8rem); color: var(--ct-muted); }
.atx-ct-credit a { color: inherit; }
.atx-ct-credit a:hover { color: var(--link-hover-color); }
/* Extra pictures (destinations). */
.atx-ct-gallery { display: grid; grid-template-columns: 1fr; gap: var(--gap-sm, 1rem); margin: var(--gap-md, 2rem) 0 0; }
.atx-ct-gallery figure { margin: 0; }
@media (min-width: 768px) { .atx-ct-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.atx-ct-art__body { font-size: 1rem; line-height: 1.7; }
.atx-ct-art__body > :first-child { margin-top: 0; }
.atx-ct-art__body h2 { margin: 2rem 0 0.5rem; }
.atx-ct-art__body h3 { margin: 1.5rem 0 0.4rem; }
.atx-ct-art__body p { margin: 0 0 1rem; }
.atx-ct-art__body li { margin: 0.25rem 0; }
.atx-ct-art__body a { color: var(--ct-red); font-weight: 600; }
.atx-ct-art__body a:hover { text-decoration: underline; }

.atx-ct-services { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; }
.atx-ct-services li { padding: 0.3rem 0.8rem; border-radius: var(--btn-radius); background: var(--ct-line); color: var(--ct-ink);
    font-size: var(--btn-font-sm); font-weight: 700; }
.atx-ct-services__by { font-weight: 400; color: var(--ct-muted); }
.atx-ct-ctabar { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1.5rem; }
.atx-ct-ctabar .atx-btn { width: 100%; }
.atx-ct-ctabar small { color: var(--ct-muted); text-align: center; font-size: var(--font-caption-size, 0.8rem); }
@media (min-width: 768px) { .atx-ct-ctabar { flex-direction: row; align-items: center; gap: var(--gap-sm, 1rem); } .atx-ct-ctabar .atx-btn { width: auto; } .atx-ct-ctabar small { text-align: left; } }

/* Booking box (right column on desktop, after the text on mobile). */
.atx-ct-book { border-radius: var(--ct-radius); padding: 1.25rem; background: var(--ct-ink); color: #fff; box-shadow: var(--ct-shadow); }
.atx-ct-book__k { font-size: var(--font-caption-size, 0.8rem); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.atx-ct-book__t { font-family: var(--font-heading-family); font-size: 1.2rem; font-weight: var(--font-heading-weight); text-transform: uppercase; line-height: 1.2; margin: 0.25rem 0 0.5rem; }
.atx-ct-book__p { margin: 0 0 0.75rem; color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }
.atx-ct-book .atx-btn { width: 100%; margin-top: 0.5rem; }
.atx-ct-book--inline { margin: 1.5rem 0 0; }
.atx-ct-aside { display: none; }
@media (min-width: 1024px) {
    .atx-ct-aside { display: block; }
    .atx-ct-aside .atx-ct-book { position: sticky; top: 100px; }
    .atx-ct-book--inline { display: none; }
}

/* Questions and answers. */
.atx-ct-faq { margin: var(--gap-md, 2rem) 0 0; }
.atx-ct-faq h2 { margin: 0 0 0.75rem; }
.atx-ct-faq details { border-top: 1px solid var(--ct-line); padding: 0.75rem 0; }
.atx-ct-faq details:last-child { border-bottom: 1px solid var(--ct-line); }
.atx-ct-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 0.75rem; }
.atx-ct-faq summary::-webkit-details-marker { display: none; }
.atx-ct-faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--ct-red); }
.atx-ct-faq details[open] summary::after { content: '–'; }
.atx-ct-faq summary:hover { color: var(--link-hover-color); }
.atx-ct-faq__a { margin-top: 0.5rem; line-height: 1.6; }
.atx-ct-faq__a p { margin: 0 0 0.75rem; }

/* Share: small buttons in the button system (as the FAQ page's share). */
.atx-ct-share { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: var(--gap-md, 2rem) 0 0; padding-top: var(--gap-sm, 1rem); border-top: 1px solid var(--ct-line);
    font-size: var(--font-caption-size, 0.8rem); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ct-muted); }
.atx-ct-share a, .atx-ct-share button { min-width: 2.25rem; height: 2.25rem; padding: 0 0.6rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--btn-radius); border: var(--btn-border-width) solid var(--btn-secondary-bg); background: var(--btn-secondary-bg); color: var(--btn-secondary-text);
    font: inherit; font-size: var(--btn-font-sm); font-weight: var(--btn-font-weight); letter-spacing: 0; cursor: pointer; transition: var(--btn-transition); }
.atx-ct-share a:hover, .atx-ct-share button:hover { background: #fff; color: var(--btn-primary-bg); border-color: var(--btn-primary-bg); }
/* Social media profiles: the link section's icons in their brand colour. */
/* Social media profiles + copy link: large icons, no background (as in the link section, larger). */
.atx-ct-share a.atx-ct-share__soc, .atx-ct-share button { min-width: 0; height: auto; padding: 0.25rem; background: transparent; border: 0; font-size: 1.6rem; line-height: 1; }
.atx-ct-share a.atx-ct-share__soc:hover, .atx-ct-share button:hover { background: transparent; }
.atx-ct-share__icon { display: inline-flex; width: 2rem; height: 2rem; color: var(--soc-color, currentColor); fill: var(--soc-color, currentColor); transition: transform 0.2s ease; }
.atx-ct-share__icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.atx-ct-share a.atx-ct-share__soc:hover .atx-ct-share__icon, .atx-ct-share button:hover { transform: scale(1.1); }

/* "More news" / "Nearby" / … */
.atx-ct-more { margin-top: var(--gap-lg, 3rem); padding-top: var(--gap-md, 2rem); border-top: 1px solid var(--ct-line); }
.atx-ct-more__h { margin: 0 0 1.25rem; }

/* ---------- Front-page carousel "Aktuellt & Resmål" ---------- */
/* Same frame as the other front-page sections (see service-section.css):
   section padding tokens, --wrap-max-width; heading = .atx-section-heading. */
.atx-ct-car-sec {
    width: 100%;
    padding-left: var(--section-pad-x, var(--wrap-pad-x));
    padding-right: var(--section-pad-x, var(--wrap-pad-x));
    padding-top: var(--section-pad-top, 3rem);
    padding-bottom: var(--section-pad-bottom, 3rem);
}
.atx-ct-car-sec__inner { width: 100%; max-width: var(--wrap-max-width); margin: 0 auto; }
.atx-ct-car-sec__header { text-align: center; margin-bottom: 1.5rem; }
@media (max-width: 767px) {
    .atx-ct-car-sec__header { margin-bottom: 0; }
}
.atx-ct-car { position: relative; }
.atx-ct-car__vp { overflow: hidden; margin: 0 -10px; padding: 10px 10px 24px; } /* room for the card shadow */
.atx-ct-car__track { display: flex; gap: 20px; transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1); will-change: transform; touch-action: pan-y; }
.atx-ct-car__item { flex: 0 0 100%; } /* mobile: one whole card, centred, no half card */
@media (min-width: 600px) { .atx-ct-car__item { flex-basis: calc((100% - 20px) / 2); } }
@media (min-width: 900px) { .atx-ct-car__item { flex-basis: calc((100% - 40px) / 3); } }
.atx-ct-car .atx-ct-card:hover { transform: none; } /* the track moves; no jump */
.atx-ct-car .atx-ct-card__lead { -webkit-line-clamp: 2; }
.atx-ct-badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 9px; border-radius: var(--btn-radius);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.atx-ct-badge--news { background: var(--ct-red); }
.atx-ct-badge--dest { background: var(--ct-ink); }
.atx-ct-car__arrow { position: absolute; top: 28%; z-index: 2; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.95); color: var(--ct-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); cursor: pointer;
    display: flex; align-items: center; justify-content: center; }
.atx-ct-car__arrow svg { width: 20px; height: 20px; }
.atx-ct-car__arrow--prev { left: 8px; }
.atx-ct-car__arrow--next { right: 8px; }
@media (min-width: 900px) {
    .atx-ct-car__arrow { width: 42px; height: 42px; top: 34%; }
    .atx-ct-car__arrow--prev { left: -14px; }
    .atx-ct-car__arrow--next { right: -14px; }
}
.atx-ct-car__dots { margin: 18px 0 0; color: var(--ct-red); } /* the house dots (.atx-pagedots) in the section's red */
.atx-ct-car__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px;
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
/* links: .atx-more-link (style.css) */

/* Card texts, leads, body and FAQ answers (news + destinations): hyphenated
   in the page language; justified from tablet width up (left-aligned on
   mobile, where justified lines get too gappy). */
.atx-ct-card__lead, .atx-ct-feat__lead, .atx-ct-art__lead, .atx-ct-art__body, .atx-ct-faq__a {
    -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 768px) {
    .atx-ct-card__lead, .atx-ct-feat__lead, .atx-ct-art__lead, .atx-ct-art__body p, .atx-ct-art__body li, .atx-ct-faq__a { text-align: justify; }
}
