:root {
  --theme-transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  transition: var(--theme-transition);
}

:root {
  --theme-transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  transition: var(--theme-transition);
}

.skip-link {
  position:absolute;
  left:8px;
  top:8px;
  padding:10px 14px;
  background:#0A66C2;
  color:#fff;
  font-weight:700;
  border-radius:10px;
  text-decoration:none;
  transform:translateY(-200%);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:0 12px 24px rgba(5,20,40,0.25);
  z-index:1000;
}
.skip-link:focus {
  transform:translateY(0);
  outline:3px solid #ffffff;
  outline-offset:3px;
}

.contact-linkedin {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:var(--card, #ffffff);
  box-shadow:0 10px 24px rgba(5,20,40,0.12);
  color:inherit;
}
.contact-linkedin .linkedin-icon {
  width:22px;
  height:22px;
  flex-shrink:0;
}
.contact-linkedin a {
  color:inherit;
  font-weight:600;
  text-decoration:none;
}
.contact-linkedin a:hover {
  text-decoration:underline;
}

.card-animate {
  opacity:0;
  transform:translateY(32px);
  transition:opacity 0.6s ease, transform 0.6s ease;
  transition-delay:var(--card-delay, 0s);
}

.card-animate.in-view {
  opacity:1;
  transform:none;
}

.hero_logo {
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.hero_logo img {
  animation:heroDrift 18s ease-in-out infinite alternate;
  will-change:transform;
  transition:filter 0.3s ease;
}

.hero_logo img.logo-fun {
  animation:logoFlip 1.1s ease both, heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform:translate3d(0,0,0) scale(1); }
  to { transform:translate3d(0,-8px,0) scale(1.04); }
}

@keyframes logoFlip {
  0% { transform:rotateY(0deg) scale(1); }
  40% { transform:rotateY(90deg) scale(0.9); }
  60% { transform:rotateY(180deg) scale(0.95); }
  100% { transform:rotateY(360deg) scale(1); }
}

.theme-switcher {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin: 10px auto 12px;
      padding: 0 10px;
  }
.theme-switcher + .textstyle2 { display:none; }

#menu_1001a78e {
  margin-top: 16px;
  margin-bottom: 22px;
}

.snag-button-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto 30px;
  padding: 0 10px;
}

.snag-button,
.snag-button:visited {
  color: #ffffff;
}

.snag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-family: 'Inter','Segoe UI','Helvetica Neue',Arial,sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg,#0a2e4a,#0e4c7a);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(7,29,47,0.8);
  box-shadow: 0 12px 25px rgba(8,24,48,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.snag-button:hover,
.snag-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(8,24,48,0.35);
  background: linear-gradient(135deg,#0e4c7a,#1471b5);
  color: #ffffff;
}

.snag-button:focus-visible {
  outline: 3px solid rgba(255,255,255,0.4);
  outline-offset: 3px;
}

.snag-menu-entry {
  border-radius: 999px !important;
  background: linear-gradient(135deg,#0a2e4a,#0f5c8e) !important;
  border: 1px solid rgba(7,29,47,0.85) !important;
  box-shadow: 0 12px 24px rgba(8,24,48,0.2);
  margin-left: 10px;
}

.snag-menu-entry .menuentry_text3,
.snag-menu-entry .menuentry_text2,
.snag-menu-entry .menuentry_text5 {
  color: #ffffff !important;
}

.snag-menu-entry:hover {
  background: linear-gradient(135deg,#0f5c8e,#1a7dbe) !important;
}

.theme-button {
  border: 1px solid #d9e3ef;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Inter','Segoe UI','Helvetica Neue',Arial,sans-serif;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.9);
  color: #0a2e4a;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 15px rgba(4, 20, 40, 0.15);
}

.theme-button:hover {
  transform: translateY(-1px);
}

.theme-button--active {
  background: #0a2e4a;
  color: #fff;
  border-color: #0a2e4a;
}

/* Tool buttons theme alignment */
.tool-button--ghost {
  color: #0a2e4a;
  border-color: #d9e3ef;
}

[data-theme="dark"] .tool-button--ghost {
  color: #f4f8ff;
  border-color: #2d3b4f;
  background: rgba(12,26,42,0.9);
}

[data-theme="dark"] .tool-button--ghost:hover,
[data-theme="dark"] .tool-button--ghost:focus-visible {
  background: #1e314d;
  color: #ffffff;
}

[data-theme="sea"] .tool-button--ghost {
  color: #ffe4da;
  border-color: #4c0b0b;
  background: rgba(48,8,8,0.95);
}

[data-theme="sea"] .tool-button--ghost:hover,
[data-theme="sea"] .tool-button--ghost:focus-visible {
  background: #3b0909;
  color: #fff1e3;
}

[data-theme="dark"] .tool-button--primary-light {
  background:#0f1c2c;
  color:#f4f8ff;
  border-color:#2d3b4f;
}

[data-theme="sea"] .tool-button--primary-light {
  background:#1d0606;
  color:#ffe4da;
  border-color:#3d0a0a;
}

[data-theme="dark"] {
  --navy:#050e1b;
  --navy-light:#0e243b;
  --mist:#030a14;
  --port:#eb5757;
  --starboard:#27ae60;
  --charcoal:#f0f4ff;
  --stroke:#233349;
  --card:#0b1a2c;
  --shadow:0 22px 48px rgba(0,0,0,0.55);
}

[data-theme="dark"] body {
  background-color:#030a14;
  background-image:none;
  color:var(--charcoal);
}

[data-theme="dark"] .textstyle1,
[data-theme="dark"] .textstyle2,
[data-theme="dark"] .textstyle3,
[data-theme="dark"] .textstyle4,
[data-theme="dark"] .textstyle5,
[data-theme="dark"] .textstyle6,
[data-theme="dark"] .textstyle7,
[data-theme="dark"] .textstyle8,
[data-theme="dark"] .textstyle9,
[data-theme="dark"] .textstyle10,
[data-theme="dark"] .textstyle11,
[data-theme="dark"] .textstyle12,
[data-theme="dark"] .textstyle13,
[data-theme="dark"] .textstyle14,
[data-theme="dark"] .textstyle15,
[data-theme="dark"] .textstyle16,
[data-theme="dark"] .textstyle17,
[data-theme="dark"] .textstyle18,
[data-theme="dark"] .textstyle19 {
  color:#f4f8ff;
}

[data-theme="dark"] #container_3bf9d50e,
[data-theme="dark"] #container_50510598,
[data-theme="dark"] #menu_1001a78e,
[data-theme="dark"] #container_528dfb01,
[data-theme="dark"] #container_297d27c3,
[data-theme="dark"] div[id^="container_"],
[data-theme="dark"] .card,
[data-theme="dark"] .hero-card,
[data-theme="dark"] .contact-block,
[data-theme="dark"] .quick-links a {
  background-color:#0f1c2c !important;
  border-color:#263548 !important;
  box-shadow:0 25px 60px rgba(0,0,0,0.55) !important;
  color:#f4f8ff;
}

[data-theme="dark"] .quick-links a {
  color:#f4f8ff;
}

[data-theme="dark"] .snag-button {
  background: linear-gradient(135deg,#173556,#1f5c8f);
  border-color: rgba(72,121,170,0.6);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

[data-theme="dark"] .snag-button:hover,
[data-theme="dark"] .snag-button:focus-visible {
  background: linear-gradient(135deg,#1f5c8f,#2a7cc0);
}

[data-theme="dark"] .snag-menu-entry {
  background: linear-gradient(135deg,#1a2f46,#2d4f74) !important;
  border-color: rgba(78, 124, 175, 0.8) !important;
  box-shadow: 0 18px 28px rgba(0,0,0,0.55);
}

[data-theme="dark"] .snag-menu-entry:hover {
  background: linear-gradient(135deg,#2d4f74,#3c6a98) !important;
}

[data-theme="dark"] #menu_1001a78e::before,
[data-theme="dark"] #menu_1001a78e::after {
  background:#17263a;
  box-shadow:none;
}

[data-theme="dark"] .menu_1001a78e_mainMenuEntry {
  background:rgba(10,18,30,0.9);
  border-color:#2d3b4f;
}

[data-theme="dark"] .menu_1001a78e_mainMenuEntry:hover {
  background-color:#1f2d44;
  border-color:#495c77;
}

[data-theme="dark"] table,
[data-theme="dark"] td,
[data-theme="dark"] th {
  background-color:#0b1626 !important;
  color:#f4f8ff !important;
  border-color:#243349 !important;
}

[data-theme="dark"] table span,
[data-theme="dark"] table a {
  color:#f4f8ff;
}

[data-theme="dark"] .inline-link {
  color:#f4f8ff;
}

[data-theme="dark"] .inline-link:hover {
  color:#ffffff;
}

[data-theme="dark"] .back-to-top,
[data-theme="dark"] .copy-email,
[data-theme="dark"] .contact-link,
[data-theme="dark"] .footer-link,
[data-theme="dark"] .social-link,
[data-theme="dark"] .back-home {
  color:#cfdcff;
  border-color:#2d3b4f;
  background-color:#0b1522;
}

[data-theme="dark"] .footer-link:hover,
[data-theme="dark"] .social-link:hover,
[data-theme="dark"] .contact-link:hover {
  color:#ffffff;
}

[data-theme="dark"] .back-home:hover {
  background-color:#1e314d;
}


[data-theme="dark"] #container_25f46253,
[data-theme="dark"] #container_65c1df42 {
  border-color:#1d2c3e !important;
  box-shadow:0 18px 45px rgba(0,0,0,0.55) !important;
}

[data-theme="dark"] #container_45091031 {
  border-color:transparent !important;
  box-shadow:none !important;
}

[data-theme="dark"] .theme-button {
  border-color:#20304a;
  background:rgba(12,26,42,0.9);
  color:#d3e2ff;
}

[data-theme="dark"] .theme-button--active {
  background:#eb5757;
  border-color:#eb5757;
  color:#04070c;
}

[data-theme="sea"] {
  --navy:#2e0707;
  --navy-light:#5c0d0d;
  --mist:#120101;
  --port:#ff4b4b;
  --starboard:#d64242;
  --charcoal:#ffe4da;
  --stroke:#3a0a0a;
  --card:#1d0606;
  --shadow:0 22px 48px rgba(255,80,80,0.14);
}

[data-theme="sea"] body {
  background-color:#080101;
  background-image:none;
  color:var(--charcoal);
}

[data-theme="sea"] .textstyle1,
[data-theme="sea"] .textstyle2,
[data-theme="sea"] .textstyle3,
[data-theme="sea"] .textstyle4,
[data-theme="sea"] .textstyle5,
[data-theme="sea"] .textstyle6,
[data-theme="sea"] .textstyle7,
[data-theme="sea"] .textstyle8,
[data-theme="sea"] .textstyle9,
[data-theme="sea"] .textstyle10,
[data-theme="sea"] .textstyle11,
[data-theme="sea"] .textstyle12,
[data-theme="sea"] .textstyle13,
[data-theme="sea"] .textstyle14,
[data-theme="sea"] .textstyle15,
[data-theme="sea"] .textstyle16,
[data-theme="sea"] .textstyle17,
[data-theme="sea"] .textstyle18,
[data-theme="sea"] .textstyle19 {
  color:#ffe4da;
}

[data-theme="sea"] #container_3bf9d50e,
[data-theme="sea"] #container_50510598,
[data-theme="sea"] #menu_1001a78e,
[data-theme="sea"] #container_528dfb01,
[data-theme="sea"] #container_297d27c3,
[data-theme="sea"] div[id^="container_"],
[data-theme="sea"] .card,
[data-theme="sea"] .hero-card,
[data-theme="sea"] .contact-block,
[data-theme="sea"] .quick-links a {
  background-color:#180202 !important;
  border-color:#3d0a0a !important;
  box-shadow:0 25px 60px rgba(255,55,55,0.22) !important;
  color:#ffe4da;
}

[data-theme="sea"] .quick-links a {
  color:#ffbfb4;
}

[data-theme="sea"] .quick-links a:hover,
[data-theme="sea"] .menu_1001a78e_mainMenuEntry:hover span {
  color:#fff1e3 !important;
}

[data-theme="sea"] #menu_1001a78e::before,
[data-theme="sea"] #menu_1001a78e::after {
  background:#330404;
  box-shadow:none;
}

/* Tools page typography tweaks per theme */
[data-theme="dark"] .tool-section-header,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .tool-card h3,
[data-theme="dark"] .tool-card h4,
[data-theme="dark"] .tool-card p,
[data-theme="dark"] .tool-card li,
[data-theme="dark"] .tool-card .tool-meta {
  color:#f4f8ff;
}

[data-theme="sea"] .tool-section-header,
[data-theme="sea"] .tool-card,
[data-theme="sea"] .tool-card h3,
[data-theme="sea"] .tool-card h4,
[data-theme="sea"] .tool-card p,
[data-theme="sea"] .tool-card li,
[data-theme="sea"] .tool-card .tool-meta {
  color:#ffe4da;
}

[data-theme="sea"] .menu_1001a78e_mainMenuEntry {
  background:rgba(32,5,5,0.95);
  border-color:#4c0b0b;
}

[data-theme="sea"] .menu_1001a78e_mainMenuEntry:hover {
  background-color:#4c1010;
  border-color:#702020;
}

[data-theme="sea"] table,
[data-theme="sea"] td,
[data-theme="sea"] th {
  background-color:#150101 !important;
  color:#ffe4da !important;
  border-color:#3e0a0a !important;
}

[data-theme="sea"] table span,
[data-theme="sea"] table a {
  color:#ffe4da;
}

[data-theme="sea"] .back-to-top,
[data-theme="sea"] .copy-email,
[data-theme="sea"] .contact-link,
[data-theme="sea"] .footer-link,
[data-theme="sea"] .social-link,
[data-theme="sea"] .back-home {
  color:#ffd2c5;
  border-color:#4c0b0b;
  background-color:#1e0404;
}

[data-theme="sea"] .back-home:hover,
[data-theme="sea"] .back-to-top:hover,
[data-theme="sea"] .copy-email:hover,
[data-theme="sea"] .footer-link:hover,
[data-theme="sea"] .social-link:hover,
[data-theme="sea"] .contact-link:hover {
  color:#fff8f5;
  background-color:#3b0909;
}


[data-theme="sea"] a,
[data-theme="sea"] a:visited {
  color:#ffbfb4;
}

[data-theme="sea"] a:hover {
  color:#fff0e8;
}

[data-theme="sea"] #container_25f46253,
[data-theme="sea"] #container_65c1df42 {
  border-color:#471313 !important;
  box-shadow:0 18px 45px rgba(255,60,60,0.15) !important;
}

[data-theme="sea"] #container_45091031 {
  border-color:transparent !important;
  box-shadow:none !important;
}

[data-theme="sea"] .theme-button {
  border-color:#632222;
  background:rgba(48,8,8,0.95);
  color:#ffb8b8;
}

[data-theme="sea"] .theme-button--active {
  background:#ff4b4b;
  border-color:#ff4b4b;
  color:#2a0505;
}

@media (max-width: 640px) {
  /* Phone: compact, fixed menu */
  body { padding-top: 78px; }
  #menu_1001a78e {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    border-radius: 0 0 14px 14px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    z-index: 600;
  }
  #menu_1001a78e::before,
  #menu_1001a78e::after {
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 6px;
  }
  #menu_1001a78e .menuholder1 {
    gap: 4px;
  }
  #menu_1001a78e .menu_1001a78e_mainMenuEntry {
    min-width: 90px;
    padding: 6px 8px;
  }
  #menu_1001a78e .menuholder1 span { font-size: 0.9em; }
}

@media (max-width: 860px) {
  /* Force single-line menu where possible */
  #menu_1001a78e .mobileEntry { display:none !important; }
  #menu_1001a78e .normalEntry { display:flex !important; white-space:nowrap; }
  #menu_1001a78e .menuholder1 { justify-content:center; gap:6px; flex-wrap:nowrap; }
  #menu_1001a78e .menu_1001a78e_mainMenuEntry { min-width:100px; padding:6px 10px; }
}
}

@media (min-width: 1100px) {
  /* Keep desktop menu on one line */
  #menu_1001a78e .menuholder1 {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
  }
  #menu_1001a78e .menustyle1,
  #menu_1001a78e .menustyle2,
  #menu_1001a78e .menustyle3,
  #menu_1001a78e .menustyle4,
  #menu_1001a78e .menustyle5 {
    min-width: 110px;
  }
  #menu_1001a78e .menuentry_text1,
  #menu_1001a78e .menuentry_text2,
  #menu_1001a78e .menuentry_text3,
  #menu_1001a78e .menuentry_text4 {
    padding: 10px 16px;
  }
}
[data-theme="dark"] .quick-links a:hover,
[data-theme="dark"] .menu_1001a78e_mainMenuEntry:hover span,
[data-theme="dark"] .quick-links a:hover span {
  color:#ffffff !important;
}
[data-theme="dark"] a,
[data-theme="dark"] a:visited {
  color:#d5e2ff;
}

[data-theme="dark"] a:hover {
  color:#ffffff;
}
