/* =====================================================================
   Out & About NYC Magazine — WordPress additions.
   The design lives in style.css + pages.css (unchanged). This file only adds what
   WordPress needs on top: admin bar offsets, link-based pagination, the extended
   newsletter form, editor content classes, pages, events and comments.
   ===================================================================== */

/* ---------- admin bar + header options ---------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .read-progress { top: 32px; }
.site-header--static { position: relative; top: auto !important; transform: none !important; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .read-progress { top: 46px; }
}
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .admin-bar .read-progress { top: 0; } }
@media (max-width: 1079px) {
  .admin-bar .primary-nav { top: 32px; }
}
@media (max-width: 782px) { .admin-bar .primary-nav { top: 46px; } }

/* current item inside dropdowns */
.menu .sub li.current > a, .menu .mega li.current > a, .catbar__list li.current a { color: var(--red); }

/* header events: title + "view all" are links here */
a.hdr-ev__title:hover { color: var(--red); }
a.hdr-events__all { text-decoration: none; }
a.evcard__title { text-decoration: none; }

/* ---------- pagination with real links (archives) ---------- */
a.pagination__num, span.pagination__num { display: inline-grid; place-items: center; text-decoration: none; }
a.pagination__num:hover { border-color: #111; }
.pagination__num.is-disabled { color: #ccc; cursor: default; }
.block__body, #latest-grid { transition: opacity .25s; }
.block__body.is-switching, #latest-grid.is-switching { opacity: .4; }

/* ---------- newsletter: name field, consent, honeypot ---------- */
.newsletter__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter__fields { display: grid; gap: 10px; }
.newsletter__consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 12px; line-height: 1.45; color: #555; text-align: left; cursor: pointer; }
.newsletter__consent input { flex: none; width: 15px; height: 15px; margin-top: 1px; accent-color: var(--red); }
.newsletter__btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.newsletter__msg[hidden] { display: none; }

.foot-news .newsletter__fields { grid-column: 2; grid-row: 1 / 3; align-self: center; grid-template-columns: minmax(0, 1fr); }
.foot-news .newsletter--name .newsletter__fields { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.foot-news .newsletter__field { grid-column: auto; grid-row: auto; }
.foot-news .newsletter__consent { grid-column: 2 / 4; grid-row: 3; margin-top: 12px; color: #a9a9a9; }
.foot-news .newsletter__msg { grid-row: 4; }
.foot-news .newsletter__rss { grid-row: 5; }
@media (max-width: 899px) {
  .foot-news .newsletter__fields { grid-column: 1; grid-row: 3; }
  .foot-news .newsletter__consent { grid-column: 1 / -1; grid-row: 4; }
  .foot-news .newsletter__msg { grid-row: 5; }
  .foot-news .newsletter__rss { grid-row: 6; }
}
@media (max-width: 639px) {
  .foot-news .newsletter__fields, .foot-news .newsletter--name .newsletter__fields { grid-column: 1; grid-row: auto; grid-template-columns: minmax(0, 1fr); }
  .foot-news .newsletter__consent, .foot-news .newsletter__msg, .foot-news .newsletter__rss { grid-column: 1; grid-row: auto; }
}

/* ---------- footer: contact details, extra widgets ---------- */
.footer__contact { display: grid; gap: 8px; margin-top: 18px; font-size: 13.5px; color: #c9c9c9; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact svg { flex: none; margin-top: 2px; color: var(--gold); }
.footer__contact a:hover { color: #fff; }
.footer__extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 40px; color: #c9c9c9; font-size: 14px; }
.footer__extra a:hover { color: #fff; }
.footer__menu2 ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- single story extras ---------- */
.article .layout__main > .crumbs { margin-bottom: 26px; color: var(--gray); }
.article .layout__main > .crumbs a { color: #444; }
.article .layout__main > .crumbs a:hover { color: var(--red); }
.article .layout__main > .crumbs span[aria-hidden] { color: #c8c8c8; }
.article .layout__main > .crumbs > span:last-child:not([aria-hidden]) { color: var(--red); }
.article__subtitle { margin-top: 14px; padding-left: clamp(24px, 2.8vw, 42px); font: 400 clamp(15px, 1.3vw, 18px)/1.5 var(--title); color: rgba(255,255,255,.78); }
.article__updated { color: rgba(255,255,255,.6); }
.prose-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.prose-gallery a { display: block; overflow: hidden; border-radius: 8px; }
.prose-gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ease); }
.prose-gallery a:hover img { transform: scale(1.05); }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 600 13px var(--title); }
.page-links a, .page-links > span { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid #e3e3e3; text-decoration: none; }
.page-links > span { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- editor content (classic + block editor) ---------- */
.prose::after { content: ''; display: table; clear: both; }
.prose .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.prose .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption img { display: block; }
.prose iframe, .prose video, .prose embed, .prose object { max-width: 100%; }
.prose video { height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid #e6e6e6; text-align: left; }
.prose th { background: #faf8f4; font-family: var(--title); }
.prose pre { padding: 16px; overflow-x: auto; border-radius: 8px; background: #111; color: #f4f4f4; font-size: .85em; }
.prose hr { border: 0; border-top: 1px solid #e6e6e6; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.prose .gallery-item { margin: 0; }
.prose .wp-block-embed__wrapper .embed { margin: 0; }
.prose--page > p:first-child::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { .prose .alignleft, .prose .alignright { float: none; margin: 1em 0; max-width: 100%; } }

/* ---------- static pages ---------- */
.page-hero--image { background: linear-gradient(90deg, rgba(15,14,13,.92) 0%, rgba(15,14,13,.7) 55%, rgba(15,14,13,.45) 100%), var(--page-hero-bg) center / cover no-repeat, var(--ink); }
.page-hero__cta { margin-top: 26px; }
.page--static .layout, .error404 .layout { padding-top: 44px; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout--full .prose { max-width: 820px; }
.psec { margin-top: 48px; }
.psec--media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.psec--media-right .psec__img { order: 2; }
.psec__img { margin: 0; }
.psec__img img { display: block; width: 100%; height: auto; border-radius: 10px; }
.psec--cta { padding: clamp(28px, 4vw, 48px); border-radius: 12px; background: var(--ink) center / cover no-repeat; color: #fff; text-align: center; }
.psec--cta .psec__title { font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.psec--cta p { max-width: 60ch; margin: 12px auto 22px; color: rgba(255,255,255,.8); }
@media (max-width: 767px) { .psec--media { grid-template-columns: minmax(0, 1fr); } .psec--media-right .psec__img { order: 0; } }

/* ---------- events ---------- */
.event-facts { display: grid; gap: 10px; margin-top: 24px; font: 500 15px var(--title); color: rgba(255,255,255,.88); }
.event-facts li { display: flex; align-items: flex-start; gap: 10px; }
.event-facts svg { flex: none; margin-top: 3px; color: var(--gold); }
.event-cta { margin-top: 26px; }
.card--event .card__media { position: relative; }
.card__date { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 56px; border-radius: 8px; background: var(--red); color: #fff; font: 700 10.5px var(--title); letter-spacing: .08em; text-transform: uppercase; line-height: 1; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); }
.card__date b { margin-bottom: 4px; font-size: 20px; letter-spacing: 0; }
.card__fact { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5a5a5a; }
.card__fact svg { flex: none; color: var(--red); }

/* ---------- comments ---------- */
.comments { max-width: 720px; margin-top: 48px; --block: var(--ink); }
.comments__list { margin: 24px 0; }
.comments__list li { padding: 16px 0; border-bottom: 1px solid #ececec; }
.comments__list .children { margin-left: 28px; }
.comment-author { display: flex; align-items: center; gap: 10px; font: 600 14px var(--title); }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: 4px 0 8px; font-size: 12px; color: var(--gray); }
.comment-content { font-size: 15px; line-height: 1.7; }
.comment-reply-title { margin: 28px 0 12px; font-family: var(--serif); font-size: 24px; font-weight: 800; }
.comment-form label { display: block; margin-bottom: 4px; font: 600 13px var(--title); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font: 15px var(--sans); }
.comment-form p { margin-bottom: 14px; }
.comment-form .btn { height: 46px; padding: 0 26px; border: 0; cursor: pointer; }

/* sidebar widgets added in Appearance > Widgets */
.layout__side .widget ul { display: grid; gap: 10px; font-size: 14px; }
.layout__side .widget a:hover { color: var(--red); }

/* ---------- footer newsletter: heading and description on one line each (desktop) ---------- */
@media (min-width: 1100px) {
  .foot-news .newsletter { grid-template-columns: max-content minmax(0, 1fr) auto; column-gap: 28px; }
  .foot-news .newsletter__title, .foot-news .newsletter__dek { white-space: nowrap; }
  .foot-news .newsletter__title { font-size: 21px; }
  .foot-news .newsletter__dek { margin-right: 0; }
}

/* ---------- sidebar widgets: reader comments + search ---------- */
.layout__side .widget { margin-bottom: 44px; }
.side-comments { display: grid; gap: 0; }
.side-comment { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-line, #e8e8e8); }
.side-comment:first-child { padding-top: 4px; }
.side-comment:last-child { border-bottom: 0; padding-bottom: 0; }
.side-comment__avatar img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f1f1f1; }
.side-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.side-comment__head strong { font: 700 14px var(--title); color: #111; }
.side-comment__head time { font-size: 11.5px; color: var(--gray); }
.side-comment__text { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 14.5px; line-height: 1.5; color: #333; }
.side-comment__on { display: block; margin-top: 8px; font: 600 12.5px/1.4 var(--title); color: #111; transition: color .2s; }
.side-comment__on span { margin-right: 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.side-comment__on:hover { color: var(--red); }
.side-search { position: relative; display: flex; }
.side-search input { flex: 1; min-width: 0; height: 46px; padding: 0 52px 0 16px; border: 1px solid #ddd; border-radius: 999px; background: #fff; font: 14px var(--sans); color: #222; outline: none; transition: border-color .2s; }
.side-search input:focus { border-color: var(--red); }
.side-search button { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; transition: background .2s; }
.side-search button:hover { background: var(--red-dark, #a5160f); }

/* space between the sidebar newsletter box and the widgets below it */
.layout__side .side-newsletter + * { margin-top: 44px; }

/* ---------- comment anti-spam message ---------- */
.global-antispam-error { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--red); border-radius: 6px; background: #ffe9e7; color: #b3160f; font: 600 13.5px var(--title); }
.comment-form .btn[disabled] { opacity: .5; cursor: not-allowed; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* =====================================================================
   Text pages (About Us, Privacy Policy, Photo Gallery, Video Interviews…)
   ===================================================================== */
.page-content { max-width: 820px; }
.layout--full .page-content { margin-inline: auto; }
.prose--page { max-width: none; font-size: 17px; line-height: 1.8; color: #2a2a2a; }
.prose--page > p { text-align: left; }
.prose--page > p:first-of-type:not([style]) { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.65; color: #151515; }
.prose--page h2 { position: relative; margin-top: 2.2em; padding-bottom: 14px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.01em; }
.prose--page h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px; background: linear-gradient(90deg, var(--red) 0 60%, var(--gold) 60% 100%); }
.prose--page h2:first-child { margin-top: 0; }
.prose--page h3 { font-size: 21px; }
.prose--page strong { color: #111; }
.prose--page img { box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .45); }
.prose--page > p > img, .prose--page > p > a > img { display: block; max-width: min(100%, 560px); max-height: 560px; width: auto; height: auto; margin-inline: auto; object-fit: contain; }
.prose--page .embed { box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .55); }
.prose--page h2 + .embed, .prose--page h2 + p { margin-top: 1em; }
.prose--page ul li + li, .prose--page ol li + li { margin-top: .4em; }

/* profile cards (small portrait + biography) */
.bio { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; padding: 26px; border: 1px solid #efe9df; border-left: 4px solid var(--gold); border-radius: 12px; background: #fcfaf6; }
.bio + .bio { margin-top: 24px; }
.bio__img { margin: 0; }
.bio__img img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .55); }
.bio__text { font-size: 16px; line-height: 1.75; }
.bio__text p { margin: 0; text-align: left; }
.bio__text p > strong:first-child { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 21px; font-weight: 800; line-height: 1.25; color: #111; }
@media (max-width: 640px) { .bio { grid-template-columns: minmax(0, 1fr); padding: 20px; } .bio__img img { max-width: 180px; } }

/* photo gallery inside a page */
.prose-gallery--page { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.prose-gallery--page img { aspect-ratio: 4 / 3; height: auto; max-width: none; max-height: none; box-shadow: none; border-radius: 0; }
.prose-gallery--page a, .prose-gallery__item { display: block; overflow: hidden; border-radius: 10px; background: #f1f1f1; }

/* subscribe page */
.page-subscribe { max-width: 520px; margin: 0 auto 20px; }
.bio--noimg { grid-template-columns: minmax(0, 1fr); }
.prose--page > p > img, .prose--page > p > a > img { max-width: min(100%, 440px); max-height: 440px; }

/* profile sections (ACF "Profile" layout) */
.page-content > .bio { margin-top: 28px; }
.bio__name { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 800; line-height: 1.2; color: #111; }
.bio__role { margin: 6px 0 14px !important; font: 700 11.5px var(--title); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.bio__body > * + * { margin-top: 1em; }
.bio__body p { margin: 0; }

/* ---------- event page: location + map ---------- */
.event-map { max-width: 720px; margin-top: 44px; --block: var(--ink); }
.event-map__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 18px 0 16px; }
.event-map__address { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: #333; }
.event-map__address svg { flex: none; margin-top: 2px; color: var(--red); }
.event-map__address strong { font-family: var(--title); color: #111; }
.event-map__dir { height: 42px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; }
.event-map__frame { position: relative; aspect-ratio: 16 / 9; min-height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid #e6e6e6; background: #f1f1f1; box-shadow: 0 24px 50px -32px rgba(0, 0, 0, .5); }
.event-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
