/* Aesthetic Symbols v4 — page-specific only.
   Shared site header/footer/theme/buttons/FAQ/back-to-top come from global.css. */

.symbols-shell {
  width: min(1050px, calc(100% - 32px));
  margin-inline: auto;
}

.reading-shell {
  width: min(900px, calc(100% - 32px));
  margin-inline: auto;
}

.symbols-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 70px;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 52px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 20px;
  max-width: 720px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.hero-copy .hero-lead {
  max-width: 650px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.hero-proof strong {
  color: var(--text);
  font-size: 12px;
}

.hero-preview {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
}

.preview-top span {
  font-size: 12px;
  font-weight: 850;
}

.preview-top small {
  color: var(--muted);
  font-size: 12px;
}

.preview-symbols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.preview-symbols button {
  min-height: 65px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 26px;
}

.preview-symbols button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
}

.preview-combo {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe8f3, #eee7ff);
  color: #5d3450;
  cursor: pointer;
  text-align: center;
}

.preview-combo strong,
.preview-combo span {
  display: block;
}

.preview-combo strong {
  font-size: 17px;
}

.preview-combo span {
  margin-top: 2px;
  font-size: 12px;
}

.symbol-studio-section {
  padding: 22px 0 84px;
}

.studio-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 16px;
}

.studio-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.studio-heading > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.symbol-studio {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.studio-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 13px 9px;
  background: var(--surface);
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 68px 11px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.search-field input:focus {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}

.search-field > button {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 6px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.view-buttons {
  display: flex;
  gap: 7px;
}

.view-buttons button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 11px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.view-buttons button:hover,
.view-buttons button.active {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
  background: var(--surface-2);
  color: var(--primary);
}

.view-buttons b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--surface-3);
  font-size: 12px;
}

.category-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 7px 13px 13px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.category-pill {
  flex: 0 0 auto;
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.category-pill:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 32%, var(--line));
}

.category-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.studio-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

.results-pane {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 12px;
}

.results-head span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.results-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -.02em;
}

.results-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.results-head p strong {
  color: var(--text);
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.symbol-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.symbol-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 32%, var(--line));
  box-shadow: var(--shadow-sm);
}

.symbol-copy {
  width: 100%;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 27px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.symbol-glyph {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 25px;
  line-height: 1.2;
}

.symbol-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.copy-state {
  position: absolute;
  left: 8px;
  bottom: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
}

.symbol-card:hover .copy-state,
.symbol-copy:focus-visible .copy-state {
  opacity: 1;
}

.symbol-card-actions {
  position: absolute;
  right: 7px;
  bottom: 6px;
  display: flex;
  gap: 4px;
}

.symbol-action {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.symbol-action:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
}

.favorite-action.is-favorite {
  color: var(--accent);
  background: var(--surface-2);
}

.empty-results {
  padding: 70px 20px;
  text-align: center;
}

.empty-results > span {
  display: block;
  color: var(--primary);
  font-size: 30px;
}

.empty-results h3 {
  margin: 8px 0 0;
}

.empty-results p {
  max-width: 390px;
  margin: 6px auto 16px;
  color: var(--muted);
  font-size: 12px;
}

.empty-results .button {
  width: auto;
}

.combo-panel {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  padding: 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.combo-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.combo-panel-head > span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.combo-panel-head button,
.selected-head button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.combo-panel h3 {
  margin: 4px 0 5px;
  font-size: 20px;
  letter-spacing: -.025em;
}

.combo-panel > p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.combo-panel label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.combo-panel > input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.combo-panel > input:focus {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
}

.layout-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.layout-switcher button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  padding: 7px 5px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.layout-switcher button.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.quick-add {
  margin-top: 14px;
}

.quick-add > span,
.selected-head > span {
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.quick-add > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.quick-add button {
  min-width: 34px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
}

.selected-parts {
  margin-top: 13px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.selected-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.parts-list {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 7px;
}

.parts-list button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  padding: 5px 7px;
  cursor: pointer;
  font: inherit;
}

.parts-list button span {
  color: var(--muted);
  font-size: 12px;
}

.parts-empty {
  color: var(--muted);
  font-size: 12px;
}

.combo-result {
  min-height: 74px;
  display: grid;
  place-items: center;
  margin-top: 11px;
  padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--primary) 38%, var(--line));
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 19px;
  line-height: 1.35;
}

.combo-copy {
  width: 100%;
  margin-top: 9px;
  min-height: 42px;
}

.category-guide-section {
  padding: 76px 0;
  background: var(--surface-3);
  border-block: 1px solid var(--line);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
  box-shadow: var(--shadow-sm);
}

.guide-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 17px;
}

.guide-card strong,
.guide-card small,
.guide-card em {
  display: block;
}

.guide-card strong {
  font-size: 12px;
}

.guide-card small {
  margin-top: 2px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.guide-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.guide-card b {
  color: var(--muted);
  font-size: 12px;
}

.how-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}

.how-grid h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.steps {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.steps li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.steps strong {
  font-size: 12px;
}

.steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.compat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.compat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 900;
}

.compat-card h3 {
  margin: 16px 0 6px;
  font-size: 17px;
}

.compat-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.use-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.use-cards article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.use-cards article > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.use-cards h3 {
  margin: 15px 0 5px;
  font-size: 15px;
}

.use-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.related-section {
  background: var(--surface-3);
  border-block: 1px solid var(--line);
}

.related-tool-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.related-tool-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  box-shadow: var(--shadow-sm);
}

.related-tool-card strong,
.related-tool-card small {
  display: block;
}

.related-tool-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width:900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .eyebrow,
    .hero-copy .hero-lead {
    margin-inline: auto;
  }
  .hero-actions,
    .hero-proof {
    justify-content: center;
  }
  .hero-preview {
    max-width: 580px;
    width: 100%;
    margin-inline: auto;
    transform: none;
  }
  .studio-body {
    grid-template-columns: 1fr;
  }
  .results-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .combo-panel {
    position: relative;
    top: auto;
  }
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .use-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:700px) {
  .symbols-shell,
    .reading-shell {
    width: min(100% - 20px, 1050px);
  }
  .symbols-hero {
    padding: 42px 0 50px;
  }
  .hero-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }
  .studio-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .studio-heading > p {
    text-align: left;
  }
  .studio-controls {
    grid-template-columns: 1fr;
  }
  .view-buttons {
    overflow-x: auto;
  }
  .view-buttons button {
    flex: 0 0 auto;
  }
  .symbol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .results-pane {
    padding: 12px;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:480px) {
  .preview-symbols {
    grid-template-columns: repeat(3, 1fr);
  }
  .symbol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .symbol-copy {
    min-height: 98px;
  }
  .symbol-glyph {
    font-size: 23px;
  }
  .guide-grid,
    .use-cards {
    grid-template-columns: 1fr;
  }
}

/* v5 — sticky search controls + category pills */

.studio-sticky {
  position: sticky;
  top: var(--header-height);
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.studio-sticky .studio-controls {
  background: transparent;
}

.studio-sticky .category-pills {
  background: transparent;
  border-bottom: 0;
}

/* Keep sticky controls below the shared site header on smaller screens too. */

@media (max-width:700px) {
  .studio-sticky {
    top: var(--header-height);
  }
}
