/* Teens and young adults (rebuild, 2026-09-29): the village hangout on the way to adulthood.
   Social groups are flyers pinned to a cork board, each with tear-off tabs along the bottom;
   providers sit behind an open door; activities are ticket stubs; the road to adulthood is a
   painted trail under the adult-life painting that fills in as you scroll down it. Everything is
   scoped to body.p-teens. */

.p-teens { --wood-a: #c99a45; --wood-b: #9d7128; }
.p-teens main :is(h1, h2, h3) { color: var(--navy); }
.p-teens main a:not(.btn) { text-decoration: none; }
.p-teens .container { max-width: 1200px; padding-inline: clamp(16px, 4vw, 40px); }
.p-teens main h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; margin: 0; }
.p-teens .listing-title { display: block; font: 600 21px/1.2 var(--f-display); color: var(--navy); margin: 0; }
.p-teens .listing-meta { display: block; margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--muted); }
.p-teens .listing-body { padding: 0; }
.p-teens .listing-body > p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.58; color: var(--text); }
.p-teens .card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.p-teens .card-actions .btn { white-space: normal; text-align: left; line-height: 1.25; min-height: 44px; }

/* ---------- the hangout board ---------- */
.p-teens .teen-hangout { padding: clamp(8px, 2vw, 20px) 0 clamp(56px, 7vw, 96px); }
.p-teens .teen-board {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(30px, 3.6vw, 48px) clamp(16px, 3vw, 40px) clamp(40px, 4.4vw, 58px);
  background-color: #ecd9ae;
  background-image: radial-gradient(rgba(122, 91, 19, .17) 1.2px, transparent 1.7px), radial-gradient(rgba(255, 255, 255, .4) 1px, transparent 1.5px);
  background-size: 14px 14px, 23px 23px;
  background-position: 0 0, 7px 9px;
  box-shadow: inset 0 0 0 12px var(--wood-a), inset 0 0 0 15px #a67a2c, inset 0 10px 26px 10px rgba(122, 91, 19, .24), var(--shadow);
}
.p-teens .teen-board-title {
  position: relative;
  display: table;
  margin: 0 auto clamp(30px, 3.4vw, 44px) !important;
  padding: 16px 30px 14px;
  background: var(--paper);
  border-radius: 4px;
  rotate: -1.4deg;
  text-align: center;
  box-shadow: 0 16px 22px -16px rgba(60, 40, 10, .6);
}
.p-teens .teen-board-title::before, .p-teens .teen-board-title::after { /* tape */
  content: "";
  position: absolute;
  top: -11px;
  width: 70px; height: 24px;
  background: rgba(228, 233, 242, .9);
  box-shadow: 0 1px 2px rgba(60, 40, 10, .15);
}
.p-teens .teen-board-title::before { left: -20px; rotate: -22deg; }
.p-teens .teen-board-title::after { right: -20px; rotate: 20deg; background: rgba(243, 229, 192, .9); }
.p-teens .teen-flyers { list-style: none; margin: 0; padding: 10px 4px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 36px); align-items: start; }
.p-teens .teen-flyers > li { margin: 0; }
.p-teens .teen-flyer {
  --tilt: -1.4deg; --pin: var(--brick); --paper-c: var(--paper);
  position: relative;
  padding: 30px 24px 0;
  background: var(--paper-c);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 18px 26px -18px rgba(60, 40, 10, .6);
  rotate: var(--tilt);
}
.p-teens .teen-flyers > li:nth-child(2) .teen-flyer { --tilt: 1.2deg; --pin: var(--blue-ink); --paper-c: #fbf0cf; }
.p-teens .teen-flyers > li:nth-child(3) .teen-flyer { --tilt: -.6deg; --pin: var(--sage-ink); --paper-c: #eef2e4; }
.p-teens .teen-pin { position: absolute; top: -11px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--pin) 32% 100%); box-shadow: 0 5px 6px -2px rgba(0, 0, 0, .35); }
.p-teens .teen-flyer .listing-facts { display: grid; gap: 8px; margin: 16px 0 0; padding: 14px 0 0; border-top: 2px dashed rgba(122, 91, 19, .25); }
.p-teens .teen-flyer .listing-facts div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
.p-teens .teen-flyer .listing-facts dt { font: 400 19px/1.3 var(--f-hand); color: var(--gold-dark); margin: 0; }
.p-teens .teen-flyer .listing-facts dd { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--text); }
/* tear-off tabs: the strip of phone-number slips every community flyer has */
.p-teens .teen-tabs {
  display: flex;
  margin: 22px -24px 0;
  height: 54px;
  border-top: 2px dashed rgba(29, 44, 76, .22);
}
.p-teens .teen-tabs i {
  flex: 1;
  background: var(--paper-c);
  border-right: 1.5px dashed rgba(29, 44, 76, .2);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 10px -8px rgba(60, 40, 10, .45);
  transform-origin: 50% 0;
}
.p-teens .teen-tabs i:last-child { border-right: 0; }
.p-teens .teen-tabs i:nth-child(2) { visibility: hidden; } /* one already taken */
.p-teens .teen-tabs i:nth-child(odd) { rotate: 1.5deg; }
.p-teens .teen-tabs i:nth-child(4) { rotate: -2.5deg; }
@media (prefers-reduced-motion: no-preference) {
  .p-teens .teen-flyer { transition: rotate .45s var(--spring), translate .45s var(--spring), box-shadow .45s var(--ease); }
  .p-teens .teen-flyer:is(:hover, :focus-within) { rotate: 0deg; translate: 0 -5px; box-shadow: 0 28px 38px -22px rgba(60, 40, 10, .65); }
  .p-teens .teen-flyer:is(:hover, :focus-within) .teen-pin { animation: teen-wiggle .6s var(--ease); }
  .p-teens .teen-flyer:is(:hover, :focus-within) .teen-tabs i { animation: teen-flutter 1.4s ease-in-out; }
  .p-teens .teen-tabs i:nth-child(3) { animation-delay: .08s !important; } .p-teens .teen-tabs i:nth-child(4) { animation-delay: .16s !important; }
  .p-teens .teen-tabs i:nth-child(5) { animation-delay: .24s !important; } .p-teens .teen-tabs i:nth-child(6) { animation-delay: .32s !important; }
}
@keyframes teen-wiggle { 30% { transform: rotate(-16deg); } 60% { transform: rotate(12deg); } }
@keyframes teen-flutter { 25% { transform: rotate(4deg); } 55% { transform: rotate(-3deg); } 80% { transform: rotate(1.5deg); } }

/* ---------- providers and activities ---------- */
.p-teens .teen-places { padding: 0 0 clamp(56px, 7vw, 96px); }
.p-teens .teen-places-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.p-teens .teen-place > h2 { margin-bottom: clamp(20px, 2.4vw, 28px); }
.p-teens .teen-place { scroll-margin-top: calc(var(--osv-header-h) + 16px); }
.p-teens .teen-card {
  position: relative;
  padding: 26px clamp(22px, 3vw, 32px) 30px;
  background: var(--blue-soft);
  border-radius: 50% 50% var(--r-lg) var(--r-lg) / 110px 110px var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow);
  text-align: center;
}
.p-teens .teen-card::before { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1.5px solid rgba(60, 83, 120, .3); pointer-events: none; }
.p-teens .teen-card .card-actions { justify-content: center; }
.p-teens .teen-plot { display: grid; place-items: center; width: 128px; height: 128px; margin: 12px auto 18px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, .5); }
.p-teens .teen-plot img { width: 92px; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .p-teens .teen-card { transition: translate .45s var(--spring), box-shadow .45s var(--ease); }
  .p-teens .teen-plot { transition: transform .45s var(--spring); }
  .p-teens .teen-card:is(:hover, :focus-within) { translate: 0 -6px; box-shadow: var(--shadow-lift); }
  .p-teens .teen-card:is(:hover, :focus-within) .teen-plot { transform: translateY(-6px) rotate(-5deg); }
}
/* ticket stubs */
.p-teens .teen-ticket {
  --stub: 58px;
  position: relative;
  padding: 24px 26px 26px calc(var(--stub) + 24px);
  margin: 0 0 22px;
  background:
    linear-gradient(90deg, var(--gold-soft) 0 var(--stub), transparent var(--stub)),
    var(--paper);
  border-radius: 14px;
  filter: drop-shadow(0 12px 16px rgba(29, 44, 76, .16));
  -webkit-mask: radial-gradient(circle 11px at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.p-teens .teen-ticket:nth-of-type(2) { background: linear-gradient(90deg, var(--sage-soft) 0 var(--stub), transparent var(--stub)), var(--paper); }
.p-teens .teen-ticket::before { /* perforation */
  content: "";
  position: absolute;
  left: var(--stub); top: 16px; bottom: 16px;
  border-left: 2px dashed rgba(29, 44, 76, .25);
}
.p-teens .teen-ticket::after { /* the stub's star */
  content: "\2605";
  position: absolute;
  left: 0; top: 50%;
  width: var(--stub);
  translate: 0 -50%;
  text-align: center;
  font-size: 24px;
  color: var(--gold-deep);
}
.p-teens .teen-ticket:nth-of-type(2)::after { color: var(--sage-ink); }
@media (prefers-reduced-motion: no-preference) {
  .p-teens .teen-ticket { transition: translate .4s var(--spring), rotate .4s var(--spring); }
  .p-teens .teen-ticket:is(:hover, :focus-within) { translate: 4px -3px; rotate: -.6deg; }
}

/* ---------- the road to adulthood ---------- */
.p-teens .teen-road { position: relative; padding: clamp(10px, 2vw, 24px) 0 clamp(30px, 4vw, 56px); text-align: center; scroll-margin-top: calc(var(--osv-header-h) + 16px); }
.p-teens .teen-road-art { position: relative; max-width: 1000px; margin: clamp(10px, 2vw, 20px) auto 0; }
.p-teens .teen-road-art::before { content: ""; position: absolute; inset: 8% 4% 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 246, 222, .9), rgba(255, 246, 222, 0)); z-index: -1; }
.p-teens .teen-road-art img {
  display: block; width: 100%; height: auto; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 60%, rgba(0, 0, 0, .7) 76%, rgba(0, 0, 0, .22) 90%, transparent 99%);
  mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 60%, rgba(0, 0, 0, .7) 76%, rgba(0, 0, 0, .22) 90%, transparent 99%);
}
.p-teens .teen-trail {
  position: relative;
  list-style: none;
  margin: clamp(-30px, -2vw, -10px) auto 0;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  text-align: left;
}
.p-teens .teen-trail::before { /* the painted path between the two stops */
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: 22px;
  height: 22px;
  border-radius: 22px;
  background: #f4e5bd;
  box-shadow: inset 0 0 0 5px #e5cf9a;
}
.p-teens .teen-trail::after { /* the path fills with gold as you walk it (scroll) */
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: 27px;
  height: 12px;
  margin-inline: 5px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--gold), #e8c171);
  transform-origin: left;
}
.p-teens .teen-trail > li { position: relative; z-index: 1; margin: 0; }
.p-teens .teen-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 70px 26px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  color: var(--navy);
}
.p-teens .teen-stone {
  position: absolute;
  top: 6px; left: 50%;
  width: 54px; height: 54px;
  margin: -34px 0 0 -27px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow), 0 0 0 5px var(--cream), 0 0 0 8px var(--gold);
}
.p-teens .teen-trail > li:nth-child(2) .teen-stone { box-shadow: var(--shadow), 0 0 0 5px var(--cream), 0 0 0 8px var(--sage); }
.p-teens .teen-stone::after { content: "\2192"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 22px var(--f-display); color: var(--navy); }
.p-teens .teen-step strong { font: 600 clamp(21px, 2vw, 25px)/1.2 var(--f-display); text-align: center; }
.p-teens .teen-step > span:last-child { font-size: 17px; line-height: 1.5; color: var(--text); text-align: center; }
.p-teens .teen-step:hover { color: var(--navy); }
@media (prefers-reduced-motion: no-preference) {
  .p-teens .teen-step { transition: translate .4s var(--spring), box-shadow .4s var(--ease); }
  .p-teens .teen-stone { transition: transform .4s var(--spring), background-color .25s; }
  .p-teens .teen-step:is(:hover, :focus-visible) { translate: 0 -6px; box-shadow: var(--shadow-lift); }
  .p-teens .teen-step:is(:hover, :focus-visible) .teen-stone { background: var(--gold-soft); transform: translateX(4px); }
  @supports (animation-timeline: view()) {
    .p-teens .teen-trail::after { animation: teen-walk linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
  }
}
@keyframes teen-walk { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- widths ---------- */
@media (max-width: 1000px) {
  .p-teens .teen-flyers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-teens .teen-places-grid { grid-template-columns: 1fr; }
  .p-teens .teen-card { max-width: 560px; margin-inline: auto; }
  .p-teens .teen-place > h2 { text-align: center; }
}
@media (max-width: 680px) {
  .p-teens .teen-flyers { grid-template-columns: 1fr; }
  .p-teens .teen-flyer { --tilt: -.8deg; }
  .p-teens .teen-flyers > li:nth-child(2) .teen-flyer { --tilt: .8deg; }
  .p-teens .teen-flyers > li:nth-child(3) .teen-flyer { --tilt: -.4deg; }
  .p-teens .teen-board { padding-inline: 18px; }
  .p-teens .teen-trail { grid-template-columns: 1fr; gap: 50px; margin-top: 0; }
  .p-teens .teen-trail::before { left: 50%; right: auto; top: 20px; bottom: 60px; width: 22px; height: auto; margin-left: -11px; }
  .p-teens .teen-trail::after { left: 50%; right: auto; top: 25px; bottom: 65px; width: 12px; height: auto; margin: 0 0 0 -6px; transform-origin: top; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) { .p-teens .teen-trail::after { animation-name: teen-walk-down; } }
  }
  .p-teens .teen-card { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 80px 80px var(--r-lg) var(--r-lg); }
}
@keyframes teen-walk-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 400px) {
  .p-teens .teen-flyer { padding-inline: 18px; }
  .p-teens .teen-tabs { margin-inline: -18px; }
  .p-teens .teen-flyer .listing-facts div { grid-template-columns: 1fr; gap: 0; }
  .p-teens .teen-ticket { --stub: 44px; padding-right: 18px; padding-left: calc(var(--stub) + 16px); }
  .p-teens .teen-board-title::before, .p-teens .teen-board-title::after { display: none; }
}
@media print { .p-teens .teen-tabs, .p-teens .teen-trail::before, .p-teens .teen-trail::after { display: none; } }
/* the tabs hang below the flyer's edge, so the one already taken leaves a real gap */
.p-teens .teen-flyers > li { padding-bottom: 54px; }
.p-teens .teen-flyer .teen-tabs { margin-bottom: -54px; border-top: 0; }
.p-teens .teen-flyer .teen-tabs i { border-top: 2px dashed rgba(29, 44, 76, .22); }
@media (max-width: 400px) { .p-teens .teen-flyer .teen-tabs { margin-inline: -18px; } }
