.tw-container {
  max-width: 740px;
  margin-left: auto;
  margin-right: var(--content-right-gap);
  margin-inline-start: auto;
  margin-inline-end: var(--content-right-gap);
  padding: 0 24px;
  transition:
    margin-left 180ms ease,
    margin-inline-start 180ms ease,
    max-width 180ms ease;
}

.tw-muted-italic-text,
.tw-feature-text .tw-muted-italic-text,
.tw-muted-italic-text p {
  font-size: 0.8em;
  font-style: italic;
  color: var(--color-text-secondary, #666666);
}

.tw-primer-intro {
  font-size: 0.9em;
}

.tw-section {
  padding: 28px 0;
}

.tw-section.tw-section--shaded {
  background: var(--gray-light);
}

.tw-section+.tw-section {
  padding-top: 16px;
}

.tw-section .tw-container>*:first-child {
  margin-top: 0;
}

.tw-section .tw-container>*:last-child {
  margin-bottom: 0;
}

.tw-section h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--berkeley-blue);
  line-height: 1.3;
}

.tw-section h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--berkeley-blue);
  line-height: 1.4;
}

.tw-section-intro {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .tw-container {
    padding: 0 16px;
  }

  .tw-section {
    padding: 20px 0;
  }

  .tw-section+.tw-section {
    padding-top: 12px;
  }

  .tw-section h2 {
    font-size: 1.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-container {
    transition: none;
  }
}

.tw-feature {
  margin-bottom: 32px;
}

.tw-feature-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.tw-feature-text p {
  font-size: 1rem;
  color: var(--berkeley-blue);
  margin-bottom: 12px;
  line-height: 1.7;
}

.tw-feature-text h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: var(--berkeley-blue);
}

.tw-feature-text h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--berkeley-blue);
}

.tw-feature-details {
  list-style: none;
  margin-top: 16px;
}

.tw-feature-details li {
  padding: 3px 0 3px 24px;
  position: relative;
  color: var(--berkeley-blue);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tw-feature-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--berkeley-blue-80);
  font-weight: bold;
}

.tw-url-toggle-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: 16px;
}

.tw-url-toggle-image {
  flex: 0 1 auto;
  width: clamp(115px, 23vw, 334px);
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 38, 118, 0.08);
  object-fit: contain;
}

.tw-url-toggle-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 38, 118, 0.08), rgba(0, 38, 118, 0.02));
  border: 1px solid rgba(0, 38, 118, 0.15);
  flex: 0 0 auto;
  min-width: auto;
  width: fit-content;
  text-align: center;
  color: var(--berkeley-blue);
  font-size: 0.95rem;
}

.tw-indicator-arrow {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}

.tw-indicator-text {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.tw-indicator-subtext {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

@media (max-width: 680px) {
  .tw-url-toggle-visual {
    flex-direction: column;
    gap: 20px;
  }

  .tw-url-toggle-indicator {
    min-width: auto;
    width: min(320px, 100%);
  }

  .tw-url-toggle-image {
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .tw-feature-content {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .tw-feature-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.tw-info-box {
  background: var(--gray-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
}

.tw-info-box h4 {
  color: var(--berkeley-blue);
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.tw-info-box p {
  color: var(--berkeley-blue);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.tw-usage-section {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  width: 100%;
}

.tw-usage-section h4 {
  color: var(--berkeley-blue);
  margin-bottom: 12px;
}

.tw-usage-section ol {
  margin-left: 24px;
}

.tw-usage-section li {
  margin: 8px 0;
  color: var(--berkeley-blue);
}

.tw-shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  table-layout: fixed;
}

.tw-shortcuts-table th,
.tw-shortcuts-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tw-shortcuts-table th {
  background: var(--gray-light);
  font-weight: 600;
  color: var(--berkeley-blue);
  border-top: 1px solid var(--border-color);
}

.tw-shortcuts-table td {
  color: var(--berkeley-blue);
}

.tw-shortcuts-table code {
  background: var(--gray-light);
  color: var(--berkeley-blue);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  white-space: normal;
}

.tw-app kbd {
  background-color: #f4f4f4;
  border: 1px solid #cccccc;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  color: inherit;
  display: inline-block;
  font-family: monospace;
  font-size: 0.85em;
  line-height: 1;
  padding: 2px 6px;
  white-space: nowrap;
}

.tw-contact-section {
  background: var(--gray-light);
  padding: 40px 0;
  margin-top: 32px;
}

.tw-contact-section h1 {
  color: var(--berkeley-blue);
  margin-top: 0;
  border: 0;
  padding: 0;
  text-align: center;
}

.tw-contact-section a {
  color: var(--berkeley-blue-80);
  text-decoration: none;
  font-weight: 500;
}

.tw-contact-section a:hover {
  text-decoration: underline;
  color: var(--berkeley-blue);
}

.tw-contact-section p {
  color: var(--berkeley-blue);
}

.tw-creator-section {
  margin-bottom: 32px;
  text-align: left;
}

.tw-creator-section h4 {
  margin-bottom: 4px;
  color: var(--berkeley-blue);
  text-align: left;
  font-style: italic;
}

.tw-creator-message {
  color: var(--berkeley-blue);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 4px;
  margin-bottom: 12px;
  font-style: italic;
}

.tw-creator-signature {
  font-style: italic;
  color: var(--berkeley-blue-80);
  font-size: 0.95rem;
  margin: 0;
  text-align: right;
}

.tw-creator-signature cite {
  font-style: inherit;
}

.tw-contact-section-main {
  text-align: center;
  margin-bottom: 24px;
}

.tw-contact-section-main h4 {
  margin-bottom: 0px;
  color: var(--berkeley-blue);
  font-style: italic;
}

.tw-contact-section-main p {
  text-align: center;
}

.tw-email-link {
  font-size: 0.9rem;
  margin: 8px 0;
  color: var(--berkeley-blue-80);
  text-decoration: none;
  font-style: italic;
}

.tw-email-link:hover,
.tw-email-link:focus {
  color: var(--berkeley-blue);
  text-decoration: underline;
}

.tw-last-updated {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.tw-last-updated a {
  color: inherit;
}

.tw-equation-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  flex-wrap: nowrap;
  margin: 24px 0;
  width: 100%;
}

.tw-equation-operator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: clamp(4px, 1vw, 8px);
  flex-shrink: 0;
}

.tw-operator-symbol {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--berkeley-blue);
  background: var(--gray-light);
  border: 2px solid var(--berkeley-blue-20);
  border-radius: 50%;
  width: clamp(32px, 6vw, 48px);
  height: clamp(32px, 6vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.tw-equation-operator.tw-equation-operator--equals .tw-operator-symbol,
.tw-equation-operator.tw-equation-operator--plus .tw-operator-symbol {
  background: linear-gradient(135deg, var(--gray-light) 0%, rgba(0, 38, 118, 0.08) 100%);
}

.tw-equation-operator:hover .tw-operator-symbol {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tw-inline-badge {
  display: inline-block;
  background: var(--berkeley-gold);
  color: var(--berkeley-blue-100);
  font: 600 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  vertical-align: middle;
  margin: 0 4px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .tw-shortcuts-table {
    font-size: 0.9rem;
    width: 100%;
  }

  .tw-shortcuts-table th,
  .tw-shortcuts-table td {
    padding: 12px;
    white-space: normal;
    word-break: break-word;
  }

  .tw-equation-layout {
    margin: 16px 0;
  }
}

.tw-tooltip-demo {
  margin: 20px 0;
  text-align: left;
}

.tw-tooltip-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  margin: 24px 0;
}

.tw-tooltip-entity {
  background: #004a9e;
  color: #ffffff;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 0.6875rem;
  line-height: 0.875rem;
  white-space: normal;
  width: 250px;
  box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
  position: relative;
  margin-top: 0;
}

.tw-tooltip-entity::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 15px;
  border: 6px solid transparent;
  border-right-color: #004a9e;
  z-index: 1;
}

.tw-tooltip-header {
  font-weight: 600;
  margin-bottom: 6px;
  text-align: left;
}

.tw-duplicate-list {
  text-align: left;
}

.tw-duplicate-item {
  margin: 2px 0;
  padding-left: 12px;
  position: relative;
}

.tw-duplicate-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ffffff;
}

.tw-duplicate-more {
  margin-top: 6px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .tw-tooltip-container {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .tw-tooltip-entity {
    width: clamp(220px, 65vw, 280px);
    max-width: none;
    flex: 0 0 auto;
  }
}

.tw-screenshot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  margin: 12px 0;
}

.tw-screenshot-link {
  display: block;
  cursor: zoom-in;
}

.tw-gather-screenshot {
  /* To adjust image size: change the scale value below
     - Current: 0.625 (62.5% of 849px = 531px displayed)
     - Examples: 0.5 (50%), 0.75 (75%), 1.0 (100% full size)
     - Natural image size is 849px wide */
  --gather-screenshot-scale: 0.625;
}

.tw-gather-screenshot .tw-screenshot {
  max-width: calc(849px * var(--gather-screenshot-scale));
  width: 100%;
  height: auto;
  margin: 12px auto;
}

@media (max-width: 768px) {
  .tw-gather-screenshot .tw-screenshot {
    /* Full width on mobile */
    max-width: 100%;
    margin: 16px 0;
  }
}

.tw-count-von-count {
  display: block;
  width: clamp(110px, 17.5vw, 160px);
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}

.tw-count-von-count.tw-count-von-count--inline {
  width: clamp(80px, 15vw, 120px);
  vertical-align: -0.1em;
  margin: 0 0.1em;
}

.tw-center-inline {
  display: flex;
  justify-content: center;
}

.tw-usage-section li:nth-child(1) .tw-screenshot,
.tw-usage-section li:nth-child(2) .tw-screenshot {
  max-width: clamp(240px, 45vw, 350px);
  width: 100%;
}

.tw-usage-section li:nth-child(3) .tw-screenshot {
  max-width: none;
  width: auto;
}

.tw-inline-icon {
  height: 1em;
  width: auto;
  vertical-align: -0.15em;
}

.tw-demo {
  text-align: left;
  --demo-width: 360px;
  --demo-max-width: 360px;
}

.tw-demo .tw-demo-window {
  width: var(--demo-width);
  max-width: var(--demo-max-width);
}

.tw-demo.tw-demo--compact {
  display: inline-block;
  width: auto;
  max-width: none;
  justify-self: start;
  align-self: start;
  vertical-align: top;
}

.tw-demo.tw-demo--compact .tw-demo-window {
  display: inline-block;
  width: auto;
  min-width: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.tw-toolbar.tw-toolbar-compact {
  display: inline-flex;
  justify-content: flex-start;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--berkeley-gold);
  flex-wrap: wrap;
  gap: var(--action-button-min-gap);
  padding: 4px 8px;
  background: var(--berkeley-blue-100);
}

.tw-feature-details+p {
  margin-top: 24px;
  margin-bottom: 24px;
}

.tw-section-intro+.tw-feature-details {
  margin-top: 8px;
}

.tw-demo+.tw-feature-text {
  margin-top: 20px;
}

.tw-domain-demo {
  display: inline-block;
  --demo-width: 360px;
  --demo-max-width: 360px;
}

@media (max-width: 420px) {
  .tw-domain-demo {
    --demo-width: 100%;
    --demo-max-width: 360px;
  }
}

.tw-favicon-grid-demo {
  display: inline-block;
  width: auto;
  max-width: none;
  --demo-width: auto;
  --demo-max-width: none;
}

.tw-favicon-grid-demo .tw-demo-window {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.tw-favicon-grid-demo .tw-domain-grid {
  width: auto;
  background: var(--berkeley-cream);
  border-radius: 8px;
  border: 1px solid var(--berkeley-gold);
  max-width: 360px;
}

@media (max-width: 1100px) {
  .tw-demo {
    --demo-max-width: 100%;
  }
}



.tw-overview {
  --overview-demo-scale: 1;
  display: grid;
  grid-template-columns: 1fr minmax(0, calc(360px * var(--overview-demo-scale)));
  gap: 32px;
  align-items: start;
  margin: 24px 0;
}

.tw-overview.tw-overview--no-demo {
  grid-template-columns: 1fr;
}

.tw-overview-content {
  flex: 1;
}

.tw-overview-demo-container {
  position: sticky;
  top: 20px;
}

.tw-overview-demo-container .tw-demo {
  width: 100%;
  max-width: 360px;
}

.tw-overview-demo-scale {
  display: inline-block;
  width: calc(360px * var(--overview-demo-scale));
  overflow: hidden;
}

.tw-overview-demo-scale .tw-demo {
  width: 360px;
  max-width: none;
  transform: scale(var(--overview-demo-scale));
  transform-origin: top left;
}

@media (max-width: 1100px) {
  .tw-overview {
    grid-template-columns: 1fr;
    gap: 24px;
    --overview-demo-scale: clamp(0.7, 100vw / 400, 1.0);
  }

  .tw-overview-demo-container {
    position: static;
    display: flex;
    justify-content: center;
  }

  .tw-overview-demo-container .tw-demo {
    max-width: 100%;
  }

  .tw-overview-demo-scale .tw-demo {
    max-width: none;
  }
}

.tw-overview-demo-container>.tw-demo {
  width: 100%;
  min-width: 0;
  max-width: 360px;
}

html {
  scroll-behavior: smooth;
}

.tw-section[id],
.tw-feature[id],
.tw-contact-section[id] {
  scroll-margin-top: 24px;
}

.tw-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tw-skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  z-index: 1000;
}

.tw-visually-hidden {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}