/* Aesthetic Dividers — page-specific only. */

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

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

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

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

.hero-copy h1 {
  margin: 18px 0 20px;
  max-width: 760px;
  font-size: clamp(3rem,7vw,5.4rem);
  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 {
  display: grid;
  gap: 8px;
  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;
}

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

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

.hero-preview>button {
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.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: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

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

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

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

.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;
}

.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>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.active {
  background: var(--surface-2);
  color: var(--primary);
  border-color: color-mix(in srgb,var(--primary) 35%,var(--line));
}

.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;
  scrollbar-width: thin;
}

.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.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;
}

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

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

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

.divider-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: .15s;
}

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

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

.divider-glyph {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}

.divider-label {
  color: var(--muted);
  font-size: 12px;
}

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

.divider-card:hover .copy-state {
  opacity: 1;
}

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

.divider-actions button {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}

.divider-actions .is-favorite {
  color: var(--accent);
}

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

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

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

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

.builder-panel {
  position: sticky;
  top: calc(var(--header-height) + 116px);
  padding: 18px;
  background: linear-gradient(160deg,var(--surface-2),var(--surface));
  border-radius: 0 0 26px 0;
}

.builder-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.builder-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.builder-panel h3 {
  margin: 5px 0;
  font-size: 20px;
}

.builder-panel>p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.builder-panel label,.quick-centers>span {
  display: flex;
  justify-content: space-between;
  margin: 13px 0 6px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.line-options {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 5px;
}

.line-options button,.quick-centers button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
}

.line-options button {
  height: 34px;
}

.line-options button.active {
  background: var(--text);
  color: var(--bg);
}

.builder-panel>input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.builder-panel>input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.quick-centers>div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quick-centers button {
  min-width: 34px;
  height: 32px;
}

.builder-preview {
  min-height: 88px;
  display: grid;
  place-items: center;
  margin-top: 14px;
  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: 17px;
}

.builder-copy {
  width: 100%;
  margin-top: 9px;
}

.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;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

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

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

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

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

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

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

.how-grid h2 {
  margin: 0;
  font-size: clamp(2rem,4vw,3rem);
}

.steps {
  padding: 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);
}

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

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

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

.related-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}

.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 strong,.related-tool-card small {
  display: block;
}

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

@media (max-width:900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .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);
  }
  .builder-panel {
    position: relative;
    top: auto;
  }
  .guide-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:700px) {
  .divider-shell,.reading-shell {
    width: min(100% - 20px,1050px);
  }
  .divider-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;
  }
  .divider-grid {
    grid-template-columns: 1fr;
  }
  .results-pane {
    padding: 12px;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:480px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}
