/* ==========================================================================
   SWEP Rocky Mountain – enhancements layered on top of the original
   Coraline stylesheet. Typography, colours and the three-column layout of
   the archived site are kept; this file adds responsiveness, components,
   motion and accessibility.
   ========================================================================== */

:root {
	--swep-green: #3f7f4f;
	--swep-green-dark: #2c5e38;
	--swep-mint: #cfe9d4;
	--swep-mint-soft: #eef7f0;
	--swep-ink: #333;
	--swep-line: #ccc;
	--swep-link: #0060ff;
	--swep-hover: #df0000;
	--swep-radius: 6px;
	--swep-sans: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
	--swep-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

img { max-width: 100%; height: auto; }

/* Accessible focus + skip link (Coraline used a dotted outline) */
:focus-visible { outline: 2px solid var(--swep-green); outline-offset: 2px; }
.skip-link.screen-reader-text:focus {
	left: 12px; top: 12px; z-index: 100000;
	background: #000; color: #fff; padding: 8px 14px; font: bold 13px var(--swep-sans);
}
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; width: 1px; }
.screen-reader-text:focus { clip: auto; height: auto; width: auto; }

/* ---------- Header ---------- */
#site-title a { transition: color .2s ease; }
#site-title a:hover { color: var(--swep-green); }
#branding { position: relative; overflow: hidden; clear: both; }
#branding img { display: block; width: 100%; object-fit: cover; animation: swep-kenburns 26s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes swep-kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Sticky navigation bar */
#access {
	position: sticky; top: 0; z-index: 999; float: none;
	background: rgba(255, 255, 255, .97);
	display: flex; align-items: center; flex-wrap: wrap;
	transition: box-shadow .25s ease;
}
.admin-bar #access { top: 32px; }
@media (max-width: 782px) { .admin-bar #access { top: 0; } }
#access.is-stuck { box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
#access .menu { flex: 1 1 auto; }
#access ul.menu-list, #access .menu > ul { display: flex; flex-wrap: wrap; }
#access li { float: none; }
#access a { transition: background-color .2s ease, color .2s ease; }
#access .current-menu-item > a,
#access .current_page_item > a,
#access .current-menu-ancestor > a { background: #000; color: #fff; }
#access ul ul { display: block; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
#access li:hover > ul,
#access li:focus-within > ul,
#access li.is-open > ul { opacity: 1; visibility: visible; transform: none; }
#access .menu-item-has-children > a::after { content: " ▾"; font-size: 10px; }
#access ul ul .menu-item-has-children > a::after { content: " ▸"; }
#access ul ul li { width: 100%; }

.swep-menu-toggle, .swep-search-toggle {
	background: none; border: 0; cursor: pointer; font: bold 13px var(--swep-sans);
	text-transform: uppercase; color: #000; padding: .45em 1em;
}
.swep-menu-toggle { display: none; align-items: center; gap: 8px; }
.swep-menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.swep-menu-toggle__bars span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.swep-menu-toggle[aria-expanded="true"] .swep-menu-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.swep-menu-toggle[aria-expanded="true"] .swep-menu-toggle__bars span:nth-child(2) { opacity: 0; }
.swep-menu-toggle[aria-expanded="true"] .swep-menu-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.swep-search-toggle:hover, .swep-search-toggle[aria-expanded="true"] { background: #000; color: #fff; }
.swep-search-panel { flex: 1 0 100%; padding: 10px 0 12px; border-top: 1px solid var(--swep-line); animation: swep-drop .2s ease; }
@keyframes swep-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Reading progress ---------- */
.swep-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100001; background: transparent; }
.admin-bar .swep-progress { top: 32px; }
.swep-progress__bar { display: block; height: 100%; width: 0; background: var(--swep-green); transition: width .08s linear; }

/* ---------- Breadcrumbs ---------- */
.swep-breadcrumbs { font: 12px var(--swep-sans); color: #888; margin: 0 0 1.2em; }
.swep-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.swep-breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #bbb; }
.swep-breadcrumbs a { color: #888; text-decoration: none; }
.swep-breadcrumbs a:hover { color: var(--swep-hover); }

/* ---------- Page headers ---------- */
.page-title { font-size: 26px; line-height: 1.25; margin: 0 0 .6em; }
.page-header { margin-bottom: 2em; border-bottom: 1px solid var(--swep-line); padding-bottom: 1em; }
h1.entry-title { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.swep-btn, .entry-content .wp-block-button__link, .search-submit {
	display: inline-block; font: bold 13px/1 var(--swep-sans); letter-spacing: .03em; text-transform: uppercase;
	background: var(--swep-green); color: #fff !important; border: 2px solid var(--swep-green);
	padding: 12px 20px; border-radius: var(--swep-radius); text-decoration: none; cursor: pointer;
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.swep-btn:hover, .swep-btn:focus { background: var(--swep-green-dark); border-color: var(--swep-green-dark); transform: translateY(-2px); box-shadow: var(--swep-shadow); color: #fff; }
.swep-btn--ghost { background: transparent; color: var(--swep-green) !important; }
.swep-btn--ghost:hover, .swep-btn--ghost:focus { background: var(--swep-green); color: #fff !important; }
.swep-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.swep-center { text-align: center; }

/* ---------- Front page ---------- */
.swep-hero {
	position: relative; padding: 2.2em 1.8em; margin: 0 0 2em; border-radius: var(--swep-radius);
	background: linear-gradient(135deg, var(--swep-mint-soft), #fff 70%);
	border-top: 3px solid #000; border-bottom: 1px solid var(--swep-line); overflow: hidden;
}
.swep-hero::after {
	content: ""; position: absolute; right: -40px; bottom: -30px; width: 220px; height: 140px; opacity: .35;
	background: url("../img/swep-logo-150.gif") no-repeat center / contain; pointer-events: none;
}
.swep-hero__eyebrow { font: bold 11px var(--swep-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--swep-green); margin-bottom: .8em; }
.swep-hero__title { font-size: 28px; line-height: 1.2; margin: 0 0 .5em; position: relative; z-index: 1; }
.swep-hero__lead { font-size: 15px; position: relative; z-index: 1; }
.swep-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; position: relative; z-index: 1; }

.swep-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 2.4em; }
.swep-stat { border: 1px solid var(--swep-line); border-top: 3px solid var(--swep-green); padding: 14px; text-align: center; border-radius: 0 0 var(--swep-radius) var(--swep-radius); background: #fff; }
.swep-stat__num { display: block; font: bold 30px/1.1 var(--swep-sans); color: #000; }
.swep-stat__label { display: block; font: 12px var(--swep-sans); color: #666; text-transform: uppercase; letter-spacing: .04em; }

.swep-section { margin: 0 0 2.8em; }
.swep-section__title, .swep-year {
	font-size: 13px; text-transform: uppercase; letter-spacing: .025em;
	border-top: 3px solid #000; border-bottom: 1px solid var(--swep-line); padding: 2px; margin: 0 0 1em;
}
.swep-year { font-size: 12px; border-top-width: 1px; color: #666; }

.swep-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.swep-pillar {
	display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--swep-line);
	border-radius: var(--swep-radius); text-decoration: none; color: var(--swep-ink); background: #fff;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.swep-pillar:visited { color: var(--swep-ink); }
.swep-pillar svg { color: var(--swep-green); transition: transform .3s ease; }
.swep-pillar:hover { transform: translateY(-4px); box-shadow: var(--swep-shadow); border-color: var(--swep-green); color: var(--swep-ink); }
.swep-pillar:hover svg { transform: scale(1.12) rotate(-4deg); }
.swep-pillar__title { font: bold 15px var(--swep-sans); color: #000; }
.swep-pillar__text { font-size: 13px; line-height: 1.55; }

.swep-newslist { list-style: none; margin: 0 0 1em; }
.swep-newslist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--swep-line); align-items: baseline; }
.swep-newslist time { flex: 0 0 120px; font: 12px var(--swep-sans); color: #888; }

.swep-cta {
	text-align: center; padding: 2em 1.5em; margin: 0 0 2em; border-radius: var(--swep-radius);
	background: #000; color: #eee;
}
.swep-cta h2 { color: #fff; font-size: 22px; margin-bottom: .4em; }
.swep-cta .swep-form { max-width: 420px; margin: 0 auto; text-align: left; }
.swep-cta .swep-form label { color: #eee; }
.swep-cta .swep-form a { color: var(--swep-mint); }

/* ---------- Cards ---------- */
.swep-cards { display: grid; gap: 18px; margin: 0 0 1.4em; }
.swep-cards--2 { grid-template-columns: repeat(2, 1fr); }
.swep-cards--3 { grid-template-columns: repeat(2, 1fr); }
.swep-card {
	display: flex; flex-direction: column; border: 1px solid var(--swep-line); border-radius: var(--swep-radius);
	overflow: hidden; background: #fff; transition: transform .25s ease, box-shadow .25s ease; margin: 0;
}
.swep-card:hover { transform: translateY(-4px); box-shadow: var(--swep-shadow); }
.swep-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--swep-mint-soft); }
.swep-card__media img, .swep-card__media svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.swep-card:hover .swep-card__media img { transform: scale(1.05); }
.swep-card__body { padding: 12px 14px 16px; }
.swep-card__tag { font: bold 10px var(--swep-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--swep-green); text-decoration: none; }
.swep-card__title { font-size: 15px; line-height: 1.3; margin: 4px 0 6px; }
.swep-card__meta { font: 11px var(--swep-sans); color: #888; margin: 0 0 6px; }
.swep-card__excerpt { font-size: 13px; line-height: 1.55; margin: 0; }
.swep-entry .swep-card__media { margin: 0 0 12px; border-radius: var(--swep-radius); }

/* ---------- Single posts ---------- */
.swep-featured { margin: 1em 0 1.6em; }
.swep-featured img { display: block; width: 100%; border-radius: var(--swep-radius); }
.swep-featured figcaption, .wp-caption-text, .entry-content figcaption { font: italic 11px/1.5 var(--swep-sans); color: #888; margin-top: 6px; }
.entry-content h2 { font-size: 22px; line-height: 1.3; margin-top: 1.4em; scroll-margin-top: 70px; }
.entry-content h3 { font-size: 15px; margin-top: 1.4em; scroll-margin-top: 70px; }
.entry-content blockquote, .swep-callout {
	font-style: normal; margin: 1.6em 0; padding: 1em 1.2em; background: var(--swep-mint-soft);
	border-left: 4px solid var(--swep-green); border-radius: 0 var(--swep-radius) var(--swep-radius) 0;
}
.swep-callout > :last-child, .entry-content blockquote > :last-child { margin-bottom: 0; }
.swep-callout--warn { background: #fff8e1; border-left-color: #c99a00; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.entry-content table th, .entry-content table td { border: 1px solid #ddd; padding: 8px 10px; vertical-align: top; }
.entry-content tr th, .entry-content thead th { display: table-cell; background: #f4f4f4; font-weight: bold; }
.swep-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.7em; }
.swep-keypoints { border: 1px solid var(--swep-line); border-top: 3px solid var(--swep-green); padding: 1em 1.2em .2em; margin: 1.4em 0 2em; border-radius: 0 0 var(--swep-radius) var(--swep-radius); }
.swep-keypoints h2 { margin-top: 0 !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: .04em; }

.swep-toc { border: 1px solid var(--swep-line); border-radius: var(--swep-radius); padding: 12px 16px; margin: 0 0 1.8em; background: #fafafa; }
.swep-toc__title { font: bold 12px var(--swep-sans); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: none; border: 0; width: 100%; padding: 0; }
.swep-toc ol { margin: 6px 0 0 1.4em; font-size: 13px; }
.swep-toc li { padding: 2px 0; }
.swep-toc a { text-decoration: none; }
.swep-toc a.is-active { color: var(--swep-green); font-weight: bold; }
.swep-toc.is-collapsed ol { display: none; }

.swep-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 1.8em 0; padding: 12px 0; border-top: 1px solid var(--swep-line); border-bottom: 1px solid var(--swep-line); }
.swep-share__label { font: bold 12px var(--swep-sans); text-transform: uppercase; margin-right: 4px; }
.swep-share__btn { font: 12px var(--swep-sans); padding: 5px 11px; border: 1px solid var(--swep-line); border-radius: 30px; text-decoration: none; color: #333 !important; background: #fff; cursor: pointer; transition: all .2s ease; }
.swep-share__btn:hover { background: #000; color: #fff !important; border-color: #000; }
.swep-share__btn.is-done { background: var(--swep-green); color: #fff !important; border-color: var(--swep-green); }

.swep-authorbox { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--swep-mint-soft); border-radius: var(--swep-radius); margin: 0 0 1.7em; font-size: 13px; }
.swep-authorbox img { border-radius: 50%; background: #fff; flex: 0 0 72px; }
.swep-authorbox p { margin: 0 0 .4em; }
.swep-authorbox__name { font: bold 14px var(--swep-sans); }
.swep-related { margin: 2em 0; }
.swep-postnav { display: flex; justify-content: space-between; gap: 18px; margin: 1.5em 0; font: 13px var(--swep-sans); }
.swep-postnav .nav-next { text-align: right; }
.swep-updated { font: italic 12px var(--swep-sans); color: #888; }
.swep-badge { display: inline-block; font: bold 11px var(--swep-sans); text-transform: uppercase; background: #eee; padding: 3px 8px; border-radius: 3px; }

/* ---------- Accordion (details) ---------- */
.swep-accordion details { border: 1px solid var(--swep-line); border-radius: var(--swep-radius); margin: 0 0 8px; background: #fff; overflow: hidden; }
.swep-accordion summary { cursor: pointer; padding: 12px 40px 12px 14px; font: bold 14px var(--swep-sans); position: relative; list-style: none; transition: background-color .2s; }
.swep-accordion summary::-webkit-details-marker { display: none; }
.swep-accordion summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--swep-green); transition: transform .25s ease; }
.swep-accordion details[open] summary { background: var(--swep-mint-soft); }
.swep-accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.swep-accordion details > *:not(summary) { padding: 0 14px; }
.swep-accordion details[open] > *:not(summary) { animation: swep-drop .25s ease; }
.swep-accordion details > :last-child { padding-bottom: 12px; margin-bottom: 0; }

/* ---------- Tabs (used on Membership page) ---------- */
.swep-tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #000; margin-bottom: 1em; }
.swep-tabs [role="tab"] { font: bold 12px var(--swep-sans); text-transform: uppercase; background: #f4f4f4; border: 0; padding: 10px 14px; cursor: pointer; border-radius: var(--swep-radius) var(--swep-radius) 0 0; }
.swep-tabs [role="tab"][aria-selected="true"] { background: #000; color: #fff; }
.swep-tabs [role="tabpanel"][hidden] { display: none; }

/* ---------- Filters ---------- */
.swep-filter { margin: 0 0 1.4em; }
.swep-filter input[type=search] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #888; border-radius: var(--swep-radius); font: 14px var(--swep-sans); margin-bottom: 10px; }
.swep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.swep-chip { font: 12px var(--swep-sans); border: 1px solid var(--swep-line); background: #fff; padding: 5px 12px; border-radius: 30px; cursor: pointer; transition: all .2s ease; }
.swep-chip:hover { border-color: #000; }
.swep-chip.is-active { background: var(--swep-green); border-color: var(--swep-green); color: #fff; }
.swep-filter-item { display: contents; }
.swep-filter-item.is-hidden { display: none; }

/* ---------- Events ---------- */
.swep-events { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.6em; }
.swep-event { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--swep-line); border-radius: var(--swep-radius); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.swep-event:hover { box-shadow: var(--swep-shadow); transform: translateX(3px); }
.swep-event__date { flex: 0 0 58px; text-align: center; border: 2px solid #000; border-radius: var(--swep-radius); align-self: flex-start; font-family: var(--swep-sans); overflow: hidden; }
.swep-event__month { display: block; background: #000; color: #fff; font-size: 11px; text-transform: uppercase; padding: 2px 0; }
.swep-event__day { display: block; font-size: 22px; font-weight: bold; padding: 4px 0; }
.swep-event__title { font-size: 15px; line-height: 1.3; margin: 0 0 4px; }
.swep-event__meta { font: 12px var(--swep-sans); color: #777; margin: 0 0 4px; }
.swep-event__excerpt { font-size: 13px; margin: 0; }
.swep-events--past .swep-event { opacity: .9; }
.swep-event-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 1em 0 1.6em; padding: 14px; background: var(--swep-mint-soft); border-radius: var(--swep-radius); font-size: 13px; }
.swep-event-facts dt { font-family: var(--swep-sans); }
.swep-event-facts dd { margin: 0; }
.widget_swep_events ul { list-style: none; margin: 0; }
.widget_swep_events li { padding: 6px 0; border-bottom: 1px dotted var(--swep-line); }
.swep-notice { padding: 14px; border: 1px dashed var(--swep-green); border-radius: var(--swep-radius); background: var(--swep-mint-soft); margin-bottom: 1.6em; }

/* ---------- Forms ---------- */
.swep-form { display: grid; gap: 12px; margin: 0 0 1.7em; }
.swep-form .swep-field { display: flex; flex-direction: column; gap: 4px; }
.swep-form label { font: bold 12px var(--swep-sans); }
.swep-form .req { color: #b00020; }
.swep-form input[type=text], .swep-form input[type=email], .swep-form input[type=tel], .swep-form select, .swep-form textarea,
.search-form .search-field, #respond input[type=text], #respond input[type=email], #respond textarea {
	width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #888; border-radius: var(--swep-radius);
	font: 14px Georgia, "Bitstream Charter", serif; background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.swep-form textarea { min-height: 140px; resize: vertical; }
.swep-form input:focus, .swep-form select:focus, .swep-form textarea:focus, .search-form .search-field:focus { border-color: var(--swep-green); box-shadow: 0 0 0 3px rgba(63, 127, 79, .18); outline: none; }
.swep-form .is-invalid input, .swep-form .is-invalid select, .swep-form .is-invalid textarea, .swep-form input.is-invalid { border-color: #b00020; box-shadow: 0 0 0 3px rgba(176, 0, 32, .12); }
.swep-form .swep-error { color: #b00020; font: 12px var(--swep-sans); min-height: 0; }
.swep-form .swep-check { flex-direction: row; align-items: flex-start; gap: 8px; }
.swep-form .swep-check label { font-weight: normal; font-family: Georgia, serif; font-size: 13px; }
.swep-form .swep-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.swep-form .swep-count { font: 11px var(--swep-sans); color: #888; text-align: right; }
.swep-form--compact { gap: 8px; }
.swep-form--compact .swep-inline { display: flex; gap: 6px; }
.swep-form--compact .swep-inline input { flex: 1; min-width: 0; }
.swep-form--compact .swep-btn { padding: 10px 12px; }
.swep-form-errors { background: #fdecee; border-left: 4px solid #b00020; padding: 10px 14px; border-radius: 0 var(--swep-radius) var(--swep-radius) 0; margin-bottom: 1em; font-size: 13px; }
.swep-form-errors ul { margin-bottom: 0; }
.swep-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-form { display: flex; gap: 6px; }
.search-form .search-submit { padding: 9px 12px; }

/* ---------- Thank-you page ---------- */
.swep-thanks { text-align: center; padding: 1.5em 0; }
.swep-thanks__icon { width: 84px; height: 84px; margin: 0 auto 1em; }
.swep-thanks__icon circle { fill: none; stroke: var(--swep-green); stroke-width: 3; stroke-dasharray: 260; stroke-dashoffset: 260; animation: swep-draw .9s ease forwards; }
.swep-thanks__icon path { fill: none; stroke: var(--swep-green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: swep-draw .5s .7s ease forwards; }
@keyframes swep-draw { to { stroke-dashoffset: 0; } }

/* ---------- Widgets ---------- */
.widget-area .widget-container { transition: transform .2s ease; }
.widget_media_image img { transition: transform .4s ease; }
.widget_media_image a:hover img { transform: rotate(-2deg) scale(1.03); }
.widget-area .search-form .search-field { font-size: 12px; }

/* ---------- Footer ---------- */
#footer { margin-top: 2em; }
.swep-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 1.6em 0; border-top: 3px solid #000; font-size: 12px; line-height: 1.6; }
.swep-footer-grid ul { list-style: none; margin: 0; }
.swep-footer-grid li { padding: 3px 0; }
.swep-footer-grid a { text-decoration: none; }
.swep-footer-grid a:hover { text-decoration: underline; }
#footer .swep-footer-grid .widget-area { float: none; width: auto; margin: 0; }
.swep-legal-nav ul { list-style: none; margin: 0 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-style: normal; }
.swep-copyright { margin: 0; }

.swep-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 998; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: #000; color: #fff; cursor: pointer; box-shadow: var(--swep-shadow);
	display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, background-color .2s;
}
.swep-to-top.is-visible { opacity: 1; transform: none; }
.swep-to-top:hover { background: var(--swep-green); }

/* ---------- 404 ---------- */
.swep-404 svg { width: 220px; max-width: 100%; display: block; margin: 0 0 1em; }

/* ---------- Pagination ---------- */
.swep-pagination .nav-links, .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; font: 13px var(--swep-sans); margin: 1em 0 2em; }
.navigation.pagination .page-numbers { padding: 6px 11px; border: 1px solid var(--swep-line); border-radius: 4px; text-decoration: none; }
.navigation.pagination .page-numbers.current { background: #000; color: #fff; border-color: #000; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; }
@media (max-width: 420px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; } }
.woocommerce ul.products, .woocommerce-page ul.products { margin: 0 0 1em; }
.woocommerce ul.products li.product { border: 1px solid var(--swep-line); border-radius: var(--swep-radius); padding: 0 0 14px !important; overflow: hidden; background: #fff; transition: transform .25s ease, box-shadow .25s ease; text-align: center; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--swep-shadow); }
.woocommerce ul.products li.product a img { margin: 0 0 10px !important; aspect-ratio: 4 / 3; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: bold 14px var(--swep-sans) !important; padding: 0 10px !important; color: #000; }
.woocommerce ul.products li.product .price { color: var(--swep-green) !important; font: bold 15px var(--swep-sans) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce-page .wc-block-components-button {
	background: var(--swep-green) !important; color: #fff !important; border-radius: var(--swep-radius) !important; font: bold 12px var(--swep-sans) !important; text-transform: uppercase; letter-spacing: .03em; padding: 10px 16px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--swep-green-dark) !important; }
.woocommerce div.product .product_title { font-size: 26px; }
.woocommerce div.product p.price { color: var(--swep-green); font: bold 20px var(--swep-sans); }
.woocommerce span.onsale { background: var(--swep-green); }
.woocommerce .woocommerce-breadcrumb { display: none; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--swep-green) !important; }

/* ---------- AOS fallback (content visible without JS) ---------- */
html:not(.js) [data-aos] { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   Responsive – the original Coraline layout was fixed-float; stack columns
   on smaller screens.
   ========================================================================== */
@media (max-width: 900px) {
	.swep-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
	body { padding: 0 4%; }
	.content-sidebar-sidebar #content-container,
	.content-sidebar-sidebar #content,
	.three-column #content,
	.content-sidebar-sidebar #main-sidebars,
	.content-sidebar-sidebar #feature,
	.content-sidebar-sidebar #primary,
	.content-sidebar-sidebar #secondary,
	.three-column #primary,
	.three-column #secondary,
	#main-sidebars { float: none; width: 100%; max-width: none; margin: 0; }
	#main-sidebars { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--swep-line); }
	#site-title { font-size: 26px; line-height: 32px; }
	#site-description { font-size: 15px; }
	#branding img { aspect-ratio: 990 / 260; }
	.swep-menu-toggle { display: inline-flex; }
	#access .menu { flex: 1 0 100%; order: 3; display: none; }
	#access.is-open .menu { display: block; animation: swep-drop .2s ease; }
	#access ul.menu-list, #access .menu > ul { flex-direction: column; }
	#access li { width: 100%; border-top: 1px solid #eee; }
	#access ul ul { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; width: 100%; }
	#access li.is-open > ul { display: block; }
	#access ul ul a { background: #f6f6f6; color: #000; padding-left: 2em; min-width: 0; line-height: 1.6; }
	#access .swep-search-toggle { margin-left: auto; }
	.swep-cards--2, .swep-cards--3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.swep-stats, .swep-pillars, .swep-grid-2 { grid-template-columns: 1fr 1fr; }
	.swep-pillars, .swep-grid-2 { grid-template-columns: 1fr; }
	.swep-footer-grid { grid-template-columns: 1fr; }
	.swep-hero { padding: 1.4em 1.1em; }
	.swep-hero__title, h1.entry-title { font-size: 23px; }
	.swep-newslist li { flex-direction: column; gap: 2px; }
	.swep-newslist time { flex: none; }
	.swep-postnav { flex-direction: column; }
	.swep-postnav .nav-next { text-align: left; }
}

@media print {
	#access, #branding, .swep-share, .swep-to-top, .swep-progress, #main-sidebars, .swep-cta, .swep-toc { display: none !important; }
	#content-container, #content { width: 100% !important; margin: 0 !important; float: none !important; }
}

/* Compact newsletter form in narrow sidebars/footers: stack the button. */
.widget-area .swep-form--compact .swep-inline,
.swep-footer-col .swep-form--compact .swep-inline { flex-direction: column; }
.widget-area .swep-form--compact .swep-btn,
.swep-footer-col .swep-form--compact .swep-btn { width: 100%; }
