/* A20.56 — whole-card affordance and compact mobile reading layout. */
.event-card[data-clickable="true"] { cursor:pointer; }
.event-card[data-clickable="true"]:focus-visible {
  outline:3px solid #a45b78; outline-offset:4px;
}
.event-card[data-clickable="true"] .event-body h3 { text-decoration-thickness:1px; text-underline-offset:3px; }
.event-card[data-clickable="true"]:hover .event-body h3 { text-decoration:underline; }
.namedays-section { margin-top:9px; }
.namedays-section.legacy .namedays-intro { border-left:3px solid #b58e60; padding:9px 11px; background:#f7ecd9; border-radius:0 9px 9px 0; }
html[data-theme="dark"] .namedays-section.legacy .namedays-intro { background:#344c3e; color:#ead9c5; }
@media(max-width:760px) {
  /* Preserve the illustrated identity while letting the content appear above the fold. */
  .preview-strip { min-height:23px!important; padding:3px 12px!important; font-size:11px!important; line-height:1.25!important; letter-spacing:.02em!important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .preview-strip:before,.preview-strip:after { display:none!important; }
  .header-inner { min-height:62px!important; }
  .brand-type strong { font-size:18px!important; }
  .brand-type small { font-size:8px!important; }
  .header-social-row .social-ribbon-inner { min-height:35px!important; padding:3px 10px!important; justify-content:center; }
  .header-social-row .reserve-social { gap:10px!important; justify-content:center; }
  .header-social-row .social-link { width:33px!important; height:33px!important; min-height:33px!important; padding:3px!important; }
  .header-social-row .social-mark { width:24px!important; height:24px!important; }
  #today .storybook-hero { margin-top:10px!important; }
  .storybook-mobile-portrait { height:115px!important; min-height:115px!important; background-position:center 35%!important; }
  #today .storybook-hero .hero-copy { padding:17px 16px 20px!important; }
  #today .storybook-hero h1 { font-size:clamp(29px,7.4vw,36px)!important; line-height:1.06!important; }
  #today .storybook-hero .eyebrow { font-size:9px!important; margin-bottom:10px!important; }
  #today .storybook-hero .hero-lead { font-size:13px!important; line-height:1.48!important; }
  #today .storybook-hero .hero-art { height:150px!important; min-height:150px!important; }
  #today .storybook-hero .hero-illustrated-trio { height:66%!important; bottom:5%!important; }
  #today .storybook-hero .hero-portal span { font-size:11px!important; padding:5px 1px!important; }
  #today .today-overview { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:0!important; }
  #today .today-overview .overview-caption { grid-column:1/-1!important; }
  #today .today-overview .overview-metric { min-width:0!important; padding:11px!important; }
  #today .today-overview .overview-metric strong { font-size:26px!important; }
  #today .today-overview .overview-metric span { font-size:11px!important; line-height:1.35!important; display:block!important; white-space:normal!important; overflow-wrap:anywhere; }
  #today .story-categories { margin-top:31px!important; }
  /* Category filters wrap on phones: no cut-off half-pill at the right edge. */
  #categories .page-intro { min-height:0!important; padding:20px 19px!important; margin:11px 0 15px!important; }
  #categories .page-intro h1 { font-size:clamp(29px,7.6vw,35px)!important; line-height:1.09!important; margin:8px 0 11px!important; }
  #categories .page-intro p { font-size:12px!important; line-height:1.42!important; }
  #categories .section-kicker { font-size:10px!important; line-height:1.3!important; }
  #categoryFilters { flex-wrap:wrap!important; overflow-x:visible!important; gap:7px!important; padding:8px 0 11px!important; margin-bottom:9px!important; }
  #categoryFilters .filter-pill { font-size:11px!important; padding:5px 9px!important; min-height:34px!important; }
  #categoryFilters .filter-count { min-width:20px!important; height:19px!important; font-size:9px!important; }
  #today .story-categories:before { font-size:14px!important; text-align:center; }
  .detail-dialog { padding:14px!important; width:calc(100vw - 14px)!important; max-height:90dvh!important; border-radius:14px!important; }
  .detail-heading { gap:10px!important; margin-bottom:13px!important; padding-bottom:13px!important; }
  .detail-cover { height:130px!important; width:100%!important; }
  .detail-heading h2 { font-size:clamp(20px,5.3vw,26px)!important; line-height:1.15!important; }
  .detail-section { margin:13px 0!important; }
  .detail-section p { font-size:13px!important; line-height:1.55!important; }
  .nameday-entry > summary { min-height:44px; }
  .back-to-top { bottom:74px!important; }
}
@media(max-width:390px) {
  .brand-type strong { font-size:16px!important; }
  .storybook-mobile-portrait { height:95px!important; min-height:95px!important; }
  #today .storybook-hero h1 { font-size:29px!important; }
  #today .storybook-hero .hero-art { height:130px!important; min-height:130px!important; }
  #today .story-category { min-height:142px!important; }
}
