/* Today feature spotlight — Understand His Word + Find Biblical Guidance. */

#homeFeatureSpotlight.home-feature-spotlight {
  margin-top: var(--feed-soft-gap, 20px);
  margin-bottom: var(--feed-soft-gap, 20px);
  padding: 0 clamp(14px, 3.5vw, 22px);
  box-sizing: border-box;
}

#homeFeatureSpotlight[hidden] {
  display: none !important;
}

.tfs-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6e7e2 0%, #f1dcd6 100%);
  border: 1px solid rgba(177, 119, 107, 0.48);
  box-shadow:
    0 16px 36px rgba(82, 62, 54, 0.06),
    0 6px 14px rgba(108, 82, 72, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  text-align: left;
  box-sizing: border-box;
}

.tfs-branch {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.tfs-branch--tr {
  top: -28px;
  right: -48px;
  width: 104px;
  opacity: 0.78;
}

.tfs-branch--bl {
  right: -12px;
  bottom: 8px;
  left: auto;
  width: 74px;
  opacity: 0.72;
}

#tfsGuidanceNote {
  padding-right: 56px;
}

.tfs-block,
.tfs-form,
.tfs-rule {
  position: relative;
  z-index: 1;
}

.tfs-kicker {
  margin: 0 0 5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b0897e;
}

.tfs-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #3a302c;
}

.tfs-sub {
  margin: 6px 0 0;
  max-width: 34rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
  color: #5e534e;
}

.tfs-form {
  margin-top: 12px;
}

.tfs-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 7px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(212, 181, 173, 0.55);
  box-shadow: 0 1px 2px rgba(82, 62, 54, 0.04);
  text-align: left;
  box-sizing: border-box;
}

.tfs-field-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #c4a094;
}

.tfs-field-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.tfs-field-stack {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.tfs-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  color: #3a302c;
  outline: none;
  box-shadow: none;
}

.tfs-input::placeholder {
  color: #8d7f78;
  opacity: 1;
}

.tfs-example {
  display: block;
  margin-top: 2px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: #b3a49d;
  pointer-events: none;
}

.tfs-field.is-filled .tfs-example,
.tfs-input:focus ~ .tfs-example {
  display: none;
}

.tfs-error {
  margin: 8px 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.35;
  color: #8a4d45;
}

.tfs-error[hidden] {
  display: none !important;
}

.tfs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tfs-btn--primary {
  width: 100%;
  margin-top: 9px;
  padding: 11px 16px;
  border: 0;
  background: #c4a094;
  color: #fff;
  box-shadow: 0 6px 14px rgba(166, 122, 110, 0.16);
}

.tfs-btn--primary:hover {
  background: #b89284;
}

.tfs-btn--primary:active {
  background: #ad8778;
}

.tfs-btn--quiet {
  width: auto;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(196, 160, 148, 0.75);
  background: rgba(255, 252, 250, 0.55);
  color: #8d6e66;
  font-size: 13.5px;
}

.tfs-btn--quiet:hover {
  background: #fff;
}

.tfs-btn:focus-visible,
.tfs-input:focus-visible {
  outline: 2px solid #b0897e;
  outline-offset: 2px;
}

.tfs-note {
  margin: 7px 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #8a7d76;
}

.tfs-rule {
  height: 1px;
  margin: 14px 0;
  background: rgba(196, 160, 148, 0.35);
}

@media (max-width: 390px) {
  .tfs-card {
    padding: 16px 14px 13px;
    border-radius: 20px;
  }

  .tfs-title {
    font-size: 1.25rem;
  }

  .tfs-sub {
    font-size: 13px;
  }

  .tfs-branch--tr {
    width: 82px;
    top: -22px;
    right: -38px;
  }

  .tfs-branch--bl {
    width: 64px;
    right: -10px;
    bottom: 6px;
    left: auto;
  }

  #tfsGuidanceNote {
    padding-right: 48px;
  }
}

@media (min-width: 900px) {
  #homeFeatureSpotlight.home-feature-spotlight {
    padding-left: 0;
    padding-right: 0;
  }
}

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

/* Verse picker link. The same control is used on Verse Context and Understand His Word. */
.tfs-choose {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #8d6e66;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tfs-form > .tfs-choose {
  display: flex;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 0;
  text-align: left;
}

.tfs-choose[hidden] {
  display: none !important;
}

.tfs-choose:focus-visible {
  outline: 2px solid #b0897e;
  outline-offset: 3px;
  border-radius: 6px;
}

body.tfs-picker-open {
  overflow: hidden;
}

.tfs-picker {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow-x: hidden;
  box-sizing: border-box;
}

.tfs-picker[hidden] {
  display: none !important;
}

.tfs-picker-scrim {
  position: absolute;
  inset: 0;
  background: rgba(58, 48, 44, 0.4);
}

.tfs-picker-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  max-height: min(92dvh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 22px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #fbf7f4 0%, #f6eee8 100%);
  box-shadow: 0 -12px 40px rgba(82, 62, 54, 0.12);
  box-sizing: border-box;
}

.tfs-picker-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 250, 0.8);
  color: #8d7f78;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tfs-picker-close:focus-visible,
.tfs-wheel:focus-visible,
.tfs-select select:focus-visible {
  outline: 2px solid #b0897e;
  outline-offset: 2px;
}

.tfs-picker-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 0 36px;
  box-sizing: border-box;
}

.tfs-picker-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #c4a094;
}

.tfs-picker-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.tfs-picker-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #3a302c;
}

.tfs-picker-sub {
  margin: 8px auto 14px;
  max-width: 28rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
  color: #5e534e;
}

.tfs-wheels,
.tfs-selects {
  display: none;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tfs-selects {
  display: grid;
}

.tfs-wheel-col,
.tfs-select {
  min-width: 0;
  max-width: 100%;
}

.tfs-wheel-label {
  display: block;
  margin: 0 0 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #b0897e;
}

.tfs-wheel-frame {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 252, 250, 0.72);
  border: 1px solid rgba(212, 181, 173, 0.45);
  overflow: hidden;
}

.tfs-wheel-frame::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 36px;
  transform: translateY(-50%);
  border-radius: 12px;
  background: rgba(196, 160, 148, 0.28);
  pointer-events: none;
  z-index: 0;
}

.tfs-wheel {
  height: 180px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 72px;
  scroll-padding-bottom: 72px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
  outline: none;
  background: transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.tfs-wheel::-webkit-scrollbar {
  display: none;
}

.tfs-wheel-spacer {
  height: 72px;
}

.tfs-wheel-item {
  height: 36px;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  scroll-snap-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 36px;
  text-align: center;
  color: #b3a49d;
  cursor: pointer;
  box-sizing: border-box;
}

.tfs-wheel-item.is-selected {
  color: #3a302c;
  font-weight: 600;
}

.tfs-select select {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 32px 0 10px;
  border: 1px solid rgba(212, 181, 173, 0.7);
  border-radius: 14px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%23c4a094' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  box-shadow: 0 1px 2px rgba(82, 62, 54, 0.04);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: #3a302c;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.tfs-picker-ref {
  margin: 14px 0 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #3a302c;
}

.tfs-picker .tfs-btn--primary {
  margin-top: 12px;
}

.tfs-picker .tfs-note {
  text-align: center;
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .tfs-wheels {
    display: grid;
  }

  .tfs-selects {
    display: none;
  }
}

@media (min-width: 761px) {
  .tfs-picker {
    align-items: center;
    padding: 24px;
  }

  .tfs-picker-sheet {
    width: min(100%, 420px);
    border-radius: 22px;
    padding-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tfs-picker-sheet {
    scroll-behavior: auto;
  }
}
