/* Shannon Works site styles (shannonworks.net, Dec 2026).
   Built from the Shannon Works design system (claude.ai Design System artifact "Shannon Works":
   tokens.json, components/bundle.css). Palette source of truth: Gitea shannonworks-brand.
   Pages are Elementor containers/widgets carrying the sw-* classes below; all look lives here,
   so a page edit in Elementor never needs per-widget styling. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(source-sans-3-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(source-sans-3-latin-italic.woff2) format("woff2"); }

:root {
  /* Palette (eleven colors, in order) */
  --ink: #22282a; --slate: #424b4d; --stone: #979088; --sand: #ecd5b7; --paper: #f8f1e9;
  --deep-teal: #285c67; --teal: #477d8a; --pale-teal: #8eb7c2;
  --clay: #9c6758; --moss: #6b795d; --ochre: #bd9b6c;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Layout */
  --sw-max: 1200px;
  --sw-gutter: max(24px, calc((100vw - var(--sw-max)) / 2));
  --sw-section: 96px;
}
@media (max-width: 767px) { :root { --sw-section: 64px; --sw-gutter: 20px; } }

/* ── Panel color scopes (from bundle.css). Everything inside reads --p-* ──
   Ground (decided Dec 4, 2026; design system updated to match): the page ground is SAND and the alternate bands are PAPER.
   In the page data, sw-band--paper means "ground band" and sw-band--sand means "alternate band".
   To go back to a Paper ground, swap the two selector lists below and set --sw-ground to Paper. */
:root { --sw-ground: var(--sand); }
/* Paper scope */
.sw-band--sand { --p-bg: var(--paper); --p-text: var(--ink); --p-muted: var(--slate); --p-link: var(--deep-teal); --p-action: var(--deep-teal); --p-on-action: var(--paper); --p-control: var(--slate); --p-divider: #e2d3bf; --p-accent: var(--teal); --p-raised: var(--sand); --p-field-bg: #fffdfa; }
/* Sand scope */
.sw-site, .sw-band--paper { --p-bg: var(--sand); --p-text: var(--ink); --p-muted: var(--slate); --p-link: var(--deep-teal); --p-action: var(--deep-teal); --p-on-action: var(--paper); --p-control: var(--slate); --p-divider: var(--ochre); --p-accent: var(--teal); --p-raised: var(--paper); --p-field-bg: var(--paper); }
.sw-band--ink, .sw-site .sw-panel { --p-bg: var(--ink); --p-text: var(--paper); --p-muted: var(--stone); --p-link: var(--pale-teal); --p-action: var(--pale-teal); --p-on-action: var(--ink); --p-control: var(--stone); --p-divider: var(--slate); --p-accent: var(--teal); --p-raised: var(--slate); --p-field-bg: #1b2022; }

/* ── Base ── */
body.sw-site { background: var(--sw-ground); color: var(--ink); font-family: var(--font-sans); font-size: 18px; line-height: 28px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.sw-site h1, .sw-site h2, .sw-site h3, .sw-site h4, .sw-site .elementor-heading-title { font-family: var(--font-sans); color: var(--p-text); margin: 0; }
.sw-site h1, .sw-site h1.elementor-heading-title { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.012em; }
.sw-site .sw-display .elementor-heading-title { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.018em; }
.sw-site h2, .sw-site h2.elementor-heading-title { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -0.005em; }
.sw-site h3, .sw-site h3.elementor-heading-title { font-size: 24px; line-height: 32px; font-weight: 600; }
.sw-site p { margin: 0 0 16px; }
.sw-site p:last-child { margin-bottom: 0; }
.sw-site a { color: var(--p-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sw-site a:hover { text-decoration-thickness: 2px; color: var(--p-link); }
.sw-site .elementor-heading-title a { color: inherit; text-decoration: none; }
.sw-site a:focus-visible, .sw-site button:focus-visible, .sw-site input:focus-visible, .sw-site select:focus-visible, .sw-site textarea:focus-visible { outline: 2px solid var(--p-action); outline-offset: 2px; }
.sw-site strong, .sw-site b { font-weight: 600; }
.sw-site .elementor-widget-text-editor { color: var(--p-text); }
.sw-site .elementor-widget:not(:last-child) { margin-block-end: 0; }

/* Eyebrow (practice tags, section labels): heading widget with class sw-eyebrow */
.sw-site .sw-eyebrow .elementor-heading-title { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); }
.sw-site .sw-lead, .sw-site .sw-lead p { font-size: 21px; line-height: 32px; }
.sw-site .sw-subtitle, .sw-site .sw-subtitle p { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 400; color: var(--p-muted); max-width: 30em; }
.sw-site .sw-small, .sw-site .sw-small p { font-size: 15px; line-height: 22px; color: var(--p-muted); }

/* ── Bands: full-width sections; content held to --sw-max by padding ── */
.sw-site .e-con.sw-band { --padding-top: var(--sw-section); --padding-bottom: var(--sw-section); --padding-left: var(--sw-gutter); --padding-right: var(--sw-gutter); --gap: 32px; --row-gap: 32px; --column-gap: 32px; background: var(--p-bg); color: var(--p-text); }
.sw-site .e-con.sw-band--tight { --padding-top: 64px; --padding-bottom: 64px; }
.sw-site .e-con.sw-band + .e-con.sw-band--paper.sw-rule-top, .sw-site .e-con.sw-rule-top { border-top: 1px solid var(--p-divider); }
.sw-site .e-con.sw-stack { --gap: 16px; --row-gap: 16px; --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
.sw-site .e-con.sw-measure { max-width: 780px; }
.sw-site .e-con.sw-band > .elementor-widget-text-editor { max-width: 860px; }
.sw-site .e-con.sw-section-head { --gap: 12px; --row-gap: 12px; --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; max-width: 820px; margin-bottom: 8px; }

/* ── Intro: the text header at the top of every page (headline left, lead and actions right) ── */
.sw-site .e-con.sw-intro { --padding-top: clamp(56px, 8vw, 112px); --padding-bottom: clamp(40px, 5vw, 64px); --flex-direction: row; --flex-wrap: wrap; --align-items: flex-end; --justify-content: space-between; --column-gap: 64px; --row-gap: 28px; }
.sw-site .e-con.sw-intro > .e-con { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 20px; --row-gap: 20px; }
.sw-site .e-con.sw-intro > .sw-intro-title { flex: 1 1 560px; max-width: 820px; }
.sw-site .e-con.sw-intro > .sw-intro-body { flex: 0 1 440px; }
.sw-site .e-con.sw-intro.sw-intro--stacked { --flex-direction: column; --align-items: flex-start; }
.sw-site .e-con.sw-intro.sw-intro--stacked > .e-con { flex: none; max-width: 820px; }

/* ── Statement: the home banner. One run of display type across the content width:
   the H1 (bold, Ink) flows straight into the rest (regular, Slate). The primary action sits on the hero (sw-hero-cta). ── */
.sw-site .e-con.sw-statement { --padding-top: clamp(36px, 4.5vw, 64px); --padding-bottom: clamp(32px, 4vw, 56px); }
/* Display face for the statement only: Schibsted Grotesk (SIL OFL, self-hosted, latin subset, variable 400–900). Chosen Dec 4, 2026; in the design system as the display face. */
@font-face { font-family: "Schibsted Grotesk"; src: url(schibsted-grotesk-latin.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
.sw-statement-text { font-family: "Schibsted Grotesk", "Source Sans 3", system-ui, sans-serif; font-size: clamp(23px, 2.8vw, 34px); line-height: 1.16; letter-spacing: -0.015em; text-wrap: pretty; max-width: 1200px; }
.sw-statement-text h1, .sw-statement-text p { display: inline; font: inherit; letter-spacing: inherit; margin: 0; }
.sw-statement-text h1 { font-weight: 700; color: var(--ink); }
.sw-statement-text p { font-weight: 400; color: var(--slate); }
/* "See what we do" closes the statement: same size, Deep Teal (5.2:1 on Sand), arrow nudges on hover. */
.sw-site .sw-statement-text a.sw-statement-link { color: var(--deep-teal); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sw-site .sw-statement-text a.sw-statement-link::after { content: "\00a0→"; display: inline-block; transition: transform .2s ease; }
.sw-site .sw-statement-text a.sw-statement-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.sw-site .sw-statement-text a.sw-statement-link:hover::after { transform: translateX(4px); }
.sw-site .sw-statement-text a.sw-statement-link:focus-visible { outline: 2px solid var(--deep-teal); outline-offset: 3px; }

/* ── Hero media: full-width image that expands from the content column to full bleed on scroll (site.js) ── */
.sw-site .e-con.sw-hero { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 0; background: var(--p-bg); overflow: hidden; }
.sw-site .sw-hero .elementor-widget-image, .sw-site .sw-hero .elementor-widget-image .elementor-widget-container { width: 100%; line-height: 0; }
.sw-site .sw-hero img { display: block; width: 100%; max-width: none; height: min(86vh, 56.25vw); min-height: 360px; object-fit: cover; border-radius: 0; clip-path: inset(0 var(--sw-hero-inset, 0px)); will-change: clip-path; }
@media (max-width: 767px) { .sw-site .sw-hero img { height: 72vw; min-height: 280px; } }

/* Hero cycle ([sw_hero_cycle]): slides stack and crossfade; the first sets the height. The inset var is set on the
   .sw-hero band by site.js, so every slide (and the pause button) opens together. */
.sw-site .sw-hero .elementor-widget-shortcode, .sw-site .sw-hero .elementor-widget-shortcode .elementor-widget-container, .sw-site .sw-hero .elementor-shortcode { width: 100%; line-height: 0; }
.sw-hero-cycle { position: relative; width: 100%; }
.sw-site .sw-hero-cycle .sw-hero-slide { transition: opacity 1.4s ease; }
.sw-site .sw-hero-cycle .sw-hero-slide:not(:first-child) { position: absolute; inset: 0; opacity: 0; }
.sw-site .sw-hero-cycle .sw-hero-slide:first-child:not(.is-active) { opacity: 0; }
.sw-site .sw-hero-cycle .sw-hero-slide.is-active { opacity: 1; }
.sw-hero-pause { position: absolute; bottom: 20px; right: calc(var(--sw-hero-inset, 0px) + 20px); width: 40px; height: 40px; padding: 0; border: 1px solid rgba(248, 241, 233, 0.55); border-radius: 50%; background: rgba(34, 40, 42, 0.55); color: var(--paper); cursor: pointer; display: grid; place-items: center; opacity: 0.8; transition: opacity .2s ease, background .2s ease; z-index: 2; }
.sw-hero-pause:hover, .sw-hero-pause:focus-visible { opacity: 1; background: rgba(34, 40, 42, 0.8); }
.sw-hero-pause:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.sw-hero-pause span { display: block; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.sw-hero-pause[aria-pressed="true"] span { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
@media (max-width: 767px) { .sw-hero-pause { bottom: 12px; right: calc(var(--sw-hero-inset, 0px) + 12px); width: 36px; height: 36px; } }
.sw-hero-cycle:not(.is-running) .sw-hero-pause { display: none; }
/* Hero call to action: Sand button, lower left, lined up with the text column, on an Ink gradient that is clipped with the image. */
.sw-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(34, 40, 42, 0.72) 0%, rgba(34, 40, 42, 0.38) 26%, rgba(34, 40, 42, 0) 52%); clip-path: inset(0 var(--sw-hero-inset, 0px)); pointer-events: none; z-index: 1; }
.sw-site a.sw-hero-cta { position: absolute; z-index: 2; left: max(var(--sw-gutter), calc(var(--sw-hero-inset, 0px) + 20px)); bottom: clamp(24px, 4vw, 56px); line-height: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; font-family: var(--font-sans); font-size: 19px; font-weight: 600; background: var(--sand); color: var(--ink); border: 2px solid var(--sand); text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.sw-site a.sw-hero-cta::after { content: "\2192"; transition: transform .2s ease; }
.sw-site a.sw-hero-cta:hover, .sw-site a.sw-hero-cta:focus { background: var(--pale-teal); border-color: var(--pale-teal); color: var(--ink); text-decoration: none; } /* Ink on Pale Teal 6.9:1 */
.sw-site a.sw-hero-cta:hover::after { transform: translateX(4px); }
.sw-site a.sw-hero-cta:focus-visible { outline: 2px solid var(--pale-teal); outline-offset: 3px; }
@media (max-width: 767px) { .sw-site a.sw-hero-cta { font-size: 17px; padding: 12px 20px; bottom: 16px; } }
/* Hello Elementor paints button:hover/:focus pink (#c36); keep the pause button Ink. */
.sw-site .sw-hero-cycle .sw-hero-pause, .sw-site .sw-hero-cycle .sw-hero-pause:hover, .sw-site .sw-hero-cycle .sw-hero-pause:focus { background: rgba(34, 40, 42, 0.55); color: var(--paper); border-color: rgba(248, 241, 233, 0.55); }
.sw-site .sw-hero-cycle .sw-hero-pause:hover, .sw-site .sw-hero-cycle .sw-hero-pause:focus-visible { background: rgba(34, 40, 42, 0.85); }

/* ── Grids and cards ── */
.sw-site .e-con.sw-grid { display: grid !important; grid-template-columns: repeat(var(--sw-cols, 3), minmax(0, 1fr)); gap: 40px 32px; --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
.sw-site .e-con.sw-grid--2 { --sw-cols: 2; }
.sw-site .e-con.sw-grid--4 { --sw-cols: 4; }
@media (max-width: 1024px) { .sw-site .e-con.sw-grid, .sw-site .e-con.sw-grid--4 { --sw-cols: 2; } }
@media (max-width: 767px) { .sw-site .e-con.sw-grid, .sw-site .e-con.sw-grid--2, .sw-site .e-con.sw-grid--4 { --sw-cols: 1; } }
.sw-site .e-con.sw-grid > .e-con { width: auto; min-width: 0; }

/* Item: a titled block with a hairline above (card--top) */
.sw-site .e-con.sw-item { --padding-top: 20px; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 10px; --row-gap: 10px; border-top: 2px solid var(--p-accent); }
.sw-site .e-con.sw-item--plain { border-top-width: 1px; border-top-color: var(--p-control); }
/* Filled card */
.sw-site .e-con.sw-card { --padding-top: 28px; --padding-bottom: 28px; --padding-left: 28px; --padding-right: 28px; --gap: 12px; --row-gap: 12px; background: var(--p-raised); }

/* Panel: a clickable card with an image (service and article panels). The h3 link covers the card. */
/* Service panels: Ink cards on the light page (Ink scope above), image full-bleed at the top, text inset. */
.sw-site .e-con.sw-panel { --padding-top: 0; --padding-bottom: 28px; --padding-left: 0; --padding-right: 0; --gap: 12px; --row-gap: 12px; position: relative; background: var(--p-bg); color: var(--p-text); transition: transform .25s ease, box-shadow .25s ease; }
.sw-site .e-con.sw-panel > .elementor-widget:not(.elementor-widget-image) { padding-left: 24px; padding-right: 24px; }
.sw-site .sw-panel .sw-eyebrow .elementor-heading-title { color: var(--pale-teal); }
.sw-site .sw-panel h3 .elementor-heading-title, .sw-site .sw-panel h3.elementor-heading-title, .sw-site .sw-panel .elementor-heading-title a { color: var(--paper); }
.sw-site .sw-panel .elementor-widget-text-editor { color: var(--sand); }
.sw-site .sw-panel:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(34, 40, 42, 0.22); }
.sw-site .sw-panel .elementor-widget-image { overflow: hidden; line-height: 0; margin-bottom: 10px; border-bottom: 3px solid var(--pale-teal); } /* teal rule between image and text (Pale Teal: core Teal disappears against the darker images) */
.sw-site .sw-panel .elementor-widget-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .5s ease; }
.sw-site .sw-panel:hover .elementor-widget-image img { transform: scale(1.03); }
.sw-site .sw-panel h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sw-site .sw-panel:hover h3 a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.sw-site .sw-panel .sw-more { margin-top: auto; }

/* ── Lists: square teal markers, from the logo's blocks ── */
.sw-site .elementor-widget-text-editor ul { list-style: none; margin: 0; padding: 0; }
.sw-site .elementor-widget-text-editor ul li { position: relative; padding-left: 24px; margin: 0 0 12px; }
.sw-site .elementor-widget-text-editor ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--p-accent); }
.sw-site .elementor-widget-text-editor ol { margin: 0; padding-left: 0; list-style: none; counter-reset: sw-step; }
.sw-site .elementor-widget-text-editor ol li { counter-increment: sw-step; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-top: 1px solid var(--p-divider); }
.sw-site .elementor-widget-text-editor ol li::before { content: counter(sw-step, decimal-leading-zero); font-weight: 700; color: var(--p-muted); }
.sw-site .sw-band--ink .elementor-widget-text-editor ul li::before { background: var(--pale-teal); }

/* ── Buttons (Elementor button widget + class) ── */
.sw-site .elementor-button { font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 24px; padding: 12px 24px; border-radius: 0; border: 2px solid var(--p-action); background: var(--p-action); color: var(--p-on-action); fill: var(--p-on-action); text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.sw-site .elementor-button:hover, .sw-site .elementor-button:focus { background: var(--p-text); border-color: var(--p-text); color: var(--p-bg); text-decoration: none; }
.sw-site .sw-btn-secondary .elementor-button { background: transparent; color: var(--p-link); border-color: var(--p-control); }
.sw-site .sw-btn-secondary .elementor-button:hover { background: transparent; color: var(--p-text); border-color: var(--p-action); }
.sw-site .sw-btn-quiet .elementor-button { background: transparent; color: var(--p-link); border-color: transparent; padding-left: 0; padding-right: 0; }
.sw-site .sw-btn-quiet .elementor-button:hover { background: transparent; border-color: transparent; color: var(--p-link); text-decoration: underline; text-underline-offset: 4px; }
.sw-site .sw-btn-quiet .elementor-button-text::after { content: " \2192"; }
.sw-site .e-con.sw-actions { --flex-direction: row; --flex-wrap: wrap; --align-items: center; --gap: 12px 24px; --row-gap: 12px; --column-gap: 24px; --padding-top: 4px; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
.sw-site .e-con.sw-actions > .elementor-widget { width: auto; }

/* ── Q&A ── */
.sw-site .e-con.sw-qa { --padding-top: 20px; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 8px; --row-gap: 8px; border-top: 1px solid var(--p-control); }
.sw-site .sw-qa h3.elementor-heading-title { font-size: 20px; line-height: 28px; }

/* ── Callout line (the principle on Home) ── */
.sw-site .sw-quote .elementor-heading-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; max-width: 22em; }
.sw-site .sw-band--ink .sw-quote .elementor-heading-title { color: var(--paper); }

/* ── Header (theme builder) ── */
.sw-site .e-con.sw-header { --padding-top: 18px; --padding-bottom: 18px; --padding-left: var(--sw-gutter); --padding-right: var(--sw-gutter); --flex-direction: row; --flex-wrap: nowrap; --align-items: center; --justify-content: space-between; --gap: 24px; --column-gap: 24px; background: var(--p-bg); border-bottom: 1px solid var(--p-divider); position: relative; z-index: 50; }
.sw-site .sw-header > .elementor-widget { width: auto; }
.sw-site .sw-header .sw-nav { flex: 1 1 auto; }
.sw-logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none !important; color: var(--p-text) !important; }
.sw-logo img { display: block; }
/* The logo SVGs here have their viewBox trimmed to the artwork (the masters carry 200 units of clear space per side). */
.sw-logo .sw-logo-mark { height: 40px; width: auto; aspect-ratio: 1501 / 1143; }
.sw-logo .sw-logo-word { height: 20px; width: auto; aspect-ratio: 3290 / 304; }
/* Elementor Pro nav menu */
.sw-site .sw-nav .elementor-nav-menu--main .elementor-item { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--ink); padding: 8px 14px; text-decoration: none; }
.sw-site .sw-nav .elementor-nav-menu--main .elementor-item:hover, .sw-site .sw-nav .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--deep-teal); }
.sw-site .sw-nav .elementor-nav-menu--main .elementor-item.elementor-item-active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.sw-site .sw-nav .elementor-nav-menu--dropdown { background: var(--paper); border: 1px solid var(--slate); }
.sw-site .sw-nav .elementor-nav-menu--dropdown a, .sw-site .sw-nav .elementor-nav-menu--main .sub-menu a { font-family: var(--font-sans); font-size: 16px; color: var(--ink); background: var(--paper); text-decoration: none; padding: 10px 18px; }
.sw-site .sw-nav .elementor-nav-menu--dropdown a:hover, .sw-site .sw-nav .elementor-nav-menu--main .sub-menu a:hover, .sw-site .sw-nav .elementor-nav-menu--dropdown a.elementor-item-active { background: var(--sand); color: var(--ink); }
.sw-site .sw-nav .elementor-nav-menu--main .sub-menu { border: 1px solid var(--slate); min-width: 300px; }
.sw-site .sw-nav .elementor-menu-toggle { background: transparent; color: var(--ink); border: 1px solid var(--slate); border-radius: 0; }
.sw-site .sw-nav .elementor-menu-toggle svg { fill: var(--ink); }
@media (max-width: 1024px) { .sw-site .sw-header .sw-header-cta { display: none; } .sw-site .sw-nav { flex: 0 0 auto; } }

/* ── Footer (theme builder) ── */
.sw-site .e-con.sw-footer { --gap: 48px; --row-gap: 48px; }
.sw-site .e-con.sw-footer-top { --flex-direction: row; --flex-wrap: wrap; --justify-content: space-between; --gap: 48px; --column-gap: 64px; --row-gap: 40px; --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
.sw-site .e-con.sw-footer-top > .e-con { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 14px; --row-gap: 14px; }
.sw-site .e-con.sw-footer-top > .sw-footer-brand { flex: 1 1 320px; }
.sw-site .e-con.sw-footer-top > .sw-footer-news { flex: 0 1 520px; }
.sw-site .e-con.sw-footer-base { --padding-top: 24px; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; border-top: 1px solid var(--slate); }
.sw-site .sw-footer-links a { color: var(--pale-teal); }

/* ── Forms (Elementor Pro form widget) ── */
.sw-site .elementor-form .elementor-field-group > label, .sw-site .elementor-form .elementor-field-label { font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--p-text); margin-bottom: 6px; }
.sw-site .elementor-form .elementor-field-textual, .sw-site .elementor-form select.elementor-field { font-family: var(--font-sans); font-size: 18px; line-height: 26px; color: var(--p-text); background: var(--p-field-bg); border: 1px solid var(--p-control); border-radius: 2px; padding: 11px 14px; min-height: 50px; }
.sw-site .elementor-form .elementor-field-textual:hover { border-color: var(--p-text); }
.sw-site .elementor-form .elementor-field-textual::placeholder { color: var(--p-muted); opacity: .85; }
.sw-site .elementor-form .elementor-select-wrapper .select-caret-down-wrapper { color: var(--p-text); }
.sw-site .elementor-form .elementor-field-subgroup label, .sw-site .elementor-form .elementor-field-type-acceptance label { font-size: 17px; font-weight: 400; color: var(--p-text); }
.sw-site .elementor-form .elementor-field-subgroup .elementor-field-option { margin: 0 20px 8px 0; }
.sw-site .elementor-form input[type=checkbox] { accent-color: var(--p-action); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.sw-site .elementor-form .elementor-field-group { margin-bottom: 18px; }
.sw-site .elementor-form .elementor-button { min-height: 50px; }
.sw-site .elementor-message { font-size: 17px; line-height: 26px; color: var(--p-text); padding: 14px 16px 14px 28px; border: 1px solid var(--p-control); position: relative; margin-top: 12px; }
.sw-site .elementor-message::before { content: "" !important; position: absolute; left: 10px; top: 22px; width: 8px; height: 8px; background: var(--moss); margin: 0 !important; }
.sw-site .elementor-message.elementor-message-danger::before, .sw-site .elementor-message.elementor-help-inline::before { background: var(--clay); }
.sw-site .elementor-form .elementor-message-success { color: var(--p-text); }
.sw-site .elementor-form .elementor-field-type-html { font-size: 15px; line-height: 22px; color: var(--p-muted); }
.sw-site .sw-newsletter .elementor-form .elementor-form-fields-wrapper { flex-wrap: nowrap; align-items: flex-end; }
@media (max-width: 767px) { .sw-site .sw-newsletter .elementor-form .elementor-form-fields-wrapper { flex-wrap: wrap; } }

/* ── Article cards (shortcode [sw_articles]) and the news band; hidden while there are no posts ── */
.sw-no-articles .sw-news { display: none !important; }
.sw-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 1024px) { .sw-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .sw-articles { grid-template-columns: 1fr; } }
.sw-article { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--p-accent); }
.sw-article-img { overflow: hidden; line-height: 0; order: -1; margin-bottom: 4px; }
.sw-article-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.sw-article:hover .sw-article-img img { transform: scale(1.03); }
.sw-article.has-img { border-top: 0; padding-top: 0; }
.sw-article-meta { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); }
.sw-article h3 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 0; }
.sw-article h3 a { color: var(--p-text); text-decoration: none; }
.sw-article h3 a::after { content: ""; position: absolute; inset: 0; }
.sw-article:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }
.sw-article p { margin: 0; }
.sw-articles-empty { color: var(--p-muted); }

/* ── Single article (Hello's single template) ── */
.sw-site.single-post .site-main { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 20px 80px; }
.sw-site.single-post .page-header .entry-title { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; font-weight: 700; margin-bottom: 24px; }
.sw-site.single-post .page-content { font-size: 19px; line-height: 30px; }
.sw-site.single-post .page-content h2 { margin: 40px 0 12px; }
.sw-site.single-post .page-content h3 { margin: 32px 0 10px; }
.sw-site.single-post .page-content img { height: auto; }
.sw-site.single-post .post-tags, .sw-site.single-post .comments-area { display: none; }

/* ── Contact page and long text ── */
.sw-site .e-con.sw-contact { --flex-direction: row; --flex-wrap: wrap; --align-items: flex-start; --column-gap: 64px; --row-gap: 40px; }
.sw-site .e-con.sw-contact > .sw-contact-form { flex: 1 1 560px; max-width: 760px; }
.sw-site .e-con.sw-contact > .sw-contact-aside { flex: 0 1 320px; }
.sw-site .sw-prose h2 { font-size: 24px; line-height: 32px; margin: 36px 0 10px; }
.sw-site .sw-prose h2:first-child { margin-top: 0; }

/* ── Small screens ── */
@media (max-width: 767px) {
  .sw-site .e-con.sw-intro > .sw-intro-title, .sw-site .e-con.sw-intro > .sw-intro-body { flex: 1 1 100%; }
  .sw-site .e-con.sw-header { --padding-top: 14px; --padding-bottom: 14px; }
  .sw-logo { gap: 12px; }
  .sw-logo .sw-logo-mark { height: 32px; }
  .sw-logo .sw-logo-word { height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-site .sw-hero img { clip-path: none; }
  .sw-site .sw-panel .elementor-widget-image img, .sw-article-img img, .sw-site .e-con.sw-panel { transition: none; }
  .sw-site .sw-panel:hover { transform: none; }
}
