/* ==============================================================================
   IOSF — SISTEMA SAGRADO DE TEMAS: SAUIL (LIGHT) & MĒNA (DARK)
   Cores Premium Modernas, Tipografia Sagrada e Harmonia Canônica
   Tradição Visigótica: Sauil (☀️ Sol / Claridade) e Mēna (🌙 Lua / Vigília)
   ============================================================================== */

/* ---------- 1. Variáveis e Tokens de Design do Modo Claro (Sauil) ---------- */
html[data-theme="light"],
body.theme-light {
    --iosf-bg: #F8F6F0 !important;
    --iosf-bg-primary: #F8F6F0 !important;
    --iosf-bg-deep: #EFECE3 !important;
    --iosf-bg-secondary: #F2EFE7 !important;
    --iosf-bg-surface: #FFFFFF !important;
    --iosf-card: #FFFFFF !important;
    --iosf-card-2: #F4F0E6 !important;
    --iosf-ivory: #1C1917 !important;
    --iosf-text-primary: #1C1917 !important;
    --iosf-text-secondary: #575248 !important;
    --iosf-text-muted: #575248 !important;
    --iosf-text-dim: #7C7567 !important;
    --iosf-gold: #9E6B1F !important;
    --iosf-gold-hover: #7E5212 !important;
    --iosf-gold-bright: #B57D27 !important;
    --iosf-gold-dark: #6E450E !important;
    --iosf-bronze: #845727 !important;
    --iosf-copper: #A84017 !important;
    --iosf-flame: #C2410C !important;
    --iosf-ember: #B3471A !important;
    --iosf-line: rgba(70, 52, 30, 0.14) !important;
    --iosf-line-soft: rgba(70, 52, 30, 0.08) !important;
    --iosf-border: #DCD5C5 !important;
    --iosf-border-subtle: rgba(158, 107, 31, 0.18) !important;
    --iosf-border-highlight: rgba(158, 107, 31, 0.38) !important;
    --iosf-card-shadow: 0 10px 30px -5px rgba(50, 40, 25, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Transições fluidas universais ao alternar entre Mēna e Sauil */
html {
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
body {
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   2. BOTÃO E SELETOR DE TEMA NO HEADER & MOBILE (SAUIL ☀️ / MĒNA 🌙)
   ============================================================================== */
.iosf-theme-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.iosf-theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: rgba(235, 192, 128, 0.10);
    border: 1px solid rgba(235, 192, 128, 0.28);
    color: var(--iosf-gold);
    font-family: var(--iosf-sans, 'Inter', sans-serif);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
    outline: none;
}

.iosf-theme-toggle-btn:hover {
    background: rgba(235, 192, 128, 0.22);
    border-color: var(--iosf-gold);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 4px 16px rgba(235, 192, 128, 0.30);
}

.iosf-theme-toggle-btn:active {
    transform: translateY(0) scale(0.96);
}

.iosf-theme-icon-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    position: relative;
    pointer-events: none;
}

/* Ícone no Dark (Mēna): exibe lua dourada; no Light (Sauil): exibe sol vibrante */
.iosf-theme-icon-light { display: none; }
.iosf-theme-icon-dark  { display: inline-flex; color: #EBC080; }

.iosf-theme-text-light { display: none; }
.iosf-theme-text-dark  { display: inline; }

html[data-theme="light"] .iosf-theme-icon-light {
    display: inline-flex;
    color: #9E6B1F;
    animation: iosfSunRotate 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-theme="light"] .iosf-theme-icon-dark { display: none; }

html[data-theme="light"] .iosf-theme-text-light { display: inline; }
html[data-theme="light"] .iosf-theme-text-dark  { display: none; }

@keyframes iosfSunRotate {
    0% { transform: rotate(-90deg) scale(0.6); opacity: 0; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

html[data-theme="light"] .iosf-theme-toggle-btn {
    background: rgba(158, 107, 31, 0.12) !important;
    border-color: rgba(158, 107, 31, 0.32) !important;
    color: #9E6B1F !important;
    box-shadow: 0 2px 8px rgba(158, 107, 31, 0.12) !important;
}

html[data-theme="light"] .iosf-theme-toggle-btn:hover {
    background: rgba(158, 107, 31, 0.22) !important;
    border-color: #9E6B1F !important;
    box-shadow: 0 4px 16px rgba(158, 107, 31, 0.25) !important;
}

/* Tooltip elegante exibida ao passar o mouse sobre o ícone */
.iosf-theme-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 50%;
    transform: translateX(50%) translateY(4px);
    background: #181816;
    border: 1px solid rgba(235, 192, 128, 0.35);
    border-radius: 8px;
    padding: 0.38rem 0.75rem;
    color: #F8F6F0;
    font-family: var(--iosf-sans, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.70), 0 0 10px rgba(235, 192, 128, 0.15);
    z-index: 10005;
}

.iosf-theme-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #181816 transparent;
}

.iosf-theme-toggle-btn:hover .iosf-theme-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.iosf-theme-tooltip strong {
    color: var(--iosf-gold);
}

.iosf-theme-tooltip .gothic-rune {
    font-family: 'Noto Sans Gothic', serif;
    color: var(--iosf-gold);
    margin-left: 2px;
}

html[data-theme="light"] .iosf-theme-tooltip {
    background: #FFFFFF !important;
    border-color: #DFD8C8 !important;
    color: #1C1917 !important;
    box-shadow: 0 8px 24px rgba(50, 40, 25, 0.15) !important;
}

html[data-theme="light"] .iosf-theme-tooltip strong {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-theme-tooltip .gothic-rune {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-theme-tooltip::before {
    border-color: transparent transparent #FFFFFF transparent !important;
}

/* Dropdown de Temas Sagrados */
.iosf-theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #181816;
    border: 1px solid rgba(235, 192, 128, 0.30);
    border-radius: 8px;
    padding: 0.5rem;
    list-style: none;
    margin: 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(235, 192, 128, 0.10);
    z-index: 10001;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: iosfThemeFadeIn 0.2s ease-out;
}

@keyframes iosfThemeFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.iosf-theme-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #F1EBDD;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.iosf-theme-item:hover {
    background: rgba(235, 192, 128, 0.12);
}

.iosf-theme-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.iosf-theme-item-icon.sun-icon {
    background: rgba(235, 192, 128, 0.15);
    color: #EBC080;
}

.iosf-theme-item-icon.moon-icon {
    background: rgba(200, 205, 215, 0.12);
    color: #E0E4EC;
}

.iosf-theme-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.iosf-theme-item-title {
    font-size: 0.90rem;
    font-weight: 600;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.iosf-theme-item-title .gothic-rune {
    font-family: 'Noto Sans Gothic', 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--iosf-gold);
}

.iosf-theme-item-sub {
    font-size: 0.72rem;
    color: #B6B0A3;
    margin-top: 1px;
}

.iosf-theme-check {
    font-size: 0.80rem;
    color: var(--iosf-gold);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Estado Ativo no Menu */
html[data-theme="dark"] .iosf-theme-item[data-set-theme="dark"] .iosf-theme-check,
html[data-theme="light"] .iosf-theme-item[data-set-theme="light"] .iosf-theme-check {
    opacity: 1;
}

html[data-theme="dark"] .iosf-theme-item[data-set-theme="dark"],
html[data-theme="light"] .iosf-theme-item[data-set-theme="light"] {
    background: rgba(235, 192, 128, 0.14);
}

/* Dropdown no Tema Light */
html[data-theme="light"] .iosf-theme-dropdown {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 16px 40px rgba(50, 40, 25, 0.14) !important;
}

html[data-theme="light"] .iosf-theme-item {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-theme-item:hover {
    background: #F8F5EE !important;
}

html[data-theme="light"] .iosf-theme-item-sub {
    color: #6E6657 !important;
}

html[data-theme="light"] .iosf-theme-item[data-set-theme="light"] {
    background: #F4EFE3 !important;
}

html[data-theme="light"] .iosf-theme-item-icon.sun-icon {
    background: rgba(158, 107, 31, 0.14);
    color: #9E6B1F;
}

/* Card de Tema no Menu Mobile Drawer */
.iosf-mob-theme-box {
    box-sizing: border-box;
    width: 100%;
    margin: 0.75rem 0 1rem;
    padding: 0.75rem;
    background: rgba(235, 192, 128, 0.05);
    border: 1px solid rgba(235, 192, 128, 0.16);
    border-radius: 8px;
}

.iosf-mob-theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.iosf-mob-theme-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--iosf-gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.iosf-mob-theme-current {
    font-size: 0.72rem;
    color: var(--iosf-text-secondary);
    font-family: 'Noto Sans Gothic', var(--iosf-sans);
}

.iosf-mob-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.iosf-mob-theme-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
    min-height: 3.5rem;
    padding: 0.55rem;
    box-sizing: border-box;
    background: #141412;
    border: 1px solid rgba(235, 192, 128, 0.22);
    border-radius: 8px;
    color: #F1EBDD;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    user-select: none;
    touch-action: manipulation;
}

.iosf-mob-theme-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.iosf-mob-theme-btn-icon.sun {
    background: rgba(235, 192, 128, 0.15);
    color: #EBC080;
}

.iosf-mob-theme-btn-icon.moon {
    background: rgba(200, 205, 215, 0.12);
    color: #D8DCE5;
}

.iosf-mob-theme-btn-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.iosf-mob-theme-btn-info strong {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    color: #F1EBDD;
    white-space: normal;
}

.iosf-mob-theme-btn-info small {
    font-size: 0.68rem;
    color: #9C968A;
    line-height: 1.2;
    white-space: normal;
}

/* Estado Ativo do Tema Mobile */
.iosf-mob-theme-btn.active,
html[data-theme="dark"] .iosf-mob-theme-btn[data-set-theme="dark"],
html[data-theme="light"] .iosf-mob-theme-btn[data-set-theme="light"],
html:not([data-theme="light"]) .iosf-mob-theme-btn[data-set-theme="dark"] {
    background: rgba(235, 192, 128, 0.18) !important;
    border: 1.5px solid var(--iosf-gold) !important;
    box-shadow: 0 0 14px rgba(235, 192, 128, 0.25) !important;
}

.iosf-mob-theme-btn.active strong,
html[data-theme="dark"] .iosf-mob-theme-btn[data-set-theme="dark"] strong,
html[data-theme="light"] .iosf-mob-theme-btn[data-set-theme="light"] strong,
html:not([data-theme="light"]) .iosf-mob-theme-btn[data-set-theme="dark"] strong {
    color: var(--iosf-gold) !important;
}

/* Mobile Theme Box no Modo Claro */
html[data-theme="light"] .iosf-mob-theme-box {
    background: #F8F5EE !important;
    border-color: #E2DBCB !important;
}

html[data-theme="light"] .iosf-mob-theme-btn {
    background: #FFFFFF !important;
    border-color: #DFD8C8 !important;
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-mob-theme-btn-info strong {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-mob-theme-btn.active,
html[data-theme="light"] .iosf-mob-theme-btn[data-set-theme="light"] {
    background: #F4EFE3 !important;
    border: 1.5px solid #9E6B1F !important;
    box-shadow: 0 0 12px rgba(158, 107, 31, 0.18) !important;
}

html[data-theme="light"] .iosf-mob-theme-btn.active strong,
html[data-theme="light"] .iosf-mob-theme-btn[data-set-theme="light"] strong {
    color: #9E6B1F !important;
}

/* ==============================================================================
   3. ESTILIZAÇÃO DO MODO CLARO (SAUIL) PARA O SITE TODO
   ============================================================================== */

/* ---------- 3.1 Topbar Solene (Marquee) ---------- */
html[data-theme="light"] #iosf-top-announcement-bar {
    background: #EFECE3 !important;
    border-bottom: 1px solid #DDD6C6 !important;
    box-shadow: 0 2px 10px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] #iosf-top-announcement-bar .iosf-top-bar-text {
    color: #2D2821 !important;
}

html[data-theme="light"] #iosf-top-announcement-bar .iosf-top-bar-link {
    color: #9E6B1F !important;
}

html[data-theme="light"] #iosf-top-announcement-bar .iosf-marquee-sep {
    color: #B57D27 !important;
    opacity: 0.6;
}

/* ---------- 3.2 Cabeçalho Principal (Header) ---------- */
html[data-theme="light"] .iosf-header {
    background: rgba(248, 246, 240, 0.94) !important;
    border-bottom: 1px solid rgba(70, 52, 30, 0.12) !important;
    box-shadow: 0 4px 20px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .iosf-nav-link {
    color: #2C2720 !important;
}

html[data-theme="light"] .iosf-nav-link:hover,
html[data-theme="light"] .iosf-nav-item:hover > .iosf-nav-link {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-nav-caret {
    color: #7E5212 !important;
}

/* Mega Menu Dropdown */
html[data-theme="light"] .iosf-megamenu {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 20px 45px rgba(50, 40, 25, 0.10) !important;
}

html[data-theme="light"] .iosf-megamenu__header {
    border-bottom: 1px solid #EEE8DB !important;
}

html[data-theme="light"] .iosf-megamenu__label {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-megamenu-link {
    color: #383228 !important;
}

html[data-theme="light"] .iosf-megamenu-link:hover {
    background: #F8F5EE !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-megamenu-card {
    background: #F8F5EE !important;
    border: 1px solid #E2DBCB !important;
}

html[data-theme="light"] .iosf-megamenu-card__title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-megamenu-card__desc {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-megamenu-card__cta {
    color: #9E6B1F !important;
}

/* Botões de Ação do Header */
html[data-theme="light"] .iosf-search-trigger {
    background: rgba(158, 107, 31, 0.08) !important;
    border: 1px solid rgba(158, 107, 31, 0.22) !important;
    color: #6E4E1C !important;
}

html[data-theme="light"] .iosf-search-trigger:hover {
    background: rgba(158, 107, 31, 0.16) !important;
    color: #1C1917 !important;
    border-color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-lang-btn {
    background: rgba(158, 107, 31, 0.08) !important;
    border: 1px solid rgba(158, 107, 31, 0.22) !important;
    color: #3A3328 !important;
}

html[data-theme="light"] .iosf-lang-dropdown {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 12px 30px rgba(50, 40, 25, 0.12) !important;
}

html[data-theme="light"] .iosf-lang-item {
    color: #383228 !important;
}

html[data-theme="light"] .iosf-lang-item:hover,
html[data-theme="light"] .iosf-lang-item.active {
    background: #F8F5EE !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-burger-btn {
    background: rgba(158, 107, 31, 0.08) !important;
    border: 1px solid rgba(158, 107, 31, 0.25) !important;
    color: #3A3328 !important;
}

html[data-theme="light"] .iosf-burger-btn:hover {
    background: rgba(158, 107, 31, 0.16) !important;
    border-color: #9E6B1F !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-footer-lang-heading {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-footer-lang-item {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(158, 107, 31, 0.22) !important;
    color: #3A3328 !important;
}

html[data-theme="light"] .iosf-footer-lang-item:hover {
    background: rgba(158, 107, 31, 0.12) !important;
    border-color: #9E6B1F !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-footer-lang-item.active {
    background: rgba(158, 107, 31, 0.18) !important;
    border-color: #9E6B1F !important;
    color: #9E6B1F !important;
    box-shadow: 0 1px 4px rgba(158, 107, 31, 0.2) !important;
}

html[data-theme="light"] .iosf-mob-lang-bar {
    background: #FFFFFF !important;
    border-color: rgba(158, 107, 31, 0.2) !important;
}

html[data-theme="light"] .iosf-mob-lang-label {
    color: #3A3328 !important;
}

html[data-theme="light"] .iosf-mob-lang-pill {
    background: #F8F5EE !important;
    border-color: rgba(158, 107, 31, 0.2) !important;
    color: #3A3328 !important;
}

html[data-theme="light"] .iosf-mob-lang-pill:hover,
html[data-theme="light"] .iosf-mob-lang-pill.active {
    background: rgba(158, 107, 31, 0.16) !important;
    border-color: #9E6B1F !important;
    color: #9E6B1F !important;
}

/* ---------- 3.3 Seções Gerais e Container ---------- */
html[data-theme="light"] body.heathen-theme,
html[data-theme="light"] .iosf-page-wrap,
html[data-theme="light"] .site-main-content {
    background-color: var(--iosf-bg) !important;
    color: var(--iosf-text-primary) !important;
}

html[data-theme="light"] .iosf-section {
    background: var(--iosf-bg) !important;
    color: var(--iosf-text-primary) !important;
    border-top: 1px solid var(--iosf-line-soft) !important;
}

html[data-theme="light"] .iosf-section--alt {
    background: var(--iosf-bg-deep) !important;
}

html[data-theme="light"] h1, 
html[data-theme="light"] h2, 
html[data-theme="light"] h3, 
html[data-theme="light"] h4, 
html[data-theme="light"] h5, 
html[data-theme="light"] h6,
html[data-theme="light"] .iosf-h2,
html[data-theme="light"] .iosf-h3,
html[data-theme="light"] .iosf-h4 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-eyebrow,
html[data-theme="light"] .iosf-label {
    color: #9E6B1F !important;
}

/* ---------- 3.4 Barra de Estatísticas (Stats) ---------- */
html[data-theme="light"] .iosf-stats {
    background: #EFECE3 !important;
    border-top: 1px solid #DFD8C8 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-stat {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 4px 15px rgba(50, 40, 25, 0.04) !important;
}

html[data-theme="light"] .iosf-stat__num {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-stat .iosf-label {
    color: #6E6657 !important;
}

/* ---------- 3.5 Próximo Blót em Destaque (Home) ---------- */
html[data-theme="light"] .iosf-blot-hero {
    background: radial-gradient(circle at 10% 20%, #FAF8F2 0%, #EFEBE0 80%) !important;
    border-top: 1px solid #DFD8C8 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-blot-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-blot-desc {
    color: #4A4439 !important;
}

html[data-theme="light"] .iosf-blot-axiom {
    background: #FFFFFF !important;
    border-left: 3px solid #9E6B1F !important;
    color: #383228 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .iosf-countdown-wrap {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 8px 25px rgba(50, 40, 25, 0.06) !important;
}

html[data-theme="light"] .iosf-countdown-wrap.iosf-countdown-celebrating {
    background: linear-gradient(135deg, #FFFDF8 0%, #FFF8EE 100%) !important;
    border: 1px solid #E5B25D !important;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.12) !important;
}

html[data-theme="light"] .iosf-blot-badge-tag.iosf-blot-badge-active {
    background: #FFF4E5 !important;
    border-color: #D97706 !important;
    color: #B45309 !important;
}

html[data-theme="light"] .iosf-countdown-cell {
    background: #F7F4EB !important;
    border: 1px solid #E6E0D2 !important;
}

html[data-theme="light"] .iosf-countdown-digit {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-countdown-unit {
    color: #5C5547 !important;
}

html[data-theme="light"] .iosf-params-card {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 8px 25px rgba(50, 40, 25, 0.06) !important;
}

html[data-theme="light"] .iosf-params-header {
    border-bottom: 1px solid #EDE7D8 !important;
}

html[data-theme="light"] .iosf-params-item {
    border-bottom: 1px solid #F0EADB !important;
}

html[data-theme="light"] .iosf-params-label {
    color: #6E6657 !important;
}

html[data-theme="light"] .iosf-params-val {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-moon-strip {
    background: #F7F4EB !important;
    border: 1px solid #E6E0D2 !important;
}

html[data-theme="light"] .iosf-moon-strip__phase {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-moon-strip__desc {
    color: #6E6657 !important;
}

/* Botões do Blót */
html[data-theme="light"] .iosf-btn-sacred-primary {
    background: linear-gradient(135deg, #9E6B1F 0%, #845727 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(158, 107, 31, 0.25) !important;
}

html[data-theme="light"] .iosf-btn-sacred-primary:hover {
    background: linear-gradient(135deg, #855513 0%, #6E450E 100%) !important;
    box-shadow: 0 6px 20px rgba(158, 107, 31, 0.35) !important;
    color: #FFFFFF !important;
}

html[data-theme="light"] .iosf-btn-sacred-ghost {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #383228 !important;
}

html[data-theme="light"] .iosf-btn-sacred-ghost:hover {
    background: #F7F4EB !important;
    border-color: #9E6B1F !important;
    color: #9E6B1F !important;
}

/* Alternador de Hemisfério */
html[data-theme="light"] .iosf-cal-hemi-toggle {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-cal-hemi-btn {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-cal-hemi-btn.active {
    background: #9E6B1F !important;
    color: #FFFFFF !important;
}

/* ---------- 3.6 Linha do Tempo dos Blóts ---------- */
html[data-theme="light"] .iosf-timeline-section {
    background: #F8F6F0 !important;
}

html[data-theme="light"] .iosf-timeline-h2 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-timeline-sub {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-blot-card {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .iosf-blot-card:hover {
    border-color: #9E6B1F !important;
    box-shadow: 0 14px 30px rgba(50, 40, 25, 0.10) !important;
}

html[data-theme="light"] .iosf-blot-card--active {
    border: 2px solid #9E6B1F !important;
    background: #FFFCF5 !important;
}

/* ---------- 3.7 Posts e Artigos (Cards da Home e Categorias) ---------- */
html[data-theme="light"] .iosf-posts .elementor-post,
html[data-theme="light"] .elementor-post {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .iosf-posts .elementor-post:hover,
html[data-theme="light"] .elementor-post:hover {
    border-color: #9E6B1F !important;
    box-shadow: 0 14px 30px rgba(50, 40, 25, 0.10) !important;
}

html[data-theme="light"] .iosf-posts .elementor-post__title a,
html[data-theme="light"] .elementor-post__title a {
    color: #1C1917 !important;
    font-family: var(--iosf-serif, 'EB Garamond', serif) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
}

html[data-theme="light"] .iosf-posts .elementor-post__title a:hover,
html[data-theme="light"] .elementor-post__title a:hover {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-posts .elementor-post__excerpt p,
html[data-theme="light"] .elementor-post__excerpt p {
    color: #4A463F !important;
    font-family: var(--iosf-sans, 'Inter', sans-serif) !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

html[data-theme="light"] .iosf-posts .elementor-post__meta-data,
html[data-theme="light"] .elementor-post__meta-data {
    color: #787060 !important;
}

html[data-theme="light"] .iosf-posts .elementor-post__read-more,
html[data-theme="light"] .elementor-post__read-more {
    color: #9E6B1F !important;
}

/* ---------- 3.8 Página de Artigo Individual (Single Post) ---------- */
html[data-theme="light"] .iosf-post-body-section {
    background-color: #F8F6F0 !important;
}

html[data-theme="light"] .iosf-post-main {
    background-color: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    color: #24211D !important;
    box-shadow: 0 8px 30px rgba(50, 40, 25, 0.05) !important;
}

/* ==============================================================================
   ESTILOS DE LEITURA SAGRADA — MODO CLARO (SAUIL ☀️)
   Contraste canônico, elegância e legibilidade impecável para artigos e sidebar
   ============================================================================== */

/* 1. Títulos, Listas e Corpo Editorial do Artigo */
html[data-theme="light"] #articleBody,
html[data-theme="light"] #articleBody article,
html[data-theme="light"] #articleBody p,
html[data-theme="light"] #articleBody ul,
html[data-theme="light"] #articleBody ol,
html[data-theme="light"] #articleBody li,
html[data-theme="light"] #articleBody div,
html[data-theme="light"] #articleBody section,
html[data-theme="light"] #articleBody span:not(.ref-gatilho):not(.ref-conteudo),
html[data-theme="light"] .editorial-paragraph,
html[data-theme="light"] .artigo-quemsomos-iosf,
html[data-theme="light"] .artigo-quemsomos-iosf p,
html[data-theme="light"] .artigo-quemsomos-iosf ul,
html[data-theme="light"] .artigo-quemsomos-iosf ol,
html[data-theme="light"] .artigo-quemsomos-iosf li {
    color: #1C1917 !important;
}

html[data-theme="light"] #articleBody strong,
html[data-theme="light"] #articleBody b,
html[data-theme="light"] #articleBody li strong,
html[data-theme="light"] .artigo-quemsomos-iosf strong,
html[data-theme="light"] .artigo-quemsomos-iosf b {
    color: #0E0D0C !important;
    font-weight: 700 !important;
}

html[data-theme="light"] #articleBody em,
html[data-theme="light"] #articleBody i,
html[data-theme="light"] .artigo-quemsomos-iosf em,
html[data-theme="light"] .artigo-quemsomos-iosf i {
    color: #2F2A24 !important;
}

html[data-theme="light"] #articleBody h1,
html[data-theme="light"] .artigo-quemsomos-iosf h1 {
    color: #7A4E10 !important;
}

html[data-theme="light"] #articleBody h2,
html[data-theme="light"] .artigo-quemsomos-iosf h2 {
    color: #7A4E10 !important;
    border-left: 4px solid #9E6B1F !important;
    padding-left: 14px !important;
}

html[data-theme="light"] #articleBody h3,
html[data-theme="light"] .artigo-quemsomos-iosf h3 {
    color: #8C5A14 !important;
}

html[data-theme="light"] #articleBody h4,
html[data-theme="light"] #articleBody h5,
html[data-theme="light"] #articleBody h6,
html[data-theme="light"] .artigo-quemsomos-iosf h4,
html[data-theme="light"] .artigo-quemsomos-iosf h5,
html[data-theme="light"] .artigo-quemsomos-iosf h6 {
    color: #24211D !important;
}

/* Subtítulos ou headers internos de artigos */
html[data-theme="light"] #articleBody header p,
html[data-theme="light"] .artigo-quemsomos-iosf header p {
    color: #5E584D !important;
}

html[data-theme="light"] #articleBody header,
html[data-theme="light"] .artigo-quemsomos-iosf header {
    border-bottom: 2px solid #DCD5C5 !important;
}

/* Força anulação de cores claras legadas em atributos style inline */
html[data-theme="light"] #articleBody [style*="color: #e"],
html[data-theme="light"] #articleBody [style*="color: #E"],
html[data-theme="light"] #articleBody [style*="color: #f"],
html[data-theme="light"] #articleBody [style*="color: #F"],
html[data-theme="light"] #articleBody [style*="color: #a4"],
html[data-theme="light"] #articleBody [style*="color: #d"],
html[data-theme="light"] #articleBody [style*="color:#e"],
html[data-theme="light"] #articleBody [style*="color:#E"],
html[data-theme="light"] #articleBody [style*="color:#f"],
html[data-theme="light"] #articleBody [style*="color:#F"],
html[data-theme="light"] #articleBody [style*="color:#a4"],
html[data-theme="light"] #articleBody [style*="color:#d"] {
    color: #1C1917 !important;
}

html[data-theme="light"] #articleBody h1[style*="color"],
html[data-theme="light"] #articleBody h2[style*="color"],
html[data-theme="light"] #articleBody h3[style*="color"] {
    color: #7A4E10 !important;
}

/* Citações e blocos litúrgicos */
html[data-theme="light"] #articleBody blockquote {
    background: #F9F6EE !important;
    border-left: 4px solid #9E6B1F !important;
    color: #24211D !important;
}

html[data-theme="light"] #articleBody blockquote p {
    color: #24211D !important;
}

html[data-theme="light"] #articleBody .bloco-liturgico,
html[data-theme="light"] .artigo-quemsomos-iosf .bloco-liturgico {
    background: #F9F6EE !important;
    border-left: 3px solid #9E6B1F !important;
    border-radius: 6px !important;
    padding: 1rem 1.25rem !important;
}

html[data-theme="light"] #articleBody .bloco-liturgico p,
html[data-theme="light"] .artigo-quemsomos-iosf .bloco-liturgico p {
    color: #7A4E10 !important;
    font-weight: 500 !important;
}

/* 2. SIDEBAR CANÔNICA NO MODO CLARO */
html[data-theme="light"] .iosf-sidebar-block {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.04) !important;
}

html[data-theme="light"] .iosf-sidebar-block-title {
    border-bottom: 1px solid #EEE8DB !important;
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-sidebar-block-heading,
html[data-theme="light"] .iosf-sidebar-block .iosf-label,
html[data-theme="light"] .iosf-sidebar-block-heading.iosf-label {
    color: #8C5A14 !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
}

html[data-theme="light"] .iosf-mini-title {
    color: #1C1917 !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

html[data-theme="light"] .iosf-mini-post:hover .iosf-mini-title,
html[data-theme="light"] .iosf-mini-post:focus .iosf-mini-title {
    color: #8C5A14 !important;
}

html[data-theme="light"] .iosf-mini-date {
    color: #605A4E !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .iosf-mini-thumb-wrap {
    background-color: #EFECE3 !important;
    border: 1px solid #E2DBCB !important;
}

html[data-theme="light"] .iosf-sidebar-search-input {
    background: #F9F6EE !important;
    border: 1px solid #DCD5C5 !important;
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-sidebar-search-input::placeholder {
    color: #8C8476 !important;
}

html[data-theme="light"] .iosf-sidebar-search-btn {
    background: #9E6B1F !important;
    color: #FFFFFF !important;
}

html[data-theme="light"] .iosf-toc-list a {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-toc-list a:hover,
html[data-theme="light"] .iosf-toc-list a.active {
    color: #9E6B1F !important;
    background: rgba(158, 107, 31, 0.08) !important;
}

html[data-theme="light"] .iosf-doctrinal-notice {
    background: linear-gradient(135deg, #FCFAF5 0%, #F5EFE1 100%) !important;
    border: 1px solid rgba(158, 107, 31, 0.30) !important;
}

html[data-theme="light"] .iosf-doctrinal-notice h4 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-doctrinal-notice p {
    color: #4A453C !important;
}

html[data-theme="light"] .post-signature {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
}

html[data-theme="light"] .post-signature .signature-name {
    color: #9E6B1F !important;
}

html[data-theme="light"] .post-signature .signature-content {
    color: #575248 !important;
}

/* 3. Cards de Navegação de Artigos e Rodapé */
html[data-theme="light"] .iosf-post-navigation-card {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
}

html[data-theme="light"] .iosf-post-navigation-card:hover {
    border-color: #9E6B1F !important;
    background: #F9F6EE !important;
}

html[data-theme="light"] .iosf-post-navigation-card .iosf-nav-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-post-navigation-card .iosf-nav-dir {
    color: #8C5A14 !important;
}

html[data-theme="light"] .iosf-post-navigation-card a:hover .iosf-nav-title {
    color: #8C5A14 !important;
}

html[data-theme="light"] .iosf-post-divider {
    background: #C49A45 !important;
    opacity: 0.65 !important;
}

/* ---------- 3.9 Páginas de Calendário Sagrado (/calendario, /calendario-fixo) ---------- */
html[data-theme="light"] .iosf-cal-page {
    background: #F8F6F0 !important;
}

html[data-theme="light"] .iosf-cal-header {
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-cal-header h1 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-cal-month-card {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .iosf-cal-month-title {
    color: #9E6B1F !important;
    border-bottom: 1px solid #EDE7D8 !important;
}

html[data-theme="light"] .iosf-cal-event-item {
    background: #F9F6EE !important;
    border: 1px solid #EAE3D4 !important;
}

html[data-theme="light"] .iosf-cal-event-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-cal-year-nav {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-cal-year-btn {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-cal-year-display {
    color: #1C1917 !important;
}

/* ---------- 3.10 Categorias, Glossário, Acervo e Biblioteca ---------- */
html[data-theme="light"] .iosf-cat-hero {
    background: #EFECE3 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-h1-cat {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-lead-cat {
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-cat-search-box {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-cat-search-input {
    color: #1C1917 !important;
    background: transparent !important;
}

html[data-theme="light"] .iosf-cat-chip {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-cat-chip:hover {
    background: #F7F4EB !important;
    border-color: #9E6B1F !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-cat-chip.active {
    background: #9E6B1F !important;
    border-color: #9E6B1F !important;
    color: #FFFFFF !important;
}

html[data-theme="light"] .glossary-term-card,
html[data-theme="light"] .faq-card,
html[data-theme="light"] .community-card {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    color: #24211D !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.04) !important;
}

/* ---------- 3.11 Modais (Live Search, Proteção Editorial, Ritos) ---------- */
html[data-theme="light"] .live-search-dialog {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 25px 60px rgba(40, 30, 20, 0.18) !important;
}

html[data-theme="light"] .live-search-header {
    border-bottom: 1px solid #EDE7D8 !important;
}

html[data-theme="light"] #liveSearchInput {
    color: #1C1917 !important;
    background: transparent !important;
}

html[data-theme="light"] .live-search-item {
    border-bottom: 1px solid #F0EADB !important;
    color: #24211D !important;
}

html[data-theme="light"] .live-search-item:hover {
    background: #F9F6EE !important;
}

html[data-theme="light"] .live-item-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .live-item-excerpt {
    color: #575248 !important;
}

html[data-theme="light"] .quick-tag-btn {
    background: #F7F4EB !important;
    border: 1px solid #DFD8C8 !important;
    color: #4D473B !important;
}

html[data-theme="light"] .quick-tag-btn:hover {
    background: #9E6B1F !important;
    border-color: #9E6B1F !important;
    color: #FFFFFF !important;
}

html[data-theme="light"] .iosf-copyright-modal-card {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #24211D !important;
    box-shadow: 0 20px 50px rgba(50, 40, 25, 0.15) !important;
}

html[data-theme="light"] .iosf-modal-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-modal-message {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-modal-box {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #24211D !important;
}

/* ---------- 3.12 Rodapé Oficial (Footer) ---------- */
html[data-theme="light"] .iosf-footer-top-section {
    background: #EFECE3 !important;
    border-top: 1px solid #DFD8C8 !important;
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-footer-social-icons .iosf-social-icon-raw {
    color: #3F3A30 !important;
}

html[data-theme="light"] .iosf-footer-heading {
    color: #1C1917 !important;
    border-bottom: 2px solid #9E6B1F !important;
}

html[data-theme="light"] .iosf-footer-icon-list li,
html[data-theme="light"] .iosf-footer-icon-list li a,
html[data-theme="light"] .iosf-footer-nav-list li a,
html[data-theme="light"] .iosf-footer-perguntas-text p {
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-footer-nav-list li a:hover {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-footer-bottom-section {
    background: #E4DFD4 !important;
    border-top: 1px solid #D7D0C2 !important;
    color: #575042 !important;
}

html[data-theme="light"] .iosf-creed-dedication p,
html[data-theme="light"] .iosf-creed-text,
html[data-theme="light"] .iosf-copyright-title,
html[data-theme="light"] .iosf-copyright-sub,
html[data-theme="light"] .iosf-blumotion-tag a {
    color: #383228 !important;
}

html[data-theme="light"] .iosf-creed-declaration {
    color: #383228 !important;
}

html[data-theme="light"] .iosf-creed-rune-highlight {
    color: #704719 !important;
}

html[data-theme="light"] .iosf-hero::before {
    background:
        linear-gradient(90deg, rgba(28, 25, 23, 0.9) 0%, rgba(28, 25, 23, 0.78) 48%, rgba(28, 25, 23, 0.62) 100%),
        linear-gradient(0deg, rgba(28, 25, 23, 0.82) 0%, rgba(28, 25, 23, 0.2) 52%, rgba(28, 25, 23, 0.12) 100%) !important;
}

html[data-theme="light"] .iosf-hero .iosf-epigraph,
html[data-theme="light"] .iosf-hero .iosf-epigraph p,
html[data-theme="light"] .iosf-hero .iosf-h1 .elementor-heading-title,
html[data-theme="light"] .iosf-hero .iosf-lead,
html[data-theme="light"] .iosf-hero .iosf-lead p,
html[data-theme="light"] .iosf-hero .iosf-btn--ghost {
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .iosf-hero .iosf-btn--ghost {
    border-color: rgba(255, 255, 255, 0.7) !important;
}

/* ---------- 3.12.1 Cabeçalho Heroico do Artigo (Post Hero no Modo Claro) ---------- */
html[data-theme="light"] .iosf-post-hero h1,
html[data-theme="light"] .iosf-post-hero .iosf-post-title,
html[data-theme="light"] .iosf-post-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.95) !important;
}

html[data-theme="light"] .iosf-post-hero .iosf-eyebrow {
    color: #EBC080 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="light"] .iosf-post-hero .iosf-post-subtitle,
html[data-theme="light"] .iosf-post-hero .iosf-post-subtitle p {
    color: #E5DAC9 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="light"] .iosf-post-hero .iosf-hero-post-info,
html[data-theme="light"] .iosf-post-hero .iosf-hero-post-info a,
html[data-theme="light"] .iosf-post-hero .iosf-hero-post-info span,
html[data-theme="light"] .iosf-post-hero .elementor-icon-list-text {
    color: #D5CAB8 !important;
}

/* ---------- 3.12.1.1 Cabeçalhos Heroicos Escuros (Biblioteca, Glossário, FAQ, Comunidade) ---------- */
html[data-theme="light"] .iosf-library-hero h1,
html[data-theme="light"] .iosf-library-hero .iosf-h1,
html[data-theme="light"] header.iosf-library-hero h1,
html[data-theme="light"] header.iosf-library-hero .iosf-h1,
.iosf-library-hero h1,
.iosf-library-hero .iosf-h1,
header.iosf-library-hero h1,
header.iosf-library-hero .iosf-h1 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

html[data-theme="light"] .iosf-library-hero p,
html[data-theme="light"] header.iosf-library-hero p,
.iosf-library-hero p,
header.iosf-library-hero p {
    color: #E2DFD8 !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="light"] .iosf-library-hero .iosf-eyebrow,
html[data-theme="light"] .iosf-library-hero .iosf-eyebrow span,
html[data-theme="light"] header.iosf-library-hero .iosf-eyebrow span,
.iosf-library-hero .iosf-eyebrow span,
header.iosf-library-hero .iosf-eyebrow span {
    color: #FBBF24 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
    font-weight: 700 !important;
}

/* ---------- 3.12.2 Assinatura Sagrada Canônica (Selo Oficial IOSF no Modo Claro) ---------- */
html[data-theme="light"] .iosf-sacred-seal-box {
    text-align: center;
}

html[data-theme="light"] .iosf-seal-title {
    color: #8C5B14 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="light"] .iosf-seal-creed {
    color: #2D2721 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="light"] .iosf-seal-motto,
html[data-theme="light"] .iosf-motto-text,
html[data-theme="light"] .iosf-motto-runes,
html[data-theme="light"] .iosf-org-name,
html[data-theme="light"] .iosf-org-clan {
    color: #8C5B14 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.60), 0 0 1px rgba(0, 0, 0, 0.80) !important;
}

html[data-theme="light"] .iosf-motto-bullet {
    color: #4A443B !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.50) !important;
}

html[data-theme="light"] .iosf-totem-img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)) !important;
}

html[data-theme="light"] .iosf-share-btn.iosf-share-folkrealms {
    border-color: rgba(158, 107, 31, 0.45) !important;
    color: #9E6B1F !important;
}
html[data-theme="light"] .iosf-share-btn.iosf-share-folkrealms:hover {
    background: #9E6B1F !important;
    color: #FFFFFF !important;
    border-color: #9E6B1F !important;
}

/* ---------- 3.13 Gaveta Mobile (Drawer no Modo Claro / Sauil) ---------- */
html[data-theme="light"] .iosf-mobile-drawer,
body.theme-light .iosf-mobile-drawer {
    background: #FAF8F4 !important;
    color: #1C1917 !important;
    border-left: 1px solid #DFD8C8 !important;
    box-shadow: -8px 0 30px rgba(60, 45, 25, 0.12) !important;
}

html[data-theme="light"] .iosf-mobile-drawer-header,
body.theme-light .iosf-mobile-drawer-header {
    background: #F3EFE6 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-mob-drawer-badge,
body.theme-light .iosf-mob-drawer-badge {
    background: #EDE6D8 !important;
    border-color: rgba(201, 154, 78, 0.45) !important;
    box-shadow: 0 0 10px rgba(201, 154, 78, 0.15) !important;
}

html[data-theme="light"] .iosf-mob-drawer-title,
body.theme-light .iosf-mob-drawer-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-mob-drawer-subtitle,
body.theme-light .iosf-mob-drawer-subtitle {
    color: #787060 !important;
}

html[data-theme="light"] .iosf-drawer-close,
body.theme-light .iosf-drawer-close {
    background: #EAE3D4 !important;
    border: 1px solid #D5CCBC !important;
    color: #292524 !important;
}
html[data-theme="light"] .iosf-drawer-close:hover,
body.theme-light .iosf-drawer-close:hover {
    background: #C99A4E !important;
    color: #FFFFFF !important;
    border-color: #C99A4E !important;
}

html[data-theme="light"] .iosf-mob-theme-box,
body.theme-light .iosf-mob-theme-box {
    background: #F3EFE6 !important;
    border: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-mob-theme-title,
body.theme-light .iosf-mob-theme-title {
    color: #57534E !important;
}

html[data-theme="light"] .iosf-mob-theme-btn,
body.theme-light .iosf-mob-theme-btn {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #1C1917 !important;
}
html[data-theme="light"] .iosf-mob-theme-btn strong,
body.theme-light .iosf-mob-theme-btn strong {
    color: #1C1917 !important;
}
html[data-theme="light"] .iosf-mob-theme-btn small,
body.theme-light .iosf-mob-theme-btn small {
    color: #787060 !important;
}
html[data-theme="light"] .iosf-mob-theme-btn.active,
body.theme-light .iosf-mob-theme-btn.active {
    background: #FFFDF8 !important;
    border-color: #C99A4E !important;
    box-shadow: 0 2px 10px rgba(201, 154, 78, 0.22) !important;
}

html[data-theme="light"] .iosf-mob-action-card,
body.theme-light .iosf-mob-action-card {
    background: #FFFFFF !important;
    border: 1px solid #E2DCCF !important;
    color: #1C1917 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
html[data-theme="light"] .iosf-mob-action-card:hover,
body.theme-light .iosf-mob-action-card:hover {
    background: #FFFDF8 !important;
    border-color: #C99A4E !important;
}
html[data-theme="light"] .iosf-mob-card-icon,
body.theme-light .iosf-mob-card-icon {
    background: rgba(201, 154, 78, 0.14) !important;
    border: 1px solid rgba(201, 154, 78, 0.35) !important;
    color: #9E6B1F !important;
}
html[data-theme="light"] .iosf-mob-card-text strong,
body.theme-light .iosf-mob-card-text strong {
    color: #1C1917 !important;
}
html[data-theme="light"] .iosf-mob-card-text span,
body.theme-light .iosf-mob-card-text span {
    color: #787060 !important;
}

html[data-theme="light"] .iosf-mob-item,
body.theme-light .iosf-mob-item {
    background: #FFFFFF !important;
    border: 1px solid #E5DFD1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
html[data-theme="light"] .iosf-mob-item:hover,
html[data-theme="light"] .iosf-mob-item.open,
body.theme-light .iosf-mob-item:hover,
body.theme-light .iosf-mob-item.open {
    background: #FFFDF8 !important;
    border-color: #C99A4E !important;
}

html[data-theme="light"] .iosf-mob-link,
body.theme-light .iosf-mob-link {
    color: #1C1917 !important;
}
html[data-theme="light"] .iosf-mob-text,
body.theme-light .iosf-mob-text {
    color: #1C1917 !important;
}
html[data-theme="light"] .iosf-mob-icon,
body.theme-light .iosf-mob-icon {
    background: rgba(201, 154, 78, 0.12) !important;
    border: 1px solid rgba(201, 154, 78, 0.3) !important;
    color: #9E6B1F !important;
}
html[data-theme="light"] .iosf-mob-accordion-btn,
body.theme-light .iosf-mob-accordion-btn {
    background: #F3EFE6 !important;
    border: 1px solid #DFD8C8 !important;
    color: #57534E !important;
}

html[data-theme="light"] .iosf-mobile-submenu,
body.theme-light .iosf-mobile-submenu {
    background: #F9F6EE !important;
    border-top: 1px solid #E8E2D5 !important;
}
html[data-theme="light"] .iosf-mob-sublink,
body.theme-light .iosf-mob-sublink {
    color: #3A342B !important;
}
html[data-theme="light"] .iosf-mob-sublink:hover,
body.theme-light .iosf-mob-sublink:hover {
    background: #F1ECE0 !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-mob-drawer-footer,
body.theme-light .iosf-mob-drawer-footer {
    background: #F3EFE6 !important;
    border-top: 1px solid #DFD8C8 !important;
}
html[data-theme="light"] .iosf-mob-socials a,
body.theme-light .iosf-mob-socials a {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #57534E !important;
}
html[data-theme="light"] .iosf-mob-socials a:hover,
body.theme-light .iosf-mob-socials a:hover {
    background: #C99A4E !important;
    color: #FFFFFF !important;
    border-color: #C99A4E !important;
}
html[data-theme="light"] .iosf-mob-tagline,
body.theme-light .iosf-mob-tagline {
    color: #8C8474 !important;
}

/* ==============================================================================
   4. BOTÃO FLUTUANTE DE RETORNO AO TOPO (BACK TO TOP)
   ============================================================================== */
.iosf-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(24, 24, 22, 0.95);
    border: 1px solid rgba(235, 192, 128, 0.35);
    color: var(--iosf-gold, #EBC080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(235, 192, 128, 0.15);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.3s,
                background-color 0.22s,
                border-color 0.22s,
                color 0.22s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.iosf-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.iosf-back-to-top:hover {
    background: var(--iosf-gold, #EBC080);
    color: #10100F;
    border-color: var(--iosf-gold, #EBC080);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 25px rgba(235, 192, 128, 0.40);
}

/* Modo Claro (Sauil) */
html[data-theme="light"] .iosf-back-to-top {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(158, 107, 31, 0.35) !important;
    color: #9E6B1F !important;
    box-shadow: 0 8px 25px rgba(50, 40, 25, 0.15), 0 0 15px rgba(158, 107, 31, 0.10) !important;
}

html[data-theme="light"] .iosf-back-to-top:hover {
    background: #9E6B1F !important;
    color: #FFFFFF !important;
    border-color: #9E6B1F !important;
    box-shadow: 0 14px 32px rgba(50, 40, 25, 0.22), 0 0 25px rgba(158, 107, 31, 0.30) !important;
}

@media (max-width: 600px) {
    .iosf-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ==============================================================================
   3.11 Trilha Comece Aqui (/comece-aqui) no Modo Claro (Sauil)
   ============================================================================== */
html[data-theme="light"] .iosf-trail-page,
body.theme-light .iosf-trail-page {
    background: #F8F6F0 !important;
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-trail-hero,
body.theme-light .iosf-trail-hero {
    background: #EFECE3 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-trail-hero h1,
body.theme-light .iosf-trail-hero h1 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-trail-hero p,
body.theme-light .iosf-trail-hero p {
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-badge-anchor,
body.theme-light .iosf-badge-anchor {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
    color: #1C1917 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .iosf-badge-anchor:hover,
body.theme-light .iosf-badge-anchor:hover {
    background: #F4EEDF !important;
    border-color: #9E6B1F !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-trail-block,
body.theme-light .iosf-trail-block {
    background: #F8F6F0 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-trail-block:nth-child(even),
body.theme-light .iosf-trail-block:nth-child(even) {
    background: #EFECE3 !important;
}

html[data-theme="light"] .iosf-step-num,
body.theme-light .iosf-step-num {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-trail-block h2,
body.theme-light .iosf-trail-block h2 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-prose,
body.theme-light .iosf-prose {
    color: #2B2723 !important;
}

html[data-theme="light"] .iosf-prose p,
body.theme-light .iosf-prose p {
    color: #2B2723 !important;
}

html[data-theme="light"] .iosf-prose strong,
body.theme-light .iosf-prose strong {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-prose em,
body.theme-light .iosf-prose em {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-prose h3,
body.theme-light .iosf-prose h3 {
    color: #1C1917 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-prose ul,
html[data-theme="light"] .iosf-prose ol,
html[data-theme="light"] .iosf-prose li,
body.theme-light .iosf-prose li {
    color: #2B2723 !important;
}

html[data-theme="light"] .iosf-box-highlight,
body.theme-light .iosf-box-highlight {
    background: #EDE5D3 !important;
    border-left: 4px solid #9E6B1F !important;
    color: #24201C !important;
}

html[data-theme="light"] .iosf-box-highlight strong,
body.theme-light .iosf-box-highlight strong {
    color: #7E5212 !important;
}

html[data-theme="light"] .iosf-box-highlight p,
body.theme-light .iosf-box-highlight p {
    color: #24201C !important;
}

html[data-theme="light"] .iosf-box-highlight a,
body.theme-light .iosf-box-highlight a {
    color: #7E5212 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

html[data-theme="light"] .iosf-deity-card,
body.theme-light .iosf-deity-card {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
    box-shadow: 0 2px 8px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .iosf-deity-card:hover,
body.theme-light .iosf-deity-card:hover {
    border-color: #9E6B1F !important;
    box-shadow: 0 6px 16px rgba(158, 107, 31, 0.12) !important;
}

html[data-theme="light"] .iosf-deity-card h4,
body.theme-light .iosf-deity-card h4 {
    color: #8C5A14 !important;
}

html[data-theme="light"] .iosf-deity-card p,
body.theme-light .iosf-deity-card p {
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-trail-community-box,
body.theme-light .iosf-trail-community-box {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
    box-shadow: 0 4px 18px rgba(50, 40, 25, 0.08) !important;
}

html[data-theme="light"] .iosf-trail-community-box h3,
body.theme-light .iosf-trail-community-box h3 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-trail-community-box p,
body.theme-light .iosf-trail-community-box p {
    color: #4D473B !important;
}

