/* Button */
.gmist-theme-toggle{position:fixed;right:22px;bottom:22px;z-index:99999;display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 15px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:#0b4778;color:#fff;font:700 14px/1 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 8px 28px rgba(3,25,45,.28);cursor:pointer;transition:transform .2s,background .2s,box-shadow .2s}.gmist-theme-toggle:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(3,25,45,.34)}.gmist-theme-toggle:focus-visible{outline:3px solid #d7ad42;outline-offset:3px}.gmist-icon{display:grid;place-items:center;width:20px;height:20px}.gmist-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.gmist-icon-moon svg{fill:currentColor;stroke:none}.gmist-icon-sun{display:none}

/* Smooth transition after first render */
html.gmist-theme-ready body,html.gmist-theme-ready header,html.gmist-theme-ready footer,html.gmist-theme-ready main,html.gmist-theme-ready section,html.gmist-theme-ready article,html.gmist-theme-ready nav,html.gmist-theme-ready aside,html.gmist-theme-ready div,html.gmist-theme-ready input,html.gmist-theme-ready textarea{transition:background-color .25s ease,color .25s ease,border-color .25s ease,box-shadow .25s ease}

/* Dark color variables for the GMIST theme */
html[data-gmist-theme="dark"]{--primary:#6fb5e8;--navy:#e9f4fb;--gold:#e4bc55;--cream:#0d2233;--text:#eef6fa;--muted:#b7c8d3;--shadow:0 12px 35px rgba(0,0,0,.32);color-scheme:dark}
html[data-gmist-theme="dark"] body{background:#071521;color:#eef6fa}
html[data-gmist-theme="dark"] .site-header,
html[data-gmist-theme="dark"] header.site-header,
html[data-gmist-theme="dark"] .nav-row,
html[data-gmist-theme="dark"] .primary-nav,
html[data-gmist-theme="dark"] .primary-navigation{background:#091c2a;color:#eef6fa}
html[data-gmist-theme="dark"] .topbar{background:#04111b}
html[data-gmist-theme="dark"] .brand a,
html[data-gmist-theme="dark"] .primary-nav a,
html[data-gmist-theme="dark"] .primary-navigation a,
html[data-gmist-theme="dark"] .menu a{color:#eef6fa}
html[data-gmist-theme="dark"] .brand small,
html[data-gmist-theme="dark"] .meta,
html[data-gmist-theme="dark"] .news-meta,
html[data-gmist-theme="dark"] .section-head p{color:#b7c8d3}
html[data-gmist-theme="dark"] .section,
html[data-gmist-theme="dark"] main,
html[data-gmist-theme="dark"] .site-main{background:#071521;color:#eef6fa}
html[data-gmist-theme="dark"] .section.soft,
html[data-gmist-theme="dark"] .soft,
html[data-gmist-theme="dark"] .widget,
html[data-gmist-theme="dark"] .map-empty,
html[data-gmist-theme="dark"] .empty-state{background:#0b2030;color:#eef6fa}
html[data-gmist-theme="dark"] .info,
html[data-gmist-theme="dark"] .info-card,
html[data-gmist-theme="dark"] .card,
html[data-gmist-theme="dark"] .post-card,
html[data-gmist-theme="dark"] article,
html[data-gmist-theme="dark"] .wp-block-group.has-background{background:#102a3e;color:#eef6fa;border-color:#26475d;box-shadow:0 12px 32px rgba(0,0,0,.28)}
html[data-gmist-theme="dark"] h1,
html[data-gmist-theme="dark"] h2,
html[data-gmist-theme="dark"] h3,
html[data-gmist-theme="dark"] h4,
html[data-gmist-theme="dark"] h5,
html[data-gmist-theme="dark"] h6,
html[data-gmist-theme="dark"] .section h1,
html[data-gmist-theme="dark"] .section h2,
html[data-gmist-theme="dark"] .single-entry h1,
html[data-gmist-theme="dark"] .card-content h3 a,
html[data-gmist-theme="dark"] .card-body h3 a{color:#f3f8fb}
html[data-gmist-theme="dark"] p,
html[data-gmist-theme="dark"] li,
html[data-gmist-theme="dark"] .entry-content{color:#d8e5ec}
html[data-gmist-theme="dark"] a{color:#83c7f2}
html[data-gmist-theme="dark"] input,
html[data-gmist-theme="dark"] textarea,
html[data-gmist-theme="dark"] select{background:#081a28!important;color:#eef6fa!important;border-color:#315168!important}
html[data-gmist-theme="dark"] input::placeholder,
html[data-gmist-theme="dark"] textarea::placeholder{color:#94aab8}
html[data-gmist-theme="dark"] .page-numbers{background:#102a3e;color:#eaf5fb}
html[data-gmist-theme="dark"] .page-numbers.current{background:#d7ad42;color:#17212a}
html[data-gmist-theme="dark"] table{color:#eef6fa;border-color:#315168}
html[data-gmist-theme="dark"] th{background:#102a3e}
html[data-gmist-theme="dark"] td,
html[data-gmist-theme="dark"] th{border-color:#315168}
html[data-gmist-theme="dark"] blockquote{border-color:#d7ad42;background:#0d2233;color:#e5eef3}
html[data-gmist-theme="dark"] .site-footer{background:#03111c;color:#dbe7ee}
html[data-gmist-theme="dark"] .gmist-theme-toggle{background:#d7ad42;color:#15212a;border-color:#d7ad42}
html[data-gmist-theme="dark"] .gmist-icon-moon{display:none}
html[data-gmist-theme="dark"] .gmist-icon-sun{display:grid}

/* Preserve photographs and video without inversion */
html[data-gmist-theme="dark"] img,
html[data-gmist-theme="dark"] video,
html[data-gmist-theme="dark"] iframe{filter:none}

@media(max-width:600px){.gmist-theme-toggle{right:14px;bottom:14px;padding:11px}.gmist-toggle-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}
@media(prefers-reduced-motion:reduce){.gmist-theme-toggle,*{transition:none!important;scroll-behavior:auto!important}}
