.gtip-workspace .search-welcome h1 {
  font-size: clamp(2.7rem, 4.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.gtip-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 66px;
  height: 66px;
  margin: 0 auto 24px;
  color: var(--accent, #bd4829);
}
.gtip-symbol > svg {
  width: 52px;
  height: 52px;
  stroke-width: 1.25;
}
.gtip-symbol > span {
  position: absolute;
  right: -4px;
  top: 0;
  font-size: 18px;
  background: var(--paper, #f9f7f2);
}
.gtip-workspace .search-stage {
  max-width: 800px;
  width: calc(100% - 80px);
  min-width: 0;
}
.gtip-workspace .search-stage.has-results {
  padding-top: 42px;
}
.gtip-workspace .has-results .composer-area {
  margin-top: 28px;
}
.gtip-workspace .search-conversation {
  scroll-margin-top: 24px;
}
.gtip-workspace .response-body {
  min-width: 0;
}
.gtip-workspace .response-body > h2 {
  font-family: inherit;
  letter-spacing: -0.04em;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.35;
}
.gtip-workspace .workspace-nav a[aria-current] {
  color: #a83719;
  background: #f5e6dc;
  border-radius: 8px;
}
.gtip-chapters a {
  gap: 12px !important;
  align-items: flex-start !important;
}
.gtip-chapters a small {
  flex: 0 0 24px;
  color: #a13f27;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  padding-top: 2px;
}
.gtip-chapters a span {
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gtip-sidebar-note {
  font-size: 11px;
  line-height: 1.9;
  color: #716c61;
  margin: 10px 0 0;
}
.gtip-filters {
  display: flex;
  gap: 8px;
  margin: 22px 0 20px;
  flex-wrap: wrap;
}
.gtip-filters form {
  margin: 0;
}
.gtip-filters button {
  border: 1px solid #ddd4c7;
  background: transparent;
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  color: #5d594f;
  cursor: pointer;
}
.gtip-filters button[aria-pressed="true"] {
  background: #333d36;
  border-color: #333d36;
  color: white;
}
.gtip-card {
  padding: 23px 25px;
  border: 1px solid #e5dfd5;
  border-radius: 14px;
  background: #fffefa;
  margin: 0 0 12px;
  min-width: 0;
  transition: border-color 0.15s;
}
.gtip-card:hover {
  border-color: #c4a890;
}
.gtip-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}
.gtip-code {
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #a83b20;
  overflow-wrap: anywhere;
}
.gtip-level {
  font-size: 10px;
  border-radius: 5px;
  background: #f3ede4;
  color: #6d6154;
  padding: 4px 8px;
  flex-shrink: 0;
}
.gtip-card :is(h2, h3) {
  font-family: inherit;
  line-height: 1.65;
  font-size: 15px;
  margin: 0 0 10px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.gtip-card :is(h2, h3) a {
  color: inherit;
}
.gtip-context {
  font-size: 11px;
  line-height: 1.8;
  color: #746f63;
  margin: 0 0 13px;
  overflow-wrap: anywhere;
}
.gtip-context span {
  padding: 0 4px;
  color: #ad9e8b;
}
.gtip-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  color: #ac4025;
}
.gtip-explore svg {
  width: 16px;
  height: 16px;
}
.gtip-empty {
  padding: 30px 24px;
  border: 1px dashed #d5ccbf;
  border-radius: 12px;
}
.gtip-empty h2 {
  font-size: 16px;
}
.gtip-empty p {
  font-size: 13px;
  line-height: 1.8;
  color: #746f63;
}
.gtip-source {
  border-top: 1px solid #e8e1d7;
  padding-top: 16px;
  margin: 32px 0 0;
  color: #726d63;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.8;
}
.gtip-source p {
  margin: 0 0 5px;
}
.gtip-source a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #695347;
}
.gtip-workspace .gtip-source {
  text-align: center;
}
.gtip-workspace .pagination {
  margin: 24px 0;
  gap: 10px;
}
.gtip-workspace .pagination button {
  font: inherit;
  font-size: 12px;
  padding: 10px 14px;
  border: 1px solid #dcd3c6;
  border-radius: 8px;
  background: #fffefa;
  cursor: pointer;
}
.gtip-detail {
  width: min(920px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 72px;
}
.gtip-detail .breadcrumbs {
  margin: 0 0 32px;
  padding: 0;
  font-size: 12px;
}
.gtip-detail-hero {
  padding: 12px 0 35px;
  border-bottom: 1px solid #dfd6c9;
  margin-bottom: 32px;
}
.gtip-detail-code {
  font-variant-numeric: tabular-nums;
  color: #b04226;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 650;
  letter-spacing: 0.05em;
  margin: 12px 0;
}
.gtip-detail-hero h1 {
  font-family: inherit;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.65;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.gtip-tree h2,
.gtip-section-heading h2 {
  font-family: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.gtip-tree ol {
  list-style: none;
  padding: 0;
  margin: 24px 0 36px;
  position: relative;
}
.gtip-tree li {
  position: relative;
  padding: 0 0 22px 25px;
  border-left: 1px solid #dfd6c9;
  margin-left: 5px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.gtip-tree li:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: -4px;
  top: 7px;
  background: #c6b29f;
  border-radius: 50%;
}
.gtip-tree li:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.gtip-tree li:last-child:before {
  background: #bc4a28;
}
.gtip-tree li a {
  color: #625c51;
}
.gtip-tree li span {
  display: block;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.gtip-tree li[aria-current] span {
  color: #a83b20;
}
.gtip-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.gtip-section-heading span {
  font-size: 12px;
  color: #7b7266;
}
.gtip-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 0;
  font-size: 12px;
  color: #a83b20;
}
.gtip-leaf {
  background: #f0ece3;
  padding: 20px 24px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.9;
}
.reader-dialog-body > .gtip-detail {
  width: 100%;
  padding: 0;
}
.reader-dialog-body .gtip-detail-hero h1 {
  display: none;
}
.reader-dialog-body .gtip-detail-hero {
  padding: 0 0 15px;
}
.reader-dialog-body .gtip-detail .breadcrumbs {
  display: none;
}
@media (max-width: 760px) {
  .gtip-workspace .search-welcome h1 {
    font-size: clamp(2.35rem, 8.5vw, 3.6rem);
  }
  .gtip-workspace .search-stage.has-results {
    padding-top: 24px;
  }
  .gtip-workspace .search-response {
    gap: 10px;
  }
  .gtip-workspace .response-mark {
    display: none;
  }
  .gtip-workspace .search-response .response-body {
    width: 100%;
  }
  .gtip-card {
    padding: 19px 17px;
  }
  .gtip-card-top {
    gap: 8px;
  }
  .gtip-code {
    font-size: 16px;
  }
  .gtip-card :is(h2, h3) {
    font-size: 14px;
  }
  .gtip-detail {
    width: calc(100% - 36px);
    padding-top: 20px;
  }
  .gtip-workspace .gtip-source {
    margin-top: 22px;
  }
  .gtip-workspace .workspace-beta {
    display: none;
  }
  .gtip-workspace .workspace-header {
    gap: 12px;
  }
  .gtip-workspace .workspace-library {
    font-size: 11px;
  }
  .gtip-filters button {
    padding: 8px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gtip-card {
    transition: none;
  }
}

#gtip-status {
  font-size: 12px;
  line-height: 1.8;
  color: #726d63;
  margin: 8px 0 20px;
}
@media (max-width: 760px) {
  .gtip-workspace .search-stage {
    width: calc(100% - 36px);
  }
}

.gtip-chapters a {
  justify-content: flex-start !important;
}
.gtip-chapters a span {
  flex: 1;
  text-align: left;
}
#gtip-result-title:focus {
  outline: none;
}

.gtip-code-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.gtip-code-actions button {
  background: transparent;
  border: 1px solid #d9cbbb;
  border-radius: 8px;
  padding: 8px 12px;
  color: #88462e;
  font-size: 11px;
  cursor: pointer;
}
