/* Explain: Reusable component styles for UI elements. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.92), rgba(250, 249, 246, 0.72));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.8), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(250, 249, 246, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(70vh, 660px);
    min-height: 460px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 560px;
    max-width: 430px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.6);
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.chip i {
    color: var(--accent-color);
}

.tool-card {
    border-radius: 2rem;
    padding: 1.75rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.tool-card:hover {
    border-color: rgba(88, 129, 87, 0.5);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.12);
    transform: translateY(-6px);
}

.tool-icon {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.15rem;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sage-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.tool-link i {
    transition: transform 300ms ease;
}

.tool-link:hover i {
    transform: translateX(4px);
}

.quiet-detail {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 1.25rem;
}

.quiet-detail span {
    display: inline-flex;
    height: 2.6rem;
    width: 2.6rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.quiet-detail h2,
.quiet-detail h3 {
    font-size: 1rem;
    font-weight: 600;
}

.quiet-detail p {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 1.25rem;
}

.updates-col {
    border-radius: 2rem;
    padding: 1.75rem;
}

.updates-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-color);
    font-weight: 600;
}

.updates-title i {
    color: var(--accent-color);
}

.update-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    background: rgba(250, 249, 246, 0.55);
    padding: 0.75rem 1rem;
}

.update-badge {
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
}

.update-text {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-cta {
    border-radius: 2.5rem;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.folder-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.6);
    padding: 0.6rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 300ms ease;
}

.folder-tab:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.folder-tab.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--background-color);
}

.resource-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1.8rem;
    padding: 1.5rem;
}

.resource-badge {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    background: var(--terracotta-soft);
    color: var(--sage-dark);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.35rem 0.7rem;
    text-transform: uppercase;
}

.resource-desc {
    flex: 1 1 auto;
}

.resource-audio {
    width: 100%;
    margin-top: 1rem;
    height: 2.5rem;
}

.resource-open {
    margin-top: 1.25rem;
    min-height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    padding: 0.6rem 1.1rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.resource-open:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.resource-modal-audio {
    width: 100%;
}

.resource-content {
    max-width: 42rem;
}

.resource-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.95;
}

.resource-content strong {
    color: var(--text-color);
}

.forum-card {
    border-radius: 1.8rem;
    padding: 1.5rem;
}

.forum-reply {
    min-height: 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    padding: 0.45rem 1rem;
    color: var(--sage-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.forum-reply:hover {
    background: var(--surface-color);
}

.podcast-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1.8rem;
    padding: 1.25rem;
}

.podcast-art {
    overflow: hidden;
    border-radius: 1.4rem;
    aspect-ratio: 16 / 10;
}

.podcast-art img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.podcast-card:hover .podcast-art img {
    transform: scale(1.05);
}

.podcast-audio {
    width: 100%;
    margin-top: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #3F5E48;
}

.form-status.error {
    color: #9B4A3D;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 1rem 1.25rem;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-color);
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    color: var(--accent-color);
    font-size: 0.8rem;
    transition: transform 300ms ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.is-hidden {
    display: none !important;
}

.emergency-banner {
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    background: linear-gradient(120deg, rgba(88, 129, 87, 0.16), rgba(250, 249, 246, 0.84) 55%, rgba(163, 177, 138, 0.22));
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.fav-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--background-color);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    transition: all 300ms ease;
    z-index: 10;
}

.fav-btn:hover {
    color: #9B4A3D;
    border-color: #9B4A3D;
}

.fav-btn.is-active {
    color: #9B4A3D;
    border-color: #9B4A3D;
}

.emergency-icon {
    display: inline-flex;
    height: 4rem;
    width: 4rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.6rem;
}

.emergency-btn {
    background: var(--primary-color);
    color: var(--background-color);
    font-weight: 700;
    box-shadow: var(--shadow-button);
    transition: background 300ms ease, transform 300ms ease;
    animation: crisis-pulse 3.2s ease-in-out infinite;
}

.emergency-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.crisis-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    padding: 0 1.25rem;
    color: var(--background-color);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(74, 107, 83, 0.35);
    transition: background 300ms ease, transform 300ms ease;
    animation: crisis-pulse 3.2s ease-in-out infinite;
}

.crisis-fab:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.crisis-fab-label {
    display: none;
}

@media (min-width: 640px) {
    .crisis-fab-label {
        display: inline;
    }
}

@keyframes crisis-pulse {
    0%, 100% {
        box-shadow: 0 18px 40px rgba(74, 107, 83, 0.35), 0 0 0 0 rgba(88, 129, 87, 0.32);
    }
    50% {
        box-shadow: 0 18px 40px rgba(74, 107, 83, 0.35), 0 0 0 16px rgba(88, 129, 87, 0);
    }
}

.crisis-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    overflow-y: auto;
    background: rgba(31, 46, 35, 0.45);
    padding: 1rem;
}

.crisis-overlay.is-open {
    display: block;
}

.crisis-panel {
    position: relative;
    margin: 0 auto;
    max-width: 56rem;
    border-radius: 2.4rem;
    background: var(--background-color);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.28);
}

.crisis-block {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 1.25rem;
}

.crisis-block-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-color);
    font-weight: 600;
}

.crisis-block-title i {
    color: var(--accent-color);
}

.crisis-option {
    display: flex;
    align-items: center;
    min-height: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 0.75rem 1.1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 300ms ease;
}

.crisis-option:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.breathing-circle {
    display: flex;
    height: 4.5rem;
    width: 4.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, rgba(163, 177, 138, 0.5), rgba(88, 129, 87, 0.28));
    color: var(--sage-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 4000ms ease-in-out;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium {
        height: 460px;
        min-height: 0;
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 430px);
    }

    .crisis-panel {
        border-radius: 1.8rem;
        padding: 1.25rem;
    }
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--nav-bg);
    box-shadow: 0 -14px 44px rgba(31, 46, 35, 0.12);
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.bottom-nav-item {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 0;
    border-radius: 1.1rem;
    background: transparent;
    padding: 0.4rem 0.15rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 300ms ease, background 300ms ease;
}

.bottom-nav-item i {
    font-size: 1.05rem;
}

.bottom-nav-item span {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-nav-item.is-active {
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.bottom-nav-help {
    flex: 0 0 auto;
    width: 4.4rem;
    min-height: 4.4rem;
    margin-top: -1.6rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 16px 34px rgba(74, 107, 83, 0.38);
}

.bottom-nav-help i {
    font-size: 1.25rem;
}

.bottom-nav-help span {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
}

.bottom-nav-help:hover {
    background: var(--accent-color);
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
    }
}

@media (max-width: 1023px) {
    .crisis-fab {
        display: none;
    }
}

.breath-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.6);
    padding: 0.6rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 300ms ease;
}

.breath-tab:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.breath-tab.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--background-color);
}

.breath-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 19rem;
    margin: 1.75rem auto 0.5rem;
}

.breath-orb {
    display: flex;
    height: 11.5rem;
    width: 11.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 1px solid rgba(88, 129, 87, 0.45);
    border-radius: 999px;
    background: radial-gradient(circle at 35% 28%, rgba(163, 177, 138, 0.6), rgba(88, 129, 87, 0.38));
    box-shadow: 0 24px 60px rgba(74, 107, 83, 0.2), inset 0 0 38px rgba(250, 249, 246, 0.45);
    color: var(--sage-dark);
    will-change: transform;
    transform: scale(1);
}

.breath-orb.is-running {
    box-shadow: 0 28px 68px rgba(74, 107, 83, 0.3), inset 0 0 38px rgba(250, 249, 246, 0.5);
}

.breath-phase {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
}

.breath-count {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.breath-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2.5rem;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.breath-stat strong {
    display: block;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.breath-done {
    margin-top: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: var(--sage-soft);
    padding: 1rem 1.25rem;
    color: var(--sage-dark);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .breath-stage {
        min-height: 16rem;
    }

    .breath-orb {
        height: 9.5rem;
        width: 9.5rem;
    }

    .breath-phase {
        font-size: 1.2rem;
    }
}

.dropdown > summary {
    list-style: none;
}

.dropdown > summary::-webkit-details-marker {
    display: none;
}

.sem-option {
    display: flex;
    width: 100%;
    min-height: 9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 1.35rem;
    text-align: left;
    transition: all 300ms ease;
}

.sem-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.sem-option.is-active {
    box-shadow: 0 22px 55px rgba(31, 46, 35, 0.14);
}

.sem-option-title {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.sem-option-desc {
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.6;
}

.sem-option-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
}

.sem-option-verde.is-active {
    border-color: #588157;
    background: rgba(88, 129, 87, 0.14);
}

.sem-option-ambar.is-active {
    border-color: #C08A34;
    background: rgba(214, 164, 81, 0.16);
}

.sem-option-rojo.is-active {
    border-color: #A9553F;
    background: rgba(169, 85, 63, 0.14);
}

.sem-dot {
    display: inline-flex;
    height: 1rem;
    width: 1rem;
    flex-shrink: 0;
    border-radius: 999px;
}

.sem-dot-verde {
    background: #588157;
}

.sem-dot-ambar {
    background: #C08A34;
}

.sem-dot-rojo {
    background: #A9553F;
}

.sem-block {
    border-radius: 2.2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.sem-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.6);
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
}

.sem-chip input {
    height: 1.05rem;
    width: 1.05rem;
    flex-shrink: 0;
    accent-color: var(--accent-color);
}

.sem-chip:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.sem-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.8rem;
    padding: 1.35rem;
}

.sem-card-art {
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 1.3rem;
    aspect-ratio: 4 / 3;
}

.sem-card-art img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.sem-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.32rem 0.7rem;
    text-transform: uppercase;
}

.sem-badge-verde {
    background: rgba(88, 129, 87, 0.16);
    color: #3A5A40;
}

.sem-badge-ambar {
    background: rgba(214, 164, 81, 0.2);
    color: #7A5518;
}

.sem-badge-rojo {
    background: rgba(169, 85, 63, 0.18);
    color: #7A3A29;
}

.sem-cat {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}