/* Skerries News business directory (redesign 2026-11-21, harmonised with the rest of the site the same evening).
   Loaded only on /directory/ pages (functions/sn-directory.php). Built from the site's own pieces:
   - page titles as .post-title h1 (Roboto Slab, normal weight, 32px / 24px on phones);
   - section headings as the sidebar's h3.widget-title (uppercase, thin top line, thick bottom line, small pointer);
   - cards as the Where To Buy cards (.sn-stockist in Additional CSS);
   - grey panels as .sn-wtb-more (#f4f4f4, 6px corners); square #222 buttons; site link colour #3B5998;
   - Directory's menu colour #C714DB only for the selected tab.
   The owner prefers these pages without the sidebar (full width). Before this pass: /root/backup-directory-redesign-20261121/directory.css.before-harmonise */

/* Full width: no sidebar on directory pages (same approach as cart/checkout in Additional CSS). */
body.sn-directory-view #sidebar { display: none; }
body.sn-directory-view #primary-left { width: 100% !important; float: none; margin-right: 0; }

.sn-dir { color: #222; font-size: 14px; line-height: 1.5; }
.sn-dir *, .sn-dir *::before, .sn-dir *::after { box-sizing: border-box; }
.sn-dir a { color: #3B5998; }
.sn-dir a:hover { text-decoration: underline; }
.sn-dir h1, .sn-dir h2, .sn-dir h3 { font-family: 'Roboto Slab', serif; color: #222; letter-spacing: 0; }
.sn-dir h1 { font-weight: 400; font-size: 32px; line-height: 1.2; text-transform: none; }
.sn-dir img { max-width: 100%; height: auto; }
.sn-dir [hidden] { display: none !important; }
.sn-ico { display: inline-block; vertical-align: -3px; flex: none; }

/* Section headings: the sidebar's widget-title */
.sn-sec-h, .sn-rail h2 {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	border-top: 1px solid #222; border-bottom: 3px solid #222; margin: 0 0 15px; line-height: 30px;
}
.sn-sec-h::after, .sn-rail h2::after {
	content: " "; position: absolute; left: 20px; top: 100%; margin-top: -1px; width: 0; height: 0;
	border: 5px solid transparent; border-top-color: #222; pointer-events: none;
}
.sn-sec-h h2, .sn-rail h2 { font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 14px; text-transform: uppercase; line-height: 30px; margin: 0; }
.sn-rail h2 { display: block; }
.sn-sec-h a { font-size: 13px; }
.sn-sec { padding: 30px 0 0; }

/* Grey panels (.sn-wtb-more) */
.sn-band, .sn-streets, .sn-fix, .sn-empty, .sn-strip a { background: #f4f4f4; border-radius: 6px; }

/* Top panel */
.sn-band { padding: 18px 20px 20px; margin: 0 0 6px; }
.sn-band h1 { margin: 0; }
.sn-band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.sn-band-title { display: flex; align-items: center; gap: 14px; }
.sn-head-ico { width: 48px; height: 48px; }
.sn-stats { display: flex; gap: 26px; }
.sn-stat b { display: block; font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 26px; line-height: 1; }
.sn-stat span { font-size: 13px; color: #555; }
.sn-stat-open b { color: #1b6e2f; }

/* Directory home */
.sn-hero h1 { margin: 0 0 4px; }
.sn-live { margin: 0; font-size: 15px; color: #444; }
.sn-live b { color: #1b6e2f; }
.sn-try { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: 8px 0 0; }
.sn-try span { color: #555; }
.sn-try a { display: inline-flex; align-items: center; min-height: 44px; }

/* Search box, like the header search */
.sn-search { position: relative; display: flex; max-width: 560px; margin: 14px 0 0; background: #fff; border: 1px solid #ccc; }
.sn-search-big { max-width: 720px; }
.sn-search-ico { display: flex; align-items: center; padding-left: 12px; color: #777; }
.sn-search .sn-search-input { flex: 1; min-width: 0; border: 0 !important; outline: none; box-shadow: none !important; background: transparent !important; font: inherit; font-size: 15px; padding: 10px 8px !important; height: auto !important; margin: 0 !important; color: #222; }
.sn-search-big .sn-search-input { font-size: 17px; padding: 13px 10px !important; }
/* Focus ring on the whole box (the site draws #0a58ca around the inner field otherwise). */
.sn-dir .sn-search .sn-search-input:focus, .sn-dir .sn-search .sn-search-input:focus-visible { outline: none !important; border: 0 !important; box-shadow: none !important; }
.sn-search:focus-within { border-color: #222; outline: 2px solid #0a58ca; outline-offset: 2px; }
.sn-search button { border: 0; border-radius: 0; background: #222; color: #fff; font: inherit; font-size: 14px; padding: 0 20px; cursor: pointer; min-height: 42px; margin: 0; }
.sn-search button:hover { background: #444; }
.sn-suggest { position: absolute; left: -1px; right: -1px; top: 100%; z-index: 50; background: #fff; border: 1px solid #ccc; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 70vh; overflow-y: auto; }
.sn-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid #eee; color: #222 !important; text-decoration: none !important; }
.sn-suggest a:first-child { border-top: 0; }
.sn-suggest a.hi, .sn-suggest a:hover { background: #f5f5f5; }
.sn-sug-logo { width: 64px; height: 37px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sn-sug-logo img { max-height: 100%; width: auto; }
.sn-sug-logo .sn-letter { border-radius: 4px; font-size: 18px; }
.sn-sug-name { flex: 1; min-width: 0; font-weight: bold; }
.sn-sug-name small { display: block; font-weight: normal; font-size: 12px; color: #555; }
.sn-suggest .sn-st { font-size: 13px; text-align: right; }
.sn-suggest a.sn-sug-all { display: block; background: #fafafa; color: #3B5998 !important; font-weight: bold; }
.sn-sug-none { margin: 0; padding: 12px; color: #555; }

/* Opening status (filled in by directory.js) */
.sn-st { font-size: 14px; font-weight: bold; }
.sn-st.is-open { color: #1b6e2f; }
.sn-st.is-soon { color: #8a5a00; }
.sn-st.is-closed, .sn-st.is-unknown { color: #666; font-weight: normal; }
.sn-stock { font-size: 13px; color: #c4141b; font-weight: bold; }
.sn-stock a { color: #c4141b !important; }

/* Closing soon / open late */
.sn-rails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding-top: 28px; }
.sn-rails.sn-rails-one { grid-template-columns: minmax(0, 1fr); }
.sn-rail ol { list-style: none; margin: 0; padding: 0; }
.sn-rail li { margin: 0; padding: 0; list-style: none; }
.sn-rail li a { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid #eee; text-decoration: none !important; color: #222; }
.sn-rail li a:hover .sn-rail-name { text-decoration: underline; }
.sn-rail-logo { width: 72px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sn-rail-logo img { max-height: 100%; width: auto; }
.sn-rail-logo .sn-letter { border-radius: 4px; font-size: 20px; }
.sn-rail-t { flex: 1; min-width: 0; }
.sn-rail-name { display: block; font-weight: bold; }
.sn-rail-sub { display: block; font-size: 13px; color: #555; }
.sn-rail-time { text-align: right; flex: none; }
.sn-rail-time b { display: block; font-size: 16px; line-height: 1.2; }
.sn-rail-time small { font-size: 12px; color: #555; }
.sn-rail-soon .sn-rail-time b { color: #8a5a00; }
.sn-rail-late .sn-rail-time b { color: #1b6e2f; }

/* Section tiles: grey panels, like the homepage tiles */
.sn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sn-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #f4f4f4; border-radius: 6px; text-decoration: none !important; color: #222 !important; min-height: 160px; transition: background .15s ease-in; }
.sn-tile:hover { background: #ebebeb; }
.sn-tile:hover .sn-tile-name { text-decoration: underline; }
.sn-tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sn-tile-top img { width: 40px; height: 40px; }
.sn-tile-num { font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 26px; line-height: 1; color: #555; }
.sn-tile-name { font-size: 16px; font-weight: bold; line-height: 1.3; }
.sn-tile-subs { font-size: 13px; color: #555; line-height: 1.4; flex: 1; }
.sn-meter { display: block; height: 5px; background: #ddd; overflow: hidden; border-radius: 3px; }
.sn-meter i { display: block; height: 100%; width: 0; background: #2d882d; }
.sn-tile-open { font-size: 13px; color: #1b6e2f; font-weight: bold; }
.sn-tile-open.none { color: #555; font-weight: normal; }

/* Cards: the Where To Buy card */
.sn-cards, .sn-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.sn-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sn-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sn-card, .sn-mini li { margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s ease-in, border-color .15s ease-in; }
.sn-card:hover, .sn-mini li:hover { border-color: #c9c9c9; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.sn-card-main, .sn-mini a { display: block; padding: 14px 14px 10px; color: #222 !important; text-decoration: none !important; flex: 1 1 auto; }
.sn-card-main:hover .sn-card-name, .sn-mini a:hover .sn-mini-name { text-decoration: underline; }
.sn-card-pic, .sn-mini-pic { display: flex; align-items: center; justify-content: center; height: 90px; margin-bottom: 12px; }
.sn-card-pic img, .sn-mini-pic img { max-height: 90px; width: auto; max-width: 85%; height: auto; }
.sn-card.is-closed .sn-card-pic img { filter: grayscale(1); opacity: .55; }
.sn-letter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f4f4f4; color: #555; font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 40px; line-height: 1; }
.sn-card-pic .sn-letter, .sn-mini-pic .sn-letter { width: 120px; height: 70px; border-radius: 6px; }
.sn-card-body, .sn-mini-t { display: block; }
.sn-card-name, .sn-mini-name { display: block; font-size: 17px; font-weight: bold; line-height: 1.3; margin-bottom: 4px; }
.sn-mini-name { font-size: 15px; }
.sn-card-type, .sn-mini-sub { display: block; font-size: 14px; color: #555; line-height: 1.4; }
.sn-card .sn-st, .sn-mini .sn-st { display: block; margin-top: 4px; font-size: 14px; }
.sn-card .sn-stock { display: block; margin-top: 2px; }
.sn-card-acts { display: flex; border-top: 1px solid #eee; }
.sn-card-acts a { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px; font-size: 14px; text-align: center; color: #27576B !important; text-decoration: none !important; white-space: nowrap; }
.sn-card-acts a + a { border-left: 1px solid #eee; }
.sn-card-acts a:hover { background: #f5f5f5; }

/* Browse by street */
.sn-streets { margin-top: 36px; padding: 18px 20px 14px; }
.sn-slist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; list-style: none; margin: 0; padding: 0; }
.sn-slist li { margin: 0; padding: 0; list-style: none; }
.sn-slist a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #ddd; text-decoration: none !important; color: #222 !important; }
.sn-slist a:hover .sn-sname { text-decoration: underline; }
.sn-sname { font-size: 16px; font-weight: bold; }
.sn-scount { font-size: 14px; color: #555; white-space: nowrap; }
.sn-scount b { color: #1b6e2f; }

/* Bottom links */
.sn-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 30px 0 10px; }
.sn-strip a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none !important; }
.sn-strip a:hover .sn-strip-t { text-decoration: underline; }
.sn-strip-t { font-size: 16px; font-weight: bold; color: #222; line-height: 1.3; }
.sn-go { color: #3B5998; }

/* Section tabs (Directory's menu colour under the selected one), community notes, tools */
.sn-tabs { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid #e3e3e3; margin: 6px 0 0; }
.sn-tabs a { display: inline-flex; align-items: center; gap: 5px; min-height: 46px; padding: 0 12px; border-bottom: 3px solid transparent; color: #222 !important; font-family: 'Roboto Slab', serif; font-size: 14px; text-decoration: none !important; }
.sn-tabs a span { font-family: Arial, sans-serif; font-size: 13px; color: #777; }
.sn-tabs a:hover { border-bottom-color: #ccc; }
.sn-tabs a.on { border-bottom-color: #C714DB; font-weight: 700; }
.sn-notes { margin: 14px 0 0; }
.sn-dir .sn-cm-listing-note { background: #f4f4f4 !important; border-radius: 6px !important; padding: 10px 14px !important; margin: 0 0 8px !important; font-size: 14px !important; }
.sn-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 22px; padding: 6px 0; border-bottom: 1px solid #e3e3e3; margin-top: 10px; }
.sn-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; margin: 0; font-weight: normal; }
.sn-check input { width: 18px; height: 18px; margin: 0; }
.sn-sort { font-size: 14px; color: #555; }
.sn-sort button { border: 0; background: none; font: inherit; font-size: 14px; color: #3B5998; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.sn-sort button.on { color: #222; font-weight: bold; }
.sn-count { margin: 14px 0 12px; font-size: 14px; color: #555; }
.sn-empty { padding: 20px; text-align: center; color: #444; margin: 16px 0 0; }
.sn-linkbtn { border: 0; background: none; font: inherit; color: #3B5998; text-decoration: underline; cursor: pointer; padding: 0; }
.sn-more { text-align: center; margin: 22px 0 0; }
.sn-foot-note { font-size: 14px; color: #555; margin: 26px 0 10px; }

/* Buttons: square, like the site's */
.sn-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #222; background: #fff; color: #222 !important; text-decoration: none !important; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; border-radius: 0; }
.sn-btn:hover { background: #f0f0f0; }
.sn-btn-dark { background: #222; color: #fff !important; }
.sn-btn-dark:hover { background: #444; }

/* Listing page */
.sn-hero-l { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: center; }
.sn-biglogo { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; aspect-ratio: 12 / 7; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.sn-biglogo img { max-height: 100%; width: auto; }
.sn-biglogo .sn-letter { font-size: 64px; border-radius: 4px; }
.sn-hero-t h1 { margin: 0 0 6px; }
.sn-types { margin: 0 0 4px; }
.sn-addr { display: flex; align-items: center; gap: 6px; margin: 0; color: #444; }
.sn-now { margin: 8px 0 0; }
.sn-now .sn-st { font-size: 16px; }
.sn-hero-t .sn-stock { margin: 6px 0 0; }
.sn-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sn-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: start; }
.sn-split-one { grid-template-columns: minmax(0, 1fr); }
.sn-hours { list-style: none; margin: 0; padding: 0; }
.sn-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-top: 1px solid #eee; margin: 0; list-style: none; }
.sn-hours li:first-child { border-top: 0; }
.sn-hours li span:last-child { text-align: right; }
.sn-hours li.today { background: #f4f4f4; border-radius: 6px; font-weight: bold; }
.sn-fix { margin: 16px 0 0; padding: 12px 14px; color: #444; }
.sn-mapbox { border: 1px solid #e3e3e3; border-radius: 6px; overflow: hidden; background: #e8eae6; height: 320px; }
.sn-mapbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.sn-mapcap { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.sn-mapcap span { font-weight: bold; }

/* The plugin's own bars on these pages */
body.sn-directory-view .wpbdp-bar, body.sn-directory-view .wpbdp-main-box { display: none; }

@media (max-width: 1000px) {
	.sn-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sn-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sn-strip { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.sn-hero-l { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 700px) {
	.sn-dir { font-size: 16px; }
	.sn-dir h1 { font-size: 24px; }
	.sn-band { padding: 14px 14px 16px; }
	.sn-head-ico { width: 36px; height: 36px; }
	.sn-stats { gap: 18px; }
	.sn-stat b { font-size: 22px; }
	.sn-search { flex-wrap: wrap; }
	.sn-search-big button { width: 100%; min-height: 46px; }
	.sn-try { gap: 0 16px; }
	.sn-suggest .sn-st { display: none; }
	.sn-rails { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.sn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sn-tile { min-height: 0; padding: 12px; }
	.sn-tile-subs { display: none; }
	.sn-tile-num { font-size: 20px; }
	.sn-tile-name { font-size: 15px; }
	.sn-tile-top img { width: 30px; height: 30px; }
	.sn-slist { grid-template-columns: minmax(0, 1fr); }
	.sn-streets { padding: 14px 14px 10px; }
	.sn-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.sn-tabs a { flex: none; }
	.sn-hero-l { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.sn-biglogo { max-width: 240px; }
	.sn-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.sn-acts .sn-btn { justify-content: center; padding: 0 8px; white-space: normal; text-align: center; }
	.sn-acts .sn-btn-dark { grid-column: 1 / -1; }
	.sn-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.sn-mapbox { height: 240px; }
	.sn-mini { gap: 10px; }
}
@media only screen and (max-width: 480px) {
	.sn-cards { grid-template-columns: 1fr; gap: 12px; }
	.sn-card-pic, .sn-mini-pic { height: 70px; }
	.sn-card-pic img, .sn-mini-pic img { max-height: 70px; }
	.sn-card-name { font-size: 15px; }
}
@media print {
	.sn-search, .sn-tools, .sn-card-acts, .sn-acts, .sn-mapbox, .sn-strip { display: none !important; }
}

/* Opening status as a full-width tinted row at the foot of each card (added 2026-11-21 at the owner's request:
   "make it more obvious what is open"). Rows line up across a grid row; closed cards also fade their logo. */
.sn-card-main, .sn-mini a { display: flex; flex-direction: column; }
.sn-card-body, .sn-mini-t { display: flex; flex-direction: column; flex: 1 1 auto; }
.sn-card-type, .sn-mini-sub { margin-bottom: 10px; }
.sn-card .sn-st, .sn-mini .sn-st { order: 9; margin: auto -14px -10px; padding: 8px 14px; font-size: 14px; border-top: 1px solid #eee; }
.sn-st:empty { display: none !important; }
.sn-card .sn-st.is-open, .sn-mini .sn-st.is-open { background: #e6f4ea; color: #17602a; font-weight: bold; }
.sn-card .sn-st.is-soon, .sn-mini .sn-st.is-soon { background: #fdf1dc; color: #6e4700; font-weight: bold; }
.sn-card .sn-st.is-closed, .sn-mini .sn-st.is-closed,
.sn-card .sn-st.is-unknown, .sn-mini .sn-st.is-unknown { background: #f4f4f4; color: #666; font-weight: normal; }
.sn-card.is-closed .sn-card-name { color: #555; }
.sn-card .sn-stock { margin-bottom: 8px; }

/* "Sells Skerries News": the red SN site icon and plain text (2026-11-21). */
.sn-dir .sn-stock { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: normal; color: #222; }
.sn-stock-ico { width: 20px; height: 20px; border-radius: 3px; flex: none; }
.sn-stock-more { color: #555; }
.sn-stock-more a { color: #3B5998 !important; }
.sn-hero-t .sn-stock { margin: 10px 0 0; }
/* Community guide note shown near the top of a listing (sn-community): a white box inside the grey panel. */
.sn-dir .sn-notes-top { margin: 10px 0 0; }
.sn-dir .sn-notes-top .sn-cm-listing-note { background: #fff !important; margin: 0 0 6px !important; }

/* Defibrillator mark next to listing names (2026-11-22) */
.sn-aed { display: inline-block; vertical-align: -3px; margin-left: 4px; border-radius: 3px; flex: none; }
.sn-hero h1 .sn-aed { vertical-align: -4px; margin-left: 6px; }
