/* Shared cards, accordions, lists, and table surfaces. */

.c-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
}

.c-card--shadow {
  box-shadow: var(--shadow-card);
}

.rounded.shadow-sm:not(.border-0) {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
}

.c-index {
  color: inherit;
  text-decoration: none;
}

.c-accordion {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  padding: 1rem;
  box-shadow: none;
}

.c-accordion summary {
  cursor: pointer;
}

ul.secondary-ul {
  list-style-type: none;
  padding-left: 15px;
}

ul.custom {
  list-style-type: none;
  padding-left: 0;
}

ul.secondary-color-list,
ul.navy-color-list {
  list-style-type: none;
  padding-left: 0;
}

ul.custom li::before,
ul.secondary-ul li::before,
ul.secondary-color-list li::before,
ul.navy-color-list li::before {
  content: '•';
  font-size: 20px;
  padding-right: 8px;
  vertical-align: middle;
}

ul.custom li::before,
ul.secondary-ul li::before,
ul.secondary-color-list li::before {
  color: var(--color-secondary);
}

ul.navy-color-list li::before {
  color: var(--color-secondary);
}

thead th,
thead th p {
  background-color: var(--color-secondary) !important;
  color: var(--color-text-inverse) !important;
}

.pwa-install-modal {
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(20, 31, 42, 0.22);
  overflow: hidden;
}

.pwa-install-modal__eyebrow {
  color: var(--color-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.pwa-install-modal__title {
  color: var(--color-text);
  font-weight: 700;
}

.pwa-install-modal__title span {
  display: block;
}

.pwa-install-modal__lead {
  max-width: 680px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.pwa-install-panel {
  animation: pwaPanelIn 0.18s ease-out;
}

.pwa-install-panel[hidden] {
  display: none;
}

.pwa-install-goal {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.pwa-install-goal__photo {
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.48)),
    linear-gradient(135deg, rgba(43, 155, 166, 0.16), rgba(20, 131, 200, 0.1)),
    var(--color-surface-soft);
}

.pwa-install-goal__copy {
  min-width: 0;
}

.pwa-install-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.pwa-install-back::before {
  content: "<";
  font-size: 0.95rem;
  line-height: 1;
}

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

.pwa-device-action {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  color: var(--color-text);
  text-align: left;
  box-shadow: 0 8px 18px rgba(20, 31, 42, 0.06);
}

.pwa-device-action strong {
  color: var(--color-text-strong);
  font-size: 1rem;
  line-height: 1.3;
}

.pwa-device-action span {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.pwa-install-guide-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(43, 155, 166, 0.16), rgba(20, 131, 200, 0.1)),
    var(--color-surface-soft);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  padding: 12px;
}

.pwa-install-guide-photo.is-empty::after {
  content: none;
}

.pwa-install-guide-photo:not(.is-empty) > * {
  display: none;
}

.pwa-install-guide-photo:not(.is-empty) {
  background-color: var(--color-surface-soft);
  background-repeat: no-repeat;
  background-size: contain;
}

.pwa-iphone-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pwa-iphone-visuals__caption {
  margin: 8px 0 0;
  color: var(--color-text-strong);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.pwa-install-guide-photo--iphone-browser,
.pwa-install-guide-photo--iphone-share {
  aspect-ratio: 4 / 5;
}

.pwa-iphone-carousel {
  position: relative;
  min-width: 0;
}

.pwa-iphone-carousel__track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pwa-iphone-carousel__track::-webkit-scrollbar {
  display: none;
}

.pwa-iphone-carousel__track .pwa-install-guide-photo {
  scroll-snap-align: center;
  min-width: 0;
  height: clamp(270px, 46dvh, 390px);
  aspect-ratio: auto;
}

.pwa-iphone-carousel__hint {
  display: none;
}

.pwa-iphone-carousel__control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(31, 41, 55, 0.78);
  color: var(--color-text-inverse);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(20, 31, 42, 0.18);
}

.pwa-iphone-carousel__control--prev {
  left: 10px;
}

.pwa-iphone-carousel__control--next {
  right: 10px;
}

.pwa-iphone-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
}

.pwa-iphone-carousel__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: var(--color-border-soft);
}

.pwa-iphone-carousel__dots span.is-active {
  width: 18px;
  background-color: var(--color-secondary);
}

.pwa-mock-safari,
.pwa-mock-ios-share {
  position: relative;
  height: 100%;
  border-radius: 18px;
  background-color: var(--color-surface);
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.08);
  overflow: hidden;
}

.pwa-mock-safari {
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr) 56px;
  background:
    linear-gradient(180deg, rgba(31, 41, 55, 0.86) 0 38px, transparent 38px),
    var(--color-surface);
}

.pwa-mock-safari__top {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  padding: 8px 14px;
  color: var(--color-text-inverse);
}

.pwa-mock-safari__time {
  font-size: 0.78rem;
  font-weight: 700;
}

.pwa-mock-safari__island {
  height: 16px;
  border-radius: 999px;
  background-color: #000;
}

.pwa-mock-safari__battery {
  justify-self: end;
  padding: 1px 6px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  font-size: 0.68rem;
  font-weight: 700;
}

.pwa-mock-safari__page {
  min-height: 0;
  background-color: #f7f7f5;
}

.pwa-mock-safari__header {
  height: 44px;
  display: grid;
  grid-template-columns: 32px 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.12);
  background-color: #fff;
}

.pwa-mock-safari__header span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background-color: #056843;
}

.pwa-mock-safari__header b {
  justify-self: end;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  background-color: rgba(31, 41, 55, 0.14);
}

.pwa-mock-safari__content {
  height: calc(100% - 44px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

.pwa-mock-safari__content strong {
  color: #173d33;
  font-size: 0.98rem;
  line-height: 1.25;
}

.pwa-mock-safari__content small {
  color: var(--color-muted);
}

.pwa-mock-safari__bottom {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  padding: 8px 10px;
  background-color: rgba(31, 41, 55, 0.86);
}

.pwa-mock-safari__bottom span,
.pwa-mock-safari__bottom button {
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 7px;
  background-color: transparent;
  position: relative;
}

.pwa-mock-safari__bottom span {
  border: 2px solid rgba(80, 147, 244, 0.9);
}

.pwa-mock-safari__bottom button {
  border: 2px solid #4f9bff;
  border-top: 0;
  box-shadow: 0 0 0 6px rgba(79, 155, 255, 0.18);
}

.pwa-mock-safari__bottom button::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 2px;
  height: 18px;
  background-color: #4f9bff;
  transform: translateX(-50%);
}

.pwa-mock-safari__bottom button::after {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #4f9bff;
  border-left: 2px solid #4f9bff;
  transform: translateX(-50%) rotate(45deg);
}

.pwa-mock-ios-share {
  padding: 14px;
  background-color: #242526;
  color: var(--color-text-inverse);
}

.pwa-mock-ios-share__app {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: -14px -14px 0;
  padding: 14px;
  background-color: rgba(31, 41, 55, 0.86);
}

.pwa-mock-ios-share__app span {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #f2f2ef;
}

.pwa-mock-ios-share__app strong,
.pwa-mock-ios-share__app small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pwa-mock-ios-share__app small {
  color: rgba(255, 255, 255, 0.58);
}

.pwa-mock-ios-share__icons {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 12px;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pwa-mock-ios-share__icons span {
  aspect-ratio: 1;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.88);
}

.pwa-mock-ios-share__rows {
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.pwa-mock-ios-share__rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.pwa-mock-ios-share__rows div:first-child {
  border-top: 0;
}

.pwa-mock-ios-share__rows span,
.pwa-mock-ios-share__rows b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: currentColor;
  font-size: 1rem;
  font-weight: 700;
}

.pwa-mock-ios-share__rows .is-highlighted {
  background-color: var(--color-accent-blue);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.26);
}

.pwa-mock-browser,
.pwa-mock-android {
  height: 100%;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.08);
  overflow: hidden;
}

.pwa-mock-browser {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.pwa-mock-browser--step-share {
  align-items: stretch;
}

.pwa-mock-browser__page {
  width: 100%;
  height: calc(100% - 48px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.78);
  color: var(--color-text-strong);
  text-align: center;
}

.pwa-mock-browser__page strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

.pwa-mock-browser__page span {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.pwa-mock-browser__bar {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background-color: rgba(31, 41, 55, 0.84);
  color: var(--color-text-inverse);
  font-size: 0.74rem;
}

.pwa-mock-browser--step-share .pwa-mock-browser__bar::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 34px;
  border: 2px solid var(--color-accent-blue);
  border-radius: 11px;
  box-shadow: 0 0 0 4px rgba(20, 131, 200, 0.18);
}

.pwa-mock-browser__bar b {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 4px;
  position: relative;
  flex: 0 0 auto;
}

.pwa-mock-browser__bar b::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 6px;
  width: 2px;
  height: 14px;
  background-color: currentColor;
}

.pwa-mock-browser__bar b::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.pwa-mock-share {
  width: 100%;
  margin-bottom: 38px;
  border-radius: 16px;
  background-color: rgba(42, 45, 49, 0.9);
  color: var(--color-text-inverse);
  overflow: hidden;
}

.pwa-mock-callout {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background-color: var(--color-accent-blue);
  color: var(--color-text-inverse);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(20, 31, 42, 0.18);
}

.pwa-mock-callout::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: inherit;
  transform: rotate(45deg);
}

.pwa-mock-callout--bottom {
  right: 10px;
  bottom: 52px;
}

.pwa-mock-callout--bottom::after {
  right: 18px;
  bottom: -4px;
}

.pwa-mock-callout--middle {
  right: 8px;
  top: 54%;
  transform: translateY(-50%);
}

.pwa-mock-callout--middle::after {
  right: 18px;
  bottom: -4px;
}

.pwa-mock-callout--share {
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
}

.pwa-mock-callout--share::after {
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%) rotate(45deg);
}

.pwa-mock-callout--home {
  right: 18px;
  bottom: 34px;
}

.pwa-mock-callout--home::after {
  right: 18px;
  top: -4px;
}

.pwa-mock-share__header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.pwa-mock-share__header strong,
.pwa-mock-share__header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pwa-mock-share__header small {
  color: rgba(255, 255, 255, 0.62);
}

.pwa-mock-share__thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--color-surface);
  background-image: url("/static/app/favicon_io/android-chrome-192x192.png");
  background-position: center;
  background-size: cover;
}

.pwa-mock-share__row,
.pwa-mock-android__menu div {
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.pwa-mock-share__row.is-highlighted,
.pwa-mock-android__menu .is-highlighted {
  color: var(--color-text-inverse);
  background-color: rgba(20, 131, 200, 0.9);
  font-weight: 700;
}

.pwa-mock-android {
  position: relative;
  padding: 12px;
}

.pwa-mock-android__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 999px;
  background-color: var(--color-surface);
  color: var(--color-text);
  font-size: 0.76rem;
  box-shadow: 0 8px 18px rgba(20, 31, 42, 0.12);
}

.pwa-mock-android__top b {
  color: var(--color-text-strong);
  font-size: 1.1rem;
  line-height: 1;
}

.pwa-mock-android__menu {
  width: min(220px, 78%);
  margin: 12px 0 0 auto;
  border-radius: 14px;
  background-color: rgba(42, 45, 49, 0.9);
  color: var(--color-text-inverse);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(20, 31, 42, 0.2);
}

.pwa-install-guide-title {
  margin: 14px 0 8px;
  color: var(--color-text-strong);
  font-size: 1rem;
  font-weight: 700;
}

.pwa-install-guide-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.pwa-install-guide-list li + li {
  margin-top: 6px;
}

.pwa-install-modal__close {
  min-width: 128px;
  padding: 9px 14px;
}

@keyframes pwaPanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  #pwaInstallModal.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  #pwaInstallModal .modal-dialog {
    width: min(860px, calc(100vw - 32px));
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
  }

}

@media (max-width: 767.98px) {
  #pwaInstallModal .modal-dialog {
    align-items: flex-end;
    min-height: 100%;
    margin: 0;
  }

  .pwa-install-modal {
    max-height: calc(100dvh - 16px);
    border-radius: 16px 16px 0 0;
  }

  #pwaInstallModal .modal-body {
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
    padding-top: 12px;
  }

  .pwa-install-modal__title {
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .pwa-install-guide-photo {
    aspect-ratio: 4 / 3;
  }

  .pwa-install-goal {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pwa-install-goal__photo {
    min-height: 190px;
  }

  .pwa-iphone-visuals {
    grid-template-columns: 1fr;
  }

  .pwa-device-actions {
    grid-template-columns: 1fr;
  }

  .pwa-iphone-carousel__track .pwa-install-guide-photo {
    height: clamp(300px, 52dvh, 440px);
  }

  .pwa-install-guide-photo--iphone-browser,
  .pwa-install-guide-photo--iphone-share {
    aspect-ratio: 4 / 5;
  }
}
