:root {
  --atlas-primary: #005a9c;
  --atlas-primary-dark: #00467a;
  --atlas-accent: #0f766e;
  --atlas-bg-soft: #f8fafc;
  --atlas-border: #dbe3ef;
  --atlas-surface: #ffffff;
  --atlas-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --atlas-text: #0f172a;
  --atlas-muted: #475569;
  --atlas-navy: #0b1c3f;
  --atlas-navy-deep: #071429;
}

/* Explicit shell + footer colors so the layout never depends on whether a
   given Tailwind utility made it into the compiled build (dev environments
   without the Tailwind watcher were rendering the footer white-on-white). */
.atlas-app-shell {
  color: var(--atlas-text);
  background-color: #eef2f7;
  background-image: linear-gradient(180deg, #f1f5f9 0%, #e7edf4 100%);
}

/* Page content column. Hand-written (not a Tailwind max-w-* utility) so the
   width cap survives a dev build without the Tailwind watcher -- otherwise the
   card ran full-bleed on wide monitors. Matches .atlas-navbar-inner so the
   card edges line up with the nav. */
.atlas-content-container {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
}

@media (min-width: 1600px) {
  .atlas-content-container {
    max-width: 74rem;
  }
}

.atlas-footer {
  background-color: var(--atlas-navy);
  background-image: linear-gradient(180deg, var(--atlas-navy) 0%, var(--atlas-navy-deep) 100%);
  color: #e2e8f0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.atlas-footer-title {
  color: #f8fafc;
}

.atlas-footer-muted {
  color: #94a3b8;
}

.atlas-footer-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.atlas-footer-link:hover {
  color: #ffffff;
}

.atlas-footer-link-admin {
  color: #fca5a5;
}

.atlas-footer-link-admin:hover {
  color: #fecaca;
}

/* ── Documentation-style top bar ──────────────────────────────────────────
   Thin, translucent, blurred header in the spirit of the Tailwind / Next.js
   docs sites: understated links with an underline indicator for the active
   page, and a compact search field with a ⌘K / Ctrl K hint. */
.atlas-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .atlas-navbar { background: #f8fafc; }
}

.atlas-navbar-inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  min-height: 3.5rem;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .atlas-navbar-inner {
    gap: 0.5rem;
  }
}

.atlas-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding-right: 0.25rem;
}

.atlas-brand img {
  height: 1.85rem;
  width: auto;
}

.atlas-brand-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  white-space: nowrap;
}

.atlas-brand-name .atlas-brand-prefix {
  font-weight: 700;
  background-image: linear-gradient(90deg, #0072bc, #8dc63f, #0bbcbe, #0072bc);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: atlas-gradient-sweep 3.5s linear infinite;
}

.atlas-navbar-divider {
  width: 1px;
  height: 1.4rem;
  margin: 0 0.85rem;
  background: rgba(15, 23, 42, 0.12);
}

.atlas-nav-links {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.atlas-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #52607a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.atlas-nav-link:hover {
  color: #0f172a;
}

.atlas-nav-link.is-active {
  color: #0f172a;
  font-weight: 600;
}

.atlas-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #0072bc;
}

.atlas-navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.atlas-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.2rem;
  min-width: 0;
  width: 13rem;
  padding: 0 0.4rem 0 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.035);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, width 0.18s ease;
}

@media (min-width: 1024px) {
  .atlas-search-form {
    width: 18rem;
  }
}

.atlas-search-form:focus-within,
.atlas-search-form.expanded {
  width: 20rem;
  background: #ffffff;
  border-color: #0072bc;
}

.atlas-search-icon {
  flex: none;
  color: #94a3b8;
}

.atlas-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
}

.atlas-search-input::placeholder {
  color: #94a3b8;
}

/* Only the form shows a focus state — no nested outline/ring on the input itself. */
.atlas-search-input:focus,
.atlas-search-input:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
}

.atlas-search-input::-webkit-search-cancel-button {
  display: none;
}

.atlas-kbd {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  color: #64748b;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.3rem;
  white-space: nowrap;
}

.atlas-search-form:focus-within .atlas-kbd {
  opacity: 0;
}

.atlas-nav-links-mobile {
  display: none;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0 0.75rem 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.atlas-nav-links-mobile::-webkit-scrollbar {
  display: none;
}

.atlas-nav-link-mobile {
  flex: none;
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #52607a;
  text-decoration: none;
  border-radius: 0.4rem;
}

.atlas-nav-link-mobile:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
}

.atlas-nav-link-mobile.is-active {
  color: #0072bc;
  font-weight: 600;
}

@media (max-width: 1023px) {
  .atlas-navbar-inner .atlas-nav-links,
  .atlas-navbar-divider {
    display: none;
  }

  .atlas-nav-links-mobile {
    display: flex;
  }

  .atlas-search-form,
  .atlas-search-form:focus-within,
  .atlas-search-form.expanded {
    width: auto;
    flex: 1 1 auto;
  }
}

.atlas-surface {
  border-radius: 1rem;
  border: 1px solid var(--atlas-border);
  background: color-mix(in srgb, white 95%, #f8fbff 5%);
  box-shadow: var(--atlas-shadow);
}

.atlas-card {
  border-radius: 0.85rem;
  border: 1px solid var(--atlas-border);
  background: var(--atlas-surface);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.atlas-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.atlas-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d0d9e6;
  background: #f8fafc;
  padding: 0.24rem 0.58rem;
  font-size: 0.75rem;
  color: #334155;
}

/* ── Moving-gradient hover for interactive pills (skills, interests, employers, etc.) ── */
@keyframes atlas-gradient-sweep {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

.pill-filter {
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#modal .pill-filter:hover,
.space-y-4 .pill-filter:hover {
  color: #fff !important;
  border-color: transparent !important;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, #0072bc, #8dc63f, #0BBCBE, #0072bc) !important;
  background-size: 200% 100% !important;
  animation: atlas-gradient-sweep 2.5s linear infinite !important;
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.3);
}

/* ── Animated Genus-gradient frame for page header cards ──────────────────
   Keeps the card's own border; adds a 2px gradient rim plus a soft glow,
   both sweeping left→right through the three brand colours. Reuses the
   atlas-gradient-sweep keyframes above (no extra dependency). */
.atlas-genus-glow {
  position: relative;
}

.atlas-genus-glow::before,
.atlas-genus-glow::after {
  content: "";
  position: absolute;
  z-index: -1;
  background-image: linear-gradient(90deg, #0072bc, #8dc63f, #0bbcbe, #0072bc);
  background-size: 200% 100%;
  animation: atlas-gradient-sweep 6s linear infinite;
  pointer-events: none;
}

.atlas-genus-glow::before {
  inset: -2px;
  border-radius: calc(1rem + 2px);
}

.atlas-genus-glow::after {
  inset: -9px;
  border-radius: calc(1rem + 9px);
  filter: blur(15px);
  opacity: 0.3;
}

@media (prefers-reduced-motion: reduce) {
  .atlas-brand-name .atlas-brand-prefix,
  .atlas-genus-glow::before,
  .atlas-genus-glow::after {
    animation: none;
  }
}

.atlas-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  padding: 0.58rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
}

.atlas-button:hover {
  transform: translateY(-1px);
}

.atlas-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.22);
}

.atlas-button-primary {
  background: var(--atlas-primary);
  border-color: var(--atlas-primary);
  color: #fff;
}

.atlas-button-primary:hover {
  background: var(--atlas-primary-dark);
  border-color: var(--atlas-primary-dark);
}

.atlas-button-secondary {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}

.atlas-button-secondary:hover {
  background: #f8fafc;
}

.atlas-button-accent {
  background: var(--atlas-accent);
  border-color: var(--atlas-accent);
  color: #fff;
}

.atlas-button-accent:hover {
  background: #115e59;
  border-color: #115e59;
}

.atlas-button-compact {
  min-width: 6.4rem;
  padding: 0.6rem 0.9rem;
}

/* Improve baseline table readability across directory and dashboard pages */
table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  letter-spacing: 0.05em;
}

tbody tr:hover {
  background: rgba(148, 163, 184, 0.08);
}

/* Footer polish */
footer {
  border-top: 1px solid rgba(203, 213, 225, 0.25);
}

/* Back / cancel link at the top of the full profile page */
.atlas-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--atlas-muted, #64748b);
  text-decoration: none;
  padding: 0.25rem 0.1rem;
  transition: color 0.15s ease;
}

.atlas-back-link:hover {
  color: var(--atlas-primary, #005a9c);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.atlas-quarter-select {
  min-width: 11rem;
  padding-left: 0.625rem;
  padding-right: 1.75rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

@media (max-width: 768px) {
  .atlas-button,
  .atlas-button-compact {
    min-width: 0;
  }
}

/* ── Rock editor (list of text boxes) ── */
.rock-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rock-row-fields {
  display: grid;
  grid-template-columns: 1fr 12rem auto;
  gap: 0.75rem;
  align-items: start;
}

@media (max-width: 640px) {
  .rock-row-fields {
    grid-template-columns: 1fr;
  }
}

/* ── Rock editor: one card per rock ────────────────────────────────────────
   Each rock (its fields *and* its "Aligns with" links) sits in its own white
   card, numbered "Rock 1", "Rock 2"... by a CSS counter, so it is obvious which
   links belong to which rock. The card being edited gets the same sweeping
   Genus rim as the page's header frame (atlas-gradient-sweep, no dependency):
   a two-layer background, white on the padding box and the brand gradient on
   the border box, behind a transparent 2px border. Scoped to [data-rock-rows]
   so the Annual Company Goals editor, which reuses .rock-row, is unaffected. */
[data-rock-rows] {
  counter-reset: rock;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

[data-rock-rows] > .rock-row {
  counter-increment: rock;
  position: relative;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 0.9rem;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, var(--atlas-border), var(--atlas-border)) border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 6px 16px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease;
}

/* Brand stripe down the left edge: the quiet version of the rim. */
[data-rock-rows] > .rock-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background-image: linear-gradient(180deg, #0072bc, #8dc63f, #0bbcbe);
  pointer-events: none;
}

/* "ROCK 1" heading. */
[data-rock-rows] > .rock-row::before {
  content: "Rock " counter(rock);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atlas-primary);
}

[data-rock-rows] > .rock-row:hover {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), 0 10px 24px rgba(15, 23, 42, 0.07);
}

/* The rock you're working on: animated Genus rim plus a soft glow. */
[data-rock-rows] > .rock-row:focus-within {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #0072bc, #8dc63f, #0bbcbe, #0072bc) border-box;
  background-size: 100% 100%, 200% 100%;
  animation: atlas-gradient-sweep 4s linear infinite;
  box-shadow: 0 0 0 4px rgba(0, 114, 188, 0.08), 0 10px 26px rgba(0, 114, 188, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  [data-rock-rows] > .rock-row:focus-within {
    animation: none;
  }
}

/* One line: text grows, category / status / Company-rock / Remove sit beside
   it. (The old 3-column grid had four controls, so Remove wrapped onto its own
   full-width line.) */
[data-rock-rows] .rock-row-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
}

[data-rock-rows] .rock-row-fields > textarea {
  flex: 1 1 18rem;
  width: auto;
  min-width: 0;
}

[data-rock-rows] .rock-row-fields > select {
  flex: 0 0 11.5rem;
  width: auto;
}

[data-rock-rows] .rock-row-fields > label {
  flex: 0 0 auto;
  width: auto;
  align-self: stretch;
}

[data-rock-rows] .rock-row-fields > .rock-row-remove {
  flex: 0 0 auto;
  align-self: stretch;
}

@media (max-width: 640px) {
  [data-rock-rows] .rock-row-fields > select {
    flex: 1 1 45%;
  }
}

/* Links read as part of the rock above: a tinted inset panel, not a second
   free-floating box. */
[data-rock-rows] .rock-row-align {
  border: 1px solid #e3ebf5;
  background: linear-gradient(180deg, #f5f9fd, #f8fafc);
  border-radius: 0.65rem;
}

/* "Aligns with": the three link pickers, on their own line under the row so
   they never squeeze the rock text. */
.rock-row-align {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px dashed var(--atlas-border);
  border-radius: 0.6rem;
  background: #f8fafc;
}

.rock-row-align-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.rock-align-select {
  width: auto;
  min-width: 12rem;
  max-width: 22rem;
  flex: 1 1 12rem;
  padding: 0.35rem 1.9rem 0.35rem 0.6rem;
  font-size: 0.8rem;
}

/* Staged alignment picker (rock-alignment.js): one slot per link, each a type
   select followed by the goal / Company Rock select, or person + rock. */
.rock-align-slots {
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.rock-align-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--atlas-border);
  border-radius: 0.5rem;
  background: #ffffff;
}

.rock-align-slot > .rock-align-select {
  flex: 0 0 auto;
  min-width: 11rem;
}

.rock-align-targets {
  display: flex;
  flex: 1 1 16rem;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
}

.rock-align-targets .rock-align-select {
  max-width: none;
}

.rock-align-remove {
  border: 1px solid #e2b8b8;
  background: #fff5f5;
  color: #b91c1c;
  border-radius: 0.45rem;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.rock-align-remove:hover {
  background: #fee2e2;
}

.rock-align-add {
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 0.5rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.rock-align-add:hover {
  background: #dbeafe;
}

.rock-align-add[hidden],
.rock-align-empty[hidden] {
  display: none;
}

.rock-align-empty {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* The read-only counterpart of the pickers: one chip per link a rock carries. */
.rock-align-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #3730a3;
}

.rock-row textarea {
  min-height: 2.75rem;
  resize: vertical;
}

.rock-input {
  display: block;
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid var(--atlas-border);
  background: #fff;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--atlas-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rock-input:focus {
  outline: none;
  border-color: var(--atlas-primary);
  box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.18);
}

.rock-row-remove {
  border: 1px solid #e2b8b8;
  background: #fff5f5;
  color: #b91c1c;
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.rock-row-remove:hover {
  background: #fee2e2;
}

.rock-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.rock-status-not_started {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.rock-status-in_progress {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.rock-status-done {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.rock-status-not_done {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* ── Detail modal (employee / practice / skill quick view) ─────────────────
   Same language as the page cards: a light body so the white sub-cards read
   as distinct panels, a slim header divider, no hard border on the shell. */
.atlas-modal-overlay {
  background: rgba(2, 8, 20, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.atlas-modal-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  background: var(--atlas-surface);
  border-radius: 1rem;
  box-shadow: 0 28px 64px -16px rgba(2, 8, 20, 0.5);
}

.atlas-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--atlas-border);
}

.atlas-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  padding: 0.3rem;
  color: #64748b;
  transition: background 0.15s ease, color 0.15s ease;
}

.atlas-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.atlas-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.15rem;
  background: var(--atlas-bg-soft);
}

/* ── Rock editor: "Tips for Creating Your Rock" ───────────────────────────
   A small blue (i) beside "+ Add rock" opens a native <dialog>. The panel
   reuses the detail modal's header and close button. The dialog needs an
   explicit margin: auto because Tailwind's preflight zeroes the UA margin
   that normally centres a modal dialog. */
.rock-tips-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  color: #0072bc;
  transition: background 0.15s ease, color 0.15s ease;
}

.rock-tips-trigger[hidden] {
  display: none;
}

.rock-tips-trigger svg {
  width: 1.4rem;
  height: 1.4rem;
}

.rock-tips-trigger:hover {
  background: #e0f0fa;
  color: var(--atlas-primary-dark);
}

.rock-tips-trigger:focus-visible {
  outline: 2px solid #0072bc;
  outline-offset: 2px;
}

.rock-tips-dialog {
  margin: auto;
  padding: 0;
  width: min(40rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  border: 0;
  border-radius: 1rem;
  background: transparent;
  box-shadow: 0 28px 64px -16px rgba(2, 8, 20, 0.5);
}

.rock-tips-dialog::backdrop {
  background: rgba(2, 8, 20, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.rock-tips-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  border-radius: 1rem;
  background: var(--atlas-surface);
}

.rock-tips-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--atlas-text);
}

.rock-tips-body {
  overflow-y: auto;
  padding: 1.15rem 1.4rem 1.4rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #334155;
}

.rock-tips-body section + section {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--atlas-border);
}

.rock-tips-body h3 {
  margin-bottom: 0.35rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: #0072bc;
}

.rock-tips-body p + p,
.rock-tips-body p + ul,
.rock-tips-body ul + p {
  margin-top: 0.5rem;
}

.rock-tips-body ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.rock-tips-body li + li {
  margin-top: 0.2rem;
}

.rock-tips-body strong {
  color: var(--atlas-text);
  font-weight: 600;
}

.rock-tips-note {
  border-radius: 0.6rem;
  background: #f0f7fc;
  padding: 0.55rem 0.75rem;
}
