/* Dogly "see the emails" phone slider (home page #emails and /emails). Pure CSS swipe via scroll-snap;
   email-slider.js only adds arrows, the counter and the group chips. */
.ep-slider { position: relative; }
.ep-chips { display: flex; gap: .4rem; flex-wrap: nowrap; justify-content: center; margin: 0 0 1.25rem; }
.ep-chip-btn { font: 600 .8rem -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; padding: .45rem .8rem; white-space: nowrap; border-radius: 999px; border: 1px solid #ddd2c0; background: #fff; color: #22201c; cursor: pointer; }
.ep-chip-btn.on { background: #2f4a3c; border-color: #2f4a3c; color: #fff; }
.ep-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: .5rem 0 1rem; scrollbar-width: none; }
.ep-track::-webkit-scrollbar { display: none; }
.ep-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; text-align: center; }
.ep-title { font: 700 1rem/1.25 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 0 0 .25rem; color: #22201c; min-height: 2.5em; display: flex; align-items: center; justify-content: center; }
.ep-tag { display: inline-block; font: 700 .7rem -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: #f0e9de; color: #9c3d13; margin-bottom: .4rem; }
.ep-when { font: .8rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #57534a; margin: 0 auto .75rem; max-width: 200px; min-height: 4.3em; }
.ep-hint { font: .72rem -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #9c3d13; margin: .6rem 0 0; }

/* the phone */
.ep-fit { width: 176px; height: 331px; margin: 0 auto; cursor: zoom-in; position: relative; }
.ep-fit .ep-phone { transform: scale(.55); transform-origin: top left; position: absolute; top: 0; left: 0; }
.ep-fit .ep-body { overflow: hidden; }
.ep-phone { position: relative; width: 320px; margin: 0 auto; padding: 11px; background: #1c1a17; border-radius: 46px; box-shadow: 0 18px 40px rgba(34,32,28,.28), inset 0 0 0 2px #3a362f; }
.ep-phone::before, .ep-phone::after { content: ""; position: absolute; width: 3px; background: #3a362f; border-radius: 2px; }
.ep-phone::before { left: -3px; top: 110px; height: 52px; }
.ep-phone::after { right: -3px; top: 150px; height: 78px; }
.ep-screen { position: relative; height: 580px; background: #fff; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; text-align: left; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.ep-island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 16px; z-index: 3; }
.ep-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font-size: 14px; font-weight: 600; color: #111; flex: none; }
.ep-status .ep-ind { letter-spacing: 2px; font-size: 11px; }
.ep-app { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 8px; font-size: 15px; color: #c05621; flex: none; }
.ep-head { display: flex; gap: 10px; align-items: center; padding: 6px 16px 8px; flex: none; }
.ep-avatar { width: 38px; height: 38px; border-radius: 50%; background: #c05621; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex: none; }
.ep-avatar.dogly { background: #2f4a3c; }
.ep-who { min-width: 0; line-height: 1.25; }
.ep-who strong { display: block; font-size: 14px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-who small { font-size: 12px; color: #6b7280; }
.ep-time { margin-left: auto; font-size: 12px; color: #6b7280; flex: none; }
.ep-subject { padding: 2px 16px 10px; font-size: 16px; font-weight: 700; color: #111; line-height: 1.3; border-bottom: 1px solid #e5e7eb; flex: none; }
.ep-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #f3f4f6; -webkit-overflow-scrolling: touch; }
.ep-body img { display: block; width: 100%; height: auto; }
.ep-home-bar { height: 5px; width: 110px; background: #111; border-radius: 3px; margin: 7px auto 8px; flex: none; opacity: .85; }

.ep-stage { position: relative; max-width: 460px; margin: 0 auto; }
.ep-nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #c05621; color: #fff; font-size: 28px; line-height: 44px; padding: 0 0 4px; cursor: pointer; box-shadow: 0 6px 16px rgba(34,32,28,.3); z-index: 2; }
.ep-nav:disabled { visibility: hidden; }
.ep-next:not(:disabled)::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #c05621; animation: ep-pulse 1.6s ease-out infinite; pointer-events: none; }
@keyframes ep-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ep-next::after { animation: none !important; } }
.ep-swipe { text-align: center; font: 600 .9rem -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #9c3d13; margin: .25rem 0 1rem; }
.ep-prev { left: .25rem; } .ep-next { right: .25rem; }
.ep-count { text-align: center; font: .85rem -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #57534a; margin-top: -.5rem; }

/* enlarged view */
.ep-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(20,18,15,.94); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ep-overlay .ep-big { position: relative; }
.ep-overlay .ep-phone { transform-origin: top left; margin: 0; }
.ep-overlay .ep-body { overflow-y: auto; }
.ep-close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #22201c; font-size: 26px; line-height: 1; cursor: pointer; z-index: 1001; }
body.ep-lock { overflow: hidden; }
.ep-big-nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #c05621; color: #fff; font-size: 30px; line-height: 46px; padding: 0 0 4px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.4); z-index: 2; }
.ep-big-nav:disabled { opacity: .25; cursor: default; }
.ep-big-prev { left: max(.5rem, calc(50% - 280px)); } .ep-big-next { right: max(.5rem, calc(50% - 280px)); }
.ep-big-count { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; color: #fff; font: 600 .85rem -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.8); pointer-events: none; }

/* Home page intro text (shown above the chips) and the desktop two-column layout: text on the left, phone on the right. */
.ep-kicker { font: 700 .8rem -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #9c3d13; text-align: center; margin: 0 0 .6rem; }
.ep-h2 { font: 700 1.9rem/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.01em; text-align: center; margin: 0 0 .6rem; color: #22201c; }
.ep-sub { font: 1.05rem/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #57534a; text-align: center; max-width: 60ch; margin: 0 auto 1.5rem; }
.ep-info { display: none; }
@media (min-width: 900px) {
  .ep-two { display: grid; grid-template-columns: 1fr 400px; gap: 3rem; align-items: center; }
  .ep-two .ep-kicker, .ep-two .ep-h2, .ep-two .ep-sub { text-align: left; margin-left: 0; }
  .ep-two .ep-sub { margin-bottom: 1.25rem; }
  .ep-two .ep-chips { justify-content: flex-start; margin-bottom: .75rem; }
  .ep-two .ep-swipe { text-align: left; margin: .25rem 0 0; }
  .ep-two.ep-js .ep-slide .ep-title, .ep-two.ep-js .ep-slide .ep-tag, .ep-two.ep-js .ep-slide .ep-when { display: none; }
  .ep-two.ep-js .ep-info { display: block; margin-top: 1.1rem; padding: 1rem 1.25rem 1.1rem; background: #fff; border: 1px solid #ddd2c0; border-left: 5px solid #c05621; border-radius: 10px; min-height: 8.5rem; }
  .ep-info .ep-title { display: block; font-size: 1.2rem; min-height: 0; text-align: left; margin: 0 0 .5rem; }
  .ep-info .ep-when { max-width: none; font-size: .95rem; min-height: 0; margin: .5rem 0 0; }
  .ep-two .ep-count { margin-top: 0; }
}
@media (max-width: 600px) { .ep-h2 { font-size: 1.45rem; } .ep-sub { font-size: .95rem; } }
.ep-link { display: none; }
@media (min-width: 900px) {
  .ep-two { position: relative; }
  .ep-two.ep-js .ep-link { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
  .ep-two.ep-js .ep-fit .ep-phone { outline: 4px solid rgba(192,86,33,.4); outline-offset: 8px; border-radius: 46px; }
}
