/* Default Styles */
/* Fonts loaded via <link> in index.html — do NOT use CSS imports here as it blocks :root variables */

:root {
    /* Layout — site header height. CSS fallback; JS in header.hbs writes the measured value at runtime. */
    --header-height: 96px;

    /* Theme Colors */
    --dark: #0a0a0a;
    --navy: #1a1a2e;
    --gold: #d4af37;
    --gold-dark: #b8972e;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;

    /* Status Colors */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    /* Typography */
    --font-family: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-heading: 'Mulish', sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;

    /* Layout */
    --header-height: 80px;
    --header-height-mobile: 80px;
    --page-padding-top: 80px;
    --hero-padding-top: 150px;
    --hero-padding-bottom: 80px;
    --hero-min-height: 50vh;
    --sidebar-width: 300px;

    /* Legacy Brand Mappings */
    --brand-primary: var(--gold);
    --brand-dark: var(--gold-dark);
    --brand-light: var(--gray-700);
    --brand-accent: var(--gold);
    --brand-neutral: #4a5568;
    --light-gray: #E5E7EB;
    --medium-gray: var(--gray-400);
    --dark-gray: var(--gray-700);

    /* Legacy Theme Aliases */
    --forest-primary: var(--gold);
    --forest-deep: var(--gold-dark);
    --sage-light: var(--gray-700);
    --moss-green: var(--gray-600);
    --eucalyptus: var(--gray-700);
    --pine-deep: var(--navy);
    --bamboo: var(--gray-700);
    --kintsugi-gold: var(--gold);
    --golden-light: var(--gold);
    --warm-amber: var(--gold);
    --pure-white: var(--white);
    --natural-white: var(--dark);
    --stone-gray: var(--gray-700);
    --soft-gray: var(--gray-400);
    --charcoal: var(--white);
}

/* lg+ — header swaps to h-16 logo */
@media (min-width: 1024px) {
    :root {
        --header-height: 112px;
    }
}

/* Base Styles */
body {
    font-family: var(--font-family);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* Primary */
.cms-bg-primary {
    background-color: var(--brand-primary) !important;
}
.cms-text-primary {
    color: var(--brand-primary) !important;
}
.cms-border-primary {
    border-color: var(--brand-primary) !important;
}

/* Dark */
.cms-bg-dark {
    background-color: var(--brand-dark) !important;
}
.cms-text-dark {
    color: var(--brand-dark) !important;
}
.cms-border-dark {
    border-color: var(--brand-dark) !important;
}

/* Light */
.cms-bg-light {
    background-color: var(--brand-light) !important;
}
.cms-text-light {
    color: var(--brand-light) !important;
}
.cms-border-light {
    border-color: var(--brand-light) !important;
}

/* Accent */
.cms-bg-accent {
    background-color: var(--brand-accent) !important;
}

.cms-text-accent {
    color: var(--brand-accent) !important;
}

.cms-border-accent {
    border-color: var(--brand-accent) !important;
}

/* Neutral - Not available in Tailwind */
.cms-text-neutral {
    color: var(--brand-neutral) !important;
}
.cms-bg-neutral {
    background-color: var(--brand-neutral) !important;
}
.cms-border-neutral {
    border-color: var(--brand-neutral) !important;
}

/* Typography */
.cms-h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    margin-bottom: 24px;
}

.cms-h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    margin-bottom: 16px;
}

.cms-h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    margin-bottom: 12px;
}

.cms-h4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 8px;
}

.cms-h5 {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 8px;
}

.cms-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 8px;
}

.cms-small {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 8px;
}

/* Links */
.cms-link {
    text-decoration: none;
    transition: all 150ms ease;
}

.cms-link:hover {
    text-decoration: underline;
}

/* Buttons */
.cms-btn {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 150ms ease;
}

.cms-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cards */
.cms-card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 16px;
    transition: box-shadow 150ms ease;
}

.cms-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.cms-card-header {
    margin-bottom: 16px;
}

.cms-card-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
}

.cms-card-content {
    font-size: 16px;
    line-height: 24px;
}

.cms-card-footer {
    margin-top: 16px;
}

/* Form Elements */
.cms-form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--dark-gray);
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    transition: border-color 150ms ease;
    box-sizing: border-box;
}

.cms-form-control:hover {
    border-color: var(--brand-primary);
}

.cms-form-control:focus {
    border: 2px solid var(--brand-primary);
    outline: none;
}

.cms-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.cms-form-select {
    display: block;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--dark-gray);
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    box-sizing: border-box;
}

.cms-form-select:focus {
    outline: none;
}

.cms-form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 8px 12px;
    font-size: 16px;
    font-family: var(--font-family);
    border-radius: 4px;
    resize: vertical;
    transition: border-color 150ms ease;
    box-sizing: border-box;
}

.cms-form-textarea:focus {
    outline: none;
}

.cms-form-checkbox, .cms-form-radio {
    opacity: 0;
    width: 0;
    height: 0;
}

.cms-form-checkbox + label, .cms-form-radio + label {
    padding-left: 28px;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
}

.cms-form-checkbox + label:before {
    content: '';
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.cms-form-checkbox:checked + label:after {
    content: '';
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cms-form-radio + label:before {
    content: '';
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.cms-form-radio:checked + label:after {
    content: '';
    left: 5px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cms-error-message {
    font-size: 14px;
    margin-top: 4px;
}

.cms-success-message {
    font-size: 14px;
    margin-top: 4px;
}

/* Media Queries */
@media (max-width: 768px) {
    .cms-h1 {
      font-size: 32px;
      line-height: 40px;
  }

  .cms-h2 {
      font-size: 28px;
      line-height: 36px;
  }

  .cms-h3 {
      font-size: 24px;
      line-height: 32px;
  }

  .cms-btn {
      margin-bottom: 8px;
  }
}

.bg-dark {
    background: black;
}

.text-gold {
    --tw-text-opacity: 1;
    color: rgb(212 175 55 / var(--tw-text-opacity, 1));
}

.bg-gold {
    --tw-bg-opacity: 1;
    background-color: rgb(212 175 55 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gold-dark:hover {
    background-color: rgb(180 145 35);
}

.grayscale {
    --tw-grayscale: grayscale(100%);
    filter: grayscale(100%);
}

.hover\:grayscale-0:hover {
    --tw-grayscale: grayscale(0);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}


/* Runtime 2.0 migration states and shared recovery UI. */
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 10000;
  transform: translateY(-200%); background: #fff; color: #0a0a0a;
  padding: .75rem 1rem; border-radius: .25rem; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.drmia-migration-status { color: #9ca3af; font-size: .875rem; line-height: 1.5; margin-top: .75rem; }
.drmia-newsletter-unavailable input:disabled,
.drmia-newsletter-unavailable button:disabled { cursor: not-allowed; opacity: .72; }
.drmia-contact-unavailable { border-left: 4px solid #C8102E; background: #f9fafb; padding: 1.5rem; }
.drmia-contact-unavailable h2 { color: #0a0a0a; font-size: 1.5rem; font-weight: 700; margin: 0 0 .75rem; }
.drmia-contact-unavailable p { color: #4b5563; margin: 0 0 1rem; }
.drmia-contact-unavailable a { color: #A00D24; font-weight: 700; text-decoration: underline; }
.drmia-error { min-height: 72vh; display: grid; place-items: center; padding: 10rem 1.5rem 5rem; background: #0a0a0a; color: #fff; text-align: center; }
.drmia-error__inner { width: min(760px, 100%); }
.drmia-error__code { color: #d4af37; font-size: .9rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.drmia-error h1 { color: #fff; font-family: 'Mulish', sans-serif; font-size: clamp(2.25rem, 7vw, 4.75rem); line-height: 1.08; margin: 1rem 0; }
.drmia-error p { color: #d1d5db; font-size: 1.125rem; line-height: 1.7; }
.drmia-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.drmia-error__action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; border: 2px solid #C8102E; border-radius: 999px; background: #C8102E; color: #fff; font-weight: 800; text-decoration: none; }
.drmia-error__action--secondary { background: transparent; border-color: #d4af37; color: #fff; }
.drmia-error__action:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.drmia-blog-hero { background: #0a0a0a; color: #fff; padding: 10rem 1.5rem 5rem; text-align: center; }
.drmia-blog-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.drmia-post-card { border: 1px solid #e5e7eb; background: #fff; height: 100%; }
.drmia-post-card__body { padding: 1.5rem; }
.drmia-post-card__image { aspect-ratio: 16 / 10; display: block; object-fit: cover; width: 100%; }
.drmia-post { padding-top: 10rem; }
@media (max-width: 640px) { .drmia-error__actions { align-items: stretch; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
