/* Styles that exist only in the WordPress theme (not in the mockups). Loaded after main.css. */

.skip-link{position:absolute;left:-9999px;top:8px;z-index:200;background:#fff;color:var(--brand);padding:10px 16px;border-radius:8px;font-weight:600;box-shadow:var(--shadow-up)}
.skip-link:focus{left:8px}

/* announcement bar: one urgent line above the header, switched on in Site Settings */
.announce{background:var(--gold-tint);border-bottom:1px solid #ecdcae;font-size:15px;color:var(--ink)}
.announce .wrap{display:flex;align-items:flex-start;gap:10px;padding-top:9px;padding-bottom:9px}
.announce .icon{color:#8a6410;margin-top:3px}
.announce a{font-weight:600;margin-left:4px}

/* search bar that drops under the header */
.searchbar{border-top:1px solid var(--border);background:#fff;padding:14px 0}
.searchbar .wrap{display:flex;gap:10px;height:auto;align-items:center}
.searchbar .searchbox{flex:1}

/* page content written in the block editor */
.entry>*:first-child{margin-top:0}
.entry img{border-radius:12px;height:auto}
.entry .alignwide{max-width:1200px}
.entry .wp-block-button__link{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:8px;font-weight:600;font-size:16px;background:var(--brand);color:#fff;text-decoration:none}
.entry .wp-block-button__link:hover{background:var(--brand-dark)}
.entry table{width:100%;border-collapse:collapse}
.entry td,.entry th{padding:12px 16px;border:1px solid var(--border);text-align:left}

/* list and detail templates */
a.chip{display:inline-flex;align-items:center;text-decoration:none}
a.chip:hover{text-decoration:none}
.search-miss{display:none!important}
.ncard .meta>span:first-child{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:center}
.ncard .thumb img{display:block}
.avatar{overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.pcard img{display:block}
.pcard:not(:has(img)){background:var(--grad-feature)}
.album .cover:not(:has(img)){background:var(--grad-feature)}
.vgrid .album:first-child{grid-column:auto;grid-row:auto}
.vgrid .album:first-child .cover{aspect-ratio:16/9;height:auto}
.vgrid .album:first-child .acap b{font-size:inherit}
.vfeature video,.vfeature iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.videobox .vframe{width:min(1100px,100%);aspect-ratio:16/9;background:#000;border-radius:10px;overflow:hidden}
.videobox .vframe iframe,.videobox .vframe video{width:100%;height:100%;border:0;display:block}
.scan img{display:block;width:100%;height:auto;border-radius:0}
.entry .scan{margin:8px 0}
.entry .thumbs img,.entry .pgal img,.pgal img,.thumbs img{border-radius:0;width:100%;height:100%;object-fit:cover}
/* WordPress images carry their own size, so album tiles are all square here; the mockup's wide tile left gaps */
.pgal a:nth-child(6n+1){grid-column:auto;aspect-ratio:1}
.pg>.wrap>.band+*{margin-top:96px}
.toolbar .searchbox{flex:0 1 300px}
.toolbar .chips{flex:1 1 auto}
#list .ncard.pinned{min-height:0}
@media (max-width:640px){ .pg>.wrap>.band+*{margin-top:72px} .toolbar .searchbox{flex:1 1 100%} }
.paper[disabled]{cursor:default;opacity:.6}
.prevnext span:empty{flex:1}
[lang="ur"]{font-family:"Noto Nastaliq Urdu","Jameel Noori Nastaleeq",serif;line-height:2.2;font-size:1.1em}

/* ---- pages built from blocks ---- */
/* plain text blocks sit in a readable column and close together; sections keep the wide spacing */
.entry-blocks>:is(p,ul,ol,h2,h3,h4,blockquote,.wp-block-list,.wp-block-table,.wp-block-quote){max-width:720px}
.pg>.wrap.entry-blocks>:is(p,ul,ol,h3,h4,.wp-block-list,.wp-block-table)+:is(p,ul,ol,.wp-block-list,.wp-block-table),
.pg>.wrap.entry-blocks>:is(h2,h3,h4)+*{margin-top:16px}
.entry-blocks>h2{font-size:28px;font-weight:600}
.entry-blocks>h3{font-size:20px;font-weight:600}
.entry-blocks>:is(ul,ol):not([class*="is-style"]){padding-left:22px;list-style:revert}
.entry-blocks .rounded img,.collage img,.scard img,.plan .img img,.mosaic img,.pcard img,.feature img{height:100%}
.home-sections>:is(p,h2,h3,ul,ol){max-width:1200px;margin:24px auto;padding:0 24px}
.viewer img{height:auto!important;max-width:none}
.pane>h2{font-size:24px;font-weight:600;margin:0 0 16px;display:flex;align-items:center;gap:12px}
.pane>h2::before{content:"";width:6px;height:26px;border-radius:3px;background:var(--gold);flex:none}
.pane .lead{color:var(--muted);margin-bottom:12px}

/* contact: the map band breaks out of the page container to the full width of the window */
.pg:has(.mapband){padding-bottom:0}
.entry-blocks>.mapband{width:100vw;max-width:none;margin-left:calc(50% - 50vw)}

/* ---- procedure pages: ordinary editor blocks with the society's styles ---- */
.entry-proc>*+*{margin-top:16px}
.entry-proc>h2{font-size:24px;font-weight:600;margin-top:44px;scroll-margin-top:150px;display:flex;align-items:center;gap:12px}
.entry-proc>h2:first-child,.entry-proc>.tabbar+.pane>h2{margin-top:0}
.entry-proc>h2::before{content:"";width:6px;height:26px;border-radius:3px;background:var(--gold);flex:none}
.entry-proc>h3{font-size:20px;font-weight:600;margin-top:28px}
.entry-proc>p{color:var(--muted)}
.entry-proc>.tabbar{margin-bottom:24px}
.entry-proc>.proc-foot{margin-top:44px}
ul.is-style-checklist{list-style:none;padding:0;display:grid;gap:10px}
ul.is-style-checklist>li{position:relative;padding:12px 16px 12px 52px;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:var(--shadow);cursor:pointer;transition:background .15s,border-color .15s}
ul.is-style-checklist>li::before{content:"";position:absolute;left:16px;top:15px;width:20px;height:20px;border:2px solid #b7c6bc;border-radius:5px}
ul.is-style-checklist>li:hover{border-color:#b9dcc8}
ul.is-style-checklist>li.on{background:var(--brand-tint);border-color:#b9dcc8}
ul.is-style-checklist>li.on::before{border-color:var(--brand);background:var(--brand) url("check.svg") center/13px no-repeat}
ol.is-style-steps{list-style:none;padding:0;counter-reset:s;display:grid;gap:14px}
ol.is-style-steps>li{counter-increment:s;position:relative;padding:5px 0 0 50px;min-height:36px}
ol.is-style-steps>li::before{content:counter(s);position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;background:var(--grad-feature);color:#fff;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px rgba(0,110,51,.28)}
ol.is-style-steps>li:not(:last-child)::after{content:"";position:absolute;left:17px;top:40px;bottom:-12px;width:2px;background:linear-gradient(var(--brand-bright),var(--border))}
.wp-block-table.is-style-fees{margin-left:0;margin-right:0}
.wp-block-table.is-style-fees table{width:100%;border-collapse:collapse;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;font-size:16.5px;box-shadow:var(--shadow)}
.wp-block-table.is-style-fees th{background:var(--brand);color:#fff;text-align:left;font-size:13px;text-transform:uppercase;letter-spacing:.07em;padding:12px 18px;border:0}
.wp-block-table.is-style-fees td{padding:14px 18px;border:0;border-top:1px solid var(--border)}
.wp-block-table.is-style-fees td:last-child,.wp-block-table.is-style-fees th:last-child{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.wp-block-table.is-style-fees td:last-child{color:#7a5a12}
.wp-block-table.is-style-fees tbody tr:nth-child(even) td{background:var(--sand)}
.wp-block-table.is-style-fees thead,.wp-block-table.is-style-fees tfoot{border:0}
.wp-block-table.is-style-fees figcaption{font-size:15px;color:var(--muted);margin-top:8px;text-align:left}
.wp-block-group.is-style-callout{padding:16px 18px 16px 52px;border-radius:12px;background:var(--accent-tint);border:1px solid #ecd9ae;border-left:5px solid var(--gold);color:#5c430f;position:relative;box-shadow:var(--shadow)}
.wp-block-group.is-style-callout::before{content:"!";position:absolute;left:16px;top:16px;width:24px;height:24px;border-radius:50%;background:var(--accent);color:#fff;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center}
.wp-block-group.is-style-callout>*+*{margin-top:4px}
.wp-block-group.is-style-callout p{color:inherit}

/* WordPress pagination */
.navigation.pagination .nav-links{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.navigation.pagination .page-numbers{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--border);border-radius:8px;color:var(--ink);font-weight:600}
.navigation.pagination .page-numbers.current{background:var(--brand);border-color:var(--brand);color:#fff}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the admin bar pushes the sticky header and section tabs down for logged-in staff */
.admin-bar .header{top:32px}
.admin-bar .subnav{top:112px}
@media (max-width:960px){ .admin-bar .subnav{top:96px} .admin-bar .mobile-panel.open{inset:110px 0 0} }
@media (max-width:782px){ .admin-bar .header{top:46px} .admin-bar .subnav{top:110px} }

/* contact form: the trap field robots fill in is kept out of sight and out of reach */
.form .hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.form .ferr{color:#b32d2e;font-weight:500;font-size:14px}
.form .field[aria-invalid="true"]{border-color:#b32d2e;box-shadow:0 0 0 3px rgba(179,45,46,.12)}
.ok.err{background:#fdf0f0;border-color:#f2c9c9;color:#8a1f1f}
.ok:focus{outline:2px solid var(--brand);outline-offset:2px}

/* accessibility: gold and amber text darkened (same hue) to reach 4.5:1 against white and their tints (WCAG AA) */
:root{--accent:#8f5a0a}
.ncard[data-c=event],.stage .item[data-c=event]{--cat:#8a5f12}
.eyebrow-g{color:#8a5f12}
.chip[data-f=event][aria-pressed=true]{background:#8a5f12;border-color:#8a5f12}

/* the contact card's "Open now" label is text with a dot, not the round pulsing dot itself */
.ccard .live{width:auto;height:auto;background:none;border-radius:0;box-shadow:none;animation:none}

/* form labels: the label text and "(optional)" stay on one line above the field */
.form label>span:first-child{display:block}
.form .row{align-items:end}

/* home "Notices & events": the event card opens with its album photo, edge to edge */
.side .panel .ev-photo{display:block;margin:-22px -22px 18px;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;overflow:hidden;aspect-ratio:16/9;background:var(--alt)}
.side .panel .ev-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.side .panel .ev-photo:hover img{transform:scale(1.03)}
.side .panel{overflow:hidden}

/* a video played in place fills its frame (the browser's default iframe is a 300 x 150 box) */
.video iframe,.video video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#000}
.video:has(iframe),.video:has(video){aspect-ratio:16/9}

/* project pictures: one or two photos share the width evenly instead of leaving a gap */
.thumbs.pair{grid-template-columns:repeat(2,1fr)}
.thumbs.pair a{aspect-ratio:4/3}
.thumbs.single{grid-template-columns:1fr}
.thumbs.single a{aspect-ratio:16/9}
