/* Skerries News directory v2: the listing page, direction C "the paper's town guide" (2026-11-30).
   Markup: business-directory/v2/single.php. Script: lib/js/entry.js. Loaded after directory.css on directory pages
   while sn_dir_v2_on() (functions/sn-entry-front.php). Everything is scoped under .sn-entry.
   The site's own pieces: Roboto Slab headings, Arial text, #222 text, #3B5998 links, #f4f4f4 panels, ruled rows, the
   directory's .sn-btn buttons (sn-buttons sets their corners and focus ring). Live colours as today's listing pages:
   "Closed" red #b3261e on the status line, open green #1b6e2f, amber #8a5a00 within the hour, neighbours grey. */

.sn-entry { color: #222; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.5; }
.sn-entry *, .sn-entry *::before, .sn-entry *::after { box-sizing: border-box; }
.sn-entry [hidden] { display: none !important; }
.sn-entry a { color: #3B5998; text-decoration: none; }
.sn-entry a:hover { text-decoration: underline; }
.sn-entry p { margin: 0; }
.sn-entry h1, .sn-entry h2, .sn-entry h3 { font-family: 'Roboto Slab', serif; color: #222; letter-spacing: 0; text-transform: none; margin: 0; }
.sn-entry ul, .sn-entry ol { list-style: none; margin: 0; padding: 0; }
.sn-entry li { margin: 0; list-style: none; }
.sn-entry dl, .sn-entry dd { margin: 0; }
.sn-entry dt, .sn-entry dd { line-height: inherit; font-weight: normal; }
.sn-entry figure { margin: 0; }
.sn-entry img { max-width: 100%; height: auto; }
.sn-entry table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sn-entry th, .sn-entry td { padding: 0; border: 0; background: none; text-align: left; font-weight: normal; vertical-align: top; }
.sn-entry tbody > tr:nth-child(n) > td, .sn-entry tbody > tr:nth-child(n) > th, .sn-entry thead th { background: none; }
.sn-e-ico { display: inline-block; flex: none; vertical-align: -2px; }

/* ---------- 1 and 2: name, standfirst, status line, buttons, logo */
.sn-e-head { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; align-items: start; margin-top: 18px; padding-bottom: 26px; border-bottom: 3px double #222; }
.sn-entry.has-logo .sn-e-head { grid-template-columns: minmax(0, 1fr) 132px; }
.sn-e-head > * { grid-column: 1; }
.sn-e-head > .sn-e-logo { grid-column: 2; grid-row: 1 / span 12; }
.sn-e-name { font-weight: 400; font-size: 44px; line-height: 1.15; }
.sn-e-stand { margin-top: 12px; max-width: 720px; font-family: 'Roboto Slab', serif; font-size: 20px; line-height: 1.45; color: #333; text-wrap: pretty; }
.sn-e-more { margin-top: 10px; max-width: 680px; font-size: 16px; line-height: 1.6; }
.sn-e-status { margin-top: 16px; font-size: 18px; }
.sn-e-st-main { font-weight: bold; }
.sn-e-st-main.is-open { color: #1b6e2f; }
.sn-e-st-main.is-soon { color: #8a5a00; }
.sn-e-st-main.is-closed { color: #b3261e; }
.sn-e-st-rest { color: #666; }
.sn-e-logo { width: 132px; height: 132px; padding: 10px; border: 1px solid #e3e3e3; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sn-e-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }

.sn-e-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sn-entry .sn-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 1px solid #222; border-radius: 4px; background: #fff; color: #222 !important; font-size: 14px; line-height: 1.2; white-space: nowrap; text-decoration: none !important; }
.sn-entry .sn-btn:hover { background: #f0f0f0; }
.sn-entry .sn-btn-dark { background: #222; color: #fff !important; }
.sn-entry .sn-btn-dark:hover { background: #444; }

/* Out-of-hours lines: pharmacies (sn-community's .sn-ooh, shown by directory.js while closed) and health places */
.sn-entry .sn-ooh, .sn-e-panel { margin-top: 16px; max-width: 760px; padding: 12px 16px; background: #f4f4f4; border-radius: 6px; font-size: 15px; line-height: 1.5; }
.sn-entry .sn-ooh p + p, .sn-e-panel p + p { margin-top: 6px; }
.sn-entry .sn-ooh .sn-st { font-size: inherit; font-weight: normal; color: inherit; }
.sn-e-panel a[href^="tel:"], .sn-entry .sn-ooh a[href^="tel:"] { white-space: nowrap; }

/* The CPR panel on a defibrillator's page */
.sn-e-cpr { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 18px; padding: 18px 22px; background: #f4f4f4; border-radius: 6px; }
.sn-e-cpr-t { flex: 999 1 420px; min-width: 0; }
.sn-e-cpr-say { font-family: 'Roboto Slab', serif; font-size: 24px; line-height: 1.3; }
.sn-e-cpr-t p + p { margin-top: 6px; color: #444; }
.sn-e-cpr .sn-e-acts { flex: 0 0 auto; margin-top: 0; }

/* ---------- 3, 4, 5: Details, Now, Where it is */
.sn-e-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px 40px; margin-top: 26px; }
.sn-e-sec h2, .sn-e-h2row { padding-bottom: 7px; border-bottom: 1px solid #222; font-weight: 700; font-size: 16px; line-height: 1.4; }
.sn-e-h2row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.sn-e-h2row h2 { padding: 0; border: 0; }
.sn-e-h2row a { font-size: 14px; }
.sn-e-sec .sn-e-h2-next { margin-top: 24px; }

.sn-e-facts { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
.sn-e-fact { display: contents; }
.sn-e-fact dt, .sn-e-fact dd { padding: 9px 0; border-bottom: 1px solid #e3e3e3; }
.sn-e-fact dt { padding-right: 10px; color: #666; font-size: 13px; line-height: 1.6; }
.sn-e-fact dd { min-width: 0; overflow-wrap: anywhere; }
.sn-e-fact:last-child dt, .sn-e-fact:last-child dd { border-bottom: 0; }
.sn-e-fact .sn-e-sub { margin-bottom: 2px; }

.sn-e-hours th, .sn-e-hours td, .sn-e-table th, .sn-e-table td { padding: 9px 0; border-bottom: 1px solid #e3e3e3; }
.sn-e-hours td { text-align: right; padding-left: 12px; white-space: nowrap; }
.sn-e-hours tr.is-today th, .sn-e-hours tr.is-today td { font-weight: bold; }
.sn-e-hours tr.is-today.is-open td { color: #1b6e2f; }
.sn-e-hours tr.is-today.is-soon td { color: #8a5a00; }
.sn-e-hours tr.is-today.is-closed td { color: #b3261e; }
.sn-e-table th { padding-right: 12px; color: #666; font-size: 13px; }
.sn-e-table thead th { font-size: 13px; color: #666; }
.sn-e-table thead th:last-child, .sn-e-run { text-align: right; }
.sn-e-sub-i { color: #666; font-size: 13px; }
.sn-e-trains-t .sn-e-due { width: 90px; font-family: 'Roboto Slab', serif; font-size: 20px; line-height: 1.3; white-space: nowrap; }
.sn-e-trains-t tbody td { padding: 11px 0; font-size: 16px; }
.sn-e-trains-t tbody td + td { padding-left: 10px; }
.sn-e-run { font-size: 15px; }
.sn-e-run.is-late { color: #8a5a00; }
.sn-e-run.is-tt { color: #666; }
.sn-e-warnings { margin-top: 12px; padding: 12px 16px; background: #f4f4f4; border-radius: 6px; }
.sn-e-warnings p + p { margin-top: 8px; }
.sn-e-ruled li { padding: 9px 0; border-bottom: 1px solid #e3e3e3; }
.sn-e-now > p, .sn-e-now > .sn-e-ruled + p { margin-top: 10px; }
.sn-e-note { margin-top: 10px; font-size: 13px; color: #555; }
.sn-e-links { margin-top: 10px; font-size: 14px; }
.sn-e-item .sn-e-links { margin-top: 8px; }

/* The locator map: our own pins on a quiet MapLibre map (entry.js), loaded when it scrolls into view */
.sn-e-mapbox { position: relative; width: 100%; max-width: 360px; height: 215px; margin-top: 12px; border: 1px solid #222; background: #eef0f0; overflow: hidden; }
.sn-e-mapbox.is-failed { display: none; }
.sn-e-map, .sn-e-map-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sn-e-map { cursor: pointer; }
.sn-e-map-credit { position: absolute; right: 0; bottom: 0; padding: 1px 5px; background: rgba(255, 255, 255, .85); font-size: 10px; line-height: 1.4; color: #444; }
.sn-entry .sn-e-map-credit a { color: #444; }
.sn-e-me { display: block; width: 16px; height: 16px; } /* MapLibre positions the marker (absolute); the dot and label sit inside it */
.sn-e-me-dot { position: absolute; inset: 0; background: #222; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #222; }
.sn-e-me-lab { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); padding: 1px 6px; background: #fff; border: 1px solid #222; font-family: 'Roboto Slab', serif; font-size: 12px; line-height: 1.4; color: #222; white-space: nowrap; }
.sn-e-pin { display: block; width: 17px; height: 17px; background: #fff; border: 1px solid #222; color: #222; font: bold 11px/15px Arial, Helvetica, sans-serif; text-align: center; }
.sn-e-pin.is-dark { width: 19px; height: 19px; background: #222; border-color: #222; color: #fff; font-size: 12px; line-height: 17px; }
.sn-e-key { margin-top: 10px; font-size: 14px; }
.sn-e-key li { padding: 2px 0; }
.sn-e-key b { display: inline-block; width: 22px; }
.sn-e-key span { color: #666; }

/* ---------- 6: around it */
.sn-entry > .sn-e-sec, .sn-entry > .sn-e-photo-main, .sn-entry > .sn-e-links { margin-top: 34px; }
.sn-e-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px 40px; margin-top: 14px; }
.sn-entry .sn-e-item h3 { font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 17px; line-height: 1.35; } /* small headings: the boxes are notes, not sections (owner, 2026-11-30) */
.sn-e-item p { margin-top: 6px; }
.sn-e-list.sn-e-cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); column-gap: 40px; }
.sn-e-list.sn-e-cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); column-gap: 40px; }
.sn-e-row { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #e3e3e3; }
.sn-e-row-k { flex: 0 0 22px; font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 16px; }
.sn-e-doors .sn-e-row-k { flex-basis: 46px; font-weight: 400; font-size: 19px; color: #666; }
.sn-e-row-t { flex: 1 1 auto; min-width: 0; }
.sn-e-sub { display: block; font-size: 13px; color: #666; }
.sn-e-st { flex: 0 0 auto; font-size: 13px; color: #666; text-align: right; }
.sn-e-st.is-open { color: #1b6e2f; }
.sn-e-st.is-soon { color: #8a5a00; }

.sn-e-photo img { display: block; width: 100%; height: auto; }
.sn-e-photo figcaption { margin-top: 7px; padding-bottom: 8px; border-bottom: 1px solid #e3e3e3; font-size: 13px; color: #444; }
.sn-e-photo figcaption span { color: #666; }
.sn-e-photo-main { max-width: 720px; }
.sn-e-item .sn-e-photo, .sn-e-sec .sn-e-photo { margin-top: 12px; max-width: 520px; }

.sn-e-close { margin-top: 30px; padding-top: 14px; border-top: 3px double #222; font-size: 14px; color: #444; }
.sn-e-credit { color: #666; }

/* ---------- phones: the same parts, as the phone artboards (standfirst under the buttons, Now above Details) */
@media (max-width: 700px) {
	.sn-entry { font-size: 16px; }
	.sn-e-head { margin-top: 12px; padding-bottom: 18px; column-gap: 14px; }
	.sn-entry.has-logo .sn-e-head { grid-template-columns: minmax(0, 1fr) 68px; }
	.sn-e-head > * { grid-column: 1 / -1; }
	.sn-e-head > .sn-e-name { grid-column: 1; grid-row: 1; }
	.sn-e-head > .sn-e-logo { grid-column: 2; grid-row: 1; width: 68px; height: 68px; padding: 5px; }
	.sn-entry.has-acts .sn-e-stand, .sn-entry.has-acts .sn-e-more { order: 10; }
	.sn-entry.has-acts .sn-e-stand { margin-top: 18px; }
	.sn-e-name { font-size: 32px; }
	.sn-e-stand { font-size: 18px; }
	.sn-e-status { margin-top: 12px; font-size: 19px; }
	.sn-e-st-rest { font-size: 15px; }
	.sn-e-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
	.sn-entry .sn-btn { justify-content: center; min-height: 44px; padding: 0 8px; font-size: 15px; white-space: normal; text-align: center; }
	.sn-e-acts .sn-btn-dark, .sn-e-acts .sn-btn:only-child, .sn-e-acts .sn-btn:last-child:nth-child(even) { grid-column: 1 / -1; }
	.sn-e-cpr { padding: 16px; }
	.sn-e-cpr .sn-e-acts { flex: 1 1 100%; }
	.sn-e-cpr-say { font-size: 21px; }
	.sn-e-grid { display: flex; flex-direction: column; gap: 26px; margin-top: 22px; }
	.sn-e-grid > .sn-e-now { order: -1; }
	.sn-e-facts { grid-template-columns: 104px minmax(0, 1fr); }
	.sn-e-fact dt, .sn-e-fact dd, .sn-e-hours th, .sn-e-hours td { padding-top: 11px; padding-bottom: 11px; }
	.sn-e-fact dt { font-size: 14px; }
	.sn-e-mapbox { max-width: none; height: 230px; }
	.sn-e-key, .sn-e-links, .sn-e-close { font-size: 15px; }
	.sn-e-key li { padding: 3px 0; }
	.sn-entry > .sn-e-sec, .sn-entry > .sn-e-photo-main, .sn-entry > .sn-e-links { margin-top: 26px; }
	.sn-e-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.sn-e-doors .sn-e-row-k { flex-basis: 40px; font-size: 18px; }
	.sn-e-close { margin-top: 26px; }
	.sn-e-row a, .sn-e-key a, .sn-e-links a, .sn-e-fact dd a { display: inline-block; padding: 2px 0; }
}

@media print {
	.sn-e-acts, .sn-e-mapbox, .sn-e-status { display: none !important; }
	.sn-e-grid { display: block; }
	.sn-e-grid > * + * { margin-top: 20px; }
}

/* "Open in Google Maps" as an outlined button under the map (owner 2026-11-30: the plain link looked random). */
.sn-entry .sn-e-gmaps { margin: 12px 0 0; }
.sn-entry .sn-e-gmaps .sn-btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 600px) { .sn-entry .sn-e-gmaps .sn-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; } }

/* Owner 2026-11-30 (double bar on category pages): one thin line instead of the 3px double rules here too. */
.sn-entry .sn-e-head { border-bottom: 1px solid #e3e3e3; }
.sn-entry .sn-e-close { border-top: 1px solid #e3e3e3; }
