/* Orange County Indexed: People directory (page-oci-people.php).
   The directory pattern the Local Author Directory established, kept generic
   under a pd- prefix so it can be shared. Every rule that sets layout is
   scoped to a breakpoint or inherits from the template's own mobile rules:
   an unscoped `body .x` override is what broke the search page on phones.
   Touch sizing is under (pointer: coarse) only, so desktop keeps its
   proportions. */

.pd-section { background: var(--ocpl-blue-pale); padding: 48px 0 56px; }
.pd-eyebrow { margin: 0 0 5px; color: var(--ocpl-blue); text-transform: uppercase; letter-spacing: .11em; font-size: var(--fs-xs); font-weight: 800; }
.pd-h { font-size: 1.5rem; color: var(--heading); margin: 0 0 8px; }
.pd-lead { font-size: var(--fs-md); color: var(--text-mid); margin: 0 0 10px; max-width: 70ch; }

.pd-about { max-width: 70ch; margin: 0 0 6px; }
.pd-about > summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 700; color: var(--ocpl-blue-dark); padding: 6px 0; }
.pd-about > summary:focus-visible { outline: 3px solid var(--ocpl-blue); outline-offset: 2px; }
.pd-about__in p { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-mid); margin: 6px 0; }

/* One white card: the controls ruled off on top, the answer in the same white beneath. */
.pd-shell { margin-top: 14px; background: var(--white); border: 1px solid var(--ocpl-blue-light); border-radius: var(--radius-lg, 12px); box-shadow: 0 16px 36px rgba(18,75,99,.08); }
.pd-toolbar { padding: 18px; border-bottom: 1px solid var(--ocpl-blue-light); border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0; }
.pd-body { padding: 16px 18px 18px; }

/* Scope: two real links that read as one control. */
.pd-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pd-scope a { display: block; padding: 10px 14px; border: 1px solid var(--ocpl-blue-light); border-radius: var(--radius-md); text-decoration: none; color: var(--text); background: var(--white); }
.pd-scope a b { display: block; font-size: var(--fs-md); color: var(--ocpl-blue-dark); }
.pd-scope a b span { font-weight: 400; color: var(--text-mid); margin-left: 4px; }
.pd-scope a small { display: block; font-size: var(--fs-xs); color: var(--text-mid); margin-top: 2px; }
.pd-scope a.is-on { border-color: var(--ocpl-blue); background: var(--ocpl-blue-pale); }
.pd-scope a:focus-visible { outline: 3px solid var(--ocpl-blue); outline-offset: 2px; }

.pd-search { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--ocpl-blue-light); border-radius: var(--radius-md); font-size: .95rem; background: var(--white); }
.pd-sels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.pd-sel { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-sel__l { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ocpl-blue-dark); }
.pd-sel select { width: 100%; padding: 9px 10px; border: 1px solid var(--ocpl-blue-light); border-radius: var(--radius-md); font-size: var(--fs-md); color: var(--text); background: var(--white); }

.pd-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pd-pills a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border: 1px solid var(--ocpl-blue-light); border-radius: var(--radius-pill, 999px); background: var(--white); font-size: var(--fs-sm); font-weight: 600; color: var(--ocpl-blue-dark); text-decoration: none; }
.pd-pills a span { font-weight: 400; color: var(--text-light); }
.pd-pills a.is-on { background: var(--ocpl-blue); border-color: var(--ocpl-blue); color: var(--white); }
.pd-pills a.is-on span { color: rgba(255,255,255,.78); }
.pd-pills a[hidden] { display: none; }
.pd-pills a:focus-visible { outline: 3px solid var(--ocpl-blue); outline-offset: 2px; }
.pd-noscript { margin: 12px 0 0; }

/* Letters: ruled off above, one row that scrolls on a phone. */
.pd-alpha { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 13px; padding-top: 9px; border-top: 1px solid var(--ocpl-blue-light); }
.pd-alpha a { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: 0 6px; border-radius: 50%; font-size: var(--fs-md); font-weight: 700; color: var(--ocpl-blue-dark); text-decoration: none; }
.pd-alpha a:hover { background: var(--ocpl-blue-pale); }
.pd-alpha a.is-on { background: var(--ocpl-blue); color: var(--white); }
.pd-alpha a:focus-visible { outline: 3px solid var(--ocpl-blue); outline-offset: 2px; }
.pd-alpha[hidden] { display: none; }

.pd-count { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--text-mid); }
.pd-count[hidden] { display: none; }
.pd-clearline { margin: 0 0 10px; font-size: var(--fs-sm); }
.pd-clearline[hidden] { display: none; }
.pd-clear { font-weight: 700; color: var(--ocpl-blue-dark); }

/* The way in. */
.pd-start { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px 14px 30px; }
.pd-start[hidden] { display: none; }
.pd-start__icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--ocpl-blue-pale); color: var(--ocpl-blue); }
.pd-start__h { margin: 11px 0 5px; font-size: 1.35rem; color: var(--heading); }
.pd-start__s { margin: 0 0 18px; font-size: var(--fs-md); color: var(--text-mid); }
.pd-start__label { width: min(460px, 100%); padding-top: 14px; border-top: 1px solid var(--ocpl-blue-light); font-family: var(--font-heading); font-size: var(--fs-sm); font-weight: 700; color: var(--ocpl-blue-dark); }
.pd-start__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.pd-start__chip { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 7px 14px; border: 1px solid var(--ocpl-blue-light); border-radius: var(--radius-pill, 999px); background: var(--white); font-size: var(--fs-sm); font-weight: 700; color: var(--ocpl-blue-dark); text-decoration: none; }
.pd-start__chip span { font-weight: 400; color: var(--text-mid); }
.pd-start__chip:hover { border-color: var(--ocpl-blue); background: var(--ocpl-blue-pale); }
.pd-start__chip:focus-visible { outline: 3px solid var(--ocpl-blue); outline-offset: 2px; }

/* The roster, one click away rather than 444 names on arrival. */
.pd-browse { margin-top: 8px; }
.pd-browse[hidden] { display: none; }
.pd-browse > summary { cursor: pointer; padding: 11px 0; font-size: var(--fs-md); font-weight: 700; color: var(--ocpl-blue-dark); }
.pd-browse > summary:focus-visible { outline: 3px solid var(--ocpl-blue); outline-offset: 2px; }
.pd-browse[open] > summary { border-bottom: 1px solid var(--ocpl-blue-light); margin-bottom: 4px; }
.pd-letters { list-style: none; margin: 0; padding: 0; }
.pd-lb { padding: 14px 0 10px; border-top: 1px solid var(--border); }
.pd-lb:first-child { border-top: 0; }
.pd-lb__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.pd-lb__letter { font-family: var(--font-display, inherit); font-size: var(--fs-2xl); font-weight: 800; color: var(--ocpl-blue-dark); line-height: 1; }
.pd-lb__open { font-size: var(--fs-sm); font-weight: 700; color: var(--ocpl-blue-dark); padding: 2px 10px; border-radius: var(--radius-pill, 999px); background: var(--ocpl-blue-pale); text-decoration: none; }
.pd-lb__open:hover { background: var(--ocpl-blue-light); }
.pd-lb__names { margin: 0; font-size: var(--fs-sm); line-height: 1.7; color: var(--text-mid); }
.pd-lb__names a { color: var(--text); font-weight: 500; text-decoration: none; }
.pd-lb__names a:hover { color: var(--ocpl-blue-dark); text-decoration: underline; }
.pd-lb__hint { color: var(--text-light); font-size: var(--fs-xs); }

.pd-none { margin: 10px 0; font-size: var(--fs-md); color: var(--text-mid); }
.pd-none[hidden] { display: none; }

/* Cards: two columns of people, one on a phone. */
.pd-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.pd-cards[hidden] { display: none; }
.pd-card { padding: 14px 0; border-bottom: 1px solid var(--ocpl-blue-light); min-width: 0; scroll-margin-top: 120px; }
.pd-card.pd-hide { display: none; }
.pd-card__name { margin: 0 0 2px; font-size: 1.05rem; line-height: 1.3; }
.pd-card__name a { color: var(--heading); text-decoration: none; }
.pd-card__name a:hover { color: var(--ocpl-blue); text-decoration: underline; }
.pd-card__role { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--ocpl-blue-dark); }
.pd-card__period { font-weight: 400; color: var(--text-mid); }
.pd-card__period::before { content: '· '; }
.pd-card__bio { margin: 0 0 6px; font-size: var(--fs-sm); line-height: 1.55; color: var(--text); }
.pd-card__src { font-size: var(--fs-xs); color: var(--text-mid); white-space: nowrap; }
.pd-card__links { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--text-mid); }
.pd-card__links b { color: var(--text); margin-right: 4px; }
.pd-card__links a { color: var(--ocpl-blue-dark); }
.pd-card__foot { margin: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--ocpl-blue-dark); }
.pd-card__more { margin-top: 6px; }
.pd-card__more > summary { cursor: pointer; font-size: var(--fs-xs); font-weight: 700; color: var(--text-mid); padding: 4px 0; }
.pd-card__more > summary:hover { color: var(--ocpl-blue-dark); }
.pd-card__more > summary:focus-visible { outline: 3px solid var(--ocpl-blue); outline-offset: 2px; }
.pd-card__more-in p { margin: 4px 0; font-size: var(--fs-sm); color: var(--text-mid); }
.pd-card__more-in b { color: var(--text); margin-right: 4px; }
.pd-card__go { font-weight: 700; }

.pd-grow { margin: 18px 0 0; font-size: var(--fs-sm); color: var(--text-mid); }
.pd-grow a { font-weight: 700; }

@media (max-width: 900px) {
  .pd-sels { grid-template-columns: 1fr 1fr; }
  .pd-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pd-scope { grid-template-columns: 1fr; }
  .pd-sels { grid-template-columns: 1fr; }
  .pd-shell { border-radius: var(--radius-md); }
  .pd-toolbar { padding: 14px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .pd-body { padding: 12px 14px 14px; }
  /* one swipeable row rather than a wrapped block of 27 letters */
  .pd-alpha { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
}
/* Thumb-sized controls on touch screens only. */
@media (pointer: coarse) {
  .pd-search, .pd-sel select { min-height: 44px; }
  .pd-pills a { min-height: 44px; }
  .pd-alpha a { min-width: 44px; min-height: 44px; }
  .pd-scope a { min-height: 44px; }
  .pd-card__more > summary { min-height: 44px; display: flex; align-items: center; }
}
