body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F5F5DC;
    color: #2C2C2C;
}

.bg-beige {
    background-color: #F5F5DC;
}

.text-dark {
    color: #2C2C2C !important;
}

.bg-peach-card {
    background-color: #FFDAB9;
}

.bg-peach-dark {
    background-color: #E67E22;
}

.btn-peach {
    background-color: #E67E22;
    border-color: #E67E22;
    color: #FFFFFF;
}

.btn-peach:hover,
.btn-peach:focus,
.btn-peach:active {
    background-color: #D35400;
    border-color: #D35400;
    color: #FFFFFF;
}

.btn-outline-dark {
    border-color: #2C2C2C;
    color: #2C2C2C;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active {
    background-color: #2C2C2C;
    color: #FFFFFF;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.hero-section img {
    max-height: 400px;
    object-fit: cover;
}

.accordion-button:not(.collapsed) {
    background-color: #FFDAB9;
    color: #2C2C2C;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25);
}

footer a:hover {
    text-decoration: underline;
}
.card img,
.bg-light img {
  display: block;
  width: 100%;
  height: auto;
}
.container img:not([width]):not(.logo):not(.icon):not(.navbar-brand img) {
  max-width: 100%;
  height: auto;
}
/* WP Generator news block */
:root {
    --news-card-bg: #2c2c2c;
    --news-card-fg: #ffffff;
    --news-modal-bg: #2c2c2c;
    --news-modal-fg: #ffffff;
    --news-modal-accent: #e67e22;
    --news-btn-bg: #e67e22;
    --news-btn-fg: #ffffff;
}
.news-section {
    margin: 3rem 0 1.5rem;
    padding: 3rem 0 2.5rem;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--news-card-bg, #0f172a) 18%, transparent) 0%,
            color-mix(in srgb, var(--news-card-bg, #0f172a) 28%, transparent) 50%,
            color-mix(in srgb, var(--news-card-bg, #0f172a) 12%, transparent) 100%
        );
    color: inherit;
    border-top: 1px solid color-mix(in srgb, var(--news-card-fg, #e5e7eb) 10%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--news-card-fg, #e5e7eb) 10%, transparent);
}
.news-section-header {
    margin-bottom: 2rem;
    text-align: center;
}
.news-section-header h2 {
    margin: 0 0 .6rem;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
    line-height: 1.2;
    color: inherit;
}
.news-section-header h2::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin: .65rem auto 0;
    border-radius: 2px;
    background: var(--news-btn-bg, #2563eb);
    opacity: .6;
}
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.news-grid--home {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .news-grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.news-section-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}
.news-open-link {
    text-decoration: none;
}
.news-btn,
a.news-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    background: var(--news-btn-bg, #2563eb) !important;
    color: var(--news-btn-fg, #ffffff) !important;
    border: 1px solid color-mix(in srgb, var(--news-btn-bg, #2563eb) 78%, #000 22%);
    border-radius: .5rem;
    padding: .6rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
    transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.news-btn:hover,
a.news-btn:hover,
.news-btn:focus-visible,
a.news-btn:focus-visible {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    color: var(--news-btn-fg, #ffffff) !important;
}
.news-page-section {
    padding: 2.5rem 0 1.5rem;
}
.news-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--news-card-fg, #e5e7eb) 15%, transparent);
    flex-wrap: wrap;
}
.news-page-header h1 {
    margin: 0;
    font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.2rem);
}
.news-card {
    background: var(--news-card-bg, #0f172a) !important;
    color: var(--news-card-fg, #e5e7eb) !important;
    border: 1px solid color-mix(in srgb, var(--news-card-fg, #e5e7eb) 14%, transparent);
    border-radius: .75rem;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    transition: transform 250ms ease, box-shadow 250ms ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--news-card-bg, #0f172a) 40%, rgba(0,0,0,.35));
}
.news-card-inner {
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
}
.news-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--news-btn-bg, #2563eb);
    opacity: .45;
}
.news-card-title {
    margin: .35rem 0 .65rem;
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
}
.news-card-date {
    margin: 0 0 .85rem;
    font-size: .82rem;
    opacity: .55;
    letter-spacing: .01em;
}
.news-read-more {
    margin-top: auto;
    align-self: flex-start;
    font-size: .82rem;
    padding: .45rem .9rem;
}
.news-card-body {
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.news-card-content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
    font-size: .92rem;
}
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: newsModalFadeIn 200ms ease;
}
@keyframes newsModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.news-modal-dialog {
    position: relative;
    width: min(860px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: var(--news-modal-bg, #111827);
    color: var(--news-modal-fg, #f9fafb);
    border-radius: .85rem;
    padding: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--news-modal-fg, #f9fafb) 8%, transparent);
    z-index: 1;
    animation: newsDialogSlideUp 250ms ease;
}
@keyframes newsDialogSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.news-modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.1rem 1.35rem .9rem;
    background: var(--news-modal-bg, #111827);
    border-bottom: 1px solid color-mix(in srgb, var(--news-modal-fg, #f9fafb) 12%, transparent);
}
.news-modal-headtext {
    min-width: 0;
}
.news-modal-close {
    position: sticky;
    top: .35rem;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    opacity: .55;
    transition: opacity 150ms ease, transform 150ms ease;
}
.news-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}
.news-modal-title {
    margin: 0;
    font-size: clamp(1.2rem, 1rem + .7vw, 1.7rem);
    line-height: 1.35;
}
.news-modal-date {
    margin: .45rem 0 0;
    opacity: .55;
    font-size: .88rem;
}
.news-modal-body {
    padding: 1.15rem 1.35rem 1.5rem;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.75;
    font-size: .95rem;
}
.news-modal-title,
.news-modal-date,
.news-modal-body,
.news-modal-body * {
    color: var(--news-modal-fg, #f9fafb) !important;
}
.news-modal-body a {
    color: var(--news-modal-accent, #60a5fa) !important;
    text-decoration: underline;
}
/* Font safety overrides */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn,
input,
textarea,
select {
  font-family: var(--font-sans);
}

.btn-peach { color: #1a1a1a !important; }
.btn-peach:hover,
.btn-peach:focus,
.btn-peach:active { color: #1a1a1a !important; }

/* Contrast safety overrides (auto-generated) */
*, *::before, *::after { box-sizing: border-box; }
.bg-dark > *, .bg-dark > * > :not(.btn):not(.badge):not([class*="text-"]) { color: #f8f9fa; }
.bg-light > *, .bg-light > * > :not(.btn):not(.badge):not([class*="text-"]) { color: #212529; }
.text-white { color: #ffffff !important; }
.text-dark { color: #212529 !important; }
section.bg-dark h1, section.bg-dark h2, section.bg-dark h3,
section.bg-dark h4, section.bg-dark h5, section.bg-dark h6,
section.bg-dark p, section.bg-dark li, section.bg-dark span,
section.bg-dark a:not(.btn):not(.news-btn) { color: #f0f0f0; }
.card:not(.news-card) { color: #212529; }
.card:not(.news-card) p, .card:not(.news-card) h1, .card:not(.news-card) h2,
.card:not(.news-card) h3, .card:not(.news-card) h4, .card:not(.news-card) h5,
.card:not(.news-card) h6, .card:not(.news-card) li, .card:not(.news-card) span { color: inherit; }
/* WP Generator feature helpers */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  z-index: 9999;
  transition: width 120ms ease-out;
}
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 9998;
}
.scroll-top.is-visible {
  opacity: 0.95;
  transform: translateY(0);
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

