:root {
  --color-primary: #0f4c81;
  --color-secondary: #1b998b;
  --color-accent: #2d6a4f;
  --color-background: #f7f9fc;
  --color-surface: #ffffff;
  --color-surface-alt: #eef4fb;
  --color-border: #d7e0ec;
  --color-border-strong: #bfd1e3;
  --color-text: #1f2937;
  --color-text-muted: #5b677a;
  --color-success: #17836a;
  --color-warning: #f59e0b;
  --color-shadow: 0 20px 55px rgba(16, 42, 67, 0.1);
  --color-shadow-soft: 0 16px 34px rgba(15, 76, 129, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --container: 1200px;
  --header-height: 84px;
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #52627a;
  background:
    radial-gradient(circle at top left, rgba(27, 153, 139, 0.12), transparent 26%),
    linear-gradient(180deg, #fcfdff 0%, var(--color-background) 38%, #f5f8fb 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 76, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at top, black 8%, transparent 82%);
  pointer-events: none;
  z-index: -2;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  padding: 0.85rem 1rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

textarea {
  min-height: 168px;
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: none;
  border-color: rgba(15, 76, 129, 0.65);
  box-shadow: 0 0 0 4px rgba(27, 153, 139, 0.16);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(190, 24, 93, 0.65);
  box-shadow: 0 0 0 4px rgba(190, 24, 93, 0.12);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.page-main {
  padding-bottom: 4rem;
}

.section-heading,
.page-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.page-heading-balanced {
  max-width: 980px;
}

.section-heading-wide {
  max-width: 100%;
}

.section-heading-wide h2 {
  max-width: 980px;
  font-size: clamp(1.7rem, 2.35vw, 2.55rem);
}

.section-heading-wide p {
  max-width: 1080px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 76, 129, 0.1);
  color: var(--color-primary);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  color: #243044;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.5rem, 3.4vw, 4.5rem);
}

h2 {
  font-size: clamp(1.85rem, 2.8vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 1.4vw, 1.5rem);
}

p {
  margin: 0;
  color: var(--color-text-muted);
}

.lead {
  font-size: 1.08rem;
  color: var(--color-text-muted);
}

.section-card {
  position: relative;
  padding: 1.8rem;
  border: 1px solid rgba(191, 209, 227, 0.75);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.95));
  box-shadow: var(--color-shadow-soft);
  overflow: hidden;
}

.section-card::after {
  content: "";
  position: absolute;
  inset: auto auto -25% -10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(27, 153, 139, 0.12), transparent 72%);
  pointer-events: none;
}

.btn,
.tool-action,
.header-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.btn:hover,
.tool-action:hover,
.header-link-button:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #1167aa);
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 76, 129, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 20px 38px rgba(15, 76, 129, 0.28);
}

.btn-secondary {
  background: rgba(27, 153, 139, 0.1);
  border-color: rgba(27, 153, 139, 0.2);
  color: var(--color-secondary);
}

.btn-secondary:hover {
  background: rgba(27, 153, 139, 0.16);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(191, 209, 227, 0.9);
  color: var(--color-text);
}

.btn-icon,
.icon-badge,
.card-icon,
.inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg,
.card-icon svg,
.section-icon svg,
.inline-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  backdrop-filter: blur(16px);
  background: rgba(247, 249, 252, 0.85);
  border-bottom: 1px solid rgba(191, 209, 227, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-gis {
  color: #1463a5;
}

.brand-it {
  color: #f97316;
}

.brand-tools {
  color: #243044;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.18);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(191, 209, 227, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
  content: "";
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  transform: translateY(-6px);
}

.nav-toggle-bar::after {
  position: absolute;
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1 1 auto;
  justify-content: center;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--color-text-muted);
  font-weight: 600;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.nav-dropdown summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
}

.nav-dropdown[open] summary {
  color: var(--color-text);
}

.nav-dropdown[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  z-index: 10;
  display: grid;
  gap: 0.35rem;
  min-width: 230px;
  padding: 0.7rem;
  border: 1px solid rgba(191, 209, 227, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--color-shadow);
  transform: translateX(-50%);
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
  display: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.nav-dropdown-menu a:hover {
  background: rgba(15, 76, 129, 0.07);
  color: var(--color-text);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-dropdown summary:hover {
  color: var(--color-text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.search-trigger {
  min-width: 112px;
}

.hero {
  position: relative;
  padding: 4.8rem 0 4rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 78%;
  background:
    radial-gradient(circle at 18% 22%, rgba(27, 153, 139, 0.18), transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(15, 76, 129, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 252, 0));
  pointer-events: none;
  z-index: -1;
}

.hero-live-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.68;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.035);
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.8), rgba(236, 253, 245, 0.75));
}

.hero-live-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 500;
  background:
    linear-gradient(90deg, rgba(245, 248, 252, 0.34) 0%, rgba(245, 248, 252, 0.05) 22%, rgba(245, 248, 252, 0.05) 78%, rgba(255, 248, 238, 0.34) 100%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.34) 72%);
  pointer-events: none;
}

.hero-live-map .leaflet-control-container {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: block;
}

.hero-copy {
  position: relative;
  max-width: 100%;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(191, 209, 227, 0.82);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 252, 0.92));
  box-shadow: var(--color-shadow-soft);
  overflow: hidden;
  isolation: isolate;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.78fr);
  gap: 1.75rem;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-copy p {
  max-width: 760px;
  margin-top: 1.2rem;
}

.hero-title {
  max-width: 780px;
  font-size: clamp(1.75rem, 2.25vw, 2.6rem);
  line-height: 1.18;
}

.hero-highlight {
  display: inline;
  font-weight: 800;
}

.hero-highlight-primary {
  color: var(--color-primary);
}

.hero-highlight-secondary {
  color: var(--color-secondary);
}

.hero-highlight-accent {
  color: var(--color-accent);
}

.hero-map-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-map-backdrop::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 24%, rgba(27, 153, 139, 0.14), transparent 17%),
    radial-gradient(circle at 78% 58%, rgba(15, 76, 129, 0.12), transparent 18%),
    linear-gradient(rgba(15, 76, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  opacity: 0.8;
}

.hero-map-backdrop::after {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border-radius: 28px;
  background: url("../images/hero-map-overlay.svg") center center / cover no-repeat;
  opacity: 0.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero-actions .btn {
  min-width: 168px;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(27, 153, 139, 0.18), rgba(15, 76, 129, 0.02) 70%);
  filter: blur(24px);
  z-index: -1;
}

.hero-media img {
  width: min(100%, 410px);
  border-radius: 28px;
  box-shadow: 0 26px 50px rgba(15, 76, 129, 0.18);
  border: 1px solid rgba(191, 209, 227, 0.9);
}

.section-heading p,
.page-heading p {
  margin-top: 0.9rem;
}

.featured-grid,
.tool-grid,
.link-card-grid,
.audience-grid,
.value-grid,
.contact-card-grid,
.policy-grid,
.stats-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="home"] .hero {
  padding-bottom: 2.6rem;
}

body[data-page="home"] #featured-categories.section {
  padding: 1.75rem 0 2.5rem;
}

body[data-page="home"] #featured-categories .featured-grid {
  row-gap: 1rem;
}

.featured-card,
.tool-card,
.link-card,
.audience-card,
.value-card,
.contact-card,
.policy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid rgba(191, 209, 227, 0.76);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--color-shadow-soft);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.featured-card:hover,
.tool-card:hover,
.link-card:hover,
.audience-card:hover,
.value-card:hover,
.contact-card:hover,
.policy-card:hover {
  transform: translateY(-5px);
  border-color: rgba(27, 153, 139, 0.35);
  box-shadow: 0 26px 42px rgba(15, 76, 129, 0.12);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.featured-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.featured-category-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.featured-category-title-wrap h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #243044;
  font-weight: 750;
}

.featured-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.featured-category-tag {
  flex: 0 0 auto;
  white-space: nowrap;
}

.card-icon,
.section-icon,
.icon-badge {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.14), rgba(27, 153, 139, 0.16));
  color: var(--color-primary);
}

.card-icon svg,
.section-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke-width: 2;
}

.tool-badge,
.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(27, 153, 139, 0.1);
  color: var(--color-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #a16207;
}

.tool-badge.primary {
  background: rgba(15, 76, 129, 0.1);
  color: var(--color-primary);
}

.tool-card p,
.featured-card p,
.link-card p,
.policy-card p,
.audience-card p,
.value-card p,
.contact-card p {
  flex: 1 1 auto;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-primary);
  font-weight: 700;
}

.card-link span {
  transition: transform var(--transition);
}

.link-card:hover .card-link span,
.featured-card:hover .card-link span {
  transform: translateX(4px);
}

.inline-ad,
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 1rem;
  border: 1px dashed rgba(15, 76, 129, 0.26);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 76, 129, 0.05), rgba(27, 153, 139, 0.08));
  text-align: center;
  color: var(--color-text-muted);
}

.ad-placeholder,
.sidebar-ad,
.sponsored-placement,
.inline-ad,
.ad-slot {
  display: none !important;
}

.ad-slot small,
.inline-ad small {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-text-muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 1.5rem;
  align-items: start;
}

.primary-column {
  display: grid;
  gap: 1.5rem;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  padding: 1.3rem;
  border: 1px solid rgba(191, 209, 227, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--color-shadow-soft);
}

.sidebar-card h3,
.sidebar-card h4 {
  margin-bottom: 0.85rem;
}

.search-card {
  position: relative;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  color: var(--color-text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input-wrap input {
  padding-left: 2.8rem;
}

.search-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.search-status {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

.empty-state {
  display: grid;
  gap: 0.5rem;
  padding: 1.6rem;
  border-radius: 22px;
  background: rgba(15, 76, 129, 0.05);
  color: var(--color-text-muted);
}

.hidden {
  display: none !important;
}

.sidebar-list,
.footer-links,
.policy-list,
.tool-meta-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-list a,
.sidebar-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(191, 209, 227, 0.74);
  border-radius: 16px;
  background: rgba(247, 249, 252, 0.88);
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.sidebar-list a:hover,
.sidebar-list button:hover {
  transform: translateX(4px);
  background: #fff;
  border-color: rgba(27, 153, 139, 0.32);
}

.sidebar-list span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.promo-card {
  background:
    linear-gradient(180deg, rgba(15, 76, 129, 0.98), rgba(11, 58, 99, 0.94));
  color: #fff;
}

.promo-card p,
.promo-card h3 {
  color: #fff;
}

.promo-card .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.portfolio-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 244, 241, 0.98));
}

.owner-profile {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.owner-profile img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(191, 209, 227, 0.9);
  box-shadow: 0 16px 30px rgba(15, 76, 129, 0.14);
}

.owner-profile-copy {
  display: grid;
  gap: 0.2rem;
}

.owner-profile-copy strong {
  color: var(--color-text);
  font-size: 1rem;
}

.owner-profile-copy span {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.category-section {
  display: grid;
  gap: 1.35rem;
}

#tool-sections-container {
  display: grid;
  gap: 1.7rem;
}

.category-section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.section-title-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.category-section .tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  min-height: 100%;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.tool-card-anchor {
  display: block;
  height: 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.tool-card.is-hidden {
  display: none;
}

.tool-card.is-match {
  border-color: rgba(27, 153, 139, 0.52);
  box-shadow: 0 20px 40px rgba(27, 153, 139, 0.14);
}

.tool-card.is-target-highlight {
  border-color: rgba(15, 76, 129, 0.58);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow:
    0 24px 50px rgba(15, 76, 129, 0.16),
    0 0 0 5px rgba(27, 153, 139, 0.16);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tool-card-title {
  display: grid;
  gap: 0.25rem;
}

.tool-card-title h3 {
  font-size: clamp(1.08rem, 1.2vw, 1.24rem);
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-top: auto;
}

.tool-action {
  min-width: 156px;
  background: linear-gradient(135deg, var(--color-primary), #1167aa);
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 76, 129, 0.22);
  padding-inline: 1.2rem;
}

.tool-action:hover {
  box-shadow: 0 20px 38px rgba(15, 76, 129, 0.28);
}

.ecosystem-section {
  display: grid;
  gap: 1.5rem;
}

.link-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-card .mini-badge {
  width: fit-content;
}

.page-hero {
  padding: 4.5rem 0 2rem;
}

.page-hero .page-heading {
  margin-bottom: 0;
}

.page-heading-balanced h1 {
  max-width: 920px;
}

.page-heading-balanced p {
  max-width: 900px;
}

.page-panel {
  display: grid;
  gap: 1.5rem;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-card {
  padding: 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(191, 209, 227, 0.78);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--color-shadow-soft);
}

.stats-card strong {
  display: block;
  font-size: 1.7rem;
  color: var(--color-primary);
}

.stats-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-text-muted);
}

.audience-grid,
.value-grid,
.contact-card-grid,
.policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-slab,
.contact-layout,
.policy-layout {
  display: grid;
  gap: 1.5rem;
}

.timeline-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: rgba(27, 153, 139, 0.1);
  color: var(--color-secondary);
  font-weight: 800;
}

.contact-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.contact-layout > .section-card {
  height: 100%;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 700;
  color: var(--color-text);
}

.field-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-response {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(23, 131, 106, 0.1);
  color: var(--color-success);
  font-weight: 600;
}

.form-response.is-success {
  background: rgba(23, 131, 106, 0.1);
  color: var(--color-success);
}

.form-response.is-error {
  background: rgba(190, 24, 93, 0.1);
  color: #be185d;
}

.contact-form button[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.contact-owner-card {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.contact-owner-header {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.contact-owner-avatar {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(191, 209, 227, 0.9);
  box-shadow: 0 18px 34px rgba(15, 76, 129, 0.16);
}

.contact-owner-copy {
  display: grid;
  gap: 0.95rem;
}

.contact-owner-lead {
  color: var(--color-text);
  font-weight: 600;
}

.contact-owner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-owner-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 76, 129, 0.08);
  color: var(--color-primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-owner-details {
  gap: 1rem;
}

.contact-owner-details li {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(191, 209, 227, 0.74);
  border-radius: 18px;
  background: rgba(247, 249, 252, 0.82);
}

.contact-owner-details strong {
  color: var(--color-text);
}

.contact-owner-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-owner-link {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(191, 209, 227, 0.74);
  border-radius: 18px;
  background: rgba(247, 249, 252, 0.82);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.contact-owner-link strong {
  color: var(--color-text);
}

.contact-owner-link span {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.contact-owner-link:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 153, 139, 0.32);
  background: #fff;
}

.contact-owner-focus {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  border-radius: 22px;
  background: rgba(15, 76, 129, 0.06);
}

.contact-owner-focus h3 {
  font-size: 1.08rem;
}

.contact-owner-bullets {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-text-muted);
}

.contact-owner-bullets li::marker {
  color: var(--color-secondary);
}

.contact-owner-card .policy-list a {
  color: var(--color-primary);
  font-weight: 600;
}

.policy-article {
  display: grid;
  gap: 1rem;
}

.policy-card h2 {
  font-size: 1.3rem;
}

.policy-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
}

.callout {
  padding: 1.3rem 1.4rem;
  border-left: 4px solid var(--color-secondary);
  border-radius: 18px;
  background: rgba(27, 153, 139, 0.08);
}

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(191, 209, 227, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.92));
}

.footer-grid {
  grid-template-columns: 1.3fr repeat(3, minmax(0, 0.8fr));
  align-items: start;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  margin-top: 0.9rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(191, 209, 227, 0.66);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-bottom-centered {
  justify-content: center;
  text-align: center;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 35, 0.62);
}

.modal-dialog {
  position: relative;
  width: min(calc(100% - 2rem), 560px);
  margin: min(12vh, 5rem) auto;
  padding: 1.5rem;
  border: 1px solid rgba(191, 209, 227, 0.8);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(12, 22, 35, 0.34);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(191, 209, 227, 0.9);
  border-radius: 14px;
  background: rgba(247, 249, 252, 0.96);
  font-size: 1.4rem;
  line-height: 1;
}

.modal-content {
  display: grid;
  gap: 1rem;
}

.modal-content p {
  color: var(--color-text-muted);
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.muted {
  color: var(--color-text-muted);
}

.hero-title {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.06;
  color: #243044;
}

.page-title,
.page-heading h1 {
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.08;
  color: #243044;
}

.section-title,
.section-heading h2,
.section-heading-wide h2 {
  font-size: clamp(28px, 3vw, 38px);
  color: #243044;
}

.tool-grid,
.tools-grid,
.tool-section-grid,
.category-section .tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  justify-content: start;
  align-items: stretch;
  width: 100%;
}

.tool-card {
  width: 100%;
  max-width: none;
}

.tool-section-header,
.category-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(240, 253, 250, 0.9));
}

.tool-section-heading,
.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-section-left {
  min-width: 0;
}

.tool-section-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-section-heading h2,
.tool-section-title-row h2,
.category-section-header h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  color: #243044;
  font-weight: 750;
}

.tool-section-description,
.category-section-header p {
  margin: 8px 0 0 56px;
  color: #5b6b82;
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
}

.tool-section-count {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e0f7f4;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tool-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tool-card-title {
  display: block;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #243044;
  font-weight: 750;
}

.tool-card-icon {
  flex: 0 0 auto;
}

.tool-card-tag {
  flex: 0 0 auto;
}

.tool-card p {
  font-size: 16px;
  color: #5b6b82;
  line-height: 1.6;
}

.tool-card .btn,
.tool-card .tool-button,
.tool-card .tool-action {
  min-width: auto;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.footer-visitor-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #243044;
  font-weight: 600;
}

.footer-visitor-count[hidden] {
  display: none !important;
}

/* Homepage refresh */
:root {
  --color-primary: #155bd5;
  --color-secondary: #009b7d;
  --color-accent: #f97316;
  --color-background: #f5f8fc;
  --color-surface-alt: #eef7f5;
  --color-border: #d8e3ef;
  --color-text: #182235;
  --color-text-muted: #59677c;
  --color-shadow: 0 24px 60px rgba(24, 34, 53, 0.14);
  --color-shadow-soft: 0 16px 36px rgba(24, 34, 53, 0.09);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --header-height: 76px;
}

h1,
h2,
h3,
h4,
.brand,
.brand-text,
.hero-title,
.page-title,
.page-heading h1 {
  letter-spacing: 0;
}

body {
  color: var(--color-text);
  background:
    linear-gradient(180deg, #f9fbff 0%, #f2fbf7 46%, #fff8ef 100%);
  overflow-x: hidden;
}

body::before {
  background-image:
    linear-gradient(rgba(21, 91, 213, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 155, 125, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black 0%, transparent 76%);
}

.site-header {
  height: 76px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(216, 227, 239, 0.95);
  box-shadow: 0 10px 30px rgba(24, 34, 53, 0.06);
}

.header-inner {
  min-height: 76px;
}

.brand img,
.nav-toggle,
.nav-dropdown-menu,
.nav-dropdown-menu a,
input,
textarea,
.btn,
.tool-action,
.header-link-button,
.modal-close {
  border-radius: 8px;
}

.site-nav {
  gap: 0.45rem;
}

.site-nav a,
.nav-dropdown summary {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-dropdown summary:hover {
  background: rgba(21, 91, 213, 0.07);
}

.site-nav a::after {
  display: none;
}

.search-trigger {
  min-width: 104px;
  background: #fff;
  border-color: rgba(21, 91, 213, 0.18);
  color: var(--color-primary);
}

.hero {
  padding: 3.4rem 0 2.4rem;
  overflow: hidden;
}

.hero::before {
  height: 100%;
  background:
    linear-gradient(135deg, rgba(21, 91, 213, 0.1), rgba(0, 155, 125, 0.08) 48%, rgba(249, 115, 22, 0.09)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  z-index: 1;
}

.hero-copy {
  padding: clamp(1.6rem, 3.5vw, 3rem);
  border-radius: 8px;
  border-color: rgba(21, 91, 213, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(247, 253, 250, 0.8) 58%, rgba(255, 247, 237, 0.78));
  box-shadow: 0 24px 70px rgba(24, 34, 53, 0.13);
  backdrop-filter: blur(2px);
}

.hero-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.8fr);
  gap: clamp(1.5rem, 3.4vw, 3.4rem);
}

.hero-title {
  max-width: 680px;
  font-size: clamp(2.05rem, 3.55vw, 3.45rem);
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-copy p {
  max-width: 720px;
}

.hero-highlight-primary {
  color: #155bd5;
}

.hero-highlight-secondary {
  color: #009b7d;
}

.hero-highlight-accent {
  color: #2f7d4f;
}

.hero-map-backdrop::before {
  inset: 0.8rem;
  border-radius: 8px;
  background:
    linear-gradient(rgba(21, 91, 213, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 155, 125, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(21, 91, 213, 0.08), rgba(249, 115, 22, 0.06));
  background-size: 42px 42px, 42px 42px, auto;
}

.hero-map-backdrop::after {
  inset: 0.8rem;
  border-radius: 8px;
  opacity: 0;
}

.hero-media {
  align-self: stretch;
  align-items: center;
  justify-content: flex-end;
}

.hero-media::before {
  inset: auto 8% 5%;
  height: 42%;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(21, 91, 213, 0.14), rgba(0, 155, 125, 0.12));
  filter: blur(22px);
}

.hero-visual-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  width: min(100%, 520px);
  margin-left: auto;
}

.hero-media img {
  width: 100%;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 58px rgba(24, 34, 53, 0.2);
}

.hero-side-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(216, 227, 239, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(24, 34, 53, 0.08);
  backdrop-filter: blur(12px);
}

.hero-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  width: min(100%, 720px);
  margin-top: 1.6rem;
  padding: 0.55rem;
  border: 1px solid rgba(21, 91, 213, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(24, 34, 53, 0.09);
}

.hero-search-field {
  position: relative;
  min-width: 0;
}

.hero-search-field svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--color-primary);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-search-field input {
  min-height: 52px;
  padding-left: 2.8rem;
  border-color: transparent;
  background: #f7fbff;
  box-shadow: none;
}

.hero-search-button {
  min-height: 52px;
  box-shadow: none;
}

.hero-category-pills,
.hero-metrics {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0;
}

.hero-category-pills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-category-pill,
.hero-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.52rem 0.65rem;
  border: 1px solid rgba(216, 227, 239, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(24, 34, 53, 0.06);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.hero-category-pill:hover {
  transform: translateY(-2px);
  border-color: var(--theme-1, rgba(21, 91, 213, 0.35));
  background: #fff;
}

.hero-category-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--theme-1, var(--color-primary));
}

.hero-category-pill-icon svg {
  width: 18px;
  height: 18px;
}

.hero-category-pill strong,
.hero-metric strong {
  color: var(--theme-1, var(--color-primary));
}

.hero-metric {
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}

.hero-metric strong {
  font-size: 1rem;
}

.hero-metric span {
  color: var(--color-text-muted);
  font-weight: 650;
}

.hero-actions {
  margin-top: 1.3rem;
}

.section-card,
.featured-card,
.tool-card,
.link-card,
.audience-card,
.value-card,
.contact-card,
.policy-card,
.sidebar-card,
.stats-card,
.search-status,
.empty-state,
.modal-dialog {
  border-radius: 8px;
}

.section-card {
  border-color: rgba(216, 227, 239, 0.9);
  background: rgba(255, 255, 255, 0.9);
}

.featured-card,
.tool-card,
.link-card,
.sidebar-card {
  overflow: hidden;
  border-color: rgba(216, 227, 239, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.featured-card::before,
.tool-card::before,
.link-card::before,
.sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-1, var(--color-primary)), var(--theme-2, var(--color-secondary)));
}

.sidebar-card {
  position: relative;
}

.category-section,
.featured-card,
.hero-category-pill {
  --theme-1: #155bd5;
  --theme-2: #009b7d;
  --theme-soft: rgba(21, 91, 213, 0.1);
  --theme-wash: rgba(21, 91, 213, 0.06);
}

.category-section[data-category-id="gis-tools"],
.featured-card[data-category-id="gis-tools"],
.hero-category-pill[data-category-id="gis-tools"] {
  --theme-1: #155bd5;
  --theme-2: #00a884;
  --theme-soft: rgba(21, 91, 213, 0.12);
  --theme-wash: rgba(21, 91, 213, 0.07);
}

.category-section[data-category-id="seo-tools"],
.featured-card[data-category-id="seo-tools"],
.hero-category-pill[data-category-id="seo-tools"] {
  --theme-1: #7c3aed;
  --theme-2: #155bd5;
  --theme-soft: rgba(124, 58, 237, 0.12);
  --theme-wash: rgba(124, 58, 237, 0.07);
}

.category-section[data-category-id="math-tools"],
.featured-card[data-category-id="math-tools"],
.hero-category-pill[data-category-id="math-tools"] {
  --theme-1: #f97316;
  --theme-2: #eab308;
  --theme-soft: rgba(249, 115, 22, 0.13);
  --theme-wash: rgba(249, 115, 22, 0.08);
}

.category-section[data-category-id="text-tools"],
.featured-card[data-category-id="text-tools"],
.hero-category-pill[data-category-id="text-tools"] {
  --theme-1: #db2777;
  --theme-2: #f97316;
  --theme-soft: rgba(219, 39, 119, 0.12);
  --theme-wash: rgba(219, 39, 119, 0.07);
}

.category-section[data-category-id="utilities"],
.featured-card[data-category-id="utilities"],
.hero-category-pill[data-category-id="utilities"] {
  --theme-1: #0891b2;
  --theme-2: #00a884;
  --theme-soft: rgba(8, 145, 178, 0.12);
  --theme-wash: rgba(8, 145, 178, 0.07);
}

.category-section[data-category-id="developer-tools"],
.featured-card[data-category-id="developer-tools"],
.hero-category-pill[data-category-id="developer-tools"] {
  --theme-1: #334155;
  --theme-2: #155bd5;
  --theme-soft: rgba(51, 65, 85, 0.12);
  --theme-wash: rgba(51, 65, 85, 0.07);
}

.card-icon,
.section-icon,
.icon-badge {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--theme-soft, rgba(21, 91, 213, 0.12)), rgba(255, 255, 255, 0.72));
  color: var(--theme-1, var(--color-primary));
}

.tool-section-header,
.category-section-header {
  border-color: var(--theme-soft, rgba(21, 91, 213, 0.14));
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--theme-wash, rgba(21, 91, 213, 0.06)), rgba(255, 255, 255, 0.88));
}

.tool-section-count,
.mini-badge {
  border-radius: 8px;
  background: var(--theme-soft, rgba(0, 155, 125, 0.1));
  color: var(--theme-1, var(--color-secondary));
}

.tool-badge.primary,
.tool-badge.warning,
.tool-badge {
  border-radius: 8px;
}

.tool-card:hover,
.featured-card:hover,
.link-card:hover,
.sidebar-list a:hover,
.sidebar-list button:hover {
  border-color: var(--theme-1, rgba(21, 91, 213, 0.36));
}

.tool-card.is-match {
  border-color: var(--theme-1, rgba(0, 155, 125, 0.52));
  box-shadow: 0 20px 42px rgba(0, 155, 125, 0.14);
}

.tool-action,
.btn-primary {
  background: linear-gradient(135deg, #155bd5, #009b7d);
  color: #fff;
}

.tool-action {
  box-shadow: 0 14px 28px rgba(21, 91, 213, 0.18);
}

.btn-secondary {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.22);
  color: #c2410c;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(21, 91, 213, 0.22);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: #fff;
  border-color: rgba(21, 91, 213, 0.36);
  box-shadow: 0 16px 30px rgba(21, 91, 213, 0.12);
}

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.hero-social-links .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  border: 1px solid color-mix(in srgb, var(--social-color), transparent 72%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--social-color), white 90%);
  color: var(--social-color);
  font-weight: 750;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.hero-social-links .social-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--social-color), transparent 50%);
  background: color-mix(in srgb, var(--social-color), white 84%);
}

.hero-social-links svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.social-instagram {
  --social-color: #c13584;
}

.social-linkedin {
  --social-color: #0a66c2;
}

.social-facebook {
  --social-color: #1877f2;
}

.social-whatsapp {
  --social-color: #25d366;
}

.search-status {
  width: 100%;
  border: 1px solid rgba(21, 91, 213, 0.12);
  background: linear-gradient(135deg, rgba(21, 91, 213, 0.08), rgba(0, 155, 125, 0.07));
}

.sidebar-list a,
.sidebar-list button {
  border-radius: 8px;
  background: #f8fbff;
}

.portfolio-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.98));
}

.owner-profile img,
.contact-owner-avatar {
  border-radius: 8px;
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(239, 247, 255, 0.96));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
